System.Runtime.Serialization.Json.TypeMap.IsPrimitiveType C# (CSharp) Метод

IsPrimitiveType() статический приватный Метод

static private IsPrimitiveType ( Type type ) : bool
type System.Type
Результат bool
		static bool IsPrimitiveType (Type type)
		{
			if (type.IsEnum)
				return true;
			if (Type.GetTypeCode (type) != TypeCode.Object)
				return true; // FIXME: it is likely hacky
			return false;
		}