Show / Hide Table of Contents

Class ObjectExtensions

Inheritance
System.Object
ObjectExtensions
Namespace: GCore.Extensions.ObjectEx
Assembly: GCore.dll
Syntax
public static class ObjectExtensions : object

Methods

| Improve this Doc View Source

CastToOrDefault<T>(System.Object, T)

Castet des Objekt zu dem Typ oder gibt den Standartwehrt zurück.

Declaration
public static T CastToOrDefault<T>(this System.Object _this_, T defaultValue)
Parameters
Type Name Description
System.Object _this_
T defaultValue
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

Dump(System.Object)

Declaration
public static string Dump(this System.Object this_)
Parameters
Type Name Description
System.Object this_
Returns
Type Description
System.String
| Improve this Doc View Source

Dump(System.Object, DumpSettings)

Declaration
public static string Dump(this System.Object this_, DumpSettings settings)
Parameters
Type Name Description
System.Object this_
DumpSettings settings
Returns
Type Description
System.String
| Improve this Doc View Source

Dump(System.Object, Type)

Declaration
public static string Dump(this System.Object this_, Type type)
Parameters
Type Name Description
System.Object this_
Type type
Returns
Type Description
System.String
| Improve this Doc View Source

Dump(System.Object, Type, String)

Declaration
public static string Dump(this System.Object this_, Type type, string name)
Parameters
Type Name Description
System.Object this_
Type type
System.String name
Returns
Type Description
System.String
| Improve this Doc View Source

IsCastableTo(System.Object, Type)

Gibt an ob das Objekt zu dem Typ gecastet werden kann.

Declaration
public static bool IsCastableTo(this System.Object _this_, Type t)
Parameters
Type Name Description
System.Object _this_
Type t
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsNumber(Object)

Declaration
public static bool IsNumber(this object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Serialize(System.Object, ByteArrayExtensions.DataFormatType)

Serialisiert das Objekt

Declaration
public static byte[] Serialize(this System.Object objectToSerialize, ByteArrayExtensions.DataFormatType format)
Parameters
Type Name Description
System.Object objectToSerialize
ByteArrayExtensions.DataFormatType format
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

ToDataTableO(System.Object)

Declaration
public static DataTable ToDataTableO(this System.Object this_)
Parameters
Type Name Description
System.Object this_
Returns
Type Description
DataTable
| Improve this Doc View Source

ToStringSafe(System.Object)

Declaration
public static string ToStringSafe(this System.Object this_)
Parameters
Type Name Description
System.Object this_
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX