示例#1
0
 // Token: 0x06001339 RID: 4921 RVA: 0x0006FE94 File Offset: 0x0006E094
 private OABFileRecord CreateHeaderRecord()
 {
     OABPropertyValue[] array = new OABPropertyValue[]
     {
         new OABPropertyValue
         {
             PropTag = OABFilePropTags.OabName,
             Value   = this.addressListFile.NameToUseInOABFile
         },
         new OABPropertyValue
         {
             PropTag = OABFilePropTags.OabDN,
             Value   = Encoding.UTF8.GetBytes(this.addressListFile.DnToUseInOABFile)
         },
         new OABPropertyValue
         {
             PropTag = OABFilePropTags.OabSequence,
             Value   = (int)(this.addressListFile.IsContinuationOfSequence ? (this.addressListFile.SequenceNumber + 1U) : this.addressListFile.SequenceNumber)
         },
         new OABPropertyValue
         {
             PropTag = OABFilePropTags.OabContainerGuid,
             Value   = Encoding.UTF8.GetBytes(this.addressListFile.Guid.ToString())
         }
     };
     if (!string.IsNullOrWhiteSpace(this.addressListFile.DnOfTheHabRoot))
     {
         List <OABPropertyValue> list = new List <OABPropertyValue>(array.Length + 1);
         list.AddRange(array);
         list.Add(new OABPropertyValue
         {
             PropTag = OABFilePropTags.OabHABRootDepartmentLink,
             Value   = Encoding.UTF8.GetBytes(this.addressListFile.DnOfTheHabRoot)
         });
         array = list.ToArray();
     }
     return(new OABFileRecord
     {
         PropertyValues = array
     });
 }
示例#2
0
 internal PropertyIdentityValue(OABPropertyValue propertyValue)
 {
     this.Id    = new GetOABFile.PropertyIdentity(propertyValue.PropTag);
     this.Value = new GetOABFile.PropertyValue(propertyValue.PropTag.ValueType(), propertyValue.Value);
 }