public bool FetchBool(string groupName, string elementName) { bool value = (bool)ContainerElement.Descendants(groupName).First().Element(elementName); ProfileCache.Store(elementName, value.ToString()); return(value); }
public long FetchLong(string groupName, string elementName) { long value = (long)ContainerElement.Descendants(groupName).First().Element(elementName); ProfileCache.Store(elementName, value.ToString()); return(value); }
public int FetchInt(string groupName, string elementName) { int value = (int)ContainerElement.Descendants(groupName).First().Element(elementName); ProfileCache.Store(elementName, value.ToString()); return(value); }
public string Fetch(string groupName, string elementName) { string value = (string)ContainerElement.Descendants(groupName).First().Element(elementName); value = Substitute(value); ProfileCache.Store(elementName, value); return(value); }
public string Substitute(string original) { string value = ProfileCache.Substitute(original); return(value); }
public XmlProfileHelper(ProfileCache profileCache, XElement containerElement) { ProfileCache = profileCache; ContainerElement = containerElement; }