예제 #1
0
 int this[SomeEnum someEnum]
 {
     set
     {
         throw new InvalidEnumArgumentException("someEnumx", (int)someEnum, someEnum.GetType());
     }
 }
예제 #2
0
        SomeEnum this[SomeEnum someEnum]
        {
            get
            {
                throw new InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
                throw new System.ComponentModel.InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
            }

            set
            {
                throw new InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
                throw new InvalidEnumArgumentException("value", (int)value, value.GetType());
                throw new System.ComponentModel.InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
                throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, value.GetType());
            }
        }
예제 #3
0
 ArgumentExceptionsThatHaveMisspelledParameterNames(SomeEnum someEnum)
 {
     throw new InvalidEnumArgumentException("someEnumx", (int)someEnum, someEnum.GetType());
 }
예제 #4
0
 SomeEnum this[SomeEnum someEnum]
 {
     set
     {
         throw new InvalidEnumArgumentException(nameof(someEnum), (int)someEnum, someEnum.GetType());
         throw new InvalidEnumArgumentException(nameof(value), (int)value, value.GetType());
     }
 }
예제 #5
0
 ArgumentExceptionsThatAlreadyUseNameofExpression(SomeEnum someEnum)
 {
     throw new InvalidEnumArgumentException(nameof(someEnum), (int)someEnum, someEnum.GetType());
 }
예제 #6
0
 void Invocation04(SomeEnum someEnum)
 {
     throw new InvalidEnumArgumentException("someEnumx", (int)someEnum, someEnum.GetType());
 }
예제 #7
0
 ArgumentExceptionsInConstructorsThatAreCandidatesToUseNameofExpression(SomeEnum someEnum)
 {
     throw new InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
     throw new System.ComponentModel.InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
 }
예제 #8
0
 void Invocation04(SomeEnum someEnum)
 {
     throw new InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
     throw new System.ComponentModel.InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType());
 }