override public object Clone() { MethodInvocationExpression clone = (MethodInvocationExpression)FormatterServices.GetUninitializedObject(typeof(MethodInvocationExpression)); 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 != _arguments) { clone._arguments = _arguments.Clone() as ExpressionCollection; clone._arguments.InitializeParent(clone); } if (null != _namedArguments) { clone._namedArguments = _namedArguments.Clone() as ExpressionPairCollection; clone._namedArguments.InitializeParent(clone); } return(clone); }
override public object Clone() { Attribute clone = (Attribute)FormatterServices.GetUninitializedObject(typeof(Attribute)); 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 != _arguments) { clone._arguments = _arguments.Clone() as ExpressionCollection; clone._arguments.InitializeParent(clone); } if (null != _namedArguments) { clone._namedArguments = _namedArguments.Clone() as ExpressionPairCollection; clone._namedArguments.InitializeParent(clone); } return(clone); }
override public object Clone() { MethodInvocationExpression clone = new MethodInvocationExpression(); 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 != _arguments) { clone._arguments = _arguments.Clone() as ExpressionCollection; clone._arguments.InitializeParent(clone); } if (null != _namedArguments) { clone._namedArguments = _namedArguments.Clone() as ExpressionPairCollection; clone._namedArguments.InitializeParent(clone); } return(clone); }
override public object Clone() { HashLiteralExpression clone = new HashLiteralExpression(); 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 != _items) { clone._items = _items.Clone() as ExpressionPairCollection; clone._items.InitializeParent(clone); } return(clone); }
override public object Clone() { HashLiteralExpression clone = (HashLiteralExpression)FormatterServices.GetUninitializedObject(typeof(HashLiteralExpression)); 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 != _items) { clone._items = _items.Clone() as ExpressionPairCollection; clone._items.InitializeParent(clone); } return(clone); }