예제 #1
0
 // Token: 0x06001020 RID: 4128 RVA: 0x0005B509 File Offset: 0x00059709
 public void ExecuteCopyProperty(IProperty srcProperty, AirSyncProperty dstAirSyncProperty)
 {
     if (srcProperty == null)
     {
         throw new ArgumentNullException("srcProperty");
     }
     if (dstAirSyncProperty == null)
     {
         throw new ArgumentNullException("dstAirSyncProperty");
     }
     if (PropertyState.Modified == srcProperty.State || PropertyState.Stream == srcProperty.State || PropertyState.SetToDefault == srcProperty.State)
     {
         dstAirSyncProperty.CopyFrom(srcProperty);
     }
 }
예제 #2
0
 public void ExecuteCopyProperty(IProperty srcProperty, AirSyncProperty dstAirSyncProperty)
 {
     if (srcProperty == null)
     {
         throw new ArgumentNullException("srcProperty");
     }
     if (dstAirSyncProperty == null)
     {
         throw new ArgumentNullException("dstAirSyncProperty");
     }
     if (dstAirSyncProperty.AirSyncTagNames == null)
     {
         throw new ArgumentNullException("dstAirSyncProperty.AirSyncTagNames");
     }
     if (PropertyState.Modified == srcProperty.State && (this.schemaTags == null || this.schemaTags.ContainsKey(dstAirSyncProperty.Namespace + dstAirSyncProperty.AirSyncTagNames[0])))
     {
         dstAirSyncProperty.CopyFrom(srcProperty);
     }
 }
 // Token: 0x06001023 RID: 4131 RVA: 0x0005B688 File Offset: 0x00059888
 public void ExecuteCopyProperty(IProperty srcProperty, AirSyncProperty dstAirSyncProperty)
 {
     if (srcProperty == null)
     {
         throw new ArgumentNullException("srcProperty");
     }
     if (dstAirSyncProperty == null)
     {
         throw new ArgumentNullException("dstAirSyncProperty");
     }
     if (PropertyState.SetToDefault == srcProperty.State)
     {
         dstAirSyncProperty.OutputEmptyNode();
         return;
     }
     if (PropertyState.Unmodified != srcProperty.State)
     {
         dstAirSyncProperty.CopyFrom(srcProperty);
     }
 }