/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.CoreLib/src/System/ |
H A D | Enum.cs | 142 if (enumType == null) in Format() 145 if (!enumType.IsEnum) in Format() 488 if (enumType == null) in GetName() 501 if (!enumType.IsEnum) in GetName() 511 if (enumType == null) in GetNames() 517 if (!enumType.IsEnum) in GetNames() 529 if (enumType == null) in GetUnderlyingType() 535 if (!enumType.IsEnum) in GetUnderlyingType() 543 if (enumType == null) in GetValues() 549 if (!enumType.IsEnum) in GetValues() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/ |
H A D | enum.cs | 378 if (enumType == null) in TryParseEnum() 386 if (!enumType.IsEnum) in TryParseEnum() 495 if (enumType == null) in GetUnderlyingType() 506 if (enumType == null) in GetValues() 523 if (enumType == null) in GetName() 533 if (enumType == null) in GetNames() 607 if (enumType == null) in IsDefined() 617 if (enumType == null) in Format() 620 if (!enumType.IsEnum) in Format() 1079 if (enumType == null) in ToObject() [all …]
|
/dports/databases/hsqldb/hsqldb-2.3.4/hsqldb/src/org/hsqldb/lib/ |
H A D | ValidatingResourceBundle.java | 71 this.enumType = enumType; in ValidatingResourceBundle() 88 if (!enumType.isInstance(key)) in getString() 97 if (!enumType.isInstance(key)) in getString() 107 if (!enumType.isInstance(key)) in getExpandedString() 116 if (!enumType.isInstance(key)) in getExpandedString() 189 if (!enumType.isInstance(key)) in getString() 196 if (!enumType.isInstance(key)) in getString() 205 if (!enumType.isInstance(key)) in getString() 214 if (!enumType.isInstance(key)) in getString() 223 if (!enumType.isInstance(key)) in getString() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ |
H A D | EnumUtils.cs | 42 Type enumType = typeof(T); field 81 if (enumType == null) 86 IList<object> enumValues = GetValues(enumType); 87 IList<string> enumNames = GetNames(enumType); 108 public static IList<object> GetValues(Type enumType) in GetValues() argument 110 if (!enumType.IsEnum()) in GetValues() 115 var fields = from field in enumType.GetFields() in GetValues() 121 object value = field.GetValue(enumType); in GetValues() 128 public static IList<string> GetNames(Type enumType) in GetNames() argument 130 if (!enumType.IsEnum()) in GetNames() [all …]
|
/dports/irc/smuxi/smuxi-1.1/lib/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ |
H A D | EnumUtils.cs | 42 Type enumType = typeof(T); field 81 if (enumType == null) 86 IList<object> enumValues = GetValues(enumType); 87 IList<string> enumNames = GetNames(enumType); 108 public static IList<object> GetValues(Type enumType) in GetValues() argument 110 if (!enumType.IsEnum()) in GetValues() 115 var fields = from field in enumType.GetFields() in GetValues() 121 object value = field.GetValue(enumType); in GetValues() 128 public static IList<string> GetNames(Type enumType) in GetNames() argument 130 if (!enumType.IsEnum()) in GetNames() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Common/src/TypeSystem/IL/ |
H A D | TypeSystemContext.EnumMethods.cs | 23 public EnumInfo(TypeDesc enumType) in EnumInfo() argument 25 Debug.Assert(enumType.IsEnum && enumType.IsTypeDefinition); in EnumInfo() 26 EqualsMethod = new EnumEqualsThunk(enumType); in EnumInfo() 27 GetHashCodeMethod = new EnumGetHashCodeThunk(enumType); in EnumInfo() 48 Debug.Assert(enumType.IsEnum); in TryResolveConstrainedEnumMethod() 55 TypeDesc enumTypeDefinition = enumType.GetTypeDefinition(); in TryResolveConstrainedEnumMethod() 66 if (enumType != enumTypeDefinition) in TryResolveConstrainedEnumMethod() 67 return GetMethodForInstantiatedType(resolvedMethod, (InstantiatedType)enumType); in TryResolveConstrainedEnumMethod() 72 protected virtual IEnumerable<MethodDesc> GetAllMethodsForEnum(TypeDesc enumType) in GetAllMethodsForEnum() argument 74 TypeDesc enumTypeDefinition = enumType.GetTypeDefinition(); in GetAllMethodsForEnum() [all …]
|
/dports/devel/newtonsoft-json/Newtonsoft.Json-9.0.1/Src/Newtonsoft.Json/Utilities/ |
H A D | EnumUtils.cs | 77 Type enumType = typeof(T); field 122 if (enumType == null) 127 if (!enumType.IsEnum()) 129 …n("Type {0} is not an Enum.".FormatWith(CultureInfo.InvariantCulture, enumType), nameof(enumType)); 132 IList<object> enumValues = GetValues(enumType); 133 IList<string> enumNames = GetNames(enumType); 154 public static IList<object> GetValues(Type enumType) in GetValues() argument 156 if (!enumType.IsEnum()) in GetValues() 167 object value = field.GetValue(enumType); in GetValues() 174 public static IList<string> GetNames(Type enumType) in GetNames() argument [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.CoreLib/src/Internal/Runtime/Augments/ |
H A D | EnumInfo.cs | 16 public EnumInfo(Type enumType) in EnumInfo() argument 18 Debug.Assert(enumType != null); in EnumInfo() 19 Debug.Assert(enumType.IsRuntimeImplemented()); in EnumInfo() 20 Debug.Assert(enumType.IsEnum); in EnumInfo() 22 UnderlyingType = ComputeUnderlyingType(enumType); in EnumInfo() 24 FieldInfo[] fields = enumType.GetFields(BindingFlags.Public | BindingFlags.Static); in EnumInfo() 58 HasFlagsAttribute = enumType.IsDefined(typeof(FlagsAttribute), inherit: false); in EnumInfo() 68 if (enumType.ContainsGenericParameters) in ComputeCorElementType() 76 enumType = candidates[0].FieldType; in ComputeCorElementType() 78 return enumType.TypeHandle.ToEETypePtr().CorElementType; in ComputeCorElementType() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime/tests/System/ |
H A D | EnumTests.netcoreapp.cs | 37 …Type typeArgument = enumType == null || !enumType.GetTypeInfo().IsEnum ? typeof(SimpleEnum) : enum… in Parse_Invalid_NetCoreApp11() 39 parseMethod.Invoke(null, new object[] { enumType, value, ignoreCase, exceptionType }); in Parse_Invalid_NetCoreApp11() 47 if (enumType != null && enumType.IsEnum) 49 Assert.False(Enum.TryParse(enumType, value, out result)); 56 Assert.Throws(exceptionType, () => Enum.TryParse(enumType, value, out result)); 61 if (enumType != null && enumType.IsEnum) 63 Assert.False(Enum.TryParse(enumType, value, ignoreCase, out result)); 70 … Assert.Throws(exceptionType, () => Enum.TryParse(enumType, value, ignoreCase, out result)); 89 public static void GetName_Unsupported_ThrowsArgumentException(Type enumType, object value) in GetName_Unsupported_ThrowsArgumentException() argument 91 … AssertExtensions.Throws<ArgumentException>("value", () => Enum.GetName(enumType, value)); in GetName_Unsupported_ThrowsArgumentException() [all …]
|
/dports/devel/shiboken2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/ |
H A D | sbkenum.cpp | 514 if (PyType_Ready(enumType) < 0) { in createEnum() 515 Py_XDECREF(enumType); in createEnum() 518 return enumType; in createEnum() 524 if (enumType && PyModule_AddObject(module, name, reinterpret_cast<PyObject *>(enumType)) < 0) { in createGlobalEnum() 525 Py_DECREF(enumType); in createGlobalEnum() 530 Py_DECREF(enumType); in createGlobalEnum() 533 return enumType; in createGlobalEnum() 541 Py_DECREF(enumType); in createScopedEnum() 547 Py_DECREF(enumType); in createScopedEnum() 550 return enumType; in createScopedEnum() [all …]
|
/dports/devel/pyside2-tools/pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/ |
H A D | sbkenum.cpp | 514 if (PyType_Ready(enumType) < 0) { in createEnum() 515 Py_XDECREF(enumType); in createEnum() 518 return enumType; in createEnum() 524 if (enumType && PyModule_AddObject(module, name, reinterpret_cast<PyObject *>(enumType)) < 0) { in createGlobalEnum() 525 Py_DECREF(enumType); in createGlobalEnum() 530 Py_DECREF(enumType); in createGlobalEnum() 533 return enumType; in createGlobalEnum() 541 Py_DECREF(enumType); in createScopedEnum() 547 Py_DECREF(enumType); in createScopedEnum() 550 return enumType; in createScopedEnum() [all …]
|
/dports/devel/pyside2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/ |
H A D | sbkenum.cpp | 514 if (PyType_Ready(enumType) < 0) { in createEnum() 515 Py_XDECREF(enumType); in createEnum() 518 return enumType; in createEnum() 524 if (enumType && PyModule_AddObject(module, name, reinterpret_cast<PyObject *>(enumType)) < 0) { in createGlobalEnum() 525 Py_DECREF(enumType); in createGlobalEnum() 530 Py_DECREF(enumType); in createGlobalEnum() 533 return enumType; in createGlobalEnum() 541 Py_DECREF(enumType); in createScopedEnum() 547 Py_DECREF(enumType); in createScopedEnum() 550 return enumType; in createScopedEnum() [all …]
|
/dports/irc/smuxi/smuxi-1.1/lib/agsxmpp/agsxmpp/Util/ |
H A D | Enum.cs | 43 public static object Parse(System.Type enumType, string value, bool ignoreCase) in Parse() argument 53 if(enumType.BaseType==Type.GetType("System.Enum")) in Parse() 74 …returnVal += (long)Convert.ChangeType(enumType.GetField(thisMember, BindingFlags.Public | BindingF… in Parse() 78 …returnVal += (long)Convert.ChangeType(enumType.GetField(thisMember, BindingFlags.Public | BindingF… in Parse() 86 …vert.ChangeType(System.Enum.ToObject(enumType, Convert.ChangeType(thisMember, System.Enum.GetUnder… in Parse() 99 return System.Enum.ToObject(enumType, returnVal); in Parse() 112 public static string[] GetNames(System.Type enumType) in GetNames() argument 114 if(enumType.BaseType==Type.GetType("System.Enum")) in GetNames() 117 … System.Reflection.FieldInfo[] fi = enumType.GetFields(BindingFlags.Static | BindingFlags.Public); in GetNames()
|
/dports/databases/pg_tileserv/pg_tileserv-1.0.8/vendor/github.com/jackc/pgtype/ |
H A D | enum_type_test.go | 54 enumType := setupEnum(t, conn) 77 enumType := setupEnum(t, conn) 83 err := enumType.Set("blue") 86 err = enumType.AssignTo(&s) 95 err := enumType.Set("blue") 98 err = enumType.AssignTo(&ps) 107 err := enumType.Set(nil) 110 err = enumType.AssignTo(&ps) 127 err := enumType.Set(tt.src) 141 err := enumType.Set(nil) [all …]
|
/dports/net-mgmt/promscale/promscale-0.6.2/vendor/github.com/jackc/pgtype/ |
H A D | enum_type_test.go | 54 enumType := setupEnum(t, conn) 77 enumType := setupEnum(t, conn) 83 err := enumType.Set("blue") 86 err = enumType.AssignTo(&s) 95 err := enumType.Set("blue") 98 err = enumType.AssignTo(&ps) 107 err := enumType.Set(nil) 110 err = enumType.AssignTo(&ps) 127 err := enumType.Set(tt.src) 141 err := enumType.Set(nil) [all …]
|
/dports/net/storj/storj-1.45.3/vendor/github.com/jackc/pgtype/ |
H A D | enum_type_test.go | 54 enumType := setupEnum(t, conn) 77 enumType := setupEnum(t, conn) 83 err := enumType.Set("blue") 86 err = enumType.AssignTo(&s) 95 err := enumType.Set("blue") 98 err = enumType.AssignTo(&ps) 107 err := enumType.Set(nil) 110 err = enumType.AssignTo(&ps) 127 err := enumType.Set(tt.src) 141 err := enumType.Set(nil) [all …]
|
/dports/net/cloudquery/cloudquery-0.16.0/vendor/github.com/jackc/pgtype/ |
H A D | enum_type_test.go | 54 enumType := setupEnum(t, conn) 77 enumType := setupEnum(t, conn) 83 err := enumType.Set("blue") 86 err = enumType.AssignTo(&s) 95 err := enumType.Set("blue") 98 err = enumType.AssignTo(&ps) 107 err := enumType.Set(nil) 110 err = enumType.AssignTo(&ps) 127 err := enumType.Set(tt.src) 141 err := enumType.Set(nil) [all …]
|
/dports/games/automuteus/automuteus-6.15.2/vendor/github.com/jackc/pgtype/ |
H A D | enum_type_test.go | 54 enumType := setupEnum(t, conn) 77 enumType := setupEnum(t, conn) 83 err := enumType.Set("blue") 86 err = enumType.AssignTo(&s) 95 err := enumType.Set("blue") 98 err = enumType.AssignTo(&ps) 107 err := enumType.Set(nil) 110 err = enumType.AssignTo(&ps) 127 err := enumType.Set(tt.src) 141 err := enumType.Set(nil) [all …]
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/java.base/share/classes/java/lang/ |
H A D | EnumConstantNotPresentException.java | 46 private Class<? extends Enum> enumType; field in EnumConstantNotPresentException 60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() argument 62 super(enumType.getName() + "." + constantName); in EnumConstantNotPresentException() 63 this.enumType = enumType; in EnumConstantNotPresentException() 72 public Class<? extends Enum> enumType() { return enumType; } in enumType() method in EnumConstantNotPresentException
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/java.base/share/classes/java/lang/ |
H A D | EnumConstantNotPresentException.java | 46 private Class<? extends Enum> enumType; field in EnumConstantNotPresentException 60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() argument 62 super(enumType.getName() + "." + constantName); in EnumConstantNotPresentException() 63 this.enumType = enumType; in EnumConstantNotPresentException() 72 public Class<? extends Enum> enumType() { return enumType; } in enumType() method in EnumConstantNotPresentException
|
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/java/lang/ |
H A D | EnumConstantNotPresentException.java | 46 private Class<? extends Enum> enumType; field in EnumConstantNotPresentException 60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() argument 62 super(enumType.getName() + "." + constantName); in EnumConstantNotPresentException() 63 this.enumType = enumType; in EnumConstantNotPresentException() 72 public Class<? extends Enum> enumType() { return enumType; } in enumType() method in EnumConstantNotPresentException
|
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/java.base/share/classes/java/lang/ |
H A D | EnumConstantNotPresentException.java | 46 private Class<? extends Enum> enumType; field in EnumConstantNotPresentException 60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() argument 62 super(enumType.getName() + "." + constantName); in EnumConstantNotPresentException() 63 this.enumType = enumType; in EnumConstantNotPresentException() 72 public Class<? extends Enum> enumType() { return enumType; } in enumType() method in EnumConstantNotPresentException
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/java.base/share/classes/java/lang/ |
H A D | EnumConstantNotPresentException.java | 46 private Class<? extends Enum> enumType; field in EnumConstantNotPresentException 60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() argument 62 super(enumType.getName() + "." + constantName); in EnumConstantNotPresentException() 63 this.enumType = enumType; in EnumConstantNotPresentException() 72 public Class<? extends Enum> enumType() { return enumType; } in enumType() method in EnumConstantNotPresentException
|
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/java/lang/ |
H A D | EnumConstantNotPresentException.java | 46 private Class<? extends Enum> enumType; field in EnumConstantNotPresentException 60 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() argument 62 super(enumType.getName() + "." + constantName); in EnumConstantNotPresentException() 63 this.enumType = enumType; in EnumConstantNotPresentException() 72 public Class<? extends Enum> enumType() { return enumType; } in enumType() method in EnumConstantNotPresentException
|
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/java.base/share/classes/java/lang/ |
H A D | EnumConstantNotPresentException.java | 47 private Class<? extends Enum> enumType; field in EnumConstantNotPresentException 61 public EnumConstantNotPresentException(Class<? extends Enum> enumType, in EnumConstantNotPresentException() argument 63 super(enumType.getName() + "." + constantName); in EnumConstantNotPresentException() 64 this.enumType = enumType; in EnumConstantNotPresentException() 73 public Class<? extends Enum> enumType() { return enumType; } in enumType() method in EnumConstantNotPresentException
|