Example #1
0
        override public object Clone()
        {
            GenericReferenceExpression clone = new GenericReferenceExpression();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            clone._expressionType = _expressionType;
            if (null != _target)
            {
                clone._target = _target.Clone() as Expression;
                clone._target.InitializeParent(clone);
            }
            if (null != _genericArguments)
            {
                clone._genericArguments = _genericArguments.Clone() as TypeReferenceCollection;
                clone._genericArguments.InitializeParent(clone);
            }
            return(clone);
        }
Example #2
0
        override public object Clone()
        {
            GenericReferenceExpression clone = (GenericReferenceExpression)FormatterServices.GetUninitializedObject(typeof(GenericReferenceExpression));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            clone._expressionType = _expressionType;
            if (null != _target)
            {
                clone._target = _target.Clone() as Expression;
                clone._target.InitializeParent(clone);
            }
            if (null != _genericArguments)
            {
                clone._genericArguments = _genericArguments.Clone() as TypeReferenceCollection;
                clone._genericArguments.InitializeParent(clone);
            }
            return(clone);
        }
        override public object Clone()
        {
            GenericParameterDeclaration clone = (GenericParameterDeclaration)FormatterServices.GetUninitializedObject(typeof(GenericParameterDeclaration));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            clone._name = _name;
            if (null != _baseTypes)
            {
                clone._baseTypes = _baseTypes.Clone() as TypeReferenceCollection;
                clone._baseTypes.InitializeParent(clone);
            }
            clone._constraints = _constraints;
            return(clone);
        }
        override public object Clone()
        {
            GenericTypeReference clone = (GenericTypeReference)FormatterServices.GetUninitializedObject(typeof(GenericTypeReference));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            clone._isPointer = _isPointer;
            clone._name      = _name;
            if (null != _genericArguments)
            {
                clone._genericArguments = _genericArguments.Clone() as TypeReferenceCollection;
                clone._genericArguments.InitializeParent(clone);
            }
            return(clone);
        }
Example #5
0
        override public object Clone()
        {
            GenericTypeReference clone = new GenericTypeReference();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            clone._isPointer = _isPointer;
            clone._name      = _name;
            if (null != _genericArguments)
            {
                clone._genericArguments = _genericArguments.Clone() as TypeReferenceCollection;
                clone._genericArguments.InitializeParent(clone);
            }
            return(clone);
        }
        override public object Clone()
        {
            GenericParameterDeclaration clone = new GenericParameterDeclaration();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            clone._name = _name;
            if (null != _baseTypes)
            {
                clone._baseTypes = _baseTypes.Clone() as TypeReferenceCollection;
                clone._baseTypes.InitializeParent(clone);
            }
            clone._constraints = _constraints;
            return(clone);
        }
Example #7
0
        override public object Clone()
        {
            TypeDefinition clone = (TypeDefinition)FormatterServices.GetUninitializedObject(typeof(TypeDefinition));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            clone._modifiers = _modifiers;
            clone._name      = _name;
            if (null != _attributes)
            {
                clone._attributes = _attributes.Clone() as AttributeCollection;
                clone._attributes.InitializeParent(clone);
            }
            if (null != _members)
            {
                clone._members = _members.Clone() as TypeMemberCollection;
                clone._members.InitializeParent(clone);
            }
            if (null != _baseTypes)
            {
                clone._baseTypes = _baseTypes.Clone() as TypeReferenceCollection;
                clone._baseTypes.InitializeParent(clone);
            }
            if (null != _genericParameters)
            {
                clone._genericParameters = _genericParameters.Clone() as GenericParameterDeclarationCollection;
                clone._genericParameters.InitializeParent(clone);
            }
            return(clone);
        }