コード例 #1
0
        public override Object ToServerObject()
        {
            Server.Application.CoreExtensibleObject coreExtensibleObject = new Server.Application.CoreExtensibleObject();

            MapToServerObject(coreExtensibleObject);

            return(coreExtensibleObject);
        }
コード例 #2
0
        protected void BaseConstructor(Application applicationReference, Server.Application.CoreExtensibleObject forCoreExtensibleObject)
        {
            base.BaseConstructor(applicationReference, forCoreExtensibleObject);

            MapFromServerObject(forCoreExtensibleObject);

            return;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
        }
コード例 #6
0
        public CoreExtensibleObject(Application applicationReference, Server.Application.CoreExtensibleObject forCoreExtensibleObject)
        {
            BaseConstructor(applicationReference, forCoreExtensibleObject);

            return;
        }