internal static void ThrowOnInvalidPropertyType(TnefPropertyType type) { MsgStoragePropertyTypeRule msgStoragePropertyTypeRule = null; if (!MsgStorageRulesTable.rulesTable.TryGetValue(type, out msgStoragePropertyTypeRule)) { throw new NotSupportedException(MsgStorageStrings.UnsupportedPropertyType(string.Format("0x{0:x2}", type))); } }
private object InternalReadValue() { MsgStoragePropertyTypeRule rule = this.currentProperty.Rule; if (rule.IsFixedValue) { return(rule.ReadFixedValue(this.propertiesContent, this.currentOffset)); } return(rule.ReadStreamedValue(this, this.currentProperty)); }
internal static bool TryFindRule(TnefPropertyType type, out MsgStoragePropertyTypeRule rule) { return(MsgStorageRulesTable.rulesTable.TryGetValue(type, out rule)); }
internal static bool TryFindRule(TnefPropertyTag propertyTag, out MsgStoragePropertyTypeRule rule) { return(MsgStorageRulesTable.TryFindRule(propertyTag.TnefType, out rule)); }