mscorlib
The Object is the root class for all object in the CLR System. Object
is the super class for all other CLR objects and provide a set of methods and low level
services to subclasses. These services include object synchronization and support for clone
operations.
@see System.ICloneable
Defines an interface indicating that an object may be cloned. Only objects
that implement ICloneable may be cloned. The interface defines a single
method which is called to create a clone of the object. Object defines a method
MemberwiseClone to support default clone operations.
@see System.Object
Make a new object which is a copy of the object instanced. This object may be either
deep copy or a shallow copy depending on the implementation of clone. The default
Object support for clone does a shallow copy.
@return A new object that represents a clone of the object.
An IList is an ordered collection of objects. The exact ordering
is up to the implementation of the list, ranging from a sorted
order to insertion order.
Base interface for all collections, defining enumerators, size, and
synchronization methods.
Implement this interface if you need to support VB's foreach semantics.
Also, COM classes that support an enumerator will also implement this interface.
Returns an IEnumerator for this enumerable Object. The enumerator provides
a simple way to access all the contents of a collection.
CopyTo copies a collection into an Array, starting at a particular
index into the array.
@param array array to copy collection into
@param index Index into array.
@exception ArgumentNullException if array is null.
Number of items in the collections.
Adds an item to the list. The exact position in the list is
implementation-dependent, so while ArrayList may always insert
in the last available location, a SortedList most likely would not.
The return value is the position the new element was inserted in.
Returns whether the list contains a particular item.
Removes all items from the list.
Returns the index of a particular item, if it is in the list.
Returns -1 if the item isn't in the list.
Inserts value into the list at position index.
index must be non-negative and less than or equal to the
number of elements in the list. If index equals the number
of items in the list, then value is appended to the end.
Removes an item from the list.
Removes the item at position index.
The Item property provides methods to read and edit entries in the List.
Base interface for all enumerators, providing a simple approach
to iterating over a collection.
Advances the enumerator to the next element of the enumeration and
returns a boolean indicating whether an element is available. Upon
creation, an enumerator is conceptually positioned before the first
element of the enumeration, and the first call to MoveNext
brings the first element of the enumeration into view.
@return true if the enumerator was succesfully advanced to the next
element, false if the enumeration has been completed.
@exception InvalidOperationException Thrown if the underlying set of objects
has been modified since this enumerator was created.
Resets the enumerator to the beginning of the enumeration, starting over.
The preferred behavior for Reset is to return the exact same enumeration.
This means if you modify the underlying collection then call Reset, your
IEnumerator will be invalid, just as it would have been if you had called
MoveNext or Current.
@exception InvalidOperationException Thrown if the underlying set of
objects has been modified since this enumerator was created.
Returns the current element of the enumeration. The returned value is
undefined before the first call to MoveNext
and following a
call to MoveNext
that returned false. Multiple calls to
GetCurrent
with no intervening calls to MoveNext
will return the same object.
@return The current element of the enumeration.
@exception InvalidOperationException Thrown if the underlying set of objects
has been modified since this enumerator was created, or if the Enumerator
is positioned before or after the valid range.
Enum used to indicate all the elements of the
VOS it is valid to attach this element to.
A place holder class for boolean.
@author Jay Roxe (jroxe)
@version
A place holder class for signed bytes.
@author Jay Roxe (jroxe)
@version
The maximum value that a Byte
may represent: 127.
The minimum value that a Byte
may represent: -128.
The maximum character value.
The minimum character value.
Custom attribute to indicate that a specified object
should be hidden from the editor. (i.e Intellisence filtering)
Our origin is at 1601/01/01:00:00:00.000
While desktop CLR's origin is at 0001/01/01:00:00:00.000.
There are 504911232000000000 ticks between them which we are subtracting.
See DeviceCode\PAL\time_decl.h for explanation of why we are taking
year 1601 as origin for our HAL, PAL, and CLR.
Reduce size by calling a single method?
Custom attribute to indicate that the enum
should be treated as a bitfield (or set of flags).
An IDE may use this information to provide a richer
development experince.
A read-only instance of the Guid class which consists of all zeros.
Initializes an instanace of the Guid class.
The first 4 bytes of the Guid.
The next 2 bytes of the Guid.
The next 2 bytes of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
Initializes an instanace of the Guid class.
The first 4 bytes of the Guid.
The next 2 bytes of the Guid.
The next 2 bytes of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
The next byte of the Guid.
Initializes an instance of the Guid class
A 16 element byte array containing the values with which to initialize the Guid.
Compares this instance to another Guid instance and returns an indication of their relative values
Guid instance to compare, or null.
Indication of the relative values (0 = equal, -1 = this instance less, +1 = this instance greater)
Gets the instance value as a byte array
16 element byte array containing the value of the Guid instance.
Overriden. Compares this instance to another Guid and returns whether they are equal or not.
Overriden. Returns a hash value for the Guid instance.
The IComparable interface is implemented by classes that support an
ordering of instances of the class. The ordering represented by
IComparable can be used to sort arrays and collections of objects
that implement the interface.
@see System.Array#Sort
@see System.Array#BinarySearch
@see System.List#Sort
@see System.List#BinarySearch
@see System.SortedList
This attribute is attached to members that are not to be used any longer.
Message is some human readable explanation of what to use
Error indicates if the compiler should treat usage of such a method as an
error. (this would be used if the actual implementation of the obsolete
method's implementation had changed).
Issue: do we need to be able to localize this message string?
Represents a pseudo-random number generator, a device that produces a
sequence of numbers that meet certain statistical requirements for
randomness.
Initializes a new instance of the Random class, using a time-
dependent default seed value.
Initializes a new instance of the Random class, using the specified
seed value.
A number used to calculate a starting value for
the pseudo-random number sequence.
Returns a nonnegative random number.
A 32-bit signed integer greater than or equal to zero and
less than MaxValue.
Returns a nonnegative random number less than the specified maximum.
The exclusive upper bound of the random number
to be generated. maxValue must be greater than or equal to zero.
A 32-bit signed integer greater than or equal to zero, and
less than maxValue.
Returns a random number between 0.0 and 1.0.
A double-precision floating point number greater than or equal
to 0.0, and less than 1.0.
Fills the elements of a specified array of bytes with random numbers.
An array of bytes to contain random numbers.
This value type is used for constructing System.ArgIterator.
SECURITY : m_ptr cannot be set to anything other than null by untrusted
code.
This corresponds to EE VARARGS cookie.
This value type is used for making classlib type safe.
SECURITY : m_ptr cannot be set to anything other than null by untrusted
code.
This corresponds to EE FieldDesc.
This value type is used for making classlib type safe.
SECURITY : m_ptr cannot be set to anything other than null by untrusted
code.
This corresponds to EE MethodDesc.
This value type is used for making Type.GetTypeFromHandle() type safe.
SECURITY : m_ptr cannot be set to anything other than null by untrusted
code.
This corresponds to EE TypeHandle.
A place holder class for signed bytes.
@author Jay Roxe (jroxe)
@version
The maximum value that a Byte
may represent: 127.
The minimum value that a Byte
may represent: -128.
Wrapper for unsigned 16 bit integers.
* Wrapper for unsigned 32 bit integers.
Wrapper for unsigned 64 bit integers.
The IComparer interface implements a method that compares two objects. It is
used in conjunction with the Sort and BinarySearch methods on
the Array and List classes.
@see System.Array
@see System.Collections.List
@author Anders Hejlsberg
@version 1.00 8/13/98
A circular-array implementation of a queue. Enqueue can be O(n). Dequeue is O(1).
Initializes a new instance of the Queue class that is empty, has the default initial
capacity, and uses the default growth factor (2x).
Creates a shallow copy of the Queue.
A shallow copy of the Queue.
Removes all objects from the Queue.
Copies the Queue elements to an existing one-dimensional Array, starting at
the specified array index.
The one-dimensional Array that is the destination of the elements copied from Queue.
The zero-based index in array at which copying begins.
Adds an object to the end of the Queue.
The object to add to the Queue.
Returns an enumerator that iterates through the Queue.
An IEnumerator for the Queue.
Removes and returns the object at the beginning of the Queue.
The object that is removed from the beginning of the Queue.
Returns the object at the beginning of the Queue without removing it.
The object at the beginning of the Queue.
Determines whether an element is in the Queue.
The Object to locate in the Queue.
true if obj is found in the Queue; otherwise, false.
Copies the Queue elements to a new array. The order of the elements in the new
array is the same as the order of the elements from the beginning of the Queue
to its end.
A new array containing elements copied from the Queue.
Gets the number of elements contained in the Queue.
Gets a value indicating whether access to the Queue is synchronized (thread safe).
Always return false.
Gets an object that can be used to synchronize access to the Queue.
An array implementation of a stack. Push can be O(n). Pop is O(1).
Initializes a new instance of the Stack class that is empty and has the default initial capacity.
Removes all Objects from the Stack.
Creates a shallow copy of the Stack.
A shallow copy of the Stack.
Determines whether an element is in the Stack.
The Object to locate in the Stack.
true, if obj is found in the Stack; otherwise, false
Copies the Stack to an existing one-dimensional Array, starting at the specified array index.
The one-dimensional Array that is the destination of the elements copied from Stack.
The zero-based index in array at which copying begins.
Returns an IEnumerator for this Stack.
An IEnumerator for the Stack.
Returns the object at the top of the Stack without removing it.
The Object at the top of the Stack.
Removes and returns the object at the top of the Stack.
The Object removed from the top of the Stack.
Inserts an object at the top of the Stack.
The Object to push onto the Stack.
Copies the Stack to a new array, in the same order Pop would return the items.
A new array containing copies of the elements of the Stack.
Size of the stack
Returns whether the current stack is synchornized. Always return false.
Gets an object that can be used to synchronize access to the Stack.
This class represents a starting/ending time for a period of daylight saving time.
The start date of a daylight saving period.
The end date of a daylight saving period.
Delta to stardard offset in ticks.
The Member type Field.
This Enum matchs the CorMethodImpl defined in CorHdr.h
This Enum matchs the CorTypeAttr defined in CorHdr.h
This Enum matchs the miImpl flags defined in corhdr.h. It is used to specify
certain method properties.
Custom attribute to specify additional method properties.
GetObjectValue is intended to allow value classes to be manipulated as 'Object'
but have aliasing behavior of a value class. The intent is that you would use
this function just before an assignment to a variable of type 'Object'. If the
value being assigned is a mutable value class, then a shallow copy is returned
(because value classes have copy semantics), but otherwise the object itself
is returned.
Note: VB calls this method when they're about to assign to an Object
or pass it as a parameter. The goal is to make sure that boxed
value types work identical to unboxed value types - ie, they get
cloned when you pass them around, and are always passed by value.
Of course, reference types are not cloned. -- BrianGru 7/12/2001
@param obj The object that is about to be assigned.
@return a shallow copy of 'obj' if it is a value class, 'obj' itself otherwise
RunClassConstructor causes the class constructor for the given type to be triggered
in the current domain. After this call returns, the class constructor is guaranteed to
have at least been started by some thread. In the absence of class constructor
deadlock conditions, the call is further guaranteed to have completed.
This call will generate an exception if the specified class constructor threw an
exception when it ran.
Use this in P/Direct function prototypes to specify
which character set to use when marshalling Strings.
Using Ansi will marshal the strings as 1 byte char*'s.
Using Unicode will marshal the strings as 2 byte wchar*'s.
Generally you probably want to use Auto, which does the
right thing 99% of the time.
Used in the StructLayoutAttribute class
A constant used by methods that take a timeout (Object.Wait, Thread.Sleep
etc) to indicate that no timeout should occur.
this should become an enum.