Scripts/Accounting/Account.cs
/// <summary>
/// Deserializes a list of AccountComment instances from an xml element.
/// </summary>
/// <param name="node">The XmlElement from which to deserialize.</param>
/// <returns>Comment list. Value will never be null.</returns>
Deserializes a list of AccountComment instances from an xml element.
Deserializes a list of AccountComment instances from an xml element .
public static List<AccountComment> LoadComments( XmlElement node )
		{
			List<AccountComment> list = null;
			XmlElement comments = node["comments"];
			if ( comments != null )
			{
				list = new List<AccountComment>();
				foreach ( XmlElement comment in comments.GetElementsByTagName( "comment" ) )
				{
					try { list.Add( new AccountComment( comment ) ); }
					catch { }
				}
			}
			return list;
		}
public static List < AccountComment > LoadComments ( XmlElement node ) { List < AccountComment > list = null ; XmlElement comments = node [ " " ] ; if ( comments != null ) { list = new List < AccountComment > ( ) ; foreach ( XmlElement comment in comments . GetElementsByTagName ( " " ) ) { try { list . Add ( new AccountComment ( comment ) ) ; } catch { } } } return list ; }
Deserializes a list of AccountComment instances from an xml element.
Deserializes a list of AccountComment instances from an xml element .
Comment list. Value will never be null.
Comment list . Value will never be null .
node
XmlElement
The XmlElement from which to deserialize.
The XmlElement from which to deserialize .