Esempio n. 1
0
 // Token: 0x06000743 RID: 1859 RVA: 0x000289C0 File Offset: 0x00026BC0
 public void StartComponent(string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (this.validate && name.Length == 0)
     {
         throw new ArgumentException();
     }
     this.EndProperty();
     this.AssertValidState(WriteState.Start | WriteState.Component);
     this.Save();
     this.componentName = name.ToUpper();
     this.componentId   = CalendarCommon.GetComponentEnum(name);
     this.writer.WriteProperty("BEGIN", this.componentName);
     this.state = WriteState.Component;
 }