C# 클래스 SupportClass, csharp-ldap

Contains conversion support elements such as classes, interfaces and static methods.
파일 보기 프로젝트 열기: EventStore/csharp-ldap 1 사용 예제들

공개 메소드들

메소드 설명
CreateNewInstance ( System classType ) : Object

Creates an instance of a received Type.

EqualsSupport ( System source, System target ) : bool

Determines whether two Collections instances are equals.

FormatDateTime ( System format, System date ) : string

Gets the DateTimeFormat instance and date instance to obtain the date with the format passed

GetCharsFromString ( string sourceString, int sourceStart, int sourceEnd, char &destinationArray, int destinationStart ) : void

Copies an array of chars obtained from a String into a specified array of chars

GetFileStream ( string FileName, bool Append ) : FileStream

Creates an output file stream to write to the file with the specified name.

HashtableRemove ( System hashtable, System key ) : Object

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

Identity ( double literal ) : double

This method returns the literal value received

Identity ( float literal ) : float

This method returns the literal value received

Identity ( long literal ) : long

This method returns the literal value received

PutElement ( System collection, System key, System newValue ) : Object

Adds a new key-and-value pair into the hash table

ReverseStack ( System collection ) : System.Collections.IEnumerator

Reverses the Stack Collection received.

SetSize ( System arrayList, int newSize ) : void

Sets the size of the ArrayList. If the new size is greater than the current capacity, then new null items are added to the end of the ArrayList. If the new size is lower than the current size, then all elements after the new size are discarded

StackPush ( System stack, System element ) : Object

Adds an element to the top end of a Stack instance.

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

ToCharArray ( byte byteArray ) : char[]

Converts an array of bytes to an array of chars

VectorRemoveElement ( System arrayList, System element ) : System.Boolean

Removes the first occurrence of an specific object from an ArrayList instance.

WriteStackTrace ( System throwable, System stream ) : void

Writes the exception stack trace to the received stream

비공개 메소드들

메소드 설명
Identity ( ulong literal ) : ulong
ReadInput ( System sourceStream, sbyte &target, int start, int count ) : Int32
ToByteArray ( sbyte sbyteArray ) : byte[]
ToCharArray ( sbyte sByteArray ) : char[]
ToSByteArray ( byte byteArray ) : sbyte[]

메소드 상세

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

EqualsSupport() 공개 정적인 메소드

Determines whether two Collections instances are equals.
public static EqualsSupport ( System source, System target ) : bool
source System The first Collections to compare.
target System The second Collections to compare.
리턴 bool

FormatDateTime() 공개 정적인 메소드

Gets the DateTimeFormat instance and date instance to obtain the date with the format passed
public static FormatDateTime ( System format, System date ) : string
format System The DateTimeFormat to obtain the time and date pattern
date System The date instance used to get the date
리턴 string

GetCharsFromString() 공개 정적인 메소드

Copies an array of chars obtained from a String into a specified array of chars
public static GetCharsFromString ( string sourceString, int sourceStart, int sourceEnd, char &destinationArray, int destinationStart ) : void
sourceString string The String to get the chars from
sourceStart int Position of the String to start getting the chars
sourceEnd int Position of the String to end getting the chars
destinationArray char Array to return the chars
destinationStart int Position of the destination array of chars to start storing the chars
리턴 void

GetFileStream() 공개 정적인 메소드

Creates an output file stream to write to the file with the specified name.
public static GetFileStream ( string FileName, bool Append ) : FileStream
FileName string Name of the file to write.
Append bool True in order to write to the end of the file, false otherwise.
리턴 System.IO.FileStream

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 returns the literal value received
public static Identity ( double literal ) : double
literal double The literal to return
리턴 double

Identity() 공개 정적인 메소드

This method returns the literal value received
public static Identity ( float literal ) : float
literal float The literal to return
리턴 float

Identity() 공개 정적인 메소드

This method returns the literal value received
public static Identity ( long literal ) : long
literal long The literal to return
리턴 long

PutElement() 공개 정적인 메소드

Adds a new key-and-value pair into the hash table
public static PutElement ( System collection, System key, System newValue ) : Object
collection System The collection to work with
key System Key used to obtain the value
newValue System Value asociated with the key
리턴 System.Object

ReverseStack() 공개 정적인 메소드

Reverses the Stack Collection received.
public static ReverseStack ( System collection ) : System.Collections.IEnumerator
collection System The collection to reverse.
리턴 System.Collections.IEnumerator

SetSize() 공개 정적인 메소드

Sets the size of the ArrayList. If the new size is greater than the current capacity, then new null items are added to the end of the ArrayList. If the new size is lower than the current size, then all elements after the new size are discarded
public static SetSize ( System arrayList, int newSize ) : void
arrayList System The ArrayList to be changed
newSize int The new ArrayList size
리턴 void

StackPush() 공개 정적인 메소드

Adds an element to the top end of a Stack instance.
public static StackPush ( System stack, System element ) : Object
stack System The Stack instance
element System The element to add
리턴 System.Object

ToByteArray() 공개 정적인 메소드

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

ToByteArray() 공개 정적인 메소드

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

ToCharArray() 공개 정적인 메소드

Converts an array of bytes to an array of chars
public static ToCharArray ( byte byteArray ) : char[]
byteArray byte The array of bytes to convert
리턴 char[]

VectorRemoveElement() 공개 정적인 메소드

Removes the first occurrence of an specific object from an ArrayList instance.
public static VectorRemoveElement ( System arrayList, System element ) : System.Boolean
arrayList System The ArrayList instance
element System The element to remove
리턴 System.Boolean

WriteStackTrace() 공개 정적인 메소드

Writes the exception stack trace to the received stream
public static WriteStackTrace ( System throwable, System stream ) : void
throwable System Exception to obtain information from
stream System Output sream used to write to
리턴 void