Esempio n. 1
0
        internal SerializableExpression(ZetboxStreamReader binReader, StreamSerializationContext ctx, InterfaceType.Factory iftFactory)
        {
            this.iftFactory = iftFactory;

            SerializableType t;

            binReader.Read(out t);
            this.SerializableType = t;

            int nt;

            binReader.Read(out nt);
            NodeType = nt;
        }
Esempio n. 2
0
        internal SerializableConstantExpression(ZetboxStreamReader binReader, StreamSerializationContext ctx, InterfaceType.Factory iftFactory)
            : base(binReader, ctx, iftFactory)
        {
            object val;

            binReader.Read(out val, Type);
            Value = val;
        }
Esempio n. 3
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                binStream.Read(out this._fk_DisplayedTypeAssembly);
                this.Proxy.DisplayedTypeFullName = binStream.ReadString();
                this.Proxy.DisplayName           = binStream.ReadString();
                binStream.Read(out this._fk_VisualTree);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 4
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this.Proxy.TestBool = binStream.ReadNullableBoolean();
                binStream.Read(out this._fk_TestCustomObjects_Nav);
                binStream.Read(out this._fk_TestCustomObjects_One_Nav);
                this.Proxy.TestDateTime = binStream.ReadNullableDateTime();
                Proxy.TestEnum          = (Zetbox.App.Test.TestEnum)binStream.ReadNullableInt32();
                this.Proxy.TestString   = binStream.ReadString();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 5
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._Configuration   = binStream.ReadString();
                this._isExportGuidSet = binStream.ReadBoolean();
                if (this._isExportGuidSet)
                {
                    this._ExportGuid = binStream.ReadGuid();
                }
                binStream.Read(out this._fk_Owner);
                binStream.Read(out this._fk_Type);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 6
0
 public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
 {
     var baseResult = base.FromStream(binStream);
     var result = new List<IPersistenceObject>();
     // it may be only an empty shell to stand-in for unreadable data
     if (CurrentAccessRights != Zetbox.API.AccessRights.None) {
     binStream.Read(out this._fk_Group);
     } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
     return baseResult == null
         ? result.Count == 0
             ? null
             : result
         : baseResult.Concat(result);
 }
Esempio n. 7
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                Inputs_was_eagerLoaded = binStream.ReadBoolean();
                binStream.Read(out this._fk_ReferencedClass);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 8
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this.Proxy.EagerLoading     = binStream.ReadBoolean();
                this.Proxy.IsInlineEditable = binStream.ReadNullableBoolean();
                binStream.Read(out this._fk_RelationEnd);
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 9
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                binStream.Read(out this._fk_CompoundObjectDefinition);
                this.Proxy.HasPersistentOrder = binStream.ReadBoolean();
                this.Proxy.IsList             = binStream.ReadBoolean();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 10
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._MyIntProperty = binStream.ReadNullableInt32();
                binStream.Read(out this._fk_ObjectProp);
                this._StringProp = binStream.ReadString();
                ((Zetbox.App.Test.TestObjClass) this).TestEnumProp = (Zetbox.App.Test.TestEnum)binStream.ReadNullableInt32();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }
Esempio n. 11
0
        public override IEnumerable <IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream)
        {
            var baseResult = base.FromStream(binStream);
            var result     = new List <IPersistenceObject>();

            // it may be only an empty shell to stand-in for unreadable data
            if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            {
                this._Frage = binStream.ReadString();
                binStream.Read(out this._fk_Fragebogen);
                this._gute_Antworten_pos = binStream.ReadNullableInt32();
                this._FragenNummer       = binStream.ReadInt32();
                this._GegebeneAntwort    = binStream.ReadNullableInt32();
            } // if (CurrentAccessRights != Zetbox.API.AccessRights.None)
            return(baseResult == null
                ? result.Count == 0
                    ? null
                    : result
                : baseResult.Concat(result));
        }