public bool HasField <T>(string identifier) { if (FieldIdentifierLookup.ContainsKey(identifier)) { return(FieldIdentifierLookup[identifier].GetType() == typeof(T)); } return(false); }
public T GetField <T>(string identifier) where T : ToffeeField { if (FieldIdentifierLookup.ContainsKey(Name)) { return((T)FieldIdentifierLookup[Name]); } return(null); }
public ToffeeField GetField(string identifier) { if (FieldIdentifierLookup.ContainsKey(identifier)) { return(FieldIdentifierLookup[identifier]); } return(null); }
public bool HasField(string identifier) { return(FieldIdentifierLookup.ContainsKey(identifier)); }