| 1234567891011121314151617181920212223242526272829303132333435 |
- //
- // System.ComponentModel.InvalidEnumArgumentException.cs
- //
- // Authors:
- // Duncan Mak ([email protected])
- // Andreas Nahr ([email protected])
- //
- // (C) 2002 Ximian, Inc. http://www.ximian.com
- // (C) 2003 Andreas Nahr
- //
- using System;
- namespace System.ComponentModel
- {
- public class InvalidEnumArgumentException : ArgumentException
- {
- public InvalidEnumArgumentException ()
- {
- }
- public InvalidEnumArgumentException (string message) : base (message)
- {
- }
- public InvalidEnumArgumentException (string argumentName, int invalidValue, Type enumClass) :
- base (argumentName + " is invalid because this value, " + invalidValue + " is not of type " +
- enumClass.Name, argumentName)
- {
- }
- }
- }
|