[HideModuleNameAttribute]
public sealed class ObjectExtensions
<ExtensionAttribute>
<HideModuleNameAttribute>
Public NotInheritable Class ObjectExtensions
Dim instance As ObjectExtensions
[ExtensionAttribute]
[HideModuleNameAttribute]
public ref class ObjectExtensions sealed
[<SealedAttribute>]
[<ExtensionAttribute>]
[<HideModuleNameAttribute>]
type ObjectExtensions = class end
No code example is currently available or this language may not be supported.
CanConvertTo(Object, Type) | Determines whether the source object can be converted to the specified target type. |
CanConvertToT(Object) | Determines whether the source object can be converted to the specified target type. |
ConvertToT(Object) | Converts an object to the specified target type. If the conversion fails, an exception is thrown. |
ConvertToT(Object, T) | Converts an object to the specified target type. If the conversion fails, returns the specified default value. |
DeepCloneT | Creates a deep clone of the specified object. Note that the specified object must have implemented ISerializable interface. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
IsDefaultT | Determines whether the source object is the default value of its type. |
IsDisposable | Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface). |
NewIfNullT | Creates a new instance of the specified type if the object reference is null. |
ShallowCopyT | Creates a shallow copy of the specified object. |
Speak(Object, InstalledVoice, Int32, Int32) | Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer. |
Speak(Object, String, Int32, Int32) | Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer. |
ThrowIfTObject, TException | Throws the specified exception if the given condition in the source object is true. |
ThrowIfDefaultTObject, TException | Throws the specified exception if the source object is the default value of its type. |
ThrowIfNotInRangeT | Throws an ArgumentOutOfRangeException if the source value is not within the specified range. |
ThrowIfNullTException | Throws the specified exception if the source object is null. |
ToString | Returns a string that represents the current object. (Inherited from Object) |