C# Class System.Tests.DelegateTests

Datei anzeigen Open project: dotnet/corefx

Public Methods

Method Description
DynamicInvokeTestFunction ( A nonRefParam1, B nonRefParam2, A &refParam, B &outParam ) : A

Private Methods

Method Description
AllPrimitivesMethod ( bool boolean, string str, char character, byte unsignedbyte, sbyte signedbyte, Int16 int16, UInt16 uint16, Int32 int32, UInt32 uint32, Int64 int64, UInt64 uint64, Single single, Double dbl ) : string
ClosedStaticDelegate ( ) : void
DateTimeMethod ( DateTime parameter ) : DateTime
DecimalMethod ( decimal parameter ) : decimal
DynamicInvoke ( ) : void
DynamicInvoke_ConvertMatchingTToNullable_Succeeds ( ) : void
DynamicInvoke_ConvertNonMatchingTToNullable_ThrowsArgumentException ( ) : void
DynamicInvoke_DefaultParameter_AllPrimitiveParametersWithAllExplicitValues ( ) : void
DynamicInvoke_DefaultParameter_AllPrimitiveParametersWithMissingValues ( ) : void
DynamicInvoke_DefaultParameter_AllPrimitiveParametersWithSomeExplicitValues ( ) : void
DynamicInvoke_DefaultParameter_DateTimeParameterWithExplicitValue ( ) : void
DynamicInvoke_DefaultParameter_DateTimeParameterWithMissingValue ( ) : void
DynamicInvoke_DefaultParameter_DecimalParameterWithAttributeAndExplicitValue ( ) : void
DynamicInvoke_DefaultParameter_DecimalParameterWithAttributeAndMissingValue ( ) : void
DynamicInvoke_DefaultParameter_DecimalParameterWithExplicitValue ( ) : void
DynamicInvoke_DefaultParameter_DecimalParameterWithMissingValue ( ) : void
DynamicInvoke_DefaultParameter_EnumParameterWithMissingValue ( ) : void
DynamicInvoke_DefaultParameter_NullableIntWithExplicitValue ( ) : void
DynamicInvoke_DefaultParameter_NullableIntWithMissingValue ( ) : void
DynamicInvoke_DefaultParameter_ReferenceTypeParameterWithExplicitValue ( ) : void
DynamicInvoke_DefaultParameter_ReferenceTypeParameterWithMissingValue ( ) : void
DynamicInvoke_DefaultParameter_StringParameterWithExplicitValue ( ) : void
DynamicInvoke_DefaultParameter_StringParameterWithMissingValue ( ) : void
DynamicInvoke_DefaultParameter_ValueTypeParameterWithExplicitValue ( ) : void
DynamicInvoke_DefaultParameter_ValueTypeParameterWithMissingValue ( ) : void
DynamicInvoke_MissingTypeForDefaultParameter_Succeeds ( ) : void
DynamicInvoke_MissingTypeForNonDefaultParameter_ThrowsArgumentException ( ) : void
DynamicInvoke_NullRefValueTypeParameter_ReturnsValueTypeDefault ( ) : void
DynamicInvoke_NullValueType_Succeeds ( ) : void
DynamicInvoke_OptionalParameterUnassingableFromMissing_WithMissingValue ( ) : void
DynamicInvoke_OptionalParameter_WithExplicitValue ( ) : void
DynamicInvoke_OptionalParameter_WithMissingValue ( ) : void
DynamicInvoke_ParameterSpecification_ArrayOfMissing ( ) : void
DynamicInvoke_ParameterSpecification_ArrayOfStrings ( ) : void
DynamicInvoke_RefValueTypeParameter ( object args, object expected ) : void
DynamicInvoke_SizePreservingNonVauePreservingConversion_ThrowsArgumentException ( ) : void
DynamicInvoke_TypeDoesntExactlyMatchRefValueType_ThrowsArgumentException ( ) : void
DynamicInvoke_ValuePreservingPrimitiveWidening_Succeeds ( object o1, object o2 ) : void
DynamicInvoke_ValuePreservingWideningToEnum_Succeeds ( object o1, object o2 ) : void
EmptyFunc ( ) : void
EnumEnumMethod ( IntEnum expected, IntEnum actual ) : void
EnumMethod ( IntEnum parameter = IntEnum.Seven ) : IntEnum
IntIntMethod ( int expected, int actual ) : void
NullableIntMethod ( int parameter ) : int?
NullableMethod ( int n ) : void
ObjectMethod ( object parameter ) : object
RefIntMethod ( int &i ) : void
RefValueTypeMethod ( MyStruct &s ) : void
ReferenceMethod ( CustomReferenceType parameter ) : CustomReferenceType
StringMethod ( string parameter ) : string
ValueTypeMethod ( CustomValueType parameter ) : CustomValueType
ValueTypeMethod ( MyStruct s ) : void

Method Details

DynamicInvokeTestFunction() public static method

public static DynamicInvokeTestFunction ( A nonRefParam1, B nonRefParam2, A &refParam, B &outParam ) : A
nonRefParam1 A
nonRefParam2 B
refParam A
outParam B
return A