| |
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmembersvb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.IDefaultIndexer
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.SimpleInterface
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum(__builtin__.object)
-
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumByte
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumInt16
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumInt32
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumInt64
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumSByte
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumUInt16
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumUInt32
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.EnumUInt64
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.MulticastDelegate(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Delegate)
-
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.Int32Int32Delegate
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.VoidVoidDelegate
- __builtin__.object
-
- Merlin.Testing in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.Helper
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithDefaultField
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithDefaultMemberCtor
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithDefaultMethod
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithDefaultProperty
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithDefaultStaticField
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithItem
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithget_Item
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithset_Item
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmemberscs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.StructWithDefaultMethod
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmembersvb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassImplementsIDefaultIndexer
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmembersvb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithNotExistingMember
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmembersvb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithOverloadDefaultIndexer
-
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmembersvb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.DerivedClass
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmembersvb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.StructImplementsIDefaultIndexer
- Merlin.Testing.DefaultMemberSample in rowantest.defaultmembersvb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.StructWithDefaultIndexer
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassImplementSimpleInterface
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.ClassWithDefaultCtor
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.SimpleClass
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.SimpleGenericClass[T]
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.SimpleGenericStruct[K]
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.SimpleStruct
- Merlin.Testing.TypeSample in rowantest.typesamples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.StructWithDefaultCtor
class EnumByte(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumByte, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumByte
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
class EnumInt16(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumInt16, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumInt16
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
class EnumInt32(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumInt32, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumInt32
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
class EnumInt64(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumInt64, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumInt64
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
class EnumSByte(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumSByte, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumSByte
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
class EnumUInt16(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumUInt16, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumUInt16
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
class EnumUInt32(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumUInt32, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumUInt32
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
class EnumUInt64(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum) |
|
enum EnumUInt64, values: A (0), B (1), C (2) |
|
- Method resolution order:
- EnumUInt64
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum
- __builtin__.object
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IComparable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IFormattable
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible
Methods defined here:
- __format__(...)
- str __format__(IFormattable formattable, str format)
- __reduce_ex__(...)
- helper for pickle
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- A
- B
- C
- value__
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Enum:
- CompareTo(...)
- int CompareTo(self, object target)
Compares this instance to a specified object and returns an
indication of their relative values.
target:
An object to compare, or null.
Returns:
A signed number indicating the relative values of this instance and
target.
Return Value
Description
Less than zero
The value of this instance is less than the value of target.
Zero
The
value of this instance is equal to the value of target.
Greater than zero
The value of this
instance is greater than the value of target.
-or-
target is null.
- Equals(...)
- bool Equals(self, object obj)
Returns a value indicating whether this instance is equal to a
specified object.
obj:
An object to compare with this instance, or null.
Returns: true if obj is an System.Enum with the same underlying type and value as this instance;
otherwise, false.
- Format(...)
- str Format(Type enumType, object value, str format)
Converts the specified value of a specified enumerated type to its
equivalent string representation according to the specified format.
enumType:
The enumeration type of the value to convert.
value:
The value to convert.
format:
The output format to use.
Returns:
A string representation of value.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for the value of this instance.
Returns:
A 32-bit signed integer hash code.
- GetName(...)
- str GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration
that has the specified value.
enumType:
An enumeration type.
value:
The value of a particular enumerated constant in terms of its
underlying type.
Returns:
A string containing the name of the enumerated constant in enumType
whose value is value, or null if no such constant is found.
- GetNames(...)
- Array[str] GetNames(Type enumType)
Retrieves an array of the names of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
A string array of the names of the constants in enumType.
- GetTypeCode(...)
- TypeCode GetTypeCode(self)
Returns the underlying System.TypeCode for this instance.
Returns:
The System.TypeCode for this instance.
- GetUnderlyingType(...)
- Type GetUnderlyingType(Type enumType)
Returns the underlying type of the specified enumeration.
enumType:
An enumeration type.
Returns:
The underlying System.Type of enumType.
- GetValues(...)
- Array GetValues(Type enumType)
Retrieves an array of the values of the constants in a specified
enumeration.
enumType:
An enumeration type.
Returns:
An System.Array of the values of the constants in enumType. The
elements of the array are sorted by the binary values of the enumeration constants.
- IsDefined(...)
- bool IsDefined(Type enumType, object value)
Returns an indication whether a constant with a specified value
exists in a specified enumeration.
enumType:
An enumeration type.
value:
The value or name of a constant in enumType.
Returns: true if a constant in enumType has a value equal to value; otherwise, false.
- Parse(...)
- object Parse(Type enumType, str value, bool ignoreCase)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object. A parameter
specifies whether the operation is case-sensitive.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
ignoreCase:
If true, ignore case; otherwise, regard case.
Returns:
An object of type enumType whose value is represented by value.
object Parse(Type enumType, str value)
Converts the string representation of the name or numeric value of
one or more enumerated constants to an equivalent enumerated object.
enumType:
The System.Type of the enumeration.
value:
A string containing the name or value to convert.
Returns:
An object of type enumType whose value is represented by value.
- ToObject(...)
- object ToObject(Type enumType, UInt32 value)
Returns an instance of the specified enumeration type set to the
specified 32-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, UInt64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int64 value)
Returns an instance of the specified enumeration type set to the
specified 64-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Byte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit unsigned integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, SByte value)
Returns an instance of the specified enumeration type set to the
specified 8-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, object value)
Returns an instance of the specified enumeration set to the
specified value.
enumType:
An enumeration.
value:
The value.
Returns:
An enumeration object whose value is value.
object ToObject(Type enumType, int value)
Returns an instance of the specified enumeration type set to the
specified 32-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
object ToObject(Type enumType, Int16 value)
Returns an instance of the specified enumeration type set to the
specified 16-bit signed integer value.
enumType:
The enumeration for which to create a value.
value:
The value to set.
Returns:
An instance of the enumeration set to value.
- ToString(...)
- str ToString(self, str format)
Converts the value of this instance to its equivalent string
representation using the specified format.
format:
A format string.
Returns:
The string representation of the value of this instance as
specified by format.
str ToString(self, IFormatProvider provider)
This method overload is obsolete; use System.Enum.ToString.
provider:
(obsolete)
str ToString(self)
Converts the value of this instance to its equivalent string
representation.
Returns:
The string representation of the value of this instance.
str ToString(self, str format, IFormatProvider provider)
This method overload is obsolete; use
System.Enum.ToString(System.String).
format:
A format specification.
provider:
(obsolete)
- __and__(...)
- object __and__(object self, object other)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __invert__(...)
- object __invert__(object self)
- __ne__(...)
- bool __ne__(object x, object y)
- __nonzero__(...)
- bool __nonzero__(object self)
- __or__(...)
- object __or__(object self, object other)
- __rand__(...)
- object __rand__(object self, object other)
- __repr__(...)
- str __repr__(object self)
- __ror__(...)
- object __ror__(object self, object other)
- __rxor__(...)
- object __rxor__(object self, object other)
- __xor__(...)
- object __xor__(object self, object other)
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IConvertible:
- ToBoolean(...)
- bool ToBoolean(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Boolean value
using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Boolean value equivalent to the value of this instance.
- ToByte(...)
- Byte ToByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit unsigned
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit unsigned integer equivalent to the value of this instance.
- ToChar(...)
- Char ToChar(self, IFormatProvider provider)
Converts the value of this instance to an equivalent Unicode
character using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A Unicode character equivalent to the value of this instance.
- ToDateTime(...)
- DateTime ToDateTime(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
System.DateTime using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.DateTime instance equivalent to the value of this
instance.
- ToDecimal(...)
- Decimal ToDecimal(self, IFormatProvider provider)
Converts the value of this instance to an equivalent System.Decimal
number using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A System.Decimal number equivalent to the value of this instance.
- ToDouble(...)
- float ToDouble(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
double-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A double-precision floating-point number equivalent to the value of
this instance.
- ToInt16(...)
- Int16 ToInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit signed integer equivalent to the value of this instance.
- ToInt32(...)
- int ToInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit signed integer equivalent to the value of this instance.
- ToInt64(...)
- Int64 ToInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit signed integer equivalent to the value of this instance.
- ToSByte(...)
- SByte ToSByte(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 8-bit signed
integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 8-bit signed integer equivalent to the value of this instance.
- ToSingle(...)
- Single ToSingle(self, IFormatProvider provider)
Converts the value of this instance to an equivalent
single-precision floating-point number using the specified culture-specific formatting
information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
A single-precision floating-point number equivalent to the value of
this instance.
- ToType(...)
- object ToType(self, Type conversionType, IFormatProvider provider)
Converts the value of this instance to an System.Object of the
specified System.Type that has an equivalent value, using the specified culture-specific
formatting information.
conversionType:
The System.Type to which the value of this instance is converted.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An System.Object instance of type conversionType whose value is
equivalent to the value of this instance.
- ToUInt16(...)
- UInt16 ToUInt16(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 16-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 16-bit unsigned integer equivalent to the value of this
instance.
- ToUInt32(...)
- UInt32 ToUInt32(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 32-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 32-bit unsigned integer equivalent to the value of this
instance.
- ToUInt64(...)
- UInt64 ToUInt64(self, IFormatProvider provider)
Converts the value of this instance to an equivalent 64-bit
unsigned integer using the specified culture-specific formatting information.
provider:
An System.IFormatProvider interface implementation that supplies
culture-specific formatting information.
Returns:
An 64-bit unsigned integer equivalent to the value of this
instance.
|
IDefaultIndexer = <type 'IDefaultIndexer'>
class Int32Int32Delegate(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.MulticastDelegate) |
|
Int32Int32Delegate(object object, IntPtr method) |
|
- Method resolution order:
- Int32Int32Delegate
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.MulticastDelegate
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Delegate
- __builtin__.object
Methods defined here:
- BeginInvoke(...)
- IAsyncResult BeginInvoke(self, int arg, AsyncCallback callback, object object)
- EndInvoke(...)
- int EndInvoke(self, IAsyncResult result)
- Invoke(...)
- int Invoke(self, int arg)
- __new__(...)
- __new__(cls, object object, IntPtr method)
- __reduce_ex__(...)
- helper for pickle
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.MulticastDelegate:
- CombineImpl(...)
- Delegate CombineImpl(self, Delegate follow)
Combines this System.Delegate with the specified System.Delegate to
form a new delegate.
follow:
The delegate to combine with this delegate.
Returns:
A System.Delegate that is the new root of the
System.MulticastDelegate invocation list.
- Equals(...)
- bool Equals(self, object obj)
Determines whether this multicast delegate and the specified object
are equal.
obj:
The object to compare with this instance.
Returns: true if obj and this instance have the same invocation lists; otherwise, false.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for this instance.
Returns:
A 32-bit signed integer hash code.
- GetInvocationList(...)
- Array[Delegate] GetInvocationList(self)
Returns the invocation list of this multicast delegate, in
invocation order.
Returns:
An array of delegates whose invocation lists collectively match the
invocation list of this instance.
- GetMethodImpl(...)
- MethodInfo GetMethodImpl(self)
Returns a static method represented by the current
System.MulticastDelegate.
Returns:
A System.Reflection.MethodInfo describing a static method
represented by the current System.MulticastDelegate.
- GetObjectData(...)
- GetObjectData(self, SerializationInfo info, StreamingContext context)
Populates a System.Runtime.Serialization.SerializationInfo object
with all the data needed to serialize this instance.
info:
An object that holds all the data needed to serialize or
deserialize this instance.
context:
(Reserved) The location where serialized data is stored and
retrieved.
- RemoveImpl(...)
- Delegate RemoveImpl(self, Delegate value)
Removes an element from the invocation list of this
System.MulticastDelegate that is equal to the specified delegate.
value:
The delegate to search for in the invocation list.
Returns:
If value is found in the invocation list for this instance, then a
new System.Delegate without value in its invocation list; otherwise, this instance with
its original invocation list.
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ne__(...)
- bool __ne__(MulticastDelegate d1, MulticastDelegate d2)
Determines whether two System.MulticastDelegate objects are not
equal.
d1:
The left operand.
d2:
The right operand.
Returns: true if d1 and d2 do not have the same invocation lists; otherwise, false.
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Delegate:
- Call(...)
- object Call(Delegate delegate, dict dict, Array[object] args)
object Call(Delegate delegate, Array[object] args)
- Clone(...)
- object Clone(self)
Creates a shallow copy of the delegate.
Returns:
A shallow copy of the delegate.
- Combine(...)
- Delegate Combine(Array[Delegate] delegates)
Concatenates the invocation lists of an array of delegates.
delegates:
The array of delegates to combine.
Returns:
A new delegate with an invocation list that concatenates the
invocation lists of the delegates in the delegates array. Returns null if delegates is
null, if delegates contains zero elements, or if every entry in delegates is null.
Delegate Combine(Delegate a, Delegate b)
Concatenates the invocation lists of two delegates.
a:
The delegate whose invocation list comes first.
b:
The delegate whose invocation list comes last.
Returns:
A new delegate with an invocation list that concatenates the
invocation lists of a and b in that order. Returns a if b is null, returns b if a is a
null reference, and returns a null reference if both a and b are null references.
- CreateDelegate(...)
- Delegate CreateDelegate(Type type, MethodInfo method)
Creates a delegate of the specified type to represent the specified
static method.
type:
The System.Type of delegate to create.
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent. Only static methods are supported in the .NET
Framework version 1.0 and 1.1.
Returns:
A delegate of the specified type to represent the specified static
method.
Delegate CreateDelegate(Type type, Type target, str method, bool ignoreCase, bool throwOnBindFailure)
Creates a delegate of the specified type that represents the
specified static method of the specified class, with the specified case-sensitivity and
the specified behavior on failure to bind.
type:
The System.Type of delegate to create.
target:
The System.Type representing the class that implements method.
method:
The name of the static method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type that represents the specified
static method of the specified class.
Delegate CreateDelegate(Type type, MethodInfo method, bool throwOnBindFailure)
Creates a delegate of the specified type to represent the specified
static method, with the specified behavior on failure to bind.
type:
The System.Type of delegate to create.
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type to represent the specified static
method.
Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure)
Creates a delegate of the specified type that represents the
specified static or instance method, with the specified first argument and the specified
behavior on failure to bind.
type:
A System.Type representing the type of delegate to create.
firstArgument:
An System.Object that is the first argument of the method the
delegate represents. For instance methods, it must be compatible with the instance type.
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type that represents the specified
static or instance method, or null if throwOnBindFailure is false and the delegate cannot
be bound to method.
Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method)
Creates a delegate of the specified type that represents the
specified static or instance method, with the specified first argument.
type:
The System.Type of delegate to create.
firstArgument:
The object to which the delegate is bound, or null to treat method
as static (Shared in Visual Basic).
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent.
Returns:
A delegate of the specified type that represents the specified
static or instance method.
Delegate CreateDelegate(Type type, object target, str method, bool ignoreCase)
Creates a delegate of the specified type that represents the
specified instance method to invoke on the specified class instance with the specified
case-sensitivity.
type:
The System.Type of delegate to create.
target:
The class instance on which method is invoked.
method:
The name of the instance method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
Returns:
A delegate of the specified type that represents the specified
instance method to invoke on the specified class instance.
Delegate CreateDelegate(Type type, object target, str method)
Creates a delegate of the specified type that represents the
specified instance method to invoke on the specified class instance.
type:
The System.Type of delegate to create.
target:
The class instance on which method is invoked.
method:
The name of the instance method that the delegate is to represent.
Returns:
A delegate of the specified type that represents the specified
instance method to invoke on the specified class instance.
Delegate CreateDelegate(Type type, object target, str method, bool ignoreCase, bool throwOnBindFailure)
Creates a delegate of the specified type that represents the
specified instance method to invoke on the specified class instance, with the specified
case-sensitivity and the specified behavior on failure to bind.
type:
The System.Type of delegate to create.
target:
The class instance on which method is invoked.
method:
The name of the instance method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type that represents the specified
instance method to invoke on the specified class instance.
Delegate CreateDelegate(Type type, Type target, str method, bool ignoreCase)
Creates a delegate of the specified type that represents the
specified static method of the specified class, with the specified case-sensitivity.
type:
The System.Type of delegate to create.
target:
The System.Type representing the class that implements method.
method:
The name of the static method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
Returns:
A delegate of the specified type that represents the specified
static method of the specified class.
Delegate CreateDelegate(Type type, Type target, str method)
Creates a delegate of the specified type that represents the
specified static method of the specified class.
type:
The System.Type of delegate to create.
target:
The System.Type representing the class that implements method.
method:
The name of the static method that the delegate is to represent.
Returns:
A delegate of the specified type that represents the specified
static method of the specified class.
- DynamicInvoke(...)
- object DynamicInvoke(self, Array[object] args)
Dynamically invokes (late-bound) the method represented by the
current delegate.
args:
An array of objects that are the arguments to pass to the method
represented by the current delegate.
-or-
null, if the method represented by the current delegate does not require
arguments.
Returns:
The object returned by the method represented by the delegate.
- DynamicInvokeImpl(...)
- object DynamicInvokeImpl(self, Array[object] args)
Dynamically invokes (late-bound) the method represented by the
current delegate.
args:
An array of objects that are the arguments to pass to the method
represented by the current delegate.
-or-
null, if the method represented by the current delegate does not require
arguments.
Returns:
The object returned by the method represented by the delegate.
- InPlaceAdd(...)
- Delegate InPlaceAdd(Delegate self, Delegate other)
- InPlaceSubtract(...)
- Delegate InPlaceSubtract(Delegate self, Delegate other)
- Remove(...)
- Delegate Remove(Delegate source, Delegate value)
Removes the last occurrence of the invocation list of a delegate
from the invocation list of another delegate.
source:
The delegate from which to remove the invocation list of value.
value:
The delegate that supplies the invocation list to remove from the
invocation list of source.
Returns:
A new delegate with an invocation list formed by taking the
invocation list of source and removing the last occurrence of the invocation list of
value, if the invocation list of value is found within the invocation list of source.
Returns source if value is null or if the invocation list of value is not found within
the invocation list of source. Returns a null reference if the invocation list of value
is equal to the invocation list of source or if source is a null reference.
- RemoveAll(...)
- Delegate RemoveAll(Delegate source, Delegate value)
Removes all occurrences of the invocation list of a delegate from
the invocation list of another delegate.
source:
The delegate from which to remove the invocation list of value.
value:
The delegate that supplies the invocation list to remove from the
invocation list of source.
Returns:
A new delegate with an invocation list formed by taking the
invocation list of source and removing all occurrences of the invocation list of value,
if the invocation list of value is found within the invocation list of source. Returns
source if value is null or if the invocation list of value is not found within the
invocation list of source. Returns a null reference if the invocation list of value is
equal to the invocation list of source, if source contains only a series of invocation
lists that are equal to the invocation list of value, or if source is a null reference.
- __call__ = Call(...)
- object Call(Delegate delegate, dict dict, Array[object] args)
object Call(Delegate delegate, Array[object] args)
- __iadd__(...)
- Delegate __iadd__(Delegate self, Delegate other)
- __isub__(...)
- Delegate __isub__(Delegate self, Delegate other)
- __repr__(...)
- str __repr__(object self)
Data descriptors inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Delegate:
- Method
- Gets the method represented by the delegate.
Get: MethodInfo Method(self)
- Target
- Gets the class instance on which the current delegate invokes the instance method.
Get: object Target(self)
|
SimpleGenericStruct = <type 'SimpleGenericStruct[K]'> SimpleInterface = <type 'SimpleInterface'> SimpleStruct = <type 'SimpleStruct'> StructImplementsIDefaultIndexer = <type 'StructImplementsIDefaultIndexer'> StructWithDefaultCtor = <type 'StructWithDefaultCtor'> StructWithDefaultIndexer = <type 'StructWithDefaultIndexer'> StructWithDefaultMethod = <type 'StructWithDefaultMethod'>
class VoidVoidDelegate(System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.MulticastDelegate) |
|
VoidVoidDelegate(object object, IntPtr method) |
|
- Method resolution order:
- VoidVoidDelegate
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.MulticastDelegate
- System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Delegate
- __builtin__.object
Methods defined here:
- BeginInvoke(...)
- IAsyncResult BeginInvoke(self, AsyncCallback callback, object object)
- EndInvoke(...)
- EndInvoke(self, IAsyncResult result)
- Invoke(...)
- Invoke(self)
- __new__(...)
- __new__(cls, object object, IntPtr method)
- __reduce_ex__(...)
- helper for pickle
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.MulticastDelegate:
- CombineImpl(...)
- Delegate CombineImpl(self, Delegate follow)
Combines this System.Delegate with the specified System.Delegate to
form a new delegate.
follow:
The delegate to combine with this delegate.
Returns:
A System.Delegate that is the new root of the
System.MulticastDelegate invocation list.
- Equals(...)
- bool Equals(self, object obj)
Determines whether this multicast delegate and the specified object
are equal.
obj:
The object to compare with this instance.
Returns: true if obj and this instance have the same invocation lists; otherwise, false.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for this instance.
Returns:
A 32-bit signed integer hash code.
- GetInvocationList(...)
- Array[Delegate] GetInvocationList(self)
Returns the invocation list of this multicast delegate, in
invocation order.
Returns:
An array of delegates whose invocation lists collectively match the
invocation list of this instance.
- GetMethodImpl(...)
- MethodInfo GetMethodImpl(self)
Returns a static method represented by the current
System.MulticastDelegate.
Returns:
A System.Reflection.MethodInfo describing a static method
represented by the current System.MulticastDelegate.
- GetObjectData(...)
- GetObjectData(self, SerializationInfo info, StreamingContext context)
Populates a System.Runtime.Serialization.SerializationInfo object
with all the data needed to serialize this instance.
info:
An object that holds all the data needed to serialize or
deserialize this instance.
context:
(Reserved) The location where serialized data is stored and
retrieved.
- RemoveImpl(...)
- Delegate RemoveImpl(self, Delegate value)
Removes an element from the invocation list of this
System.MulticastDelegate that is equal to the specified delegate.
value:
The delegate to search for in the invocation list.
Returns:
If value is found in the invocation list for this instance, then a
new System.Delegate without value in its invocation list; otherwise, this instance with
its original invocation list.
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ne__(...)
- bool __ne__(MulticastDelegate d1, MulticastDelegate d2)
Determines whether two System.MulticastDelegate objects are not
equal.
d1:
The left operand.
d2:
The right operand.
Returns: true if d1 and d2 do not have the same invocation lists; otherwise, false.
Methods inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Delegate:
- Call(...)
- object Call(Delegate delegate, dict dict, Array[object] args)
object Call(Delegate delegate, Array[object] args)
- Clone(...)
- object Clone(self)
Creates a shallow copy of the delegate.
Returns:
A shallow copy of the delegate.
- Combine(...)
- Delegate Combine(Array[Delegate] delegates)
Concatenates the invocation lists of an array of delegates.
delegates:
The array of delegates to combine.
Returns:
A new delegate with an invocation list that concatenates the
invocation lists of the delegates in the delegates array. Returns null if delegates is
null, if delegates contains zero elements, or if every entry in delegates is null.
Delegate Combine(Delegate a, Delegate b)
Concatenates the invocation lists of two delegates.
a:
The delegate whose invocation list comes first.
b:
The delegate whose invocation list comes last.
Returns:
A new delegate with an invocation list that concatenates the
invocation lists of a and b in that order. Returns a if b is null, returns b if a is a
null reference, and returns a null reference if both a and b are null references.
- CreateDelegate(...)
- Delegate CreateDelegate(Type type, MethodInfo method)
Creates a delegate of the specified type to represent the specified
static method.
type:
The System.Type of delegate to create.
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent. Only static methods are supported in the .NET
Framework version 1.0 and 1.1.
Returns:
A delegate of the specified type to represent the specified static
method.
Delegate CreateDelegate(Type type, Type target, str method, bool ignoreCase, bool throwOnBindFailure)
Creates a delegate of the specified type that represents the
specified static method of the specified class, with the specified case-sensitivity and
the specified behavior on failure to bind.
type:
The System.Type of delegate to create.
target:
The System.Type representing the class that implements method.
method:
The name of the static method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type that represents the specified
static method of the specified class.
Delegate CreateDelegate(Type type, MethodInfo method, bool throwOnBindFailure)
Creates a delegate of the specified type to represent the specified
static method, with the specified behavior on failure to bind.
type:
The System.Type of delegate to create.
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type to represent the specified static
method.
Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure)
Creates a delegate of the specified type that represents the
specified static or instance method, with the specified first argument and the specified
behavior on failure to bind.
type:
A System.Type representing the type of delegate to create.
firstArgument:
An System.Object that is the first argument of the method the
delegate represents. For instance methods, it must be compatible with the instance type.
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type that represents the specified
static or instance method, or null if throwOnBindFailure is false and the delegate cannot
be bound to method.
Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method)
Creates a delegate of the specified type that represents the
specified static or instance method, with the specified first argument.
type:
The System.Type of delegate to create.
firstArgument:
The object to which the delegate is bound, or null to treat method
as static (Shared in Visual Basic).
method:
The System.Reflection.MethodInfo describing the static or instance
method the delegate is to represent.
Returns:
A delegate of the specified type that represents the specified
static or instance method.
Delegate CreateDelegate(Type type, object target, str method, bool ignoreCase)
Creates a delegate of the specified type that represents the
specified instance method to invoke on the specified class instance with the specified
case-sensitivity.
type:
The System.Type of delegate to create.
target:
The class instance on which method is invoked.
method:
The name of the instance method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
Returns:
A delegate of the specified type that represents the specified
instance method to invoke on the specified class instance.
Delegate CreateDelegate(Type type, object target, str method)
Creates a delegate of the specified type that represents the
specified instance method to invoke on the specified class instance.
type:
The System.Type of delegate to create.
target:
The class instance on which method is invoked.
method:
The name of the instance method that the delegate is to represent.
Returns:
A delegate of the specified type that represents the specified
instance method to invoke on the specified class instance.
Delegate CreateDelegate(Type type, object target, str method, bool ignoreCase, bool throwOnBindFailure)
Creates a delegate of the specified type that represents the
specified instance method to invoke on the specified class instance, with the specified
case-sensitivity and the specified behavior on failure to bind.
type:
The System.Type of delegate to create.
target:
The class instance on which method is invoked.
method:
The name of the instance method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
throwOnBindFailure: true to throw an exception if method cannot be bound; otherwise, false.
Returns:
A delegate of the specified type that represents the specified
instance method to invoke on the specified class instance.
Delegate CreateDelegate(Type type, Type target, str method, bool ignoreCase)
Creates a delegate of the specified type that represents the
specified static method of the specified class, with the specified case-sensitivity.
type:
The System.Type of delegate to create.
target:
The System.Type representing the class that implements method.
method:
The name of the static method that the delegate is to represent.
ignoreCase:
A Boolean indicating whether to ignore the case when comparing the
name of the method.
Returns:
A delegate of the specified type that represents the specified
static method of the specified class.
Delegate CreateDelegate(Type type, Type target, str method)
Creates a delegate of the specified type that represents the
specified static method of the specified class.
type:
The System.Type of delegate to create.
target:
The System.Type representing the class that implements method.
method:
The name of the static method that the delegate is to represent.
Returns:
A delegate of the specified type that represents the specified
static method of the specified class.
- DynamicInvoke(...)
- object DynamicInvoke(self, Array[object] args)
Dynamically invokes (late-bound) the method represented by the
current delegate.
args:
An array of objects that are the arguments to pass to the method
represented by the current delegate.
-or-
null, if the method represented by the current delegate does not require
arguments.
Returns:
The object returned by the method represented by the delegate.
- DynamicInvokeImpl(...)
- object DynamicInvokeImpl(self, Array[object] args)
Dynamically invokes (late-bound) the method represented by the
current delegate.
args:
An array of objects that are the arguments to pass to the method
represented by the current delegate.
-or-
null, if the method represented by the current delegate does not require
arguments.
Returns:
The object returned by the method represented by the delegate.
- InPlaceAdd(...)
- Delegate InPlaceAdd(Delegate self, Delegate other)
- InPlaceSubtract(...)
- Delegate InPlaceSubtract(Delegate self, Delegate other)
- Remove(...)
- Delegate Remove(Delegate source, Delegate value)
Removes the last occurrence of the invocation list of a delegate
from the invocation list of another delegate.
source:
The delegate from which to remove the invocation list of value.
value:
The delegate that supplies the invocation list to remove from the
invocation list of source.
Returns:
A new delegate with an invocation list formed by taking the
invocation list of source and removing the last occurrence of the invocation list of
value, if the invocation list of value is found within the invocation list of source.
Returns source if value is null or if the invocation list of value is not found within
the invocation list of source. Returns a null reference if the invocation list of value
is equal to the invocation list of source or if source is a null reference.
- RemoveAll(...)
- Delegate RemoveAll(Delegate source, Delegate value)
Removes all occurrences of the invocation list of a delegate from
the invocation list of another delegate.
source:
The delegate from which to remove the invocation list of value.
value:
The delegate that supplies the invocation list to remove from the
invocation list of source.
Returns:
A new delegate with an invocation list formed by taking the
invocation list of source and removing all occurrences of the invocation list of value,
if the invocation list of value is found within the invocation list of source. Returns
source if value is null or if the invocation list of value is not found within the
invocation list of source. Returns a null reference if the invocation list of value is
equal to the invocation list of source, if source contains only a series of invocation
lists that are equal to the invocation list of value, or if source is a null reference.
- __call__ = Call(...)
- object Call(Delegate delegate, dict dict, Array[object] args)
object Call(Delegate delegate, Array[object] args)
- __iadd__(...)
- Delegate __iadd__(Delegate self, Delegate other)
- __isub__(...)
- Delegate __isub__(Delegate self, Delegate other)
- __repr__(...)
- str __repr__(object self)
Data descriptors inherited from System in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Delegate:
- Method
- Gets the method represented by the delegate.
Get: MethodInfo Method(self)
- Target
- Gets the class instance on which the current delegate invokes the instance method.
Get: object Target(self)
| |