Common Logging 2.0 API Reference

ArgUtils Methods

The methods of the ArgUtils class are listed below. For a complete list of ArgUtils class members, see the ArgUtils Members topic.

Public Static (Shared) Methods

AssertIsAssignable(T)Overloaded. Throws a ArgumentOutOfRangeException if an object of type valType is not assignable to type .
AssertNotNull(T)Overloaded. Throws a ArgumentNullException if val is null.
Coalesce Returns the first nonnull, nonempty value among its arguments.
Coalesce(T) Returns the first nonnull, nonempty value among its arguments.
GetValueOverloaded. Retrieves the named value from the specified NameValueCollection.
Guard Ensures any exception thrown by the given action is wrapped with an ConfigurationException.
Guard(T) Ensures any exception thrown by the given function is wrapped with an ConfigurationException.
RegisterTypeParser(T) Adds the parser to the list of known type parsers.
TryParse(T) Tries parsing stringValue into the specified return type.
TryParseEnum(T) Tries parsing stringValue into an enum of the type of defaultValue.

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

ArgUtils Class | Common.Logging.Configuration Namespace