34 else if (
value <= 16383)
38 else if (
value <= 536870911)
54 else if (
value <= 16383)
58 else if (
value <= 536870911)
70 int num =
value >> 31;
71 if ((
value & -64) == (num & -64))
73 int num2 = ((
value & 0x3F) << 1) | (num & 1);
74 writer.WriteByte((
byte)num2);
76 else if ((
value & -8192) == (num & -8192))
78 int num3 = ((
value & 0x1FFF) << 1) | (num & 1);
79 writer.WriteUInt16BE((ushort)(0x8000u | (uint)num3));
81 else if ((
value & -268435456) == (num & -268435456))
83 int num4 = ((
value & 0xFFFFFFF) << 1) | (num & 1);
84 writer.WriteUInt32BE(0xC0000000u | (uint)num4);
94 int num =
value >> 31;
95 if ((
value & -64) == (num & -64))
97 int num2 = ((
value & 0x3F) << 1) | (num & 1);
98 writer.WriteByte((
byte)num2);
100 else if ((
value & -8192) == (num & -8192))
102 int num3 = ((
value & 0x1FFF) << 1) | (num & 1);
103 writer.WriteUInt16BE((ushort)(0x8000u | (uint)num3));
105 else if ((
value & -268435456) == (num & -268435456))
107 int num4 = ((
value & 0xFFFFFFF) << 1) | (num & 1);
108 writer.WriteUInt32BE(0xC0000000u | (uint)num4);
124 if (
type.GetTypeInfo().IsEnum)
128 if (
type == typeof(
bool))
133 if (
type == typeof(
int))
138 if (
type == typeof(
string))
143 if (
type == typeof(
byte))
148 if (
type == typeof(
char))
153 if (
type == typeof(
double))
158 if (
type == typeof(
short))
163 if (
type == typeof(
long))
168 if (
type == typeof(sbyte))
173 if (
type == typeof(
float))
178 if (
type == typeof(ushort))
183 if (
type == typeof(uint))
188 if (
type == typeof(ulong))
204 if (
type.GetTypeInfo().IsEnum)
208 if (
type == typeof(
bool))
213 if (
type == typeof(
int))
218 if (
type == typeof(
string))
223 if (
type == typeof(
byte))
228 if (
type == typeof(
char))
233 if (
type == typeof(
double))
238 if (
type == typeof(
short))
243 if (
type == typeof(
long))
248 if (
type == typeof(sbyte))
253 if (
type == typeof(
float))
258 if (
type == typeof(ushort))
263 if (
type == typeof(uint))
268 if (
type == typeof(ulong))
static Type GetUnderlyingType(Type enumType)
static void ValueArgumentOutOfRange()
static string Format(string resourceFormat, object p1)
static string InvalidConstantValueOfType
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)