/// <summary> /// Allows easy retrieval of strings form of an /// <see cref="_ATTRIB"/> /// value. /// </summary> public string this[_ATTRIB attrib] { get { StringBuilder sb = new StringBuilder(25); sb.AppendFormat("{0}", attrib.ToString()); return(sb.ToString()); } }
/// <summary> /// Enforce static instance. /// </summary> private Tags() { System.Array vals; _DC dc = 0; vals = Enum.GetValues(dc.GetType()); m_DC = new String[vals.Length]; for (int i = 0; i < vals.Length; i++) { m_DC[i] = this[(_DC)vals.GetValue(i)]; } _UPNP UPNP = 0; vals = Enum.GetValues(UPNP.GetType()); m_UPNP = new String[vals.Length]; for (int i = 0; i < vals.Length; i++) { m_UPNP[i] = this[(_UPNP)vals.GetValue(i)]; } _DIDL DIDL = 0; vals = Enum.GetValues(DIDL.GetType()); m_DIDL = new String[vals.Length]; for (int i = 0; i < vals.Length; i++) { m_DIDL[i] = this[(_DIDL)vals.GetValue(i)]; } _ATTRIB ATTRIB = 0; vals = Enum.GetValues(ATTRIB.GetType()); m_ATTRIB = new String[vals.Length]; for (int i = 0; i < vals.Length; i++) { m_ATTRIB[i] = this[(_ATTRIB)vals.GetValue(i)]; } }
/// <summary> /// Allows easy retrieval of strings form of an /// <see cref="_ATTRIB"/> /// value. /// </summary> public string this[_ATTRIB attrib] { get { StringBuilder sb = new StringBuilder(25); sb.AppendFormat("{0}", attrib.ToString()); return sb.ToString(); } }