Class ModelCollection
Helper class to keep track of individual model collection subtypes
Inheritance
System.Object
ModelCollection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DuetAPI.Machine
Assembly: DuetAPI.dll
Syntax
public static class ModelCollection
Methods
GetItemType(Type, out Type)
Check if the given type is derived from a ModelCollection<T> and return the corresponding item type
Declaration
public static bool GetItemType(Type type, out Type itemType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Type to check |
System.Type | itemType | Item type |
Returns
Type | Description |
---|---|
System.Boolean | Whether the item type could be found |