+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
-
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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;
- }
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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; }
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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;
- }
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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;
- }
- }
- }
-}
+++ /dev/null
-//
-// 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;
- }
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// 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);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeCompileUnit Class implementation
-//
-// Author:
-// Daniel Stodden (stodden@in.tum.de)
-// Marek Safar (marek.safar@seznam.cz)
-//
-// (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;
-using System.Collections.Specialized;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeCompileUnit
- : CodeObject
- {
- private CodeAttributeDeclarationCollection attributes;
- private CodeNamespaceCollection namespaces;
- private StringCollection assemblies;
-
- //
- // Constructors
- //
- public CodeCompileUnit()
- {
- }
-
- //
- // Properties
- //
- public CodeAttributeDeclarationCollection AssemblyCustomAttributes {
- get {
- if ( attributes == null )
- attributes =
- new CodeAttributeDeclarationCollection();
- return attributes;
- }
- }
-
- public CodeNamespaceCollection Namespaces {
- get {
- if ( namespaces == null )
- namespaces = new CodeNamespaceCollection();
- return namespaces;
- }
- }
-
- public StringCollection ReferencedAssemblies {
- get {
- if ( assemblies == null )
- assemblies = new StringCollection();
- return assemblies;
- }
- }
-
- CodeDirectiveCollection startDirectives;
- CodeDirectiveCollection endDirectives;
-
- public CodeDirectiveCollection StartDirectives {
- get {
- if (startDirectives == null)
- startDirectives = new CodeDirectiveCollection ();
- return startDirectives;
- }
- }
-
- public CodeDirectiveCollection EndDirectives {
- get {
- if (endDirectives == null)
- endDirectives = new CodeDirectiveCollection ();
- return endDirectives;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeConditionStatement 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 CodeConditionStatement
- : CodeStatement
- {
- private CodeExpression condition;
- private CodeStatementCollection trueStatements;
- private CodeStatementCollection falseStatements;
-
- //
- // Constructors
- //
- public CodeConditionStatement()
- {
- }
-
- public CodeConditionStatement( CodeExpression condition,
- params CodeStatement[] trueStatements )
- {
- this.condition = condition;
- this.TrueStatements.AddRange( trueStatements );
- }
-
- public CodeConditionStatement( CodeExpression condition,
- CodeStatement[] trueStatements,
- CodeStatement[] falseStatements )
- {
- this.condition = condition;
- this.TrueStatements.AddRange( trueStatements );
- this.FalseStatements.AddRange( falseStatements );
- }
-
- //
- // Properties
- //
- public CodeExpression Condition {
- get {
- return condition;
- }
- set {
- condition = value;
- }
- }
-
- public CodeStatementCollection FalseStatements {
- get {
- if ( falseStatements == null )
- falseStatements =
- new CodeStatementCollection();
- return falseStatements;
- }
- }
-
- public CodeStatementCollection TrueStatements {
- get {
- if ( trueStatements == null )
- trueStatements =
- new CodeStatementCollection();
- return trueStatements;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeConstructor Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeConstructor
- : CodeMemberMethod
- {
- private CodeExpressionCollection baseConstructorArgs;
- private CodeExpressionCollection chainedConstructorArgs;
-
- //
- // Constructors
- //
- public CodeConstructor()
- {
- this.Name = ".ctor";
- }
-
- //
- // Properties
- //
- public CodeExpressionCollection BaseConstructorArgs {
- get {
- if ( baseConstructorArgs == null )
- baseConstructorArgs = new CodeExpressionCollection();
-
- return baseConstructorArgs;
- }
- }
-
- public CodeExpressionCollection ChainedConstructorArgs {
- get {
- if ( chainedConstructorArgs == null )
- chainedConstructorArgs = new CodeExpressionCollection();
-
- return chainedConstructorArgs;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom.CodeDefaultValueExpression class
-//
-// Author:
-// Sebastien Pouliot <sebastien@ximian.com>
-//
-// 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 CodeDefaultValueExpression : CodeExpression {
-
- private CodeTypeReference type;
-
-
- public CodeDefaultValueExpression ()
- {
- }
-
- public CodeDefaultValueExpression (CodeTypeReference type)
- {
- this.type = type;
- }
-
-
- public CodeTypeReference Type {
- get {
- if (type == null) {
- type = new CodeTypeReference (string.Empty);
- }
- return type;
- }
- set { type = value; }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeDelegateCreateExpression 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 CodeDelegateCreateExpression
- : CodeExpression
- {
- private CodeTypeReference delegateType;
- private string methodName;
- private CodeExpression targetObject;
-
- //
- // Constructors
- //
- public CodeDelegateCreateExpression ()
- {
- }
-
- public CodeDelegateCreateExpression (CodeTypeReference delegateType,
- CodeExpression targetObject,
- string methodName)
- {
- this.delegateType = delegateType;
- this.targetObject = targetObject;
- this.methodName = methodName;
- }
-
-
- //
- // Properties
- //
- public CodeTypeReference DelegateType {
- get {
- if (delegateType == null) {
- delegateType = new CodeTypeReference (string.Empty);
- }
- return delegateType;
- }
- set {
- delegateType = value;
- }
- }
-
- public string MethodName {
- get {
- if (methodName == null) {
- return string.Empty;
- }
- return methodName;
- }
- set {
- methodName = value;
- }
- }
-
- public CodeExpression TargetObject {
- get {
- return targetObject;
- }
- set {
- targetObject = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeDelegateInvokeExpression Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeDelegateInvokeExpression
- : CodeExpression
- {
- private CodeExpressionCollection parameters;
- private CodeExpression targetObject;
-
- //
- // Constructors
- //
- public CodeDelegateInvokeExpression ()
- {
- }
-
- public CodeDelegateInvokeExpression (CodeExpression targetObject)
- {
- this.targetObject = targetObject;
- }
-
- public CodeDelegateInvokeExpression (CodeExpression targetObject,
- params CodeExpression [] parameters)
- {
- this.targetObject = targetObject;
- this.Parameters.AddRange( parameters );
- }
-
-
- //
- // Properties
- //
- public CodeExpressionCollection Parameters {
- get {
- if ( parameters == null )
- parameters = new CodeExpressionCollection();
- return parameters;
- }
- }
-
- public CodeExpression TargetObject {
- get {
- return targetObject;
- }
- set {
- targetObject = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom FieldDirection Enum implementation
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeDirectionExpression
- : CodeExpression
- {
- private FieldDirection direction;
- private CodeExpression expression;
-
- //
- // Constructors
- //
- public CodeDirectionExpression()
- {
- }
-
- public CodeDirectionExpression( FieldDirection direction,
- CodeExpression expression )
- {
- this.direction = direction;
- this.expression = expression;
- }
-
- //
- // Properties
- //
- public FieldDirection Direction {
- get {
- return direction;
- }
- set {
- direction = value;
- }
- }
-
- public CodeExpression Expression {
- get {
- return expression;
- }
- set {
- expression = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeDirective 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.Runtime.InteropServices;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ComVisible (true), ClassInterface (ClassInterfaceType.AutoDispatch)]
- public class CodeDirective: CodeObject
- {
- public CodeDirective () {}
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeDirectiveCollection class
-//
-// Authors:
-// Marek Safar (marek.safar@seznam.cz)
-// Sebastien Pouliot <sebastien@ximian.com>
-//
-// (C) 2004 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]
- [ComVisible (true), ClassInterface (ClassInterfaceType.AutoDispatch)]
- public class CodeDirectiveCollection: System.Collections.CollectionBase {
-
- public CodeDirectiveCollection ()
- {
- }
-
- public CodeDirectiveCollection (CodeDirective[] value)
- {
- AddRange (value);
- }
-
- public CodeDirectiveCollection (CodeDirectiveCollection value)
- {
- AddRange (value);
- }
-
-
- public CodeDirective this [int index] {
- get { return (CodeDirective) List [index]; }
- set { List [index] = value; }
- }
-
-
- public int Add (CodeDirective value)
- {
- return List.Add (value);
- }
-
- public void AddRange (CodeDirective[] value)
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeDirectiveCollection 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 (CodeDirective value)
- {
- return List.Contains (value);
- }
-
- public void CopyTo (CodeDirective[] array, int index)
- {
- List.CopyTo (array, index);
- }
-
- public int IndexOf (CodeDirective value)
- {
- return List.IndexOf (value);
- }
-
- public void Insert (int index, CodeDirective value)
- {
- List.Insert (index, value);
- }
-
- public void Remove (CodeDirective value)
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeEntryPointMethod Class implementation
-//
-// Author:
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeEntryPointMethod
- : CodeMemberMethod
- {
- public CodeEntryPointMethod ()
- {
- Attributes = MemberAttributes.Public | MemberAttributes.Static;
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeEventReferenceExpression class implementation
-//
-// Author:
-// 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 CodeEventReferenceExpression
- : CodeExpression
- {
- private string eventName;
- private CodeExpression targetObject;
-
- //
- // Constructors
- //
- public CodeEventReferenceExpression()
- {
- }
-
- public CodeEventReferenceExpression( CodeExpression targetObject, string eventName )
- {
- this.targetObject = targetObject;
- this.eventName = eventName;
- }
-
- //
- // Properties
- //
- public string EventName {
- get {
- if (eventName == null) {
- return string.Empty;
- }
- return eventName;
- }
- set {
- eventName = value;
- }
- }
-
- public CodeExpression TargetObject {
- get {
- return targetObject;
- }
- set {
- targetObject = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeExpression 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 CodeExpression
- : CodeObject
- {
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeExpressionCollection 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 CodeExpressionCollection
- : CollectionBase
- {
- //
- // Constructors
- //
- public CodeExpressionCollection()
- {
- }
-
- public CodeExpressionCollection( CodeExpression[] value )
- {
- AddRange( value );
- }
-
- public CodeExpressionCollection( CodeExpressionCollection value )
- {
- AddRange( value );
- }
-
- //
- // Properties
- //
- public CodeExpression this[int index]
- {
- get {
- return (CodeExpression)List[index];
- }
- set {
- List[index] = value;
- }
- }
-
- //
- // Methods
- //
- public int Add (CodeExpression value)
- {
- return List.Add( value );
- }
-
- public void AddRange (CodeExpression [] value )
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeExpressionCollection 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( CodeExpression value )
- {
- return List.Contains( value );
- }
-
- public void CopyTo( CodeExpression[] array, int index )
- {
- List.CopyTo( array, index );
- }
-
- public int IndexOf( CodeExpression value )
- {
- return List.IndexOf( value );
- }
-
- public void Insert( int index, CodeExpression value )
- {
- List.Insert( index, value );
- }
-
- public void Remove( CodeExpression value )
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeExpressionStatement 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 CodeExpressionStatement
- : CodeStatement
- {
- private CodeExpression expression;
-
- //
- // Constructors
- //
- public CodeExpressionStatement()
- {
- }
-
- public CodeExpressionStatement(CodeExpression expression)
- {
- Expression = expression;
- }
-
- //
- // Properties
- //
- public CodeExpression Expression {
- get {
- return expression;
- }
- set {
- expression = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeFieldReferenceExpression 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 CodeFieldReferenceExpression
- : CodeExpression
- {
- private CodeExpression targetObject;
- private string fieldName;
-
- //
- // Constructors
- //
- public CodeFieldReferenceExpression ()
- {
- fieldName = String.Empty;
- }
-
- public CodeFieldReferenceExpression (CodeExpression targetObject,
- string fieldName)
- {
- this.targetObject = targetObject;
- this.fieldName = fieldName;
- }
-
- //
- // Properties
- //
- public string FieldName {
- get {
- return fieldName;
- }
- set {
- fieldName = value;
- }
- }
-
- public CodeExpression TargetObject {
- get {
- return targetObject;
- }
- set {
- targetObject = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeGotoStatement 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 CodeGotoStatement
- : CodeStatement
- {
- private string label;
-
- //
- // Constructors
- //
- public CodeGotoStatement ()
- {
- }
-
- public CodeGotoStatement (string label)
- {
- Label = label;
- }
-
- //
- // Properties
- //
- public string Label {
- get {
- return label;
- }
- set {
- if (value == null || value.Length == 0) {
- throw new ArgumentNullException ("value");
- }
- label = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeIndexerExpression Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeIndexerExpression
- : CodeExpression
- {
- private CodeExpression targetObject;
- private CodeExpressionCollection indices;
-
- //
- // Constructors
- //
- public CodeIndexerExpression ()
- {
- }
-
- public CodeIndexerExpression (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);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeIterationStatement 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 CodeIterationStatement
- : CodeStatement
- {
- private CodeStatement incrementStatement;
- private CodeStatement initStatement;
- private CodeStatementCollection statements;
- private CodeExpression testExpression;
-
- //
- // Constructors
- //
- public CodeIterationStatement()
- {
- }
-
- public CodeIterationStatement( CodeStatement initStatement,
- CodeExpression testExpression,
- CodeStatement incrementStatement,
- params CodeStatement[] statements )
- {
- this.initStatement = initStatement;
- this.testExpression = testExpression;
- this.incrementStatement = incrementStatement;
- this.Statements.AddRange( statements );
- }
-
- //
- // Properties
- //
- public CodeStatement IncrementStatement {
- get {
- return incrementStatement;
- }
- set {
- incrementStatement = value;
- }
- }
-
- public CodeStatement InitStatement {
- get {
- return initStatement;
- }
- set {
- initStatement = value;
- }
- }
-
- public CodeStatementCollection Statements {
- get {
- if ( statements == null )
- statements = new CodeStatementCollection();
- return statements;
- }
- }
-
- public CodeExpression TestExpression {
- get {
- return testExpression;
- }
- set {
- testExpression = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeLabeledStatement 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 CodeLabeledStatement
- : CodeStatement
- {
- private string label;
- private CodeStatement statement;
-
- //
- // Constructors
- //
- public CodeLabeledStatement()
- {
- }
-
- public CodeLabeledStatement( string label )
- {
- this.label = label;
- }
-
- public CodeLabeledStatement( string label, CodeStatement statement )
- {
- this.label = label;
- this.statement = statement;
- }
-
- //
- // Properties
- //
- public string Label {
- get {
- if (label == null) {
- return string.Empty;
- }
- return label;
- }
- set {
- label = value;
- }
- }
-
- public CodeStatement Statement {
- get {
- return statement;
- }
- set {
- statement = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeLinePragma 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
-{
- // <summary>
- // Use objects of this class to keep track of locations where
- // statements are defined
- // </summary>
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeLinePragma
- {
- private string fileName;
- private int lineNumber;
-
- //
- // Constructors
- //
- public CodeLinePragma ()
- {
- }
-
- public CodeLinePragma (string fileName, int lineNumber)
- {
- this.fileName = fileName;
- this.lineNumber = lineNumber;
- }
-
- //
- // Properties
- //
- public string FileName {
- get {
- if (fileName == null) {
- return string.Empty;
- }
- return fileName;
- }
- set {
- fileName = value;
- }
- }
-
- public int LineNumber {
- get {
- return lineNumber;
- }
- set {
- lineNumber = value;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeMemberEvent Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeMemberEvent
- : CodeTypeMember
- {
- private CodeTypeReferenceCollection implementationTypes;
- private CodeTypeReference privateImplementationType;
- private CodeTypeReference type;
-
- //
- // Constructors
- //
- public CodeMemberEvent ()
- {
- }
-
- //
- // Properties
- //
- public CodeTypeReferenceCollection ImplementationTypes
- {
- get {
- if (implementationTypes == null)
- implementationTypes = new CodeTypeReferenceCollection ();
-
- return implementationTypes;
- }
- }
-
- public CodeTypeReference PrivateImplementationType
- {
- get {
- return privateImplementationType;
- }
- set {
- privateImplementationType = value;
- }
- }
-
- public CodeTypeReference Type
- {
- get {
- if (type == null)
- type = new CodeTypeReference (String.Empty);
-
- return type;
- }
- set {
- type = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeMemberField Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeMemberField
- : CodeTypeMember
- {
- private CodeExpression initExpression;
- private CodeTypeReference type;
-
- public CodeMemberField ()
- {
- }
-
- public CodeMemberField (CodeTypeReference type, string name)
- {
- this.type = type;
- this.Name = name;
- }
-
- public CodeMemberField (string type, string name)
- {
- this.type = new CodeTypeReference( type );
- this.Name = name;
- }
-
- public CodeMemberField (Type type, string name)
- {
- this.type = new CodeTypeReference( type );
- this.Name = name;
- }
-
- //
- // Properties
- //
- public CodeExpression InitExpression {
- get {
- return initExpression;
- }
- set {
- initExpression = value;
- }
- }
-
- public CodeTypeReference Type {
- get {
- if (type == null) {
- type = new CodeTypeReference (
- string.Empty);
- }
- return type;
- }
- set {
- type = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeMemberMethod Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeMemberMethod
- : CodeTypeMember
- {
- private CodeTypeReferenceCollection implementationTypes;
- private CodeParameterDeclarationExpressionCollection parameters;
- private CodeTypeReference privateImplements;
- private CodeTypeReference returnType;
- private CodeStatementCollection statements;
- private CodeAttributeDeclarationCollection returnAttributes;
- //int populated;
-
- CodeTypeParameterCollection typeParameters;
- //
- // Constructors
- //
- public CodeMemberMethod()
- {
- }
-
- //
- // Properties
- //
- public CodeTypeReferenceCollection ImplementationTypes {
- get {
- if ( implementationTypes == null ) {
- implementationTypes = new CodeTypeReferenceCollection();
- if ( PopulateImplementationTypes != null )
- PopulateImplementationTypes( this, EventArgs.Empty );
- }
- return implementationTypes;
- }
- }
-
- public CodeParameterDeclarationExpressionCollection Parameters {
- get {
- if ( parameters == null ) {
- parameters = new CodeParameterDeclarationExpressionCollection();
- if ( PopulateParameters != null )
- PopulateParameters( this, EventArgs.Empty );
- }
- return parameters;
- }
- }
-
- public CodeTypeReference PrivateImplementationType {
- get {
- return privateImplements;
- }
- set {
- privateImplements = value;
- }
- }
-
- public CodeTypeReference ReturnType {
- get {
- if ( returnType == null )
- return new CodeTypeReference (typeof (void));
- return returnType;
- }
- set {
- returnType = value;
- }
- }
-
- public CodeStatementCollection Statements {
- get {
- if ( statements == null ) {
- statements = new CodeStatementCollection();
- if ( PopulateStatements != null )
- PopulateStatements( this, EventArgs.Empty );
- }
- return statements;
- }
- }
-
- public CodeAttributeDeclarationCollection ReturnTypeCustomAttributes {
- get {
- if ( returnAttributes == null )
- returnAttributes = new CodeAttributeDeclarationCollection();
-
- return returnAttributes;
- }
- }
-
- [ComVisible (false)]
- public CodeTypeParameterCollection TypeParameters {
- get {
- if (typeParameters == null)
- typeParameters = new CodeTypeParameterCollection ();
- return typeParameters;
- }
- }
-
- //
- // Events
- //
- public event EventHandler PopulateImplementationTypes;
-
- public event EventHandler PopulateParameters;
-
- public event EventHandler PopulateStatements;
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeMemberProperty Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeMemberProperty
- : CodeTypeMember
- {
- private CodeStatementCollection getStatements;
- private bool hasGet;
- private bool hasSet;
- private CodeTypeReferenceCollection implementationTypes;
- private CodeParameterDeclarationExpressionCollection parameters;
- private CodeTypeReference privateImplementationType;
- private CodeStatementCollection setStatements;
- private CodeTypeReference type;
-
- //
- // Constructors
- //
- public CodeMemberProperty ()
- {
- }
-
- //
- // Properties
- //
- public CodeStatementCollection GetStatements {
- get {
- if ( getStatements == null )
- getStatements = new CodeStatementCollection();
- return getStatements;
- }
- }
-
- public bool HasGet {
- get {
- return (hasGet || (getStatements != null && getStatements.Count > 0));
- }
- set {
- hasGet = value;
- if (!hasGet && getStatements != null)
- getStatements.Clear ();
-
- }
- }
-
- public bool HasSet {
- get {
- return (hasSet || (setStatements != null && setStatements.Count > 0));
- }
- set {
- hasSet = value;
- if (!hasSet && setStatements != null)
- setStatements.Clear ();
- }
- }
-
- public CodeTypeReferenceCollection ImplementationTypes {
- get {
- if ( implementationTypes == null )
- implementationTypes = new CodeTypeReferenceCollection();
- return implementationTypes;
- }
- }
-
- public CodeParameterDeclarationExpressionCollection Parameters {
- get {
- if ( parameters == null )
- parameters = new CodeParameterDeclarationExpressionCollection();
- return parameters;
- }
- }
-
- public CodeTypeReference PrivateImplementationType {
- get {
- return privateImplementationType;
- }
- set {
- privateImplementationType = value;
- }
- }
-
- public CodeStatementCollection SetStatements {
- get {
- if ( setStatements == null )
- setStatements = new CodeStatementCollection();
- return setStatements;
- }
- }
-
- public CodeTypeReference Type {
- get {
- if (type == null) {
- type = new CodeTypeReference(string.Empty);
- }
- return type;
- }
- set {
- type = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeMethodInvokeExpression 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 CodeMethodInvokeExpression
- : CodeExpression
- {
- private CodeMethodReferenceExpression method;
- private CodeExpressionCollection parameters;
-
- //
- // Constructors
- //
- public CodeMethodInvokeExpression ()
- {
- }
-
- public CodeMethodInvokeExpression (CodeMethodReferenceExpression method, params CodeExpression[] parameters)
- {
- this.method = method;
- this.Parameters.AddRange( parameters );
- }
-
- public CodeMethodInvokeExpression (CodeExpression targetObject,
- string methodName,
- params CodeExpression [] parameters)
- {
- this.method = new CodeMethodReferenceExpression( targetObject, methodName );
- this.Parameters.AddRange (parameters);
- }
-
- //
- // Properties
- //
- public CodeMethodReferenceExpression Method {
- get {
- if (method == null) {
- method = new CodeMethodReferenceExpression ();
- }
- return method;
- }
- set {
- method = value;
- }
- }
-
- public CodeExpressionCollection Parameters {
- get {
- if ( parameters == null )
- parameters = new CodeExpressionCollection();
- return parameters;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeMethodInvokeExpression Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-// Marek Safar (marek.safar@seznam.cz)
-//
-// (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 CodeMethodReferenceExpression
- : CodeExpression
- {
- private string methodName;
- private CodeExpression targetObject;
- CodeTypeReferenceCollection typeArguments;
-
- //
- // Constructors
- //
- public CodeMethodReferenceExpression ()
- {
- }
-
- public CodeMethodReferenceExpression (CodeExpression targetObject,
- string methodName)
- {
- this.targetObject = targetObject;
- this.methodName = methodName;
- }
-
- public CodeMethodReferenceExpression (CodeExpression targetObject,
- string methodName, params CodeTypeReference[] typeParameters) :
- this (targetObject, methodName)
- {
- if (typeParameters != null && typeParameters.Length > 0)
- TypeArguments.AddRange (typeParameters);
- }
-
- //
- // Properties
- //
- public string MethodName {
- get {
- if (methodName == null) {
- return string.Empty;
- }
- return methodName;
- }
- set {
- methodName = value;
- }
- }
-
- public CodeExpression TargetObject {
- get {
- return targetObject;
- }
- set {
- targetObject = value;
- }
- }
-
- [ComVisible (false)]
- public CodeTypeReferenceCollection TypeArguments {
- get {
- if (typeArguments == null)
- typeArguments = new CodeTypeReferenceCollection ();
- return typeArguments;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeMethodReturnStatement class implementation
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeMethodReturnStatement
- : CodeStatement
- {
- private CodeExpression expression;
-
- //
- // Constructors
- //
- public CodeMethodReturnStatement()
- {
- }
-
- public CodeMethodReturnStatement( CodeExpression expression )
- {
- this.expression = expression;
- }
-
- //
- // Properties
- //
- public CodeExpression Expression {
- get {
- return expression;
- }
- set {
- expression = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeNamespace 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 CodeNamespace
- : CodeObject
- {
- private CodeCommentStatementCollection comments;
- private CodeNamespaceImportCollection imports;
- //private CodeNamespaceCollection namespaces;
- private CodeTypeDeclarationCollection classes;
- private string name;
- //int populated;
-
- //
- // Constructors
- //
- public CodeNamespace()
- {
- }
-
- public CodeNamespace(string name)
- {
- this.name = name;
- }
-
- //
- // Properties
- //
- public CodeCommentStatementCollection Comments {
- get {
- if ( comments == null ) {
- comments = new CodeCommentStatementCollection();
- if ( PopulateComments != null )
- PopulateComments( this, EventArgs.Empty );
- }
- return comments;
- }
- }
-
- public CodeNamespaceImportCollection Imports {
- get {
- if ( imports == null ) {
- imports = new CodeNamespaceImportCollection();
- if ( PopulateImports != null )
- PopulateImports( this, EventArgs.Empty );
- }
- return imports;
- }
- internal set {
- imports = value;
- }
- }
-
- public string Name {
- get {
- if (name == null) {
- return string.Empty;
- }
- return name;
- }
- set {
- name = value;
- }
- }
-
- public CodeTypeDeclarationCollection Types {
- get {
- if ( classes == null ) {
- classes = new CodeTypeDeclarationCollection();
- if ( PopulateTypes != null )
- PopulateTypes( this, EventArgs.Empty );
- }
- return classes;
- }
- }
-
- //
- // Events
- //
- public event EventHandler PopulateComments;
-
- public event EventHandler PopulateImports;
-
- public event EventHandler PopulateTypes;
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeNamespaceCollection Class implementation
-//
-// Author:
-// 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 CodeNamespaceCollection
- : CollectionBase
- {
- //
- // Constructors
- //
- public CodeNamespaceCollection()
- {
- }
-
- public CodeNamespaceCollection( CodeNamespace[] value )
- {
- AddRange( value );
- }
-
- public CodeNamespaceCollection( CodeNamespaceCollection value )
- {
- AddRange( value );
- }
-
- //
- // Properties
- //
- public CodeNamespace this[int index]
- {
- get {
- return (CodeNamespace)List[index];
- }
- set {
- List[index] = value;
- }
- }
-
- //
- // Methods
- //
- public int Add (CodeNamespace value)
- {
- return List.Add (value);
- }
-
- public void AddRange (CodeNamespace [] value )
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeNamespaceCollection 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( CodeNamespace value )
- {
- return List.Contains( value );
- }
-
- public void CopyTo( CodeNamespace[] array, int index )
- {
- List.CopyTo( array, index );
- }
-
- public int IndexOf( CodeNamespace value )
- {
- return List.IndexOf( value );
- }
-
- public void Insert( int index, CodeNamespace value )
- {
- List.Insert( index, value );
- }
-
- public void Remove( CodeNamespace value )
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeNamespaceImport 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 CodeNamespaceImport
- : CodeObject
- {
- private CodeLinePragma linePragma;
- private string nameSpace;
-
- //
- // Constructors
- //
- public CodeNamespaceImport ()
- {
- }
-
- public CodeNamespaceImport (string nameSpace)
- {
- this.nameSpace = nameSpace;
- }
-
- //
- // Properties
- //
- public CodeLinePragma LinePragma {
- get {
- return linePragma;
- }
- set {
- linePragma = value;
- }
- }
-
- public string Namespace {
- get {
- if (nameSpace == null) {
- return string.Empty;
- }
- return nameSpace;
- }
- set {
- nameSpace = value;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeNamespaceImportCollection 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
-{
- /*
- * Should probably be derived from CollectionBase like any
- * other System.CodeDom.*Collection. MS docs say it currently
- * is not, for whichever reason.
- */
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeNamespaceImportCollection
- : IList, ICollection, IEnumerable
- {
- private Hashtable keys;
- private ArrayList data;
-
- //
- // Constructors
- //
- public CodeNamespaceImportCollection ()
- {
- data = new ArrayList ();
- keys = new Hashtable (CaseInsensitiveHashCodeProvider.Default, CaseInsensitiveComparer.Default);
- }
-
- //
- // Properties
- //
- int ICollection.Count {
- get {
- return data.Count;
- }
- }
-
- public int Count {
- get {
- return data.Count;
- }
- }
-
- public CodeNamespaceImport this [int index] {
- get {
- return (CodeNamespaceImport)data[index];
- }
- set {
- CodeNamespaceImport oldImport = (CodeNamespaceImport) data [index];
- CodeNamespaceImport newImport = (CodeNamespaceImport) value;
- keys.Remove (oldImport.Namespace);
- data[index] = value;
- keys [newImport.Namespace] = newImport;
- }
- }
-
- //
- // Methods
- //
- public void Add (CodeNamespaceImport value)
- {
- if (value == null) {
- throw new NullReferenceException ();
- }
-
- if (!keys.ContainsKey (value.Namespace)) {
- keys [value.Namespace] = value;
- data.Add (value);
- }
- }
-
- public void AddRange (CodeNamespaceImport [] value)
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- foreach (CodeNamespaceImport elem in value) {
- Add (elem);
- }
- }
-
- void IList.Clear ()
- {
- Clear ();
- }
-
- public void Clear ()
- {
- data.Clear ();
- keys.Clear ();
- }
-
- // IList implementation
- bool IList.IsFixedSize {
- get {
- return false;
- }
- }
-
- bool IList.IsReadOnly {
- get {
- return false;
- }
- }
-
- object IList.this[int index] {
- get {
- return data[index];
- }
- set {
- this [index] = (CodeNamespaceImport) value;
- }
- }
-
- int IList.Add( object value )
- {
- Add ((CodeNamespaceImport) value);
- return data.Count - 1;
- }
-
- bool IList.Contains( object value )
- {
- return data.Contains( value );
- }
-
- int IList.IndexOf( object value )
- {
- return data.IndexOf( value );
- }
-
- void IList.Insert( int index, object value )
- {
- data.Insert( index, value );
- CodeNamespaceImport import = (CodeNamespaceImport) value;
- keys [import.Namespace] = import;
- }
-
- void IList.Remove( object value )
- {
- string ns = ((CodeNamespaceImport)value).Namespace;
- data.Remove( value );
- foreach (CodeNamespaceImport import in data) {
- if (import.Namespace == ns) {
- keys [ns] = import;
- return;
- }
- }
- keys.Remove (ns);
- }
-
- void IList.RemoveAt( int index )
- {
- string ns = this [index].Namespace;
- data.RemoveAt( index );
- foreach (CodeNamespaceImport import in data) {
- if (import.Namespace == ns) {
- keys [ns] = import;
- return;
- }
- }
- keys.Remove (ns);
- }
-
- // ICollection implementation
- object ICollection.SyncRoot {
- get {
- return null;
- }
- }
-
- bool ICollection.IsSynchronized {
- get {
- return data.IsSynchronized;
- }
- }
-
- void ICollection.CopyTo( Array array, int index )
- {
- data.CopyTo( array, index );
- }
-
- // IEnumerable implementation
- IEnumerator IEnumerable.GetEnumerator ()
- {
- return data.GetEnumerator();
- }
-
- // IEnumerable implementation
- public IEnumerator GetEnumerator ()
- {
- return data.GetEnumerator();
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeObject class implementation
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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;
-using System.Collections;
-using System.Collections.Specialized;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeObject
- {
- private IDictionary userData;
-
- //
- // Properties
- //
- public IDictionary UserData {
- get {
- if ( userData == null )
- userData = new ListDictionary();
- return userData;
- }
- }
-
- internal virtual void Accept (ICodeDomVisitor visitor)
- {
- throw new NotImplementedException ();
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeObjectCreateExpression 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 CodeObjectCreateExpression
- : CodeExpression
- {
- private CodeTypeReference createType;
- private CodeExpressionCollection parameters;
-
- //
- // Constructors
- //
- public CodeObjectCreateExpression ()
- {
- }
-
- public CodeObjectCreateExpression (CodeTypeReference createType,
- params CodeExpression [] parameters)
- {
- this.createType = createType;
- this.Parameters.AddRange( parameters );
- }
-
- public CodeObjectCreateExpression (string createType,
- params CodeExpression [] parameters)
- {
- this.createType = new CodeTypeReference( createType );
- this.Parameters.AddRange( parameters );
- }
-
- public CodeObjectCreateExpression (Type createType,
- params CodeExpression [] parameters)
- {
- this.createType = new CodeTypeReference( createType );
- this.Parameters.AddRange( parameters );
- }
-
- //
- // Properties
- //
- public CodeTypeReference CreateType {
- get {
- if (createType == null) {
- createType = new CodeTypeReference (string.Empty);
- }
- return createType;
- }
- set {
- createType = value;
- }
- }
-
- public CodeExpressionCollection Parameters {
- get {
- if ( parameters == null )
- parameters = new CodeExpressionCollection();
- return parameters;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeParameterDeclarationExpression 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 CodeParameterDeclarationExpression
- : CodeExpression
- {
- private CodeAttributeDeclarationCollection customAttributes;
- private FieldDirection direction;
- private string name;
- private CodeTypeReference type;
-
- //
- // Constructors
- //
- public CodeParameterDeclarationExpression ()
- {
- }
-
- public CodeParameterDeclarationExpression( CodeTypeReference type, string name )
- {
- this.type = type;
- this.name = name;
- }
-
- public CodeParameterDeclarationExpression (string type, string name)
- {
- this.type = new CodeTypeReference( type );
- this.name = name;
- }
-
- public CodeParameterDeclarationExpression (Type type, string name)
- {
- this.type = new CodeTypeReference( type );
- this.name = name;
- }
-
- //
- // Properties
- //
- public CodeAttributeDeclarationCollection CustomAttributes {
- get {
- if ( customAttributes == null )
- customAttributes = new CodeAttributeDeclarationCollection();
- return customAttributes;
- }
- set {
- customAttributes = value;
- }
- }
-
- public FieldDirection Direction {
- get {
- return direction;
- }
- set {
- direction = value;
- }
- }
-
- public string Name {
- get {
- if (name == null) {
- return string.Empty;
- }
- return name;
- }
- set {
- name = value;
- }
- }
-
- public CodeTypeReference Type {
- get {
- if (type == null) {
- type = new CodeTypeReference (string.Empty);
- }
- return type;
- }
- set {
- type = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeParameterDeclarationExpressionCollection 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 CodeParameterDeclarationExpressionCollection
- : CollectionBase
- {
- //
- // Constructors
- //
- public CodeParameterDeclarationExpressionCollection()
- {
- }
-
- public CodeParameterDeclarationExpressionCollection( CodeParameterDeclarationExpression[] value )
- {
- AddRange( value );
- }
-
- public CodeParameterDeclarationExpressionCollection( CodeParameterDeclarationExpressionCollection value )
- {
- AddRange( value );
- }
-
- //
- // Properties
- //
- public CodeParameterDeclarationExpression this[int index]
- {
- get {
- return (CodeParameterDeclarationExpression)List[index];
- }
- set {
- List[index] = value;
- }
- }
-
- //
- // Methods
- //
- public int Add (CodeParameterDeclarationExpression value)
- {
- return List.Add( value );
- }
-
- public void AddRange (CodeParameterDeclarationExpression [] value )
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeParameterDeclarationExpressionCollection 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( CodeParameterDeclarationExpression value )
- {
- return List.Contains( value );
- }
-
- public void CopyTo( CodeParameterDeclarationExpression[] array, int index )
- {
- List.CopyTo( array, index );
- }
-
- public int IndexOf( CodeParameterDeclarationExpression value )
- {
- return List.IndexOf( value );
- }
-
- public void Insert( int index, CodeParameterDeclarationExpression value )
- {
- List.Insert( index, value );
- }
-
- public void Remove( CodeParameterDeclarationExpression value )
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodePrimitiveExpression 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 CodePrimitiveExpression
- : CodeExpression
- {
- private object value;
-
- //
- // Constructors
- //
- public CodePrimitiveExpression ()
- {
- }
-
- public CodePrimitiveExpression (Object value)
- {
- this.value = value;
- }
-
- //
- // Properties
- //
- public object Value {
- get {
- return this.value;
- }
- set {
- this.value = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodePropertyReferenceExpression 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 CodePropertyReferenceExpression
- : CodeExpression
- {
- private CodeExpression targetObject;
- private string propertyName;
-
- //
- // Constructors
- //
- public CodePropertyReferenceExpression ()
- {
- }
-
- public CodePropertyReferenceExpression (CodeExpression targetObject,
- string propertyName)
- {
- this.targetObject = targetObject;
- this.propertyName = propertyName;
- }
-
- //
- // Properties
- //
- public string PropertyName {
- get {
- if (propertyName == null) {
- return string.Empty;
- }
- return propertyName;
- }
- set {
- propertyName = value;
- }
- }
-
- public CodeExpression TargetObject {
- get {
- return targetObject;
- }
- set {
- targetObject = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodePropertySetValueReferenceExpression 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 CodePropertySetValueReferenceExpression
- : CodeExpression
- {
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeRegionDirective 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.Runtime.InteropServices;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ComVisible (true), ClassInterface (ClassInterfaceType.AutoDispatch)]
- public class CodeRegionDirective: CodeDirective
- {
- CodeRegionMode regionMode;
- string regionText;
-
- public CodeRegionDirective () {}
-
- public CodeRegionDirective (CodeRegionMode regionMode, string regionText)
- {
- this.regionMode = regionMode;
- this.regionText = regionText;
- }
-
- public CodeRegionMode RegionMode {
- get {
- return regionMode;
- }
- set {
- regionMode = value;
- }
- }
-
- public string RegionText {
- get {
- if (regionText == null) {
- return string.Empty;
- }
- return regionText;
- }
- set {
- regionText = value;
- }
- }
- }
-}
-
+++ /dev/null
-//
-// System.CodeDom CodeRegionMode enum
-//
-// Author:
-// Marek Safar (marek.safar@seznam.cz)
-//
-// (C) 2004 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]
- [ComVisible (true)]
- public enum CodeRegionMode
- {
- None = 0,
- Start = 1,
- End = 1 << 1
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeRemoveEventStatement 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 CodeRemoveEventStatement
- : CodeStatement
- {
- private CodeEventReferenceExpression eventRef;
- private CodeExpression listener;
-
- //
- // Constructors
- //
- public CodeRemoveEventStatement ()
- {
- }
-
- public CodeRemoveEventStatement (CodeEventReferenceExpression eventRef,
- CodeExpression listener)
- {
- this.eventRef = eventRef;
- this.listener = listener;
- }
-
- public CodeRemoveEventStatement (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);
- }
- }
-}
-
+++ /dev/null
-//
-// System.CodeDom CodeSnippetCompileUnit 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 CodeSnippetCompileUnit
- : CodeCompileUnit
- {
- private CodeLinePragma linePragma;
- private string value;
-
- //
- // Constructors
- //
- public CodeSnippetCompileUnit ()
- {
- }
-
- public CodeSnippetCompileUnit( string value )
- {
- this.value = value;
- }
-
- //
- // Properties
- //
- public CodeLinePragma LinePragma {
- get {
- return linePragma;
- }
- set {
- linePragma = value;
- }
- }
-
- public string Value {
- get {
- if (this.value == null) {
- return string.Empty;
- }
- return this.value;
- }
- set {
- this.value = value;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeSnippetExpression Class implementation
-//
-// Author:
-// 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 CodeSnippetExpression
- : CodeExpression
- {
- private string value;
-
- //
- // Constructors
- //
- public CodeSnippetExpression()
- {
- }
-
- public CodeSnippetExpression( string value )
- {
- this.value = value;
- }
-
- //
- // Properties
- //
- public string Value {
- get {
- if (this.value == null) {
- return string.Empty;
- }
- return this.value;
- }
- set {
- this.value = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeSnippetStatement Class implementation
-//
-// Author:
-// 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 CodeSnippetStatement
- : CodeStatement
- {
- private string value;
-
- //
- // Constructors
- //
- public CodeSnippetStatement()
- {
- }
-
- public CodeSnippetStatement( string value )
- {
- this.value = value;
- }
-
- //
- // Properties
- //
- public string Value {
- get {
- if (this.value == null) {
- return string.Empty;
- }
- return this.value;
- }
- set {
- this.value = value;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeSnippetTypeMember 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 CodeSnippetTypeMember
- : CodeTypeMember
- {
- private string text;
-
- //
- // Constructors
- //
- public CodeSnippetTypeMember()
- {
- }
-
- public CodeSnippetTypeMember( string text )
- {
- this.text = text;
- }
-
- //
- // Properties
- //
- public string Text {
- get {
- if (text == null) {
- return string.Empty;
- }
- return text;
- }
- set {
- text = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeStatement class implementation
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-// Marek Safar (marek.safar@seznam.cz)
-//
-// (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 CodeStatement
- : CodeObject
- {
- private CodeLinePragma linePragma;
-
- CodeDirectiveCollection endDirectives;
- CodeDirectiveCollection startDirectives;
-
- //
- // Constructors
- //
- public CodeStatement()
- {
- }
-
- //
- // Properties
- //
- public CodeLinePragma LinePragma {
- get {
- return linePragma;
- }
- set {
- linePragma = value;
- }
- }
-
- public CodeDirectiveCollection EndDirectives {
- get {
- if (endDirectives == null)
- endDirectives = new CodeDirectiveCollection ();
- return endDirectives;
- }
- }
-
- public CodeDirectiveCollection StartDirectives {
- get {
- if (startDirectives == null)
- startDirectives = new CodeDirectiveCollection ();
- return startDirectives;
- }
- }
-
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeStatementCollection 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 CodeStatementCollection
- : CollectionBase
- {
- //
- // Constructors
- //
- public CodeStatementCollection()
- {
- }
-
- public CodeStatementCollection (CodeStatement[] value)
- {
- AddRange (value);
- }
-
- public CodeStatementCollection (CodeStatementCollection value)
- {
- AddRange (value);
- }
-
- //
- // Properties
- //
- public CodeStatement this[int index]
- {
- get {
- return (CodeStatement) List[index];
- }
- set {
- List[index] = value;
- }
- }
-
- //
- // Methods
- //
- public int Add (CodeStatement value)
- {
- return List.Add (value);
- }
-
- public int Add (CodeExpression value)
- {
- return Add (new CodeExpressionStatement (value));
- }
-
- public void AddRange (CodeStatement [] value)
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeStatementCollection 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 (CodeStatement value)
- {
- return List.Contains (value);
- }
-
- public void CopyTo (CodeStatement[] array, int index)
- {
- List.CopyTo (array, index);
- }
-
- public int IndexOf (CodeStatement value)
- {
- return List.IndexOf (value);
- }
-
- public void Insert (int index, CodeStatement value)
- {
- List.Insert (index, value);
- }
-
- public void Remove (CodeStatement value)
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeParameterDeclarationExpression 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 CodeThisReferenceExpression
- : CodeExpression
- {
-
- //
- // Constructors
- //
- public CodeThisReferenceExpression()
- {
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeThrowExceptionStatement 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 CodeThrowExceptionStatement
- : CodeStatement
- {
- private CodeExpression toThrow;
-
- //
- // Constructors
- //
- public CodeThrowExceptionStatement ()
- {
- }
-
- public CodeThrowExceptionStatement (CodeExpression toThrow)
- {
- this.toThrow = toThrow;
- }
-
- //
- // Properties
- //
- public CodeExpression ToThrow {
- get {
- return toThrow;
- }
- set {
- toThrow = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTryCatchFinallyStatement Class implementation
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 CodeTryCatchFinallyStatement
- : CodeStatement
- {
- private CodeStatementCollection tryStatements, finallyStatements;
- private CodeCatchClauseCollection catchClauses;
-
- //
- // Constructors
- //
- public CodeTryCatchFinallyStatement ()
- {
- }
-
- public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
- CodeCatchClause [] catchClauses)
- {
- TryStatements.AddRange( tryStatements );
- CatchClauses.AddRange( catchClauses );
- }
-
- public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
- CodeCatchClause [] catchClauses,
- CodeStatement [] finallyStatements)
- {
- TryStatements.AddRange( tryStatements );
- CatchClauses.AddRange( catchClauses );
- FinallyStatements.AddRange( finallyStatements );
- }
-
- //
- // Properties
- //
- public CodeStatementCollection FinallyStatements{
- get {
- if ( finallyStatements == null )
- finallyStatements = new CodeStatementCollection();
- return finallyStatements;
- }
- }
-
- public CodeStatementCollection TryStatements {
- get {
- if ( tryStatements == null )
- tryStatements = new CodeStatementCollection();
- return tryStatements;
- }
- }
- public CodeCatchClauseCollection CatchClauses {
- get {
- if ( catchClauses == null )
- catchClauses = new CodeCatchClauseCollection();
- return catchClauses;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeConstructor 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 CodeTypeConstructor
- : CodeMemberMethod
- {
- public CodeTypeConstructor ()
- {
- this.Name = ".cctor";
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeDeclaration Class implementation
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-// Marek Safar (marek.safar@seznam.cz)
-//
-// (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;
-using System.Reflection;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeTypeDeclaration
- : CodeTypeMember
- {
- private CodeTypeReferenceCollection baseTypes;
- private CodeTypeMemberCollection members;
- private TypeAttributes attributes = TypeAttributes.Public;
- private bool isEnum;
- private bool isStruct;
- //int populated;
-
- bool isPartial;
- CodeTypeParameterCollection typeParameters;
-
- //
- // Constructors
- //
-
- public CodeTypeDeclaration()
- {
- }
-
- public CodeTypeDeclaration( string name )
- {
- this.Name = name;
- }
-
- /* by default, it's a class */
-
- //
- // Properties
- //
- public CodeTypeReferenceCollection BaseTypes {
- get {
- if ( baseTypes == null ) {
- baseTypes = new CodeTypeReferenceCollection();
- if ( PopulateBaseTypes != null )
- PopulateBaseTypes( this, EventArgs.Empty );
- }
- return baseTypes;
- }
- }
-
- public bool IsClass {
- get {
- if ( (attributes & TypeAttributes.Interface) != 0 )
- return false;
- if ( isEnum )
- return false;
- if ( isStruct )
- return false;
- return true;
- }
- set {
- if ( value ) {
- attributes &= ~TypeAttributes.Interface;
- isEnum = false;
- isStruct = false;
- }
- }
- }
-
- public bool IsEnum {
- get {
- return isEnum;
- }
- set {
- if ( value ) {
- attributes &= ~TypeAttributes.Interface;
- isEnum = true;
- isStruct = false;
- }
- }
- }
-
- public bool IsInterface {
- get {
- return (attributes & TypeAttributes.Interface) != 0;
- }
- set {
- if ( value ) {
- attributes |= TypeAttributes.Interface;
- isEnum = false;
- isStruct = false;
- }
- }
- }
-
- public bool IsStruct {
- get {
- return isStruct;
- }
- set {
- if ( value ) {
- attributes &= ~TypeAttributes.Interface;
- isEnum = false;
- isStruct = true;
- }
- }
- }
-
- public CodeTypeMemberCollection Members {
- get {
- if ( members == null ) {
- members = new CodeTypeMemberCollection();
- if ( PopulateMembers != null )
- PopulateMembers( this, EventArgs.Empty );
- }
- return members;
- }
- }
-
- public TypeAttributes TypeAttributes {
- get {
- return attributes;
- }
- set {
- attributes = value;
-#if FALSE
- /* MS does not seem to do this, so don't I */
- if ( (attributes & TypeAttributes.Interface) != 0 ) {
- isEnum = false;
- isStruct = false;
- }
-#endif
- }
- }
-
- public bool IsPartial {
- get {
- return isPartial;
- }
- set {
- isPartial = value;
- }
- }
-
- [ComVisible (false)]
- public CodeTypeParameterCollection TypeParameters {
- get {
- if (typeParameters == null)
- typeParameters = new CodeTypeParameterCollection ();
- return typeParameters;
- }
- }
-
- //
- // Events
- //
- public event EventHandler PopulateBaseTypes;
-
- public event EventHandler PopulateMembers;
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeDeclarationCollection 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;
-using System.Collections;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeTypeDeclarationCollection
- : CollectionBase
- {
- //
- // Constructors
- //
- public CodeTypeDeclarationCollection()
- {
- }
-
- public CodeTypeDeclarationCollection( CodeTypeDeclaration[] value )
- {
- AddRange( value );
- }
-
- public CodeTypeDeclarationCollection( CodeTypeDeclarationCollection value )
- {
- AddRange( value );
- }
-
- //
- // Properties
- //
- public CodeTypeDeclaration this[int index]
- {
- get {
- return (CodeTypeDeclaration)List[index];
- }
- set {
- List[index] = value;
- }
- }
-
- //
- // Methods
- //
- public int Add (CodeTypeDeclaration value)
- {
- return List.Add (value);
- }
-
- public void AddRange (CodeTypeDeclaration [] value)
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeTypeDeclarationCollection 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( CodeTypeDeclaration value )
- {
- return List.Contains( value );
- }
-
- public void CopyTo( CodeTypeDeclaration[] array, int index )
- {
- List.CopyTo( array, index );
- }
-
- public int IndexOf( CodeTypeDeclaration value )
- {
- return List.IndexOf( value );
- }
-
- public void Insert( int index, CodeTypeDeclaration value )
- {
- List.Insert( index, value );
- }
-
- public void Remove( CodeTypeDeclaration value )
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeDelegate 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 CodeTypeDelegate : CodeTypeDeclaration
- {
- private CodeParameterDeclarationExpressionCollection parameters;
- private CodeTypeReference returnType;
-
- //
- // Constructors
- //
- public CodeTypeDelegate()
- {
- base.BaseTypes.Add (new CodeTypeReference ("System.Delegate"));
- }
-
- public CodeTypeDelegate(string name) : this()
- {
- this.Name = name;
- }
-
- //
- // Properties
- //
- public CodeParameterDeclarationExpressionCollection Parameters {
- get {
- if (parameters == null) {
- parameters = new CodeParameterDeclarationExpressionCollection ();
- }
- return parameters;
- }
- }
-
- public CodeTypeReference ReturnType {
- get {
- if (returnType == null) {
- this.returnType = new CodeTypeReference(string.Empty);
- }
- return returnType;
- }
- set {
- returnType = value;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeMember Class implementation
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-// Marek Safar (marek.safar@seznam.cz)
-//
-// (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 CodeTypeMember
- : CodeObject
- {
- private string name;
- private MemberAttributes attributes;
- private CodeCommentStatementCollection comments;
- private CodeAttributeDeclarationCollection customAttributes;
- private CodeLinePragma linePragma;
- CodeDirectiveCollection endDirectives;
- CodeDirectiveCollection startDirectives;
-
- //
- // Constructors
- //
- public CodeTypeMember()
- {
- attributes = (MemberAttributes.Private | MemberAttributes.Final);
- }
-
- //
- // Properties
- //
- public MemberAttributes Attributes {
- get {
- return attributes;
- }
- set {
- attributes = value;
- }
- }
-
- public CodeCommentStatementCollection Comments {
- get {
- if ( comments == null )
- comments = new CodeCommentStatementCollection();
- return comments;
- }
- }
-
-
- public CodeAttributeDeclarationCollection CustomAttributes {
- get {
- if ( customAttributes == null )
- customAttributes = new CodeAttributeDeclarationCollection();
- return customAttributes;
- }
- set {
- customAttributes = value;
- }
- }
-
- public CodeLinePragma LinePragma {
- get {
- return linePragma;
- }
- set {
- linePragma = value;
- }
- }
-
- public string Name {
- get {
- if (name == null)
- return String.Empty;
- return name;
- }
- set {
- name = value;
- }
- }
-
- public CodeDirectiveCollection EndDirectives {
- get {
- if (endDirectives == null)
- endDirectives = new CodeDirectiveCollection ();
- return endDirectives;
- }
- }
-
- public CodeDirectiveCollection StartDirectives {
- get {
- if (startDirectives == null)
- startDirectives = new CodeDirectiveCollection ();
- return startDirectives;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeMemberCollection 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;
-using System.Collections;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeTypeMemberCollection
- : CollectionBase
- {
- //
- // Constructors
- //
- public CodeTypeMemberCollection()
- {
- }
-
- public CodeTypeMemberCollection( CodeTypeMember[] value )
- {
- AddRange( value );
- }
-
- public CodeTypeMemberCollection( CodeTypeMemberCollection value )
- {
- AddRange( value );
- }
-
- //
- // Properties
- //
- public CodeTypeMember this[int index]
- {
- get {
- return (CodeTypeMember)List[index];
- }
- set {
- List[index] = value;
- }
- }
-
- //
- // Methods
- //
- public int Add (CodeTypeMember value)
- {
- return List.Add( value );
- }
-
- public void AddRange (CodeTypeMember [] value )
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeTypeMemberCollection 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( CodeTypeMember value )
- {
- return List.Contains( value );
- }
-
- public void CopyTo( CodeTypeMember[] array, int index )
- {
- List.CopyTo( array, index );
- }
-
- public int IndexOf( CodeTypeMember value )
- {
- return List.IndexOf( value );
- }
-
- public void Insert( int index, CodeTypeMember value )
- {
- List.Insert( index, value );
- }
-
- public void Remove( CodeTypeMember value )
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeOfExpression 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 CodeTypeOfExpression
- : CodeExpression
- {
- private CodeTypeReference type;
-
- //
- // Constructors
- //
- public CodeTypeOfExpression ()
- {
- }
-
- public CodeTypeOfExpression (CodeTypeReference type)
- {
- this.type = type;
- }
-
- public CodeTypeOfExpression (string type)
- {
- this.type = new CodeTypeReference( type );
- }
-
- public CodeTypeOfExpression (Type type)
- {
- this.type = new CodeTypeReference( type );
- }
-
- //
- // Properties
- //
- public CodeTypeReference Type {
- get {
- if (type == null) {
- type = new CodeTypeReference (string.Empty);
- }
- return type;
- }
- set {
- type = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeParameter 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.Runtime.InteropServices;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ComVisible (true), ClassInterface (ClassInterfaceType.AutoDispatch)]
- public class CodeTypeParameter: CodeObject
- {
- CodeTypeReferenceCollection constraints;
- CodeAttributeDeclarationCollection customAttributes;
- bool hasConstructorConstraint;
- string name;
-
- public CodeTypeParameter () {}
-
- public CodeTypeParameter (string name)
- {
- this.name = name;
- }
-
- public CodeTypeReferenceCollection Constraints {
- get {
- if (constraints == null)
- constraints = new CodeTypeReferenceCollection ();
- return constraints;
- }
- }
-
- public CodeAttributeDeclarationCollection CustomAttributes {
- get {
- if (customAttributes == null)
- customAttributes = new CodeAttributeDeclarationCollection ();
- return customAttributes;
- }
- }
-
- public bool HasConstructorConstraint {
- get {
- return hasConstructorConstraint;
- }
- set {
- hasConstructorConstraint = value;
- }
- }
-
- public string Name {
- get {
- if (name == null) {
- return string.Empty;
- }
- return name;
- }
- set {
- name = value;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeParameterCollection class
-//
-// Authors:
-// Marek Safar (marek.safar@seznam.cz)
-// Sebastien Pouliot <sebastien@ximian.com>
-//
-// (C) 2004 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]
- [ComVisible (true), ClassInterface (ClassInterfaceType.AutoDispatch)]
- public class CodeTypeParameterCollection: System.Collections.CollectionBase
- {
- public CodeTypeParameterCollection ()
- {
- }
-
- public CodeTypeParameterCollection (CodeTypeParameter[] value)
- {
- AddRange (value);
- }
-
- public CodeTypeParameterCollection (CodeTypeParameterCollection value)
- {
- AddRange (value);
- }
-
- public int Add (CodeTypeParameter value)
- {
- return List.Add (value);
- }
-
- public void Add (string value)
- {
- List.Add (new CodeTypeParameter (value));
- }
-
- public void AddRange (CodeTypeParameter[] value)
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeTypeParameterCollection 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 (CodeTypeParameter value)
- {
- return List.Contains (value);
- }
-
- public void CopyTo (CodeTypeParameter[] array, int index)
- {
- List.CopyTo (array, index);
- }
-
- public int IndexOf (CodeTypeParameter value)
- {
- return List.IndexOf (value);
- }
-
- public void Insert (int index, CodeTypeParameter value)
- {
- List.Insert (index, value);
- }
-
- public void Remove (CodeTypeParameter value)
- {
- List.Remove (value);
- }
-
- public CodeTypeParameter this [int index]
- {
- get {
- return ((CodeTypeParameter) List [index]);
- }
- set {
- List[index] = value;
- }
- }
- }
-}
-
+++ /dev/null
-//
-// System.CodeDom CodeTypeReferenceExpression Class implementation
-//
-// Author:
-// Daniel Stodden (stodden@in.tum.de)
-// Marek Safar (marek.safar@seznam.cz)
-//
-// (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;
-using System.Text;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeTypeReference : CodeObject
- {
- private string baseType;
- private CodeTypeReference arrayElementType;
- private int arrayRank;
- private bool isInterface;
- //bool needsFixup;
-
- CodeTypeReferenceCollection typeArguments;
- CodeTypeReferenceOptions referenceOptions;
-
- //
- // Constructors
- //
-
- public CodeTypeReference ()
- {
- }
-
- [MonoTODO("We should parse basetype from right to left in 2.0 profile.")]
- public CodeTypeReference (string baseType)
- {
- Parse (baseType);
- }
-
- [MonoTODO("We should parse basetype from right to left in 2.0 profile.")]
- public CodeTypeReference (Type baseType)
- {
- if (baseType == null) {
- throw new ArgumentNullException ("baseType");
- }
-
- if (baseType.IsGenericParameter) {
- this.baseType = baseType.Name;
- this.referenceOptions = CodeTypeReferenceOptions.GenericTypeParameter;
- }
- else if (baseType.IsGenericTypeDefinition)
- this.baseType = baseType.FullName;
- else if (baseType.IsGenericType) {
- this.baseType = baseType.GetGenericTypeDefinition ().FullName;
- foreach (Type arg in baseType.GetGenericArguments ()) {
- if (arg.IsGenericParameter)
- TypeArguments.Add (new CodeTypeReference (new CodeTypeParameter (arg.Name)));
- else
- TypeArguments.Add (new CodeTypeReference (arg));
- }
- }
- else if (baseType.IsArray) {
- this.arrayRank = baseType.GetArrayRank ();
- this.arrayElementType = new CodeTypeReference (baseType.GetElementType ());
- this.baseType = arrayElementType.BaseType;
- } else {
- Parse (baseType.FullName);
- }
- this.isInterface = baseType.IsInterface;
- }
-
- public CodeTypeReference( CodeTypeReference arrayElementType, int arrayRank )
- {
- this.baseType = null;
- this.arrayRank = arrayRank;
- this.arrayElementType = arrayElementType;
- }
-
- [MonoTODO("We should parse basetype from right to left in 2.0 profile.")]
- public CodeTypeReference( string baseType, int arrayRank )
- : this (new CodeTypeReference (baseType), arrayRank)
- {
- }
-
- public CodeTypeReference( CodeTypeParameter typeParameter ) :
- this (typeParameter.Name)
- {
- this.referenceOptions = CodeTypeReferenceOptions.GenericTypeParameter;
- }
-
- public CodeTypeReference( string typeName, CodeTypeReferenceOptions referenceOptions ) :
- this (typeName)
- {
- this.referenceOptions = referenceOptions;
- }
-
- public CodeTypeReference( Type type, CodeTypeReferenceOptions referenceOptions ) :
- this (type)
- {
- this.referenceOptions = referenceOptions;
- }
-
- public CodeTypeReference( string typeName, params CodeTypeReference[] typeArguments ) :
- this (typeName)
- {
- TypeArguments.AddRange (typeArguments);
- if (this.baseType.IndexOf ('`') < 0)
- this.baseType += "`" + TypeArguments.Count;
- }
-
- //
- // Properties
- //
-
- public CodeTypeReference ArrayElementType
- {
- get {
- return arrayElementType;
- }
- set {
- arrayElementType = value;
- }
- }
-
- public int ArrayRank {
- get {
- return arrayRank;
- }
- set {
- arrayRank = value;
- }
- }
-
- public string BaseType {
- get {
- if (arrayElementType != null && arrayRank > 0) {
- return arrayElementType.BaseType;
- }
-
- if (baseType == null)
- return String.Empty;
-
- return baseType;
- }
- set {
- baseType = value;
- }
- }
-
- internal bool IsInterface {
- get { return isInterface; }
- }
-
- private void Parse (string baseType)
- {
- if (baseType == null || baseType.Length == 0) {
- this.baseType = typeof (void).FullName;
- return;
- }
-
- int array_start = baseType.IndexOf ('[');
- if (array_start == -1) {
- this.baseType = baseType;
- return;
- }
-
- int array_end = baseType.LastIndexOf (']');
- if (array_end < array_start) {
- this.baseType = baseType;
- return;
- }
-
- int lastAngle = baseType.LastIndexOf ('>');
- if (lastAngle != -1 && lastAngle > array_end) {
- this.baseType = baseType;
- return;
- }
-
- string[] args = baseType.Substring (array_start + 1, array_end - array_start - 1).Split (',');
-
- if ((array_end - array_start) != args.Length) {
- this.baseType = baseType.Substring (0, array_start);
- int escapeCount = 0;
- int scanPos = array_start;
- StringBuilder tb = new StringBuilder();
- while (scanPos < baseType.Length) {
- char currentChar = baseType[scanPos];
-
- switch (currentChar) {
- case '[':
- if (escapeCount > 1 && tb.Length > 0) {
- tb.Append (currentChar);
- }
- escapeCount++;
- break;
- case ']':
- escapeCount--;
- if (escapeCount > 1 && tb.Length > 0) {
- tb.Append (currentChar);
- }
-
- if (tb.Length != 0 && (escapeCount % 2) == 0) {
- TypeArguments.Add (tb.ToString ());
- tb.Length = 0;
- }
- break;
- case ',':
- if (escapeCount > 1) {
- // skip anything after the type name until we
- // reach the next separator
- while (scanPos + 1 < baseType.Length) {
- if (baseType[scanPos + 1] == ']') {
- break;
- }
- scanPos++;
- }
- } else if (tb.Length > 0) {
- CodeTypeReference typeArg = new CodeTypeReference (tb.ToString ());
- TypeArguments.Add (typeArg);
- tb.Length = 0;
- }
- break;
- default:
- tb.Append (currentChar);
- break;
- }
- scanPos++;
- }
- } else {
- arrayElementType = new CodeTypeReference (baseType.Substring (0, array_start));
- arrayRank = args.Length;
- }
- }
-
- [ComVisible (false)]
- public CodeTypeReferenceOptions Options {
- get {
- return referenceOptions;
- }
- set {
- referenceOptions = value;
- }
- }
-
- [ComVisible (false)]
- public CodeTypeReferenceCollection TypeArguments {
- get {
- if (typeArguments == null)
- typeArguments = new CodeTypeReferenceCollection ();
- return typeArguments;
- }
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeReferenceCollection 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;
-using System.Collections;
-
-namespace System.CodeDom
-{
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeTypeReferenceCollection
- : CollectionBase
- {
- //
- // Constructors
- //
- public CodeTypeReferenceCollection()
- {
- }
-
- public CodeTypeReferenceCollection( CodeTypeReference[] value )
- {
- AddRange( value );
- }
-
- public CodeTypeReferenceCollection( CodeTypeReferenceCollection value )
- {
- AddRange( value );
- }
-
- //
- // Properties
- //
- public CodeTypeReference this[int index]
- {
- get {
- return (CodeTypeReference)List[index];
- }
- set {
- List[index] = value;
- }
- }
-
- //
- // Methods
- //
- public int Add (CodeTypeReference value)
- {
- return List.Add( value );
- }
-
- public void Add (string value)
- {
- Add (new CodeTypeReference (value));
- }
-
- public void Add (Type value)
- {
- Add (new CodeTypeReference (value));
- }
-
- public void AddRange (CodeTypeReference [] value )
- {
- if (value == null) {
- throw new ArgumentNullException ("value");
- }
-
- for (int i = 0; i < value.Length; i++) {
- Add (value[i]);
- }
- }
-
- public void AddRange (CodeTypeReferenceCollection 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( CodeTypeReference value )
- {
- return List.Contains( value );
- }
-
- public void CopyTo( CodeTypeReference[] array, int index )
- {
- List.CopyTo( array, index );
- }
-
- public int IndexOf( CodeTypeReference value )
- {
- return List.IndexOf( value );
- }
-
- public void Insert( int index, CodeTypeReference value )
- {
- List.Insert( index, value );
- }
-
- public void Remove( CodeTypeReference value )
- {
- List.Remove (value);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeReferenceExpression 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 CodeTypeReferenceExpression
- : CodeExpression
- {
- private CodeTypeReference type;
-
- //
- // Constructors
- //
- public CodeTypeReferenceExpression ()
- {
- }
-
- public CodeTypeReferenceExpression (CodeTypeReference type)
- {
- this.type = type;
- }
-
- public CodeTypeReferenceExpression (string type)
- {
- this.type = new CodeTypeReference( type );
- }
-
- public CodeTypeReferenceExpression (Type type)
- {
- this.type = new CodeTypeReference( type );
- }
-
- //
- // Properties
- //
- public CodeTypeReference Type {
- get {
- if (type == null) {
- return new CodeTypeReference (string.Empty);
- }
- return type;
- }
- set {
- type = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeTypeReferenceOptions enum
-//
-// 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.Runtime.InteropServices;
-
-namespace System.CodeDom
-{
- [Flags]
- [Serializable]
- [ComVisible (true)]
- public enum CodeTypeReferenceOptions
- {
- GlobalReference = 1,
- GenericTypeParameter = 1 << 1
- }
-}
-
+++ /dev/null
-//
-// System.CodeDom CodeVariableDeclarationStatement 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 CodeVariableDeclarationStatement
- : CodeStatement
- {
- private CodeExpression initExpression;
- private CodeTypeReference type;
- private string name;
-
- //
- // Constructors
- //
- public CodeVariableDeclarationStatement ()
- {
- }
-
- public CodeVariableDeclarationStatement( CodeTypeReference type, string name )
- {
- this.type = type;
- this.name = name;
- }
-
- public CodeVariableDeclarationStatement( string type, string name )
- {
- this.type = new CodeTypeReference( type );
- this.name = name;
- }
-
- public CodeVariableDeclarationStatement( Type type, string name )
- {
- this.type = new CodeTypeReference( type );
- this.name = name;
- }
-
- public CodeVariableDeclarationStatement( CodeTypeReference type,
- string name,
- CodeExpression initExpression )
- {
- this.type = type;
- this.name = name;
- this.initExpression = initExpression;
- }
-
- public CodeVariableDeclarationStatement( string type,
- string name,
- CodeExpression initExpression )
- {
- this.type = new CodeTypeReference( type );
- this.name = name;
- this.initExpression = initExpression;
- }
-
- public CodeVariableDeclarationStatement( Type type,
- string name,
- CodeExpression initExpression )
- {
- this.type = new CodeTypeReference( type );
- this.name = name;
- this.initExpression = initExpression;
- }
-
- //
- // Properties
- //
- public CodeExpression InitExpression {
- get {
- return initExpression;
- }
- set {
- initExpression = value;
- }
- }
-
- public string Name {
- get {
- if (name == null) {
- return string.Empty;
- }
- return name;
- }
- set {
- name = value;
- }
- }
-
- public CodeTypeReference Type {
- get {
- if (type == null) {
- type = new CodeTypeReference (string.Empty);
- }
- return type;
- }
- set {
- type = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom CodeVariableReferenceExpression Class implementation
-//
-// Author:
-// 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 CodeVariableReferenceExpression
- : CodeExpression
- {
- private string variableName;
-
- //
- // Constructors
- //
- public CodeVariableReferenceExpression()
- {
- }
-
- public CodeVariableReferenceExpression( string variableName )
- {
- this.variableName = variableName;
- }
-
- //
- // Properties
- //
- public string VariableName {
- get {
- if (variableName == null) {
- return string.Empty;
- }
- return variableName;
- }
- set {
- variableName = value;
- }
- }
-
- //
- // ICodeDomVisitor method
- //
- internal override void Accept (ICodeDomVisitor visitor)
- {
- visitor.Visit (this);
- }
- }
-}
+++ /dev/null
-//
-// System.CodeDom FieldDirection 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 FieldDirection {
- In,
- Out,
- Ref
- }
-}
+++ /dev/null
-//
-// System.CodeDom.ICodeDomVisitor.cs
-//
-// Author:
-// Juraj Skripsky (js@hotfeet.ch)
-//
-// Copyright (C) 2008 HotFeet GmbH (http://www.hotfeet.ch)
-//
-// 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.
-//
-
-namespace System.CodeDom {
- internal interface ICodeDomVisitor {
- // CodeExpression
- void Visit (CodeArgumentReferenceExpression o);
- void Visit (CodeArrayCreateExpression o);
- void Visit (CodeArrayIndexerExpression o);
- void Visit (CodeBaseReferenceExpression o);
- void Visit (CodeBinaryOperatorExpression o);
- void Visit (CodeCastExpression o);
- void Visit (CodeDefaultValueExpression o);
- void Visit (CodeDelegateCreateExpression o);
- void Visit (CodeDelegateInvokeExpression o);
- void Visit (CodeDirectionExpression o);
- void Visit (CodeEventReferenceExpression o);
- void Visit (CodeFieldReferenceExpression o);
- void Visit (CodeIndexerExpression o);
- void Visit (CodeMethodInvokeExpression o);
- void Visit (CodeMethodReferenceExpression o);
- void Visit (CodeObjectCreateExpression o);
- void Visit (CodeParameterDeclarationExpression o);
- void Visit (CodePrimitiveExpression o);
- void Visit (CodePropertyReferenceExpression o);
- void Visit (CodePropertySetValueReferenceExpression o);
- void Visit (CodeSnippetExpression o);
- void Visit (CodeThisReferenceExpression o);
- void Visit (CodeTypeOfExpression o);
- void Visit (CodeTypeReferenceExpression o);
- void Visit (CodeVariableReferenceExpression o);
-
- // CodeStatement
- void Visit (CodeAssignStatement o);
- void Visit (CodeAttachEventStatement o);
- void Visit (CodeCommentStatement o);
- void Visit (CodeConditionStatement o);
- void Visit (CodeExpressionStatement o);
- void Visit (CodeGotoStatement o);
- void Visit (CodeIterationStatement o);
- void Visit (CodeLabeledStatement o);
- void Visit (CodeMethodReturnStatement o);
- void Visit (CodeRemoveEventStatement o);
- void Visit (CodeThrowExceptionStatement o);
- void Visit (CodeTryCatchFinallyStatement o);
- void Visit (CodeVariableDeclarationStatement o);
-
- // CodeTypeMember
- void Visit (CodeConstructor o);
- void Visit (CodeEntryPointMethod o);
- void Visit (CodeMemberEvent o);
- void Visit (CodeMemberField o);
- void Visit (CodeMemberMethod o);
- void Visit (CodeMemberProperty o);
- void Visit (CodeSnippetTypeMember o);
- void Visit (CodeTypeConstructor o);
- }
-}
+++ /dev/null
-//
-// System.CodeDom MemberAttributes Enum implementation
-//
-// Author:
-// Sean MacIsaac (macisaac@ximian.com)
-// Daniel Stodden (stodden@in.tum.de)
-//
-// (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 MemberAttributes {
- Abstract = 0x00000001,
- Final = 0x00000002,
- Static = 0x00000003,
- Override = 0x00000004,
- Const = 0x00000005,
- ScopeMask = 0x0000000F,
-
- New = 0x00000010,
- VTableMask = 0x000000F0,
-
- Overloaded = 0x00000100,
-
- Assembly = 0x00001000, // internal
- FamilyAndAssembly = 0x00002000, // protected AND internal
- Family = 0x00003000, // protected
- FamilyOrAssembly = 0x00004000, // protected internal
- Private = 0x00005000, // private
- Public = 0x00006000, // public
- AccessMask = 0x0000F000
- }
-}
Microsoft.Win32/UserPreferenceChangingEventArgs.cs
Microsoft.Win32/UserPreferenceChangingEventHandler.cs
Mono.Http/NtlmClient.cs
-System.CodeDom/ICodeDomVisitor.cs
System.CodeDom.Compiler/CodeCompiler.cs
System.CodeDom.Compiler/CodeDomConfigurationHandler.cs
System.CodeDom.Compiler/CodeDomProvider.cs