C# Класс Support.SupportClass

Показать файл Открыть проект

Открытые методы

Метод Описание
CreateNewInstance ( System classType ) : Object

Creates an instance of a received Type

Deserialize ( System binaryReader ) : Object
GetSBytesFromString ( string sourceString, int sourceStart, int sourceEnd, sbyte &destinationArray, int destinationStart ) : void

Method that copies an array of sbytes from a String to a received array .

HashtableRemove ( System hashtable, System key ) : Object

Removes the element with the specified key from a Hashtable instance.

Identity ( double literal ) : double

This method is used as a dummy method to simulate VJ++ behavior

Identity ( float literal ) : float

This method is used as a dummy method to simulate VJ++ behavior

Identity ( long literal ) : long

This method is used as a dummy method to simulate VJ++ behavior

Identity ( ulong literal ) : ulong

This method is used as a dummy method to simulate VJ++ behavior

PutElement ( System hashTable, System key, System newValue ) : Object
ReadInput ( System sourceStream, sbyte &target, int start, int count ) : Int32

Reads a number of characters from the current source Stream and writes the data to the target array at the specified index.

Serialize ( System stream, System objectToSend ) : void

Writes an object to the specified Stream

ToByteArray ( sbyte sbyteArray ) : byte[]

Converts an array of sbytes to an array of bytes

ToByteArray ( string sourceString ) : byte[]

Converts a string to an array of bytes

URShift ( int number, int bits ) : int
URShift ( int number, long bits ) : int
URShift ( long number, int bits ) : long
URShift ( long number, long bits ) : long
WriteStackTrace ( System throwable, System stream ) : void

Описание методов

CreateNewInstance() публичный статический Метод

Creates an instance of a received Type
public static CreateNewInstance ( System classType ) : Object
classType System The Type of the new class instance to return
Результат System.Object

Deserialize() публичный статический Метод

public static Deserialize ( System binaryReader ) : Object
binaryReader System
Результат System.Object

GetSBytesFromString() публичный статический Метод

Method that copies an array of sbytes from a String to a received array .
public static GetSBytesFromString ( string sourceString, int sourceStart, int sourceEnd, sbyte &destinationArray, int destinationStart ) : void
sourceString string The String to get the sbytes.
sourceStart int Position in the String to start getting sbytes.
sourceEnd int Position in the String to end getting sbytes.
destinationArray sbyte Array to store the bytes.
destinationStart int Position in the destination array to start storing the sbytes.
Результат void

HashtableRemove() публичный статический Метод

Removes the element with the specified key from a Hashtable instance.
public static HashtableRemove ( System hashtable, System key ) : Object
hashtable System The Hashtable instance
key System The key of the element to remove
Результат System.Object

Identity() публичный статический Метод

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( double literal ) : double
literal double The literal to return
Результат double

Identity() публичный статический Метод

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( float literal ) : float
literal float The literal to return
Результат float

Identity() публичный статический Метод

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( long literal ) : long
literal long The literal to return
Результат long

Identity() публичный статический Метод

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( ulong literal ) : ulong
literal ulong The literal to return
Результат ulong

PutElement() публичный статический Метод

public static PutElement ( System hashTable, System key, System newValue ) : Object
hashTable System
key System
newValue System
Результат System.Object

ReadInput() публичный статический Метод

Reads a number of characters from the current source Stream and writes the data to the target array at the specified index.
public static ReadInput ( System sourceStream, sbyte &target, int start, int count ) : Int32
sourceStream System The source Stream to read from
target sbyte Contains the array of characteres read from the source Stream.
start int The starting index of the target array.
count int The maximum number of characters to read from the source Stream.
Результат System.Int32

Serialize() публичный статический Метод

Writes an object to the specified Stream
public static Serialize ( System stream, System objectToSend ) : void
stream System The target Stream
objectToSend System The object to be sent
Результат void

ToByteArray() публичный статический Метод

Converts an array of sbytes to an array of bytes
public static ToByteArray ( sbyte sbyteArray ) : byte[]
sbyteArray sbyte The array of sbytes to be converted
Результат byte[]

ToByteArray() публичный статический Метод

Converts a string to an array of bytes
public static ToByteArray ( string sourceString ) : byte[]
sourceString string The string to be converted
Результат byte[]

URShift() публичный статический Метод

public static URShift ( int number, int bits ) : int
number int
bits int
Результат int

URShift() публичный статический Метод

public static URShift ( int number, long bits ) : int
number int
bits long
Результат int

URShift() публичный статический Метод

public static URShift ( long number, int bits ) : long
number long
bits int
Результат long

URShift() публичный статический Метод

public static URShift ( long number, long bits ) : long
number long
bits long
Результат long

WriteStackTrace() публичный статический Метод

public static WriteStackTrace ( System throwable, System stream ) : void
throwable System
stream System
Результат void