Example #1
0
 private static WebService.DirectoryObject ConvertDirectoryObject(DirectoryObject directoryObject)
 {
     WebService.DirectoryObject wsDirectoryObject = new WebService.DirectoryObject();
     wsDirectoryObject.Id = directoryObject.Id;
     WebService.Property[] wsProperties = new WebService.Property[directoryObject.Properties.Length];
     for (int i = 0; i < directoryObject.Properties.Length; i++)
     {
         WebService.Property wsProperty = new WebService.Property();
         wsProperty.Name  = directoryObject.Properties[i].Name;
         wsProperty.Value = directoryObject.Properties[i].Value;
         wsProperties[i]  = wsProperty;
     }
     wsDirectoryObject.Properties = wsProperties;
     return(wsDirectoryObject);
 }
Example #2
0
		private static WebService.DirectoryObject ConvertDirectoryObject(DirectoryObject directoryObject) {
			WebService.DirectoryObject wsDirectoryObject = new WebService.DirectoryObject();
			wsDirectoryObject.Id = directoryObject.Id;
			WebService.Property[] wsProperties = new WebService.Property[directoryObject.Properties.Length];
			for(int i = 0; i < directoryObject.Properties.Length; i++) {
				WebService.Property wsProperty = new WebService.Property();
				wsProperty.Name = directoryObject.Properties[i].Name;
				wsProperty.Value = directoryObject.Properties[i].Value;
				wsProperties[i] = wsProperty;
			}
			wsDirectoryObject.Properties = wsProperties;
			return wsDirectoryObject;
		}