public EndemeValue GetValue(EndemeTermKey profile) { if (Regex.IsMatch(profile.ToString(), "[*!]")) { return(RegField.Educe(profile, true).Item); } else { return(ListField.Educe(profile, true).Item); } }
// ---------------------------------------------------------------------------------------- /// <!-- For --> /// <summary> /// /// </summary> /// <param name="profile"></param> /// <returns></returns> public IAmAnEndemeItem For(EndemeTermKey profile, bool rawSource) { if (Regex.IsMatch(profile.ToString(), "[*!]")) { return(RegField.Educe(profile, rawSource)); } else { return(ListField.Educe(profile, rawSource)); } }
public EndemeValue GetValue(string profile) { if (Regex.IsMatch(profile, "[*!]")) { return(RegField.Educe(profile).Item); } else { return(ListField.Educe(profile).Item); } }
// ---------------------------------------------------------------------------------------- /// <!-- For --> /// <summary> /// /// </summary> /// <param name="profile"></param> /// <returns></returns> public IEndemeItem For(string profile) { if (Regex.IsMatch(profile, "[*!]")) { return(RegField.Educe(profile)); } else { return(ListField.Educe(profile)); } }
public void SetValue(EndemeTermKey profile, EndemeValue value, bool rawSource) { if (Regex.IsMatch(profile.ToString(), "[*!]")) { EndemeObject enObj = RegField.Educe(profile, rawSource); enObj.Item = value; } else { ListField.Educe(profile, rawSource).Item = value; } }
public void SetValue(string profile, EndemeValue value) { if (Regex.IsMatch(profile, "[*!]")) { EndemeObject enObj = RegField.Educe(profile); enObj.Item = value; } else { ListField.Educe(profile).Item = value; } }