The StringFormatter type exposes the following members.
Methods
Name | Description | |
---|---|---|
CheckReadOnly |
Throws InvalidOperationException if the formatter is
read-only. Do this check before setting a property.
(Inherited from DataFormatterBase.) | |
Clone |
Returns a writable copy of this formatter.
(Inherited from DataFormatterBase.) | |
Equals |
Determines whether the specified Object is equal to the current Object.
(Overrides DataFormatterBaseEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Format |
Converts an object to a string value; no actual conversion is
performed. By default the string is truncated to 65535 characters
(Truncate).
(Overrides DataFormatterBaseFormat(Object).) | |
FormatInvalid |
Formats an invalid value. If error is not null,
the return value includes the "(error)" string, otherwise
EmptyString is returned.
(Inherited from DataFormatterBase.) | |
GetHashCode |
Gets a hash code for the current Object.
(Overrides DataFormatterBaseGetHashCode.) | |
GetObjectData |
Populates a SerializationInfo with the data needed to serialize the target object.
(Overrides DataFormatterBaseGetObjectData(SerializationInfo, StreamingContext).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Parse |
Returns the string value; no actual conversion is performed.
(Overrides DataFormatterBaseParse(String).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryParse |
Converts a string representation to an object. A return value indicates
whether the conversion succeeded or failed.
(Inherited from DataFormatterBase.) |
See Also