The requested page is not available for the requested platform. You are viewing the content for Default platform.

ObjectFormatter Members

Represents a string formatter. Exposes the static helper ObjectFormatter.Format method that replaces format items in the specified string with the property values of the specified object.

Constructors

Name Description
ObjectFormatter()

Creates an instance of the ObjectFormatter class.

Methods

Name Description
Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) static Determines whether the specified object instances are considered equal.
(Inherited from Object)
Format(String, Object) static

Replaces format items in the specified string with the values of the specified object's properties. Uses the EmptyEntriesMode.Default mode of processing the passed string.

Format(String, Object, EmptyEntriesMode) static

Replaces format items in the specified string with the values of the specified object's properties. Allows you to specify the EmptyEntriesMode mode of processing the passed string.

GetHashCode() Serves as the default hash function.
(Inherited from Object)
GetType() Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone() Creates a shallow copy of the current Object.
(Inherited from Object)
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance.
(Inherited from Object)
ToString() Returns a string that represents the current object.
(Inherited from Object)

Events

Name Description
CustomFormatObject static

Occurs when the ObjectFormatter.Format method is called. Allows you to perform the custom processing of the string passed to the Format method.

CustomGetValue static

Occurs when the ObjectFormatter.Format method processes a format item. Allows you to provide a custom value that will replace the format item in the resulting string.

See Also