public ApiClassBase GetApiClassBase()
        {
            ApiClassBase res = new ApiClassBase();

            res.ClassId              = ClassId;
            res.NamespaceId          = NamespaceId;
            res.ComponentId          = ComponentId;
            res.ClassName            = ClassName;
            res.Declaration          = Declaration;
            res.Documentation        = Documentation;
            res.Description          = Description;
            res.AppearedInVersion    = AppearedInVersion;
            res.DeprecatedInVersion  = DeprecatedInVersion;
            res.DisappearedInVersion = DisappearedInVersion;
            res.IsDeprecated         = IsDeprecated;
            res.DeprecationMessage   = DeprecationMessage;
            res.DocumentationId      = DocumentationId;
            res.PendingDescription   = PendingDescription;
            res.FullName             = FullName;
            res.IsAbstract           = IsAbstract;
            res.IsAnsiClass          = IsAnsiClass;
            res.IsArray              = IsArray;
            res.IsAutoClass          = IsAutoClass;
            res.IsAutoLayout         = IsAutoLayout;
            res.IsBeforeFieldInit    = IsBeforeFieldInit;
            res.IsByReference        = IsByReference;
            res.IsClass              = IsClass;
            res.IsDefinition         = IsDefinition;
            res.IsEnum               = IsEnum;
            res.IsExplicitLayout     = IsExplicitLayout;
            res.IsFunctionPointer    = IsFunctionPointer;
            res.IsGenericInstance    = IsGenericInstance;
            res.IsGenericParameter   = IsGenericParameter;
            res.IsImport             = IsImport;
            res.IsInterface          = IsInterface;
            res.IsNested             = IsNested;
            res.IsNestedAssembly     = IsNestedAssembly;
            res.IsNestedPrivate      = IsNestedPrivate;
            res.IsNestedPublic       = IsNestedPublic;
            res.IsNotPublic          = IsNotPublic;
            res.CreatedByUserID      = CreatedByUserID;
            res.CreatedOnDate        = CreatedOnDate;
            res.LastModifiedByUserID = LastModifiedByUserID;
            res.LastModifiedOnDate   = LastModifiedOnDate;
            return(res);
        }
Esempio n. 2
0
        public void ReadApiClassBase(ApiClassBase apiClass)
        {
            if (apiClass.ClassId > -1)
                ClassId = apiClass.ClassId;

            if (apiClass.NamespaceId > -1)
                NamespaceId = apiClass.NamespaceId;

            if (apiClass.ComponentId > -1)
                ComponentId = apiClass.ComponentId;

            if (!String.IsNullOrEmpty(apiClass.ClassName))
                ClassName = apiClass.ClassName;

            if (!String.IsNullOrEmpty(apiClass.Declaration))
                Declaration = apiClass.Declaration;

            if (!String.IsNullOrEmpty(apiClass.Documentation))
                Documentation = apiClass.Documentation;

            if (!String.IsNullOrEmpty(apiClass.Description))
                Description = apiClass.Description;

            if (!String.IsNullOrEmpty(apiClass.AppearedInVersion))
                AppearedInVersion = apiClass.AppearedInVersion;

            if (!String.IsNullOrEmpty(apiClass.DeprecatedInVersion))
                DeprecatedInVersion = apiClass.DeprecatedInVersion;

            if (!String.IsNullOrEmpty(apiClass.DisappearedInVersion))
                DisappearedInVersion = apiClass.DisappearedInVersion;

            IsDeprecated = apiClass.IsDeprecated;

            if (!String.IsNullOrEmpty(apiClass.DeprecationMessage))
                DeprecationMessage = apiClass.DeprecationMessage;

            if (apiClass.DocumentationId > -1)
                DocumentationId = apiClass.DocumentationId;

            if (!String.IsNullOrEmpty(apiClass.PendingDescription))
                PendingDescription = apiClass.PendingDescription;

            if (!String.IsNullOrEmpty(apiClass.FullName))
                FullName = apiClass.FullName;

            IsAbstract = apiClass.IsAbstract;

            IsAnsiClass = apiClass.IsAnsiClass;

            IsArray = apiClass.IsArray;

            IsAutoClass = apiClass.IsAutoClass;

            IsAutoLayout = apiClass.IsAutoLayout;

            IsBeforeFieldInit = apiClass.IsBeforeFieldInit;

            IsByReference = apiClass.IsByReference;

            IsClass = apiClass.IsClass;

            IsDefinition = apiClass.IsDefinition;

            IsEnum = apiClass.IsEnum;

            IsExplicitLayout = apiClass.IsExplicitLayout;

            IsFunctionPointer = apiClass.IsFunctionPointer;

            IsGenericInstance = apiClass.IsGenericInstance;

            IsGenericParameter = apiClass.IsGenericParameter;

            IsImport = apiClass.IsImport;

            IsInterface = apiClass.IsInterface;

            IsNested = apiClass.IsNested;

            IsNestedAssembly = apiClass.IsNestedAssembly;

            IsNestedPrivate = apiClass.IsNestedPrivate;

            IsNestedPublic = apiClass.IsNestedPublic;

            IsNotPublic = apiClass.IsNotPublic;

        }