Rhino.Kit.ClassOrNull C# (CSharp) Method

ClassOrNull() public static method

Attempt to load the class of the given name.
Attempt to load the class of the given name. Note that the type parameter isn't checked.
public static ClassOrNull ( ClassLoader loader, string className ) : Type
loader ClassLoader
className string
return System.Type
		public static Type ClassOrNull(ClassLoader loader, string className)
		{
			try
			{
				return loader.LoadClass(className);
			}
			catch (TypeLoadException)
			{
			}
			catch (SecurityException)
			{
			}
			catch (LinkageError)
			{
			}
			catch (ArgumentException)
			{
			}
			// Can be thrown if name has characters that a class name
			// can not contain
			return null;
		}

Same methods

Kit::ClassOrNull ( string className ) : Type