30 references to DecodeValue
Microsoft.CodeAnalysis (30)
Symbols\Attributes\CommonAttributeData.cs (18)
150
return constructorArgs[i].
DecodeValue
<T>(specialType);
173
return index >= 0 ? namedArguments[index].Value.
DecodeValue
<T>(specialType) : defaultValue;
213
byte scale = args[0].
DecodeValue
<byte>(SpecialType.System_Byte);
214
bool isNegative = args[1].
DecodeValue
<byte>(SpecialType.System_Byte) != 0;
222
high = args[2].
DecodeValue
<int>(SpecialType.System_Int32);
223
mid = args[3].
DecodeValue
<int>(SpecialType.System_Int32);
224
low = args[4].
DecodeValue
<int>(SpecialType.System_Int32);
232
high = unchecked((int)args[2].
DecodeValue
<uint>(SpecialType.System_UInt32));
233
mid = unchecked((int)args[3].
DecodeValue
<uint>(SpecialType.System_UInt32));
234
low = unchecked((int)args[4].
DecodeValue
<uint>(SpecialType.System_UInt32));
242
long value = this.CommonConstructorArguments[0].
DecodeValue
<long>(SpecialType.System_Int64);
415
options = (MethodImplOptions)attribute.CommonConstructorArguments[0].
DecodeValue
<short>(SpecialType.System_Int16);
419
options = attribute.CommonConstructorArguments[0].
DecodeValue
<MethodImplOptions>(SpecialType.System_Enum);
440
var value = (MethodImplAttributes)namedArg.Value.
DecodeValue
<int>(SpecialType.System_Enum);
477
LayoutKind kind = attribute.CommonConstructorArguments[0].
DecodeValue
<LayoutKind>(SpecialType.System_Enum);
497
charSet = namedArg.Value.
DecodeValue
<CharSet>(SpecialType.System_Enum);
518
alignment = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
530
size = namedArg.Value.
DecodeValue
<int>(Microsoft.CodeAnalysis.SpecialType.System_Int32);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (12)
104
unmanagedType = (UnmanagedType)attribute.CommonConstructorArguments[0].
DecodeValue
<short>(SpecialType.System_Int16);
108
unmanagedType = attribute.CommonConstructorArguments[0].
DecodeValue
<UnmanagedType>(SpecialType.System_Enum);
131
typeName = namedArg.Value.
DecodeValue
<string>(SpecialType.System_String);
142
typeSymbol = namedArg.Value.
DecodeValue
<ITypeSymbolInternal>(SpecialType.None);
147
cookie = namedArg.Value.
DecodeValue
<string>(SpecialType.System_String);
187
parameterIndex = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
223
elementType = namedArg.Value.
DecodeValue
<UnmanagedType>(SpecialType.System_Enum);
237
elementCount = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);
252
parameterIndex = namedArg.Value.
DecodeValue
<short>(SpecialType.System_Int16);
311
elementTypeVariant = namedArg.Value.
DecodeValue
<Cci.VarEnum>(SpecialType.System_Enum);
321
elementTypeSymbol = namedArg.Value.
DecodeValue
<ITypeSymbolInternal>(SpecialType.None);
379
elementCount = namedArg.Value.
DecodeValue
<int>(SpecialType.System_Int32);