public static CatalogField forKKey(KKey kKey) { CatalogField result = null; FIELDS_BY_KEY.TryGetValue(kKey, out result); return(result); }
private CatalogField(Catalog catalog, KKey kKey, KKeyMetadata metadata, CatalogFieldType fieldType = CatalogFieldType.DATA) { this.Catalog = catalog; this.KKey = kKey; this.Metadata = metadata; this.Type = fieldType; FIELDS_BY_KEY.Add(kKey, this); }
public static KKeyMetadata getMetadataFor(KKey kKey) { CatalogField field = forKKey(kKey); return(field?.Metadata); }