TypeConverter Members

Provides a unified way of converting types of values to other types, as well as for accessing standard values and subproperties.

The TypeConverter type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework TypeConverter Initializes a new instance of the TypeConverter class.
Top

  NameDescription
Public method CanConvertFrom Overloaded. Returns whether this converter can convert an object of one type to the type of this converter.
Public method CanConvertTo Overloaded. Returns whether this converter can convert the object to the specified type.
Public method ConvertFrom Overloaded. Converts the given value to the type of this converter.
Public method ConvertFromInvariantString Overloaded. Converts the value to a type of this converter, using the invariant culture.
Public method ConvertFromString Overloaded. Converts the specified text to an object.
Public method ConvertTo Overloaded. Converts the given value object to the specified type.
Public method ConvertToInvariantString Overloaded. Converts the specified value to a culture-invariant string representation.
Public method ConvertToString Overloaded. Converts the specified value to a string representation.
Public method CreateInstance Overloaded. Re-creates an Object given a set of property values for the object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetConvertFromException Returns an exception to throw when a conversion cannot be performed.
Protected method GetConvertToException Returns an exception to throw when a conversion cannot be performed.
Public method GetCreateInstanceSupported Overloaded. Returns whether changing a value on this object requires a call to the CreateInstance method to create a new value.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetProperties Overloaded. Returns a collection of properties for the type of array specified by the value parameter.
Public method GetPropertiesSupported Overloaded. Returns whether this object supports properties.
Public method GetStandardValues Overloaded. Returns a collection of standard values for the data type this type converter is designed for.
Public method GetStandardValuesExclusive Overloaded. Returns whether the collection of standard values returned from GetStandardValues is an exclusive list.
Public method GetStandardValuesSupported Overloaded. Returns whether this object supports a standard set of values that can be picked from a list.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method IsValid Overloaded. Returns whether the given value object is valid for this type.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method SortProperties Sorts a collection of properties.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft