Пример #1
0
 /// <summary>
 /// Gets the field type for a field.
 /// </summary>
 public ServiceTypeInfo?GetFieldType(ServiceFieldInfo field) =>
 m_typesByName.TryGetValue(field.TypeName, out var type) ? type : ServiceTypeInfo.TryParse(field.TypeName, FindMember);
Пример #2
0
 /// <summary>
 /// Gets the field type for a field.
 /// </summary>
 public ServiceTypeInfo GetFieldType(ServiceFieldInfo field)
 {
     return(ServiceTypeInfo.Parse(field.TypeName, FindMember, field.Position));
 }