/// <summary> /// Constructor that contains a complete list of resource attributes. /// </summary> /// <param name="resource">resource string to be parsed into attributes</param> public CoApLinkAttributes(string resource) { // Split the string by the semicolon character string[] linkAttributes = resource.Split(';'); // The first attribute is actually the resource name, so we ignore it. for (int i = 1; i < linkAttributes.Length; i++) { //Create a link attribute object and add it to our list. CoApLinkAttribute a = new CoApLinkAttribute(linkAttributes[i]); this.InnerList.Add(a); } }
/// <summary> /// Implementation of the Add collection function. /// </summary> /// <param name="value"></param> /// <returns></returns> public int Add(CoApLinkAttribute value) { return(InnerList.Add(value)); }