public override Object ToServerObject() { Server.Application.CoreExtensibleObject coreExtensibleObject = new Server.Application.CoreExtensibleObject(); MapToServerObject(coreExtensibleObject); return(coreExtensibleObject); }
protected void BaseConstructor(Application applicationReference, Server.Application.CoreExtensibleObject forCoreExtensibleObject) { base.BaseConstructor(applicationReference, forCoreExtensibleObject); MapFromServerObject(forCoreExtensibleObject); return; }
public void MapToServerObject(Server.Application.CoreExtensibleObject coreExtensibleObject) { base.MapToServerObject((Server.Application.CoreObject)coreExtensibleObject); // COPY, DON'T MOVE REFERENCE coreExtensibleObject.ExtendedProperties = new Dictionary <String, String> (); foreach (String currentKey in extendedProperties.Keys) { coreExtensibleObject.ExtendedProperties.Add(currentKey, extendedProperties[currentKey]); } return; }
public void MapFromServerObject(Server.Application.CoreExtensibleObject forCoreExtensibleObject) { // COPY EXTENDED PROPERTIES, DO NOT SET BY REFERENCE extendedProperties = new Dictionary <String, String> (); if (forCoreExtensibleObject.ExtendedProperties == null) { forCoreExtensibleObject.ExtendedProperties = new Dictionary <String, String> (); } foreach (String currentPropertyName in forCoreExtensibleObject.ExtendedProperties.Keys) { extendedProperties.Add(currentPropertyName, forCoreExtensibleObject.ExtendedProperties[currentPropertyName]); } return; }
protected void BaseConstructor(Application applicationReference, Server.Application.CoreExtensibleObject forCoreExtensibleObject) { base.BaseConstructor(applicationReference, forCoreExtensibleObject); // COPY EXTENDED PROPERTIES, DO NOT SET BY REFERENCE extendedProperties = new Dictionary <String, String> (); if (forCoreExtensibleObject.ExtendedProperties == null) { forCoreExtensibleObject.ExtendedProperties = new Dictionary <String, String> (); } foreach (String currentPropertyName in forCoreExtensibleObject.ExtendedProperties.Keys) { extendedProperties.Add(currentPropertyName, forCoreExtensibleObject.ExtendedProperties[currentPropertyName]); } return; }
public CoreExtensibleObject(Application applicationReference, Server.Application.CoreExtensibleObject forCoreExtensibleObject) { BaseConstructor(applicationReference, forCoreExtensibleObject); return; }