The DataType type exposes the following methods.
Methods
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
AllTypes()()()() |
Return a ReadOnlyCollection of all the DataTypes that StreamBase supports.
| |
Equals(Object) |
Returns true if this DataType is of the given type.
(Overrides Object..::..Equals(Object).) | |
ForName(String) |
Return a DataType object corresponding to the given name.
| |
ForType(Object) |
Return the appropriate DataType for the type of the given object. Will
return null if can't determine the appropriate type.
| |
ForType(Type) |
Return the appropriate DataType for the given type. Will
return null if can't determine the appropriate type.
| |
GetHashCode()()()() |
Hash function for this type.
(Overrides Object..::..GetHashCode()()()().) | |
GetName()()()() |
Return a string representation of the data type.
| |
GetSize()()()() |
Get the size in bytes of this DataType.
| |
GetSQLName()()()() |
Return the StreamSQL name of this DataType.
| |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
IsSimpleType(DataType) |
Return true if the given type is a simple type (i.e. not a List or Tuple type).
| |
IsValueType(DataType) |
True if this type is represented by a .NET value type (bool, int, long, double, string)
| |
IsVariableSize()()()() |
Return true if this type is variable-length (e.g., STRING).
| |
ToString()()()() |
Return a string representation of the data type.
(Overrides Object..::..ToString()()()().) |