Class UtilsNonNetStandard
- Namespace
- SunamoShared.Crypting
- Assembly
- SunamoShared.dll
Shared utility methods used by multiple encryption classes.
public class UtilsNonNetStandard
- Inheritance
-
UtilsNonNetStandard
- Inherited Members
- Extension Methods
Methods
GetConfigString(string, bool)
Returns the specified string value from the application .config file.
public static string GetConfigString(string key, bool isRequired)
Parameters
keystringThe config key to retrieve.
isRequiredboolWhether the key is required (throws if missing).
Returns
GetXmlElement(string, string)
Retrieves the content of a named element from an XML string.
public static string GetXmlElement(string xml, string element)
Parameters
Returns
WriteConfigKey(string, string)
Returns an XML config key element string in the format: <add key="..." value="..." />
public static string WriteConfigKey(string key, string value)
Parameters
Returns
WriteXmlElement(string, string)
Returns an XML element string with the specified name and value.
public static string WriteXmlElement(string element, string value)
Parameters
Returns
WriteXmlNode(string, bool)
Returns an opening or closing XML tag for the specified element.
public static string WriteXmlNode(string element, bool isClosing)