C# Class Tp.Utils.Mime.SupportUtil

Mostrar archivo Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Public Methods

Method Description
GetAssembly ( string assemblyName ) : Assembly
ToArray ( ICollection c, Object objects ) : Object[]

Obtains an array containing all the elements of the collection.

ToByteArray ( Object tempObjectArray ) : byte[]

Converts a array of object-type instances to a byte-type array.

ToByteArray ( String sourceString ) : byte[]

Converts a string to an array of bytes

ToByteArrayWithDefaultCodePage ( String sourceString ) : byte[]

Converts a string to an array of bytes

Method Details

GetAssembly() public static method

public static GetAssembly ( string assemblyName ) : Assembly
assemblyName string
return System.Reflection.Assembly

ToArray() public static method

Obtains an array containing all the elements of the collection.
public static ToArray ( ICollection c, Object objects ) : Object[]
c ICollection
objects Object The array into which the elements of the collection will be stored.
return Object[]

ToByteArray() public static method

Converts a array of object-type instances to a byte-type array.
public static ToByteArray ( Object tempObjectArray ) : byte[]
tempObjectArray Object Array to convert.
return byte[]

ToByteArray() public static method

Converts a string to an array of bytes
public static ToByteArray ( String sourceString ) : byte[]
sourceString String The string to be converted
return byte[]

ToByteArrayWithDefaultCodePage() public static method

Converts a string to an array of bytes
public static ToByteArrayWithDefaultCodePage ( String sourceString ) : byte[]
sourceString String The string to be converted
return byte[]