23 references to TryExtractValueFromAttribute
Microsoft.CodeAnalysis (23)
MetadataReader\PEModule.cs (23)
1146if (TryExtractValueFromAttribute(info.Handle, out int value, s_attributeIntValueExtractor))
1162if (TryExtractValueFromAttribute(info.Handle, out int value, s_attributeIntValueExtractor))
1471return TryExtractValueFromAttribute(info.Handle, out when, s_attributeBooleanValueExtractor);
1613if (TryExtractValueFromAttribute(info.Handle, out bool value, s_attributeBooleanValueExtractor))
1695if (TryExtractValueFromAttribute(ai.Handle, out BoolAndStringData extracted, s_attributeBoolAndStringValueExtractor))
1704else if (TryExtractValueFromAttribute(ai.Handle, out BoolAndStringArrayData extracted2, s_attributeBoolAndStringArrayValueExtractor))
1820return TryExtractValueFromAttribute(attributeInfo.Handle, out var obsoleteData, s_attributeDeprecatedDataExtractor) ?
1852if (TryExtractValueFromAttribute(attributeInfo.Handle, out shortValue, s_attributeShortValueExtractor) &&
1863if (TryExtractValueFromAttribute(attributeInfo.Handle, out intValue, s_attributeIntValueExtractor) &&
1903if (TryExtractValueFromAttribute(info.Handle, out shortValue, s_attributeShortValueExtractor))
1913if (TryExtractValueFromAttribute(info.Handle, out intValue, s_attributeIntValueExtractor))
1931return TryExtractValueFromAttribute(handle, out value, s_attributeStringValueExtractor);
1936return TryExtractValueFromAttribute(handle, out value, s_attributeLongValueExtractor);
1942return TryExtractValueFromAttribute(handle, out value, s_decimalValueInDecimalConstantAttributeExtractor);
1947bool result = TryExtractValueFromAttribute(handle, out (int, int) data, s_attributeIntAndIntValueExtractor);
1961var result = TryExtractValueFromAttribute(handle, out data, s_attributeStringAndIntValueExtractor);
1970var result = TryExtractValueFromAttribute(handle, out data, s_attributeStringAndStringValueExtractor);
1977return TryExtractValueFromAttribute(handle, out value, s_attributeBoolArrayValueExtractor);
1982return TryExtractValueFromAttribute(handle, out value, s_attributeByteArrayValueExtractor);
1987return TryExtractValueFromAttribute(handle, out value, s_attributeStringArrayValueExtractor);
3208return TryExtractValueFromAttribute(info.Handle, out value, s_attributeByteValueExtractor);
3226return TryExtractValueFromAttribute(info.Handle, out defaultTransform, s_attributeByteValueExtractor);
3243return TryExtractValueFromAttribute(info.Handle, out decodedPriority, s_attributeIntValueExtractor);