Scripts/Accounting/Account.cs
/// <summary>
/// Deserializes a list of string values from an xml element. Null values are not added to the list.
/// </summary>
/// <param name="node">The XmlElement from which to deserialize.</param>
/// <returns>String list. Value will never be null.</returns>
Deserializes a list of string values from an xml element. Null values are not added to the list.
Deserializes a list of string values from an xml element . Null values are not added to the list .
public static string[] LoadAccessCheck( XmlElement node )
		{
			string[] stringList;
			XmlElement accessCheck = node["accessCheck"];
			if ( accessCheck != null )
			{
				List<string> list = new List<string>();
				foreach ( XmlElement ip in accessCheck.GetElementsByTagName( "ip" ) )
				{
					string text = Utility.GetText( ip, null );
					if ( text != null )
						list.Add( text );
				}
				stringList = list.ToArray();
			}
			else
			{
				stringList = new string[0];
			}
			return stringList;
		}
public static string [ ] LoadAccessCheck ( XmlElement node ) { string [ ] stringList ; XmlElement accessCheck = node [ " " ] ; if ( accessCheck != null ) { List < string > list = new List < string > ( ) ; foreach ( XmlElement ip in accessCheck . GetElementsByTagName ( " " ) ) { string text = Utility . GetText ( ip , null ) ; if ( text != null ) list . Add ( text ) ; } stringList = list . ToArray ( ) ; } else { stringList = new string [ 0 ] ; } return stringList ; }
Deserializes a list of string values from an xml element.
Deserializes a list of string values from an xml element .
String list. Value will never be null.
String list . Value will never be null .
node
XmlElement
The XmlElement from which to deserialize.
The XmlElement from which to deserialize .