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._Large = binStream.ReadNullableDecimal(); this._NoScale = binStream.ReadNullableDecimal(); this._SmallDecimal = binStream.ReadNullableDecimal(); } // if (CurrentAccessRights != Zetbox.API.AccessRights.None) return baseResult == null ? result.Count == 0 ? null : result : baseResult.Concat(result); }
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._Nullable = binStream.ReadNullableDecimal(); this._isNullableWithDefaultSet = binStream.ReadBoolean(); if (this._isNullableWithDefaultSet) { this._NullableWithDefault = binStream.ReadNullableDecimal(); } this._Standard = binStream.ReadDecimal(); this._isStandardWithDefaultSet = binStream.ReadBoolean(); if (this._isStandardWithDefaultSet) { this._StandardWithDefault = binStream.ReadDecimal(); } } // if (CurrentAccessRights != Zetbox.API.AccessRights.None) return baseResult == null ? result.Count == 0 ? null : result : baseResult.Concat(result); }