Esempio n. 1
0
		public PropertyStorageMedium CacheThis(string namespace_tag, StorageMediums.Enum val)
		{
			StringBuilder sb = new StringBuilder();
			sb.AppendFormat("{0}{1}{2}", namespace_tag, Delimiter, val.ToString());
			return (PropertyStorageMedium) this.Cache.CacheThis(sb.ToString(), new PropertyStorageMedium(namespace_tag, val));
		}
Esempio n. 2
0
		/// <summary>
		/// Instantiates a new property that can represent an xml element with 
		/// the StorageMedium.Enum enumeration as its value.
		/// </summary>
		/// <param name="namespace_tag">property obtained from Tags[CommonPropertyNames.value]</param>
		/// <param name="val"></param>
		public PropertyStorageMedium (string namespace_tag, StorageMediums.Enum val)
		{
			this.ns_tag = (string) CdsMetadataCaches.Didl.CacheThis(namespace_tag);
			this.m_value = val;
		}