override public object Clone() { ArrayLiteralExpression clone = (ArrayLiteralExpression)FormatterServices.GetUninitializedObject(typeof(ArrayLiteralExpression)); 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 ExpressionCollection; clone._items.InitializeParent(clone); } if (null != _type) { clone._type = _type.Clone() as ArrayTypeReference; clone._type.InitializeParent(clone); } return(clone); }
override public object Clone() { ArrayLiteralExpression clone = new ArrayLiteralExpression(); 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 ExpressionCollection; clone._items.InitializeParent(clone); } if (null != _type) { clone._type = _type.Clone() as ArrayTypeReference; clone._type.InitializeParent(clone); } return(clone); }