Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,77 @@
//
// System.CodeDom CodeArgumentReferenceExpression Class implementation
//
// Author:
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2002 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom {
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeArgumentReferenceExpression
: CodeExpression
{
private string parameterName;
//
// Constructors
//
public CodeArgumentReferenceExpression()
{
}
public CodeArgumentReferenceExpression( string name )
{
this.parameterName = name;
}
//
// Properties
//
public string ParameterName {
get {
if (parameterName == null) {
return string.Empty;
}
return parameterName;
}
set {
parameterName = value;
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,175 @@
//
// System.CodeDom CodeArrayCreateExpression Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom {
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeArrayCreateExpression
: CodeExpression
{
private CodeTypeReference createType;
private CodeExpressionCollection initializers;
private CodeExpression sizeExpression;
private int size;
//
// Constructors
//
public CodeArrayCreateExpression ()
{
}
public CodeArrayCreateExpression (CodeTypeReference createType,
CodeExpression size )
{
this.createType = createType;
this.sizeExpression = size;
}
public CodeArrayCreateExpression (CodeTypeReference createType,
params CodeExpression[] initializers )
{
this.createType = createType;
this.Initializers.AddRange( initializers );
}
public CodeArrayCreateExpression (CodeTypeReference createType,
int size)
{
this.createType = createType;
this.size = size;
}
public CodeArrayCreateExpression (string createType,
CodeExpression size)
{
this.createType = new CodeTypeReference( createType );
this.sizeExpression = size;
}
public CodeArrayCreateExpression (string createType,
params CodeExpression[] initializers)
{
this.createType = new CodeTypeReference( createType );
this.Initializers.AddRange( initializers );
}
public CodeArrayCreateExpression (string createType,
int size)
{
this.createType = new CodeTypeReference( createType );
this.size = size;
}
public CodeArrayCreateExpression (Type createType,
CodeExpression size)
{
this.createType = new CodeTypeReference( createType );
this.sizeExpression = size;
}
public CodeArrayCreateExpression (Type createType,
params CodeExpression[] initializers)
{
this.createType = new CodeTypeReference( createType );
this.Initializers.AddRange( initializers );
}
public CodeArrayCreateExpression (Type createType,
int size)
{
this.createType = new CodeTypeReference( createType );
this.size = size;
}
//
// Properties
//
public CodeTypeReference CreateType {
get {
if (createType == null) {
createType = new CodeTypeReference (typeof (void));
}
return createType;
}
set {
createType = value;
}
}
public CodeExpressionCollection Initializers {
get {
if ( initializers == null )
initializers = new CodeExpressionCollection();
return initializers;
}
}
public CodeExpression SizeExpression {
get {
return sizeExpression;
}
set {
sizeExpression = value;
}
}
public int Size {
get {
return size;
}
set {
size = value;
// NOTE: Setting Size in ms.Net does
// not supersede SizeExpression
// values. Instead, the CodeGenerator
// seems to always prefer
// SizeExpression if set to a value !=
// null.
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,85 @@
//
// System.CodeDom CodeArrayIndexerExpression Class implementation
//
// Author:
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2002 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom {
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeArrayIndexerExpression
: CodeExpression
{
private CodeExpressionCollection indices;
private CodeExpression targetObject;
//
// Constructors
//
public CodeArrayIndexerExpression()
{
}
public CodeArrayIndexerExpression( CodeExpression targetObject, params CodeExpression[] indices )
{
this.targetObject = targetObject;
this.Indices.AddRange( indices );
}
//
// Properties
//
public CodeExpressionCollection Indices {
get {
if ( indices == null )
indices = new CodeExpressionCollection();
return indices;
}
}
public CodeExpression TargetObject {
get {
return targetObject;
}
set {
targetObject = value;
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,84 @@
//
// System.CodeDom CodeArrayCreateExpression Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
//
// (C) 2001 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom {
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAssignStatement
: CodeStatement
{
CodeExpression left, right;
//
// Constructors
//
public CodeAssignStatement ()
{
}
public CodeAssignStatement (CodeExpression left, CodeExpression right)
{
this.left = left;
this.right = right;
}
//
// Properties
//
public CodeExpression Left {
get {
return left;
}
set {
left = value;
}
}
public CodeExpression Right {
get {
return right;
}
set {
right = value;
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,99 @@
//
// System.CodeDom CodeAttachEventStatement Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAttachEventStatement
: CodeStatement
{
private CodeEventReferenceExpression eventRef;
private CodeExpression listener;
//
// Constructors
//
public CodeAttachEventStatement ()
{
}
public CodeAttachEventStatement (CodeEventReferenceExpression eventRef,
CodeExpression listener)
{
this.eventRef = eventRef;
this.listener = listener;
}
public CodeAttachEventStatement (CodeExpression targetObject,
string eventName,
CodeExpression listener)
{
this.eventRef = new CodeEventReferenceExpression (targetObject,
eventName);
this.listener = listener;
}
//
// Properties
//
public CodeEventReferenceExpression Event {
get {
if (eventRef == null) {
eventRef = new CodeEventReferenceExpression ();
}
return eventRef;
}
set {
eventRef = value;
}
}
public CodeExpression Listener {
get {
return listener;
}
set {
listener = value;
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,84 @@
//
// System.CodeDom CodeAttributeArgument Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAttributeArgument
{
private string name;
private CodeExpression value;
//
// Constructors
//
public CodeAttributeArgument ()
{
}
public CodeAttributeArgument (CodeExpression value)
{
this.value = value;
}
public CodeAttributeArgument (string name, CodeExpression value)
{
this.name = name;
this.value = value;
}
//
// Properties
//
public string Name {
get {
if (name == null) {
return string.Empty;
}
return name;
}
set {
name = value;
}
}
public CodeExpression Value {
get {
return this.value;
}
set {
this.value = value;
}
}
}
}

View File

@@ -0,0 +1,128 @@
//
// System.CodeDom CodeAttributeArgumentCollection Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
using System.Collections;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAttributeArgumentCollection
: CollectionBase
{
//
// Constructors
//
public CodeAttributeArgumentCollection()
{
}
public CodeAttributeArgumentCollection( CodeAttributeArgument[] value )
{
AddRange( value );
}
public CodeAttributeArgumentCollection( CodeAttributeArgumentCollection value )
{
AddRange( value );
}
//
// Properties
//
public CodeAttributeArgument this[int index]
{
get {
return (CodeAttributeArgument)List[index];
}
set {
List[index] = value;
}
}
//
// Methods
//
public int Add (CodeAttributeArgument value)
{
return List.Add( value );
}
public void AddRange (CodeAttributeArgument [] value )
{
if (value == null) {
throw new ArgumentNullException ("value");
}
for (int i = 0; i < value.Length; i++) {
Add (value[i]);
}
}
public void AddRange (CodeAttributeArgumentCollection value)
{
if (value == null) {
throw new ArgumentNullException ("value");
}
int count = value.Count;
for (int i = 0; i < count; i++) {
Add (value[i]);
}
}
public bool Contains( CodeAttributeArgument value )
{
return List.Contains( value );
}
public void CopyTo( CodeAttributeArgument[] array, int index )
{
List.CopyTo( array, index );
}
public int IndexOf( CodeAttributeArgument value )
{
return List.IndexOf( value );
}
public void Insert( int index, CodeAttributeArgument value )
{
List.Insert( index, value );
}
public void Remove( CodeAttributeArgument value )
{
List.Remove (value);
}
}
}

View File

@@ -0,0 +1,110 @@
//
// System.CodeDom CodeAttributeDeclaration Class implementation
//
// Authors:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAttributeDeclaration
{
private string name;
private CodeAttributeArgumentCollection arguments;
private CodeTypeReference attribute;
//
// Constructors
//
public CodeAttributeDeclaration ()
{
}
public CodeAttributeDeclaration (string name)
{
this.Name = name;
}
public CodeAttributeDeclaration (string name, params CodeAttributeArgument [] arguments)
{
this.Name = name;
Arguments.AddRange (arguments);
}
public CodeAttributeDeclaration (CodeTypeReference attributeType)
{
attribute = attributeType;
if (attributeType != null) {
name = attributeType.BaseType;
}
}
public CodeAttributeDeclaration (CodeTypeReference attributeType, params CodeAttributeArgument [] arguments)
{
attribute = attributeType;
if (attributeType != null) {
name = attributeType.BaseType;
}
Arguments.AddRange (arguments);
}
//
// Properties
//
public CodeAttributeArgumentCollection Arguments {
get {
if (arguments == null) {
arguments = new CodeAttributeArgumentCollection ();
}
return arguments;
}
}
public string Name {
get {
if (name == null) {
return string.Empty;
}
return name;
}
set {
name = value;
attribute = new CodeTypeReference (name);
}
}
public CodeTypeReference AttributeType {
get { return attribute; }
}
}
}

View File

@@ -0,0 +1,128 @@
//
// System.CodeDom CodeAttributeDeclarationCollection Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
using System.Collections;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeAttributeDeclarationCollection
: CollectionBase
{
//
// Constructors
//
public CodeAttributeDeclarationCollection()
{
}
public CodeAttributeDeclarationCollection( CodeAttributeDeclaration[] value )
{
AddRange( value );
}
public CodeAttributeDeclarationCollection( CodeAttributeDeclarationCollection value )
{
AddRange( value );
}
//
// Properties
//
public CodeAttributeDeclaration this[int index]
{
get {
return (CodeAttributeDeclaration)List[index];
}
set {
List[index] = value;
}
}
//
// Methods
//
public int Add (CodeAttributeDeclaration value)
{
return List.Add (value);
}
public void AddRange (CodeAttributeDeclaration [] value)
{
if (value == null) {
throw new ArgumentNullException ("value");
}
for (int i = 0; i < value.Length; i++) {
Add (value[i]);
}
}
public void AddRange (CodeAttributeDeclarationCollection value)
{
if (value == null) {
throw new ArgumentNullException ("value");
}
int count = value.Count;
for (int i = 0; i < count; i++) {
Add (value[i]);
}
}
public bool Contains( CodeAttributeDeclaration value )
{
return List.Contains( value );
}
public void CopyTo( CodeAttributeDeclaration[] array, int index )
{
List.CopyTo( array, index );
}
public int IndexOf( CodeAttributeDeclaration value )
{
return List.IndexOf( value );
}
public void Insert( int index, CodeAttributeDeclaration value )
{
List.Insert( index, value );
}
public void Remove( CodeAttributeDeclaration value )
{
List.Remove (value);
}
}
}

View File

@@ -0,0 +1,49 @@
//
// System.CodeDom CodeBaseReferenceExpression Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
//
// (C) 2001 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeBaseReferenceExpression
: CodeExpression
{
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,98 @@
//
// System.CodeDom CodeBinaryOperatorExpression Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
//
// (C) 2001 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeBinaryOperatorExpression
: CodeExpression
{
private CodeExpression left, right;
private CodeBinaryOperatorType op;
//
// Constructors
//
public CodeBinaryOperatorExpression ()
{
}
public CodeBinaryOperatorExpression (CodeExpression left,
CodeBinaryOperatorType op,
CodeExpression right)
{
this.left = left;
this.op = op;
this.right = right;
}
//
// Properties
//
public CodeExpression Left {
get {
return left;
}
set {
left = value;
}
}
public CodeBinaryOperatorType Operator {
get {
return op;
}
set {
op = value;
}
}
public CodeExpression Right {
get {
return right;
}
set {
right = value;
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,56 @@
//
// System.CodeDom CodeBinaryOperatorType Enum implementation
//
// Author:
// Sean MacIsaac (macisaac@ximian.com)
//
// (C) 2001 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ComVisible(true)]
public enum CodeBinaryOperatorType {
Add = 0,
Subtract = 1,
Multiply = 2,
Divide = 3,
Modulus = 4,
Assign = 5,
IdentityInequality = 6,
IdentityEquality = 7,
ValueEquality = 8,
BitwiseOr = 9,
BitwiseAnd = 10,
BooleanOr = 11,
BooleanAnd = 12,
LessThan = 13,
LessThanOrEqual = 14,
GreaterThan = 15,
GreaterThanOrEqual = 16
}
}

View File

@@ -0,0 +1,101 @@
//
// System.CodeDom CodeCastExpression Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeCastExpression : CodeExpression
{
private CodeTypeReference targetType;
private CodeExpression expression;
//
// Constructors
//
public CodeCastExpression ()
{
}
public CodeCastExpression (CodeTypeReference targetType, CodeExpression expression)
{
this.targetType = targetType;
this.expression = expression;
}
public CodeCastExpression (string targetType, CodeExpression expression)
{
this.targetType = new CodeTypeReference (targetType);
this.expression = expression;
}
public CodeCastExpression (Type targetType, CodeExpression expression)
{
this.targetType = new CodeTypeReference (targetType);
this.expression = expression;
}
//
// Properties
//
public CodeExpression Expression {
get {
return expression;
}
set {
expression = value;
}
}
public CodeTypeReference TargetType {
get {
if (targetType == null) {
targetType = new CodeTypeReference (string.Empty);
}
return targetType;
}
set {
targetType = value;
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,107 @@
//
// System.CodeDom CodeCatchClaus Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeCatchClause
{
private CodeTypeReference catchExceptionType;
private string localName;
private CodeStatementCollection statements;
//
// Constructors
//
public CodeCatchClause ()
{
}
public CodeCatchClause ( string localName )
{
this.localName = localName;
}
public CodeCatchClause ( string localName,
CodeTypeReference catchExceptionType )
{
this.localName = localName;
this.catchExceptionType = catchExceptionType;
}
public CodeCatchClause ( string localName,
CodeTypeReference catchExceptionType,
params CodeStatement[] statements )
{
this.localName = localName;
this.catchExceptionType = catchExceptionType;
this.Statements.AddRange (statements);
}
//
// Properties
//
public CodeTypeReference CatchExceptionType {
get {
if (catchExceptionType == null) {
catchExceptionType = new CodeTypeReference (typeof (Exception));
}
return catchExceptionType;
}
set {
catchExceptionType = value;
}
}
public string LocalName {
get {
if (localName == null) {
return string.Empty;
}
return localName;
}
set {
localName = value;
}
}
public CodeStatementCollection Statements {
get {
if ( statements == null )
statements = new CodeStatementCollection();
return statements;
}
}
}
}

View File

@@ -0,0 +1,126 @@
//
// System.CodeDom CodeCatchClauseCollection Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
using System.Collections;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeCatchClauseCollection
: CollectionBase
{
//
// Constructors
//
public CodeCatchClauseCollection()
{
}
public CodeCatchClauseCollection( CodeCatchClause[] value )
{
AddRange( value );
}
public CodeCatchClauseCollection( CodeCatchClauseCollection value )
{
AddRange( value );
}
//
// Properties
//
public CodeCatchClause this[int index] {
get {
return (CodeCatchClause)List[index];
}
set {
List[index] = value;
}
}
//
// Methods
//
public int Add (CodeCatchClause value)
{
return List.Add (value);
}
public void AddRange (CodeCatchClause [] value)
{
if (value == null) {
throw new ArgumentNullException ("value");
}
for (int i = 0; i < value.Length; i++) {
Add (value[i]);
}
}
public void AddRange (CodeCatchClauseCollection value )
{
if (value == null) {
throw new ArgumentNullException ("value");
}
int count = value.Count;
for (int i = 0; i < count; i++) {
Add (value[i]);
}
}
public bool Contains( CodeCatchClause value )
{
return List.Contains( value );
}
public void CopyTo( CodeCatchClause[] array, int index )
{
List.CopyTo( array, index );
}
public int IndexOf( CodeCatchClause value )
{
return List.IndexOf( value );
}
public void Insert( int index, CodeCatchClause value )
{
List.Insert( index, value );
}
public void Remove( CodeCatchClause value )
{
List.Remove (value);
}
}
}

View File

@@ -0,0 +1,85 @@
//
// System.CodeDom CodeChecksumPragma class
//
// Author:
// Marek Safar (marek.safar@seznam.cz)
//
// (C) 2004 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ComVisible (true), ClassInterface (ClassInterfaceType.AutoDispatch)]
public class CodeChecksumPragma: CodeDirective
{
string fileName;
Guid checksumAlgorithmId;
byte[] checksumData;
public CodeChecksumPragma ()
{
}
public CodeChecksumPragma (string fileName, Guid checksumAlgorithmId, byte[] checksumData)
{
this.fileName = fileName;
this.checksumAlgorithmId = checksumAlgorithmId;
this.checksumData = checksumData;
}
public Guid ChecksumAlgorithmId {
get {
return checksumAlgorithmId;
}
set {
checksumAlgorithmId = value;
}
}
public byte[] ChecksumData {
get {
return checksumData;
}
set {
checksumData = value;
}
}
public string FileName {
get {
if (fileName == null) {
return string.Empty;
}
return fileName;
}
set {
fileName = value;
}
}
}
}

View File

@@ -0,0 +1,85 @@
//
// System.CodeDom CodeComment Class implementation
//
// Author:
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2002 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeComment
: CodeObject
{
private bool docComment;
private string text;
//
// Constructors
//
public CodeComment()
{
}
public CodeComment( string text )
{
this.text = text;
}
public CodeComment( string text, bool docComment )
{
this.text = text;
this.docComment = docComment;
}
//
// Properties
//
public bool DocComment {
get {
return docComment;
}
set {
docComment = value;
}
}
public string Text {
get {
if (text == null)
return String.Empty;
return text;
}
set {
text = value;
}
}
}
}

View File

@@ -0,0 +1,86 @@
//
// System.CodeDom CodeCommentStatement Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001, 2002 Ximian, Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeCommentStatement
: CodeStatement
{
private CodeComment comment;
//
// Constructors
//
public CodeCommentStatement ()
{
}
public CodeCommentStatement (CodeComment comment)
{
this.comment = comment;
}
public CodeCommentStatement (string text)
{
this.comment = new CodeComment( text );
}
public CodeCommentStatement (string text, bool docComment)
{
this.comment = new CodeComment( text, docComment );
}
//
// Properties
//
public CodeComment Comment {
get {
return comment;
}
set {
comment = value;
}
}
//
// ICodeDomVisitor method
//
internal override void Accept (ICodeDomVisitor visitor)
{
visitor.Visit (this);
}
}
}

View File

@@ -0,0 +1,128 @@
//
// System.CodeDom CodeCommentStatementCollection Class implementation
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
using System.Collections;
namespace System.CodeDom
{
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeCommentStatementCollection
: CollectionBase
{
//
// Constructors
//
public CodeCommentStatementCollection()
{
}
public CodeCommentStatementCollection( CodeCommentStatement[] value )
{
AddRange( value );
}
public CodeCommentStatementCollection( CodeCommentStatementCollection value )
{
AddRange( value );
}
//
// Properties
//
public CodeCommentStatement this[int index]
{
get {
return (CodeCommentStatement)List[index];
}
set {
List[index] = value;
}
}
//
// Methods
//
public int Add (CodeCommentStatement value)
{
return List.Add( value );
}
public void AddRange (CodeCommentStatement [] value )
{
if (value == null) {
throw new ArgumentNullException ("value");
}
for (int i = 0; i < value.Length; i++) {
Add (value[i]);
}
}
public void AddRange (CodeCommentStatementCollection value)
{
if (value == null) {
throw new ArgumentNullException ("value");
}
int count = value.Count;
for (int i = 0; i < count; i++) {
Add (value[i]);
}
}
public bool Contains( CodeCommentStatement value )
{
return List.Contains( value );
}
public void CopyTo( CodeCommentStatement[] array, int index )
{
List.CopyTo( array, index );
}
public int IndexOf( CodeCommentStatement value )
{
return List.IndexOf( value );
}
public void Insert( int index, CodeCommentStatement value )
{
List.Insert( index, value );
}
public void Remove( CodeCommentStatement value )
{
List.Remove (value);
}
}
}

Some files were not shown because too many files have changed in this diff Show More