Rhino.FunctionObject.GetTypeTag C# (CSharp) Method

GetTypeTag() public static method

public static GetTypeTag ( Type type ) : int
type System.Type
return int
		public static int GetTypeTag(Type type)
		{
			if (type == ScriptRuntime.StringClass)
			{
				return JAVA_STRING_TYPE;
			}
			if (type == ScriptRuntime.IntegerClass || type == typeof(int))
			{
				return JAVA_INT_TYPE;
			}
			if (type == ScriptRuntime.BooleanClass || type == typeof(bool))
			{
				return JAVA_BOOLEAN_TYPE;
			}
			if (type == ScriptRuntime.DoubleClass || type == typeof(double))
			{
				return JAVA_DOUBLE_TYPE;
			}
			if (ScriptRuntime.ScriptableClass.IsAssignableFrom(type))
			{
				return JAVA_SCRIPTABLE_TYPE;
			}
			if (type == ScriptRuntime.ObjectClass)
			{
				return JAVA_OBJECT_TYPE;
			}
			// Note that the long type is not supported; see the javadoc for
			// the constructor for this class
			return JAVA_UNSUPPORTED_TYPE;
		}