MonoSoftware.MonoX.DAL.EntityClasses.NewsCategoryEntity.GetObjectData C# (CSharp) Method

GetObjectData() private method

private GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void
        protected override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                info.AddValue("_newsCategoryChildrens", ((_newsCategoryChildrens!=null) && (_newsCategoryChildrens.Count>0) && !this.MarkedForDeletion)?_newsCategoryChildrens:null);
                info.AddValue("_newsCategoryInRoles", ((_newsCategoryInRoles!=null) && (_newsCategoryInRoles.Count>0) && !this.MarkedForDeletion)?_newsCategoryInRoles:null);
                info.AddValue("_newsCategoryLocalizations", ((_newsCategoryLocalizations!=null) && (_newsCategoryLocalizations.Count>0) && !this.MarkedForDeletion)?_newsCategoryLocalizations:null);
                info.AddValue("_newsItems", ((_newsItems!=null) && (_newsItems.Count>0) && !this.MarkedForDeletion)?_newsItems:null);
                info.AddValue("_snRelationshipss", ((_snRelationshipss!=null) && (_snRelationshipss.Count>0) && !this.MarkedForDeletion)?_snRelationshipss:null);
                info.AddValue("_aspnetApplications", (!this.MarkedForDeletion?_aspnetApplications:null));
                info.AddValue("_newsCategoryParent", (!this.MarkedForDeletion?_newsCategoryParent:null));
                info.AddValue("_newsCategoryTemplate", (!this.MarkedForDeletion?_newsCategoryTemplate:null));
            }
            // __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo
            // __LLBLGENPRO_USER_CODE_REGION_END
            base.GetObjectData(info, context);
        }