示例#1
0
 public static (DmdFieldInfo keyField, DmdFieldInfo valueField) TryGetFields(DmdType type)
 {
     Debug.Assert(IsDictionaryEntry(type));
     return(KeyValuePairTypeUtils.TryGetFields(type, KeyFieldName, ValueFieldName));
 }
示例#2
0
 public static (DmdFieldInfo?keyField, DmdFieldInfo?valueField) TryGetFields(DmdType type)
 {
     Debug.Assert(IsDictionaryEntry(type));
     return(KeyValuePairTypeUtils.TryGetFields(type, KnownMemberNames.DictionaryEntry_Key_FieldName, KnownMemberNames.DictionaryEntry_Value_FieldName));
 }