Esempio n. 1
0
        public static WfClientOguObjectBase ToClientOguObject(this IOguObject oguObject)
        {
            WfClientOguObjectBase result = null;

            if (oguObject != null)
            {
                OguBase wrappedObj = (OguBase)OguBase.CreateWrapperObject(oguObject);

                string name = wrappedObj.IsNameInitialized() ? wrappedObj.Name : null;

                result = WfClientOguObjectBase.CreateWrapperObject(wrappedObj.ID, name, wrappedObj.ObjectType.ToClientOguSchemaType());
            }

            return(result);
        }