int this[SomeEnum someEnum] { set { throw new InvalidEnumArgumentException("someEnumx", (int)someEnum, someEnum.GetType()); } }
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()); } }
ArgumentExceptionsThatHaveMisspelledParameterNames(SomeEnum someEnum) { throw new InvalidEnumArgumentException("someEnumx", (int)someEnum, someEnum.GetType()); }
SomeEnum this[SomeEnum someEnum] { set { throw new InvalidEnumArgumentException(nameof(someEnum), (int)someEnum, someEnum.GetType()); throw new InvalidEnumArgumentException(nameof(value), (int)value, value.GetType()); } }
ArgumentExceptionsThatAlreadyUseNameofExpression(SomeEnum someEnum) { throw new InvalidEnumArgumentException(nameof(someEnum), (int)someEnum, someEnum.GetType()); }
void Invocation04(SomeEnum someEnum) { throw new InvalidEnumArgumentException("someEnumx", (int)someEnum, someEnum.GetType()); }
ArgumentExceptionsInConstructorsThatAreCandidatesToUseNameofExpression(SomeEnum someEnum) { throw new InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType()); throw new System.ComponentModel.InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType()); }
void Invocation04(SomeEnum someEnum) { throw new InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType()); throw new System.ComponentModel.InvalidEnumArgumentException("someEnum", (int)someEnum, someEnum.GetType()); }