From 7f0542b133e5f1eee15f337e0263c14406091a7e Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Wed, 27 Feb 2002 09:38:21 +0000 Subject: [PATCH 1/2] Importing NUnit 1.11. svn path=/branches/NUNIT/mcs/; revision=2713 --- mcs/nunit/src/NUnitConsole/AssemblyInfo.cs | 8 +- .../src/NUnitConsole/NUnitConsoleMain.cs | 65 +- mcs/nunit/src/NUnitConsole/TestRunner.cs | 481 ++++++++------- mcs/nunit/src/NUnitCore/ActiveTestSuite.cs | 188 +++--- mcs/nunit/src/NUnitCore/AssemblyInfo.cs | 6 +- mcs/nunit/src/NUnitCore/Assertion.cs | 380 ++++++------ .../src/NUnitCore/AssertionFailedError.cs | 38 +- mcs/nunit/src/NUnitCore/BaseTestRunner.cs | 584 ++++++++++-------- .../src/NUnitCore/ClassPathTestCollector.cs | 32 +- mcs/nunit/src/NUnitCore/ExceptionTestCase.cs | 98 +-- mcs/nunit/src/NUnitCore/IProtectable.cs | 23 +- mcs/nunit/src/NUnitCore/ITest.cs | 30 +- mcs/nunit/src/NUnitCore/ITestCollector.cs | 29 +- mcs/nunit/src/NUnitCore/ITestListener.cs | 135 ++-- mcs/nunit/src/NUnitCore/ITestSuiteLoader.cs | 30 +- .../src/NUnitCore/LoadingTestCollector.cs | 113 ++-- mcs/nunit/src/NUnitCore/NUnitException.cs | 71 ++- mcs/nunit/src/NUnitCore/ReflectionUtils.cs | 154 +++-- .../src/NUnitCore/ReloadingTestSuiteLoader.cs | 55 +- .../src/NUnitCore/StandardTestSuiteLoader.cs | 80 +-- mcs/nunit/src/NUnitCore/TestCase.cs | 421 +++++++------ .../src/NUnitCore/TestCaseClassLoader.cs | 58 +- mcs/nunit/src/NUnitCore/TestDecorator.cs | 125 ++-- mcs/nunit/src/NUnitCore/TestFailure.cs | 87 +-- mcs/nunit/src/NUnitCore/TestResult.cs | 420 +++++++------ mcs/nunit/src/NUnitCore/TestSetup.cs | 122 ++-- mcs/nunit/src/NUnitCore/TestSuite.cs | 528 +++++++++------- mcs/nunit/src/NUnitCore/Version.cs | 33 +- 28 files changed, 2373 insertions(+), 2021 deletions(-) diff --git a/mcs/nunit/src/NUnitConsole/AssemblyInfo.cs b/mcs/nunit/src/NUnitConsole/AssemblyInfo.cs index 066fd632d58d7..be984e5c03962 100644 --- a/mcs/nunit/src/NUnitConsole/AssemblyInfo.cs +++ b/mcs/nunit/src/NUnitConsole/AssemblyInfo.cs @@ -30,7 +30,7 @@ // You can specify all the value or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly:AssemblyVersion("1.10.*")] +[assembly:AssemblyVersion("1.11.*")] // // In order to sign your assembly you must specify a key to use. Refer to the @@ -50,6 +50,6 @@ // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile(@"..\..\..\..\NUnit.key")] -//[assembly: AssemblyKeyName("")] +[assembly: AssemblyDelaySign(false)] +[assembly: AssemblyKeyFile(@"..\..\..\..\NUnit.key")] +[assembly: AssemblyKeyName("")] diff --git a/mcs/nunit/src/NUnitConsole/NUnitConsoleMain.cs b/mcs/nunit/src/NUnitConsole/NUnitConsoleMain.cs index 179742eb10b71..cf6091319d3dc 100644 --- a/mcs/nunit/src/NUnitConsole/NUnitConsoleMain.cs +++ b/mcs/nunit/src/NUnitConsole/NUnitConsoleMain.cs @@ -1,30 +1,35 @@ -namespace NUnit { - - using System; - using System.Collections; - - using NUnit.Framework; - using NUnit.Runner; - using NUnit.TextUI; - /// - /// - /// - public class Top { - /// - /// - /// - /// - public static void Main(string[] args) { - TestRunner aTestRunner = new NUnit.TextUI.TestRunner(); - try { - TestResult r = aTestRunner.Start(args); - if (!r.WasSuccessful) - Environment.Exit(1); - Environment.Exit(0); - } catch(Exception e) { - Console.Error.WriteLine(e.Message); - Environment.Exit(2); - } - } - } -} +namespace NUnit +{ + using System; + using System.Collections; + using NUnit.Framework; + using NUnit.Runner; + using NUnit.TextUI; + + /// + /// + /// + public class Top + { + /// + /// + /// + /// + public static void Main(string[] args) + { + TestRunner aTestRunner = new NUnit.TextUI.TestRunner(); + try + { + TestResult r = aTestRunner.Start(args); + if (!r.WasSuccessful) + Environment.Exit(1); + Environment.Exit(0); + } + catch(Exception e) + { + Console.Error.WriteLine(e.Message); + Environment.Exit(2); + } + } + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitConsole/TestRunner.cs b/mcs/nunit/src/NUnitConsole/TestRunner.cs index d773b0b31b385..77493e48866d2 100644 --- a/mcs/nunit/src/NUnitConsole/TestRunner.cs +++ b/mcs/nunit/src/NUnitConsole/TestRunner.cs @@ -1,238 +1,277 @@ -namespace NUnit.TextUI { +namespace NUnit.TextUI +{ + using System; + using System.IO; + using System.Reflection; + using NUnit.Framework; + using NUnit.Runner; - using System; - using System.IO; - using System.Reflection; + /// A command line based tool to run tests. + /// + /// C:\NUnitConsole.exe /t [/wait] TestCaseClass + /// + /// TestRunner expects the name of a TestCase class as argument. + /// If this class defines a static Suite property it + /// will be invoked and the returned test is run. Otherwise all + /// the methods starting with "Test" having no arguments are run. + /// + /// When the wait command line argument is given TestRunner + /// waits until the users types RETURN. + /// + /// TestRunner prints a trace as the tests are executed followed by a + /// summary at the end. + public class TestRunner : BaseTestRunner + { + int fColumn = 0; + TextWriter fWriter = Console.Out; - using NUnit.Framework; - using NUnit.Runner; + /// + /// Constructs a TestRunner. + /// + public TestRunner() {} - /// A command line based tool to run tests. - /// - /// C:\NUnitConsole.exe /t [/wait] TestCaseClass - /// - /// TestRunner expects the name of a TestCase class as argument. - /// If this class defines a static Suite property it - /// will be invoked and the returned test is run. Otherwise all - /// the methods starting with "Test" having no arguments are run. - /// - /// When the wait command line argument is given TestRunner - /// waits until the users types RETURN. - /// - /// TestRunner prints a trace as the tests are executed followed by a - /// summary at the end. - public class TestRunner: BaseTestRunner { - int fColumn = 0; - TextWriter fWriter = Console.Out; + /// + /// Constructs a TestRunner using the given stream for all the output + /// + public TestRunner(TextWriter writer) : this() + { + if (writer != null) + { + fWriter= writer; + } + else + { + throw new ArgumentNullException("writer"); + } + } + /// + /// + /// + /// + /// + public override void AddError(ITest test, Exception t) + { + lock(this) + this.Writer.Write("E"); + } + /// + /// + /// + /// + /// + public override void AddFailure(ITest test, AssertionFailedError t) + { + lock (this) + this.Writer.Write("F"); + } - /// - /// Constructs a TestRunner. - /// - public TestRunner() { - } + /// Creates the TestResult to be used for the test run. + protected TestResult CreateTestResult() + { + return new TestResult(); + } + /// + /// + /// + /// + /// + /// + protected TestResult DoRun(ITest suite, bool wait) + { + TestResult result= CreateTestResult(); + result.AddListener(this); + long startTime= System.DateTime.Now.Ticks; + suite.Run(result); + long endTime= System.DateTime.Now.Ticks; + long runTime= (endTime-startTime) / 10000; + Writer.WriteLine(); + Writer.WriteLine("Time: "+ElapsedTimeAsString(runTime)); + Print(result); - /// - /// Constructs a TestRunner using the given stream for all the output - /// - public TestRunner(TextWriter writer) : this() { - if (writer == null) - throw new ArgumentException("Writer can't be null"); - fWriter= writer; - } -/// -/// -/// -/// -/// - public override void AddError(ITest test, Exception t) { - lock(this) - Writer.Write("E"); - } -/// -/// -/// -/// -/// - public override void AddFailure(ITest test, AssertionFailedError t) { - lock (this) - Writer.Write("F"); - } - - /// Creates the TestResult to be used for the test run. - protected TestResult CreateTestResult() { - return new TestResult(); - } -/// -/// -/// -/// -/// -/// - protected TestResult DoRun(ITest suite, bool wait) { - TestResult result= CreateTestResult(); - result.AddListener(this); - long startTime= System.DateTime.Now.Ticks; - suite.Run(result); - long endTime= System.DateTime.Now.Ticks; - long runTime= (endTime-startTime) / 10000; - Writer.WriteLine(); - Writer.WriteLine("Time: "+ElapsedTimeAsString(runTime)); - Print(result); - - Writer.WriteLine(); + Writer.WriteLine(); - if (wait) { - Writer.WriteLine(" to continue"); - try { - Console.ReadLine(); - } - catch(Exception) { - } - } - return result; - } - /// - /// - /// - /// + if (wait) + { + Writer.WriteLine(" to continue"); + try + { + Console.ReadLine(); + } + catch(Exception) + { + } + } + return result; + } + /// + /// + /// + /// - public override void EndTest(ITest test) { - } -/// -/// -/// -/// - public override ITestSuiteLoader GetLoader() { - return new StandardTestSuiteLoader(); - } -/// -/// -/// -/// - public void Print(TestResult result) { - lock(this) { - PrintErrors(result); - PrintFailures(result); - PrintHeader(result); - } - } + public override void EndTest(ITest test) + { + } + /// + /// + /// + /// + public override ITestLoader GetLoader() + { + return new StandardLoader(); + } + /// + /// + /// + /// + public void Print(TestResult result) + { + lock(this) + { + PrintErrors(result); + PrintFailures(result); + PrintHeader(result); + } + } - /// Prints the errors to the standard output. - public void PrintErrors(TestResult result) { - if (result.ErrorCount != 0) { - if (result.ErrorCount == 1) - Writer.WriteLine("There was "+result.ErrorCount+" error:"); - else - Writer.WriteLine("There were "+result.ErrorCount+" errors:"); + /// Prints the errors to the standard output. + public void PrintErrors(TestResult result) + { + if (result.ErrorCount != 0) + { + if (result.ErrorCount == 1) + Writer.WriteLine("There was "+result.ErrorCount+" error:"); + else + Writer.WriteLine("There were "+result.ErrorCount+" errors:"); - int i= 1; - foreach (TestFailure failure in result.Errors) { - Writer.WriteLine(i++ + ") "+failure+"("+failure.ThrownException.GetType().ToString()+")"); - Writer.Write(GetFilteredTrace(failure.ThrownException)); - } - } - } + int i= 1; + foreach (TestFailure failure in result.Errors) + { + Writer.WriteLine(i++ + ") "+failure+"("+failure.ThrownException.GetType().ToString()+")"); + Writer.Write(GetFilteredTrace(failure.ThrownException)); + } + } + } - /// Prints failures to the standard output. - public void PrintFailures(TestResult result) { - if (result.FailureCount != 0) { - if (result.FailureCount == 1) - Writer.WriteLine("There was " + result.FailureCount + " failure:"); - else - Writer.WriteLine("There were " + result.FailureCount + " failures:"); - int i = 1; - foreach (TestFailure failure in result.Failures) { - Writer.Write(i++ + ") " + failure.FailedTest); - Exception t= failure.ThrownException; - if (t.Message != "") - Writer.WriteLine(" \"" + Truncate(t.Message) + "\""); - else { - Writer.WriteLine(); - Writer.Write(GetFilteredTrace(failure.ThrownException)); - } - } - } - } + /// Prints failures to the standard output. + public void PrintFailures(TestResult result) + { + if (result.FailureCount != 0) + { + if (result.FailureCount == 1) + Writer.WriteLine("There was " + result.FailureCount + " failure:"); + else + Writer.WriteLine("There were " + result.FailureCount + " failures:"); + int i = 1; + foreach (TestFailure failure in result.Failures) + { + Writer.Write(i++ + ") " + failure.FailedTest); + Exception t= failure.ThrownException; + if (t.Message != "") + Writer.WriteLine(" \"" + Truncate(t.Message) + "\""); + else + { + Writer.WriteLine(); + Writer.Write(GetFilteredTrace(failure.ThrownException)); + } + } + } + } - /// Prints the header of the report. - public void PrintHeader(TestResult result) { - if (result.WasSuccessful) { - Writer.WriteLine(); - Writer.Write("OK"); - Writer.WriteLine (" (" + result.RunCount + " tests)"); + /// Prints the header of the report. + public void PrintHeader(TestResult result) + { + if (result.WasSuccessful) + { + Writer.WriteLine(); + Writer.Write("OK"); + Writer.WriteLine (" (" + result.RunCount + " tests)"); - } else { - Writer.WriteLine(); - Writer.WriteLine("FAILURES!!!"); - Writer.WriteLine("Tests Run: "+result.RunCount+ - ", Failures: "+result.FailureCount+ - ", Errors: "+result.ErrorCount); - } - } + } + else + { + Writer.WriteLine(); + Writer.WriteLine("FAILURES!!!"); + Writer.WriteLine("Tests Run: "+result.RunCount+ + ", Failures: "+result.FailureCount+ + ", Errors: "+result.ErrorCount); + } + } - /// Runs a Suite extracted from a TestCase subclass. - static public void Run(Type testClass) { - Run(new TestSuite(testClass)); - } -/// -/// -/// -/// - static public void Run(ITest suite) { - TestRunner aTestRunner= new TestRunner(); - aTestRunner.DoRun(suite, false); - } + /// Runs a Suite extracted from a TestCase subclass. + static public void Run(Type testClass) + { + Run(new TestSuite(testClass)); + } + /// + /// + /// + /// + static public void Run(ITest suite) + { + TestRunner aTestRunner= new TestRunner(); + aTestRunner.DoRun(suite, false); + } - /// Runs a single test and waits until the user - /// types RETURN. - static public void RunAndWait(ITest suite) { - TestRunner aTestRunner= new TestRunner(); - aTestRunner.DoRun(suite, true); - } -/// -/// -/// -/// - protected override void RunFailed(string message) { - Console.Error.WriteLine(message); - Environment.ExitCode = 1; - throw new ApplicationException(message); - } + /// Runs a single test and waits until the user + /// types RETURN. + static public void RunAndWait(ITest suite) + { + TestRunner aTestRunner= new TestRunner(); + aTestRunner.DoRun(suite, true); + } + /// + /// + /// + /// + protected override void RunFailed(string message) + { + Console.Error.WriteLine(message); + Environment.ExitCode = 1; + throw new ApplicationException(message); + } - /// Starts a test run. Analyzes the command line arguments - /// and runs the given test suite. - public TestResult Start(string[] args) { - bool wait = false; - string testCase = ProcessArguments(args, ref wait); - if (testCase.Equals("")) - throw new ApplicationException("Usage: NUnitConsole.exe [/wait] testCaseName, where\n" - + "name is the name of the TestCase class"); + /// Starts a test run. Analyzes the command line arguments + /// and runs the given test suite. + public TestResult Start(string[] args) + { + bool wait = false; + string testCase = ProcessArguments(args, ref wait); + if (testCase.Equals("")) + throw new ApplicationException("Usage: NUnitConsole.exe [/wait] testCaseName, where\n" + + "name is the name of the TestCase class"); - try { - ITest suite = GetTest(testCase); - return DoRun(suite, wait); - } catch (Exception e) { - throw new ApplicationException("Could not create and run test suite.", e); - } - } -/// -/// -/// -/// - public override void StartTest(ITest test) { - lock (this) { - Writer.Write("."); - if (fColumn++ >= 40) { - Writer.WriteLine(); - fColumn = 0; - } - } - } -/// -/// -/// - protected TextWriter Writer { - get { return fWriter; } - } - } + try + { + ITest suite = GetTest(testCase); + return DoRun(suite, wait); + } + catch (Exception e) + { + throw new ApplicationException("Could not create and run test suite.", e); + } + } + /// + /// + /// + /// + public override void StartTest(ITest test) + { + lock (this) + { + Writer.Write("."); + if (fColumn++ >= 40) + { + Writer.WriteLine(); + fColumn = 0; + } + } + } + /// + /// + /// + protected TextWriter Writer + { + get { return fWriter; } + } + } } diff --git a/mcs/nunit/src/NUnitCore/ActiveTestSuite.cs b/mcs/nunit/src/NUnitCore/ActiveTestSuite.cs index 605911d233c7d..cdba3b0ed9b32 100644 --- a/mcs/nunit/src/NUnitCore/ActiveTestSuite.cs +++ b/mcs/nunit/src/NUnitCore/ActiveTestSuite.cs @@ -1,93 +1,113 @@ -namespace NUnit.Extensions { - - using System; - using System.Threading; +namespace NUnit.Extensions +{ + using System; + using System.Threading; + using NUnit.Framework; - using NUnit.Framework; - - /// A TestSuite for active Tests. It runs each - /// test in a separate thread and until all - /// threads have terminated. - /// -- Aarhus Radisson Scandinavian Center 11th floor - public class ActiveTestSuite: TestSuite { - private int fActiveTestDeathCount; /// - /// + /// A TestSuite for active Tests. It runs each test in a + /// separate thread and until all threads have terminated. + /// -- Aarhus Radisson Scandinavian Center 11th floor /// - /// - public override void Run(TestResult result) { - fActiveTestDeathCount= 0; - base.Run(result); - WaitUntilFinished(); - } - /// - /// - /// - public class ThreadLittleHelper { - private ITest fTest; - private TestResult fResult; - private ActiveTestSuite fSuite; + public class ActiveTestSuite: TestSuite + { + private int fActiveTestDeathCount; + /// + /// + /// + /// + public override void Run(TestResult result) + { + fActiveTestDeathCount= 0; + base.Run(result); + WaitUntilFinished(); + } /// /// /// /// /// - /// - public ThreadLittleHelper(ITest test, TestResult result, - ActiveTestSuite suite) { - fSuite = suite; - fTest = test; - fResult = result; - } - /// - /// - /// - public void Run() { - try { - fSuite.BaseRunTest(fTest, fResult); - } finally { - fSuite.RunFinished(fTest); - } - } - } - /// - /// - /// - /// - /// - public void BaseRunTest(ITest test, TestResult result) { - base.RunTest(test, result); - } - /// - /// - /// - /// - /// - public override void RunTest(ITest test, TestResult result) { - ThreadLittleHelper tlh = new ThreadLittleHelper(test, result, this); - Thread t = new Thread(new ThreadStart(tlh.Run)); - t.Start(); - } - void WaitUntilFinished() { - lock(this) { - while (fActiveTestDeathCount < TestCount) { - try { - Monitor.Wait(this); - } catch (ThreadInterruptedException) { - return; // TBD - } - } - } - } - /// - /// - /// - /// - public void RunFinished(ITest test) { - lock(this) { - fActiveTestDeathCount++; - Monitor.PulseAll(this); - } - } - } + public void BaseRunTest(ITest test, TestResult result) + { + base.RunTest(test, result); + } + /// + /// + /// + /// + /// + public override void RunTest(ITest test, TestResult result) + { + ThreadLittleHelper tlh = new ThreadLittleHelper(test, result, this); + Thread t = new Thread(new ThreadStart(tlh.Run)); + t.Start(); + } + /// + /// + /// + /// + public void RunFinished(ITest test) + { + lock(this) + { + fActiveTestDeathCount++; + Monitor.PulseAll(this); + } + } + private void WaitUntilFinished() + { + lock(this) + { + while (fActiveTestDeathCount < TestCount) + { + try + { + Monitor.Wait(this); + } + catch (ThreadInterruptedException) + { + return; // TBD + } + } + } + } + #region Nested Classes + /// + /// + /// + public class ThreadLittleHelper + { + private ITest fTest; + private TestResult fResult; + private ActiveTestSuite fSuite; + /// + /// + /// + /// + /// + /// + public ThreadLittleHelper(ITest test, TestResult result, + ActiveTestSuite suite) + { + fSuite = suite; + fTest = test; + fResult = result; + } + /// + /// + /// + public void Run() + { + try + { + fSuite.BaseRunTest(fTest, fResult); + } + finally + { + fSuite.RunFinished(fTest); + } + } + } + #endregion + } } diff --git a/mcs/nunit/src/NUnitCore/AssemblyInfo.cs b/mcs/nunit/src/NUnitCore/AssemblyInfo.cs index a07e95f973623..6f48173a95a24 100644 --- a/mcs/nunit/src/NUnitCore/AssemblyInfo.cs +++ b/mcs/nunit/src/NUnitCore/AssemblyInfo.cs @@ -30,7 +30,7 @@ // You can specify all the value or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly:AssemblyVersion("1.10.*")] +[assembly:AssemblyVersion("1.11.*")] // // In order to sign your assembly you must specify a key to use. Refer to the @@ -51,5 +51,5 @@ // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile(@"..\..\..\..\NUnit.key")] -[assembly: AssemblyKeyName("")] +[assembly: AssemblyKeyFile(@"..\..\..\..\NUnit.key")] +[assembly: AssemblyKeyName("")] \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/Assertion.cs b/mcs/nunit/src/NUnitCore/Assertion.cs index cc626daa47bbf..f9dbff904576f 100644 --- a/mcs/nunit/src/NUnitCore/Assertion.cs +++ b/mcs/nunit/src/NUnitCore/Assertion.cs @@ -1,204 +1,184 @@ -namespace NUnit.Framework { +namespace NUnit.Framework +{ + using System; - using System; + /// A set of Assert methods. + public class Assertion : MarshalByRefObject + { - /// A set of Assert methods. - public class Assertion { + /// + /// Protect constructor since it is a static only class + /// + protected Assertion():base(){} + /// + /// Asserts that a condition is true. If it isn't it throws + /// an . + /// + /// The message to display is the condition + /// is false + /// The evaluated condition + static public void Assert(string message, bool condition) + { + if (!condition) + Assertion.Fail(message); + } + + /// + /// Asserts that a condition is true. If it isn't it throws + /// an . + /// + /// The evaluated condition + static public void Assert(bool condition) + { + Assertion.Assert(string.Empty, condition); + } + /// + /// /// Asserts that two doubles are equal concerning a delta. If the + /// expected value is infinity then the delta value is ignored. + /// + /// The expected value + /// The actual value + /// The maximum acceptable difference between the + /// the expected and the actual + static public void AssertEquals(double expected, double actual, double delta) + { + Assertion.AssertEquals(string.Empty, expected, actual, delta); + } + /// + /// /// Asserts that two singles are equal concerning a delta. If the + /// expected value is infinity then the delta value is ignored. + /// + /// The expected value + /// The actual value + /// The maximum acceptable difference between the + /// the expected and the actual + static public void AssertEquals(float expected, float actual, float delta) + { + Assertion.AssertEquals(string.Empty, expected, actual, delta); + } - /// Protect constructor since it is a static only class - protected Assertion() { - } - - /// Asserts that a condition is true. If it isn't it throws - /// an . - static public void Assert(string message, bool condition) { - if (!condition) - Fail(message); - } - - /// Asserts that a condition is true. If it isn't it throws - /// an . - static public void Assert(bool condition) { - Assert(null, condition); - } - - /// Asserts that two booleans are equal. - static public void AssertEquals(bool expected, bool actual) { - AssertEquals(null, expected, actual); - } - - /// Asserts that two bytes are equal. - static public void AssertEquals(byte expected, byte actual) { - AssertEquals(null, expected, actual); - } + /// Asserts that two objects are equal. If they are not + /// an is thrown. + static public void AssertEquals(Object expected, Object actual) + { + Assertion.AssertEquals(string.Empty, expected, actual); + } + + /// Asserts that two doubles are equal concerning a delta. + /// If the expected value is infinity then the delta value is ignored. + /// + static public void AssertEquals(string message, double expected, + double actual, double delta) + { + // handle infinity specially since subtracting two infinite values gives + // NaN and the following test fails + if (double.IsInfinity(expected)) + { + if (!(expected == actual)) + Assertion.FailNotEquals(message, expected, actual); + } + else if (!(Math.Abs(expected-actual) <= delta)) + Assertion.FailNotEquals(message, expected, actual); + } + + /// Asserts that two floats are equal concerning a delta. + /// If the expected value is infinity then the delta value is ignored. + /// + static public void AssertEquals(string message, float expected, + float actual, float delta) + { + // handle infinity specially since subtracting two infinite values gives + // NaN and the following test fails + if (float.IsInfinity(expected)) + { + if (!(expected == actual)) + Assertion.FailNotEquals(message, expected, actual); + } + else if (!(Math.Abs(expected-actual) <= delta)) + Assertion.FailNotEquals(message, expected, actual); + } - /// Asserts that two chars are equal. - static public void AssertEquals(char expected, char actual) { - AssertEquals(null, expected, actual); - } - - /// Asserts that two doubles are equal concerning a delta. If the expected - /// value is infinity then the delta value is ignored. - static public void AssertEquals(double expected, double actual, double delta) { - AssertEquals(null, expected, actual, delta); - } - - /// Asserts that two floats are equal concerning a delta. If the expected - /// value is infinity then the delta value is ignored. - static public void AssertEquals(float expected, float actual, float delta) { - AssertEquals(null, expected, actual, delta); - } - - /// Asserts that two ints are equal. - static public void AssertEquals(int expected, int actual) { - AssertEquals(null, expected, actual); - } - - /// Asserts that two longs are equal. - static public void AssertEquals(long expected, long actual) { - AssertEquals(null, expected, actual); - } - - /// Asserts that two objects are equal. If they are not - /// an is thrown. - static public void AssertEquals(Object expected, Object actual) { - AssertEquals(null, expected, actual); - } - - /// Asserts that two shorts are equal. - static public void AssertEquals(short expected, short actual) { - AssertEquals(null, expected, actual); - } - - /// Asserts that two bools are equal. - static public void AssertEquals(string message, bool expected, bool actual) { - AssertEquals(message, (object)expected, (object)actual); - } - - /// Asserts that two bytes are equal. - static public void AssertEquals(string message, byte expected, byte actual) { - AssertEquals(message, (object)expected, (object)actual); - } - - /// Asserts that two chars are equal. - static public void AssertEquals(string message, char expected, char actual) { - AssertEquals(message, (object)expected, (object)actual); - } - - /// Asserts that two doubles are equal concerning a delta. If the expected - /// value is infinity then the delta value is ignored. - static public void AssertEquals(string message, double expected, - double actual, double delta) { - // handle infinity specially since subtracting two infinite values gives NaN and the - // following test fails - if (double.IsInfinity(expected)) { - if (!(expected == actual)) - FailNotEquals(message, expected, actual); - } else if (!(Math.Abs(expected-actual) <= delta)) - FailNotEquals(message, expected, actual); - } - - /// Asserts that two floats are equal concerning a delta. If the expected - /// value is infinity then the delta value is ignored. - static public void AssertEquals(string message, float expected, - float actual, float delta) { - // handle infinity specially since subtracting two infinite values gives NaN and the - // following test fails - if (double.IsInfinity(expected)) { - if (!(expected == actual)) - FailNotEquals(message, expected, actual); - } else if (!(Math.Abs(expected-actual) <= delta)) - FailNotEquals(message, expected, actual); - } - - /// Asserts that two ints are equal. - static public void AssertEquals(string message, int expected, int actual) { - AssertEquals(message, (object)expected, (object)actual); - } - - /// Asserts that two longs are equal. - static public void AssertEquals(string message, long expected, long actual) { - AssertEquals(message, (object)expected, (object)actual); - } - - /// Asserts that two objects are equal. If they are not - /// an is thrown. - static public void AssertEquals(string message, Object expected, - Object actual) { - if (expected == null && actual == null) - return; - if (expected != null && expected.Equals(actual)) - return; - FailNotEquals(message, expected, actual); - } - - /// Asserts that two shorts are equal. - static public void AssertEquals(string message, short expected, short actual) { - AssertEquals(message, (object)expected, (object)actual); - } - - /// Asserts that an object isn't null. - static public void AssertNotNull(Object anObject) { - AssertNotNull(null, anObject); - } - - /// Asserts that an object isn't null. - static public void AssertNotNull(string message, Object anObject) { - Assert(message, anObject != null); - } - - /// Asserts that an object is null. - static public void AssertNull(Object anObject) { - AssertNull(null, anObject); - } - - /// Asserts that an object is null. - static public void AssertNull(string message, Object anObject) { - Assert(message, anObject == null); - } - - /// Asserts that two objects refer to the same object. If they - /// are not the same an is thrown. - /// - static public void AssertSame(Object expected, Object actual) { - AssertSame(null, expected, actual); - } - - /// Asserts that two objects refer to the same object. - /// If they are not an is thrown. - /// - static public void AssertSame(string message, Object expected, - Object actual) { - if (expected == actual) - return; - FailNotSame(message, expected, actual); - } - - /// Fails a test with no message. - static public void Fail() { - Fail(null); - } - - /// Fails a test with the given message. - static public void Fail(string message) { - if (message == null) - message = ""; - throw new AssertionFailedError(message); - } - - static private void FailNotEquals(string message, Object expected, - Object actual) { - string formatted= ""; - if (message != null) - formatted= message+" "; - Fail(formatted+"expected:<"+expected+"> but was:<"+actual+">"); - } - - static private void FailNotSame(string message, Object expected, Object actual) { - string formatted= ""; - if (message != null) - formatted= message+" "; - Fail(formatted+"expected same"); - } - } -} + /// Asserts that two objects are equal. If they are not + /// an is thrown. + static public void AssertEquals(string message, Object expected, Object actual) + { + if (expected == null && actual == null) + return; + if (expected != null && expected.Equals(actual)) + return; + Assertion.FailNotEquals(message, expected, actual); + } + + /// Asserts that an object isn't null. + static public void AssertNotNull(Object anObject) + { + Assertion.AssertNotNull(string.Empty, anObject); + } + + /// Asserts that an object isn't null. + static public void AssertNotNull(string message, Object anObject) + { + Assertion.Assert(string.Empty, anObject != null); + } + + /// Asserts that an object is null. + static public void AssertNull(Object anObject) + { + Assertion.AssertNull(string.Empty, anObject); + } + + /// Asserts that an object is null. + static public void AssertNull(string message, Object anObject) + { + Assertion.Assert(message, anObject == null); + } + + /// Asserts that two objects refer to the same object. If they + /// are not the same an is thrown. + /// + static public void AssertSame(Object expected, Object actual) + { + Assertion.AssertSame(string.Empty, expected, actual); + } + + /// Asserts that two objects refer to the same object. + /// If they are not an is thrown. + /// + static public void AssertSame(string message, Object expected, Object actual) + { + if (expected == actual) + return; + Assertion.FailNotSame(message, expected, actual); + } + + /// Fails a test with no message. + static public void Fail() + { + Assertion.Fail(string.Empty); + } + + /// Fails a test with the given message. + static public void Fail(string message) + { + if (message == null) + message = string.Empty; + throw new AssertionFailedError(message); + } + + static private void FailNotEquals(string message, Object expected, Object actual) + { + string formatted=string.Empty; + if (message != null) + formatted= message+" "; + Assertion.Fail(formatted+"expected:<"+expected+"> but was:<"+actual+">"); + } + + static private void FailNotSame(string message, Object expected, Object actual) + { + string formatted=string.Empty; + if (message != null) + formatted= message+" "; + Assertion.Fail(formatted+"expected same"); + } + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/AssertionFailedError.cs b/mcs/nunit/src/NUnitCore/AssertionFailedError.cs index ba1a8fec1b66a..9afebde079cdd 100644 --- a/mcs/nunit/src/NUnitCore/AssertionFailedError.cs +++ b/mcs/nunit/src/NUnitCore/AssertionFailedError.cs @@ -1,13 +1,27 @@ -namespace NUnit.Framework { +namespace NUnit.Framework +{ + using System; + using System.Runtime.Serialization; - using System; - - /// Thrown when an assertion failed. - public class AssertionFailedError: Exception { - /// - /// - /// - /// - public AssertionFailedError (string message) : base(message) {} - } -} + /// + /// Thrown when an assertion failed. + /// + [Serializable] + public class AssertionFailedError : ApplicationException//NUnitException + { + /// + /// Serialization Constructor + /// + protected AssertionFailedError(SerializationInfo info, + StreamingContext context) : base(info,context){} + /// + /// + /// + /// + public AssertionFailedError (string message) : base(message) {} +// public override bool IsAssertionFailure +// { +// get{return true;} +// } + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/BaseTestRunner.cs b/mcs/nunit/src/NUnitCore/BaseTestRunner.cs index ac423b17e1717..7f3adfc6733ef 100644 --- a/mcs/nunit/src/NUnitCore/BaseTestRunner.cs +++ b/mcs/nunit/src/NUnitCore/BaseTestRunner.cs @@ -1,279 +1,323 @@ -namespace NUnit.Runner { +namespace NUnit.Runner +{ + using System; + using System.Collections; + using System.Collections.Specialized; + using System.IO; + using System.IO.IsolatedStorage; + using System.Reflection; + using NUnit.Framework; - using System; - using System.Collections; - using System.Collections.Specialized; - using System.IO; - using System.IO.IsolatedStorage; - using System.Reflection; + /// + /// Base class for all test runners. + /// + /// + /// + /// + public abstract class BaseTestRunner: MarshalByRefObject, ITestListener + { + /// + /// + /// + [Obsolete("Shoud be handled by a loader")] + public static string SUITE_PROPERTYNAME="Suite"; - using NUnit.Framework; + private static NameValueCollection fPreferences = new NameValueCollection(); + private static int fgMaxMessageLength = 500; + private static bool fgFilterStack = true; - /// Base class for all test runners. - /// This class was born live on stage in Sardinia during - /// XP2000. - public abstract class BaseTestRunner: ITestListener { - /// - /// - /// - public static string SUITE_PROPERTYNAME="Suite"; + private bool fLoading = true; + /// + /// + /// + public BaseTestRunner() + { + fPreferences = new NameValueCollection(); + fPreferences.Add("loading", "true"); + fPreferences.Add("filterstack", "true"); + ReadPreferences(); + fgMaxMessageLength = GetPreference("maxmessage", fgMaxMessageLength); + } + + #region ITestListener Methods + /// + /// + /// + /// + /// + public abstract void AddError(ITest test, Exception t); + + /// + /// + /// + /// + /// + public abstract void AddFailure(ITest test, AssertionFailedError t); + + /// + /// + /// + /// + public abstract void EndTest(ITest test); + #endregion - static NameValueCollection fPreferences = new NameValueCollection(); - static int fgMaxMessageLength = 500; - static bool fgFilterStack = true; - bool fLoading = true; - /// - /// - /// - public BaseTestRunner() { - fPreferences = new NameValueCollection(); - fPreferences.Add("loading", "true"); - fPreferences.Add("filterstack", "true"); - ReadPreferences(); - fgMaxMessageLength = GetPreference("maxmessage", fgMaxMessageLength); - } - /// - /// - /// - /// - /// - public abstract void AddError(ITest test, Exception t); - /// - /// - /// - /// - /// - public abstract void AddFailure(ITest test, AssertionFailedError t); - /// - /// Clears the status message. - /// - protected virtual void ClearStatus() { // Belongs in the GUI TestRunner class. - } - /// - /// - /// - /// - public abstract void EndTest(ITest test); - /// - /// Returns the formatted string of the elapsed time. - /// - public static string ElapsedTimeAsString(long runTime) { - return ((double)runTime/1000).ToString(); - } - /// - /// Extract the class name from a string in VA/Java style - /// - public static string ExtractClassName(string className) { - if(className.StartsWith("Default package for")) - return className.Substring(className.LastIndexOf(".")+1); - return className; - } - static bool FilterLine(string line) { - string[] patterns = new string[] { - "NUnit.Framework.TestCase", - "NUnit.Framework.TestResult", - "NUnit.Framework.TestSuite", - "NUnit.Framework.Assertion." // don't filter AssertionFailure - }; - for (int i = 0; i < patterns.Length; i++) { - if (line.IndexOf(patterns[i]) > 0) - return true; - } - return false; - } - /// - /// Filters stack frames from internal NUnit classes - /// - public static string FilterStack(string stack) { - string pref = GetPreference("filterstack"); - if (((pref != null) && !GetPreference("filterstack").Equals("true")) || fgFilterStack == false) - return stack; +#if false + /// + /// Clears the status message. + /// + protected virtual void ClearStatus() + { + // Belongs in the GUI TestRunner class. + } +#endif + /// + /// Returns the formatted string of the elapsed time. + /// + public static string ElapsedTimeAsString(long runTime) + { + return ((double)runTime/1000).ToString(); + } + /// + /// Extract the class name from a string in VA/Java style + /// + public static string ExtractClassName(string className) + { + if(className.StartsWith("Default package for")) + return className.Substring(className.LastIndexOf(".")+1); + return className; + } + + static bool FilterLine(string line) + { + string[] patterns = new string[] + { + "NUnit.Framework.TestCase", + "NUnit.Framework.TestResult", + "NUnit.Framework.TestSuite", + "NUnit.Framework.Assertion." // don't filter AssertionFailure + }; + for (int i = 0; i < patterns.Length; i++) + { + if (line.IndexOf(patterns[i]) > 0) + return true; + } + return false; + } - StringWriter sw = new StringWriter(); - StringReader sr = new StringReader(stack); + /// + /// Filters stack frames from internal NUnit classes + /// + public static string FilterStack(string stack) + { + string pref = GetPreference("filterstack"); + if (((pref != null) && !GetPreference("filterstack").Equals("true")) + || fgFilterStack == false) + return stack; - string line; - try { - while ((line = sr.ReadLine()) != null) { - if (!FilterLine(line)) - sw.WriteLine(line); - } - } catch (Exception) { - return stack; // return the stack unfiltered - } - return sw.ToString(); - } - /// - /// - /// - /// - /// - public static string GetFilteredTrace(Exception t) { - return BaseTestRunner.FilterStack(t.StackTrace); - } + StringWriter sw = new StringWriter(); + StringReader sr = new StringReader(stack); - /// - /// - /// - /// - /// - public static string GetPreference(string key) { - return fPreferences.Get(key); - } - private static int GetPreference(String key, int dflt) - { - String value= GetPreference(key); - int intValue= dflt; - if (value == null) - return intValue; - try { - intValue= int.Parse(value); - } - catch (FormatException) { - } - return intValue; - } - private static FileStream GetPreferencesFile() { - return new IsolatedStorageFileStream("NUnit.Prefs", - FileMode.OpenOrCreate); - } - /// - /// - /// - /// - public virtual ITestSuiteLoader GetLoader() { - if (UseReloadingTestSuiteLoader()) - return new ReloadingTestSuiteLoader(); - return new StandardTestSuiteLoader(); - } + try + { + string line; + while ((line = sr.ReadLine()) != null) + { + if (!FilterLine(line)) + sw.WriteLine(line); + } + } + catch (Exception) + { + return stack; // return the stack unfiltered + } + return sw.ToString(); + } + + /// + /// + /// + /// + /// + public static string GetFilteredTrace(Exception t) + { + return BaseTestRunner.FilterStack(t.StackTrace); + } - /// - /// Returns the ITest corresponding to the given suite. This is - /// a template method, subclasses override RunFailed(), ClearStatus(). - /// - public ITest GetTest(string suiteClassName) { - if (suiteClassName.Length <= 0) { - ClearStatus(); - return null; - } - Type testClass= null; - try { - testClass = LoadSuiteClass(suiteClassName); - } catch (TypeLoadException e) { - RunFailed(e.Message); - return null; - } catch (Exception e) { - RunFailed("Error: " + e.ToString()); - return null; - } - PropertyInfo suiteProperty= null; - suiteProperty = testClass.GetProperty(SUITE_PROPERTYNAME, new Type[0]); - if (suiteProperty == null ) { - // try to extract a test suite automatically - ClearStatus(); - return new TestSuite(testClass); - } - ITest test= null; - try { - // static property - test= (ITest)suiteProperty.GetValue(null, new Type[0]); - if (test == null) - return test; - } catch(Exception e) { - RunFailed("Could not get the Suite property. " + e); - return null; - } - ClearStatus(); - return test; - } - /// - /// - /// - /// - public static bool InVAJava() { - return false; - } - /// - /// Returns the loaded Class for a suite name. - /// - protected Type LoadSuiteClass(string suiteClassName) { - return GetLoader().Load(suiteClassName); - } - private static void ReadPreferences() { - FileStream fs= null; - try { - fs= GetPreferencesFile(); - fPreferences= new NameValueCollection(fPreferences); - ReadPrefsFromFile(ref fPreferences, fs); - } catch (IOException) { - try { - if (fs != null) - fs.Close(); - } catch (IOException) { - } - } - } - private static void ReadPrefsFromFile(ref NameValueCollection prefs, FileStream fs) { - // Real method reads name/value pairs, populates, or maybe just - // deserializes... - } - /// - /// Override to define how to handle a failed loading of a test suite. - /// - protected abstract void RunFailed(String message); - /// - /// Truncates a String to the maximum length. - /// - public static String Truncate(String s) { - if (fgMaxMessageLength != -1 && s.Length > fgMaxMessageLength) - s= s.Substring(0, fgMaxMessageLength)+"..."; - return s; - } - /// - /// - /// - /// - public abstract void StartTest(ITest test); - /// - /// - /// - /// - /// - /// - protected string ProcessArguments(string[] args, ref bool wait) { - string suiteName=""; - wait = false; - foreach (string arg in args) { - if (arg.Equals("/noloading")) - SetLoading(false); - else if (arg.Equals("/nofilterstack")) - fgFilterStack = false; - else if (arg.Equals("/wait")) - wait = true; - else if (arg.Equals("/c")) - suiteName= ExtractClassName(arg); - else if (arg.Equals("/v")){ - Console.Error.WriteLine("NUnit "+NUnit.Runner.Version.id() - + " by Philip Craig"); - Console.Error.WriteLine("ported from JUnit 3.6 by Kent Beck" - + " and Erich Gamma"); - } else - suiteName = arg; - } - return suiteName; - } - /// - /// Sets the loading behaviour of the test runner - /// - protected void SetLoading(bool enable) { - fLoading = false; - } - /// - /// - /// - /// - protected bool UseReloadingTestSuiteLoader() { - return GetPreference("loading").Equals("true") && fLoading; - } - } + /// + /// + /// + /// + /// + public static string GetPreference(string key) + { + return fPreferences.Get(key); + } + + private static int GetPreference(String key, int dflt) + { + String value= GetPreference(key); + int intValue= dflt; + if (value != null) + { + try + { + intValue= int.Parse(value); + } + catch (FormatException) {} + } + return intValue; + } + + private static FileStream GetPreferencesFile() + { + return new IsolatedStorageFileStream("NUnit.Prefs", FileMode.OpenOrCreate); + } + /// + /// + /// + /// + public virtual ITestLoader GetLoader() + { + if (UseReloadingTestSuiteLoader()) + return new UnloadingLoader(); + return new StandardLoader(); + } + + /// + /// Returns the ITest corresponding to the given suite. This is + /// a template method, subclasses override RunFailed(), ClearStatus(). + /// + public ITest GetTest(string suiteClassName) + { + ITest test = null; + try + { + test = LoadSuiteClass(suiteClassName); + } + catch (TypeLoadException e) + { + RunFailed(e.Message); + return null; + } + catch (Exception e) + { + RunFailed("Error: " + e.ToString()); + return null; + } + //ClearStatus(); + return test; + } + + /// + /// Returns the loaded Class for a suite name. + /// + protected ITest LoadSuiteClass(string suiteClassName) + { + return GetLoader().LoadTest(suiteClassName); + } + + private static void ReadPreferences() + { + FileStream fs= null; + try + { + fs= GetPreferencesFile(); + fPreferences= new NameValueCollection(fPreferences); + ReadPrefsFromFile(ref fPreferences, fs); + } + catch (IOException) + { + try + { + if (fs != null) + fs.Close(); + } + catch (IOException) + { + } + } + } + + /// + /// Real method reads name/value pairs, populates, or maybe just + /// deserializes... + /// + /// + /// + private static void ReadPrefsFromFile(ref NameValueCollection prefs, FileStream fs) + { + } + + /// + /// Override to define how to handle a failed loading of a test suite. + /// + protected abstract void RunFailed(string message); + + /// + /// Truncates a String to the maximum length. + /// + /// + /// + public static string Truncate(string message) + { + if (fgMaxMessageLength != -1 && message.Length > fgMaxMessageLength) + message = message.Substring(0, fgMaxMessageLength)+"..."; + return message; + } + /// + /// + /// + /// + public abstract void StartTest(ITest test); + + /// + /// + /// + /// + /// + /// + protected string ProcessArguments(string[] args, ref bool wait) + { + string suiteName=""; + wait = false; + foreach (string arg in args) + { + if (arg.Equals("/noloading")) + SetLoading(false); + else if (arg.Equals("/nofilterstack")) + fgFilterStack = false; + else if (arg.Equals("/wait")) + wait = true; + else if (arg.Equals("/c")) + suiteName= ExtractClassName(arg); + else if (arg.Equals("/v")) + { + Console.Error.WriteLine("NUnit "+NUnit.Runner.Version.id() + + " by Philip Craig"); + Console.Error.WriteLine("ported from JUnit 3.6 by Kent Beck" + + " and Erich Gamma"); + } + else + suiteName = arg; + } + return suiteName; + } + + /// + /// Sets the loading behaviour of the test runner + /// + protected void SetLoading(bool enable) + { + fLoading = enable; + } + + /// + /// + /// + /// + protected bool UseReloadingTestSuiteLoader() + { + return bool.TrueString.Equals( GetPreference("loading")) && fLoading; + } + } } diff --git a/mcs/nunit/src/NUnitCore/ClassPathTestCollector.cs b/mcs/nunit/src/NUnitCore/ClassPathTestCollector.cs index 437cdaab977e0..0669a285c0739 100644 --- a/mcs/nunit/src/NUnitCore/ClassPathTestCollector.cs +++ b/mcs/nunit/src/NUnitCore/ClassPathTestCollector.cs @@ -1,37 +1,37 @@ namespace NUnit.Runner { - using System; using System.Collections; + using System.Collections.Specialized; using System.IO; /// - /// An implementation of a TestCollector that consults the + /// A TestCollector that consults the /// class path. It considers all classes on the class path /// excluding classes in JARs. It leaves it up to subclasses /// to decide whether a class is a runnable Test. - /// /// /// - public abstract class ClassPathTestCollector: ITestCollector + [Obsolete("Use StandardLoader or UnloadingLoader")] + public abstract class ClassPathTestCollector : ITestCollector { /// /// /// - public ClassPathTestCollector() - { - } + public ClassPathTestCollector() {} /// /// /// /// - public Hashtable CollectTests() + public string[] CollectTestsClassNames() { - string classPath= Environment.GetEnvironmentVariable("Path"); + string classPath = Environment.GetEnvironmentVariable("Path"); char separator= Path.PathSeparator; - Hashtable result= new Hashtable(100); + ArrayList result = new ArrayList(); CollectFilesInRoots(classPath.Split(separator), result); - return result; + string[] retVal = new string[result.Count]; + result.CopyTo(retVal); + return retVal; } /// /// @@ -42,7 +42,8 @@ protected string ClassNameFromFile(string classFileName) { return classFileName; } - void CollectFilesInRoots(string[] roots, Hashtable result) + + private void CollectFilesInRoots(string[] roots, IList result) { foreach (string directory in roots) { @@ -55,7 +56,7 @@ void CollectFilesInRoots(string[] roots, Hashtable result) if (IsTestClass(file)) { string className=ClassNameFromFile(file); - result.Add(className, className); + result.Add(className); } } } @@ -69,8 +70,9 @@ void CollectFilesInRoots(string[] roots, Hashtable result) protected virtual bool IsTestClass(string classFileName) { return - (classFileName.EndsWith(".dll") || classFileName.EndsWith(".exe")) && - classFileName.IndexOf("Test") > 0; + ( classFileName.EndsWith(".dll") + || classFileName.EndsWith(".exe")) + && classFileName.IndexOf("Test") > 0; } } } \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/ExceptionTestCase.cs b/mcs/nunit/src/NUnitCore/ExceptionTestCase.cs index 8af9414d4fe40..a5ae174fd613b 100644 --- a/mcs/nunit/src/NUnitCore/ExceptionTestCase.cs +++ b/mcs/nunit/src/NUnitCore/ExceptionTestCase.cs @@ -1,51 +1,53 @@ -namespace NUnit.Extensions { +namespace NUnit.Extensions +{ + using System; + using NUnit.Framework; - using System; + /// A TestCase that expects an Exception of class fExpected + /// to be thrown. + /// The other way to check that an expected exception is thrown is: + /// + /// try { + /// ShouldThrow(); + /// }catch (SpecialException) { + /// return; + /// } + /// Assertion.Fail("Expected SpecialException"); + /// + /// + /// To use ExceptionTestCase, create a TestCase like: + /// + /// new ExceptionTestCase("TestShouldThrow", typeof(SpecialException)); + /// + public class ExceptionTestCase: TestCase + { + private readonly Type fExpected; + /// + /// + /// + /// + /// + public ExceptionTestCase(string name, Type exception) : base(name) + { + fExpected= exception; + } - using NUnit.Framework; - - /// A TestCase that expects an Exception of class fExpected - /// to be thrown. - /// The other way to check that an expected exception is thrown is: - /// - /// try { - /// ShouldThrow(); - /// } - /// catch (SpecialException) { - /// return; - /// } - /// Fail("Expected SpecialException"); - /// - /// - /// To use ExceptionTestCase, create a TestCase like: - /// - /// new ExceptionTestCase("TestShouldThrow", typeof(SpecialException)); - /// - public class ExceptionTestCase: TestCase { - - readonly Type fExpected; -/// -/// -/// -/// -/// - public ExceptionTestCase(string name, Type exception) : base(name) { - fExpected= exception; - } - - /// Execute the test method expecting that an Exception of - /// class fExpected or one of its subclasses will be thrown. - protected override void RunTest() { - try { - base.RunTest(); - } - catch (Exception e) { - if (fExpected.IsAssignableFrom(e.InnerException.GetType())) - return; - else - throw e.InnerException; - } - Fail("Expected exception " + fExpected); - } - } + /// Execute the test method expecting that an Exception of + /// class fExpected or one of its subclasses will be thrown. + protected override void RunTest() + { + try + { + base.RunTest(); + } + catch (Exception e) + { + if (fExpected.IsAssignableFrom(e.InnerException.GetType())) + return; + else + throw e.InnerException; + } + Assertion.Fail("Expected exception " + fExpected); + } + } } diff --git a/mcs/nunit/src/NUnitCore/IProtectable.cs b/mcs/nunit/src/NUnitCore/IProtectable.cs index 3186ee57e8ecd..ad86136602f53 100644 --- a/mcs/nunit/src/NUnitCore/IProtectable.cs +++ b/mcs/nunit/src/NUnitCore/IProtectable.cs @@ -1,11 +1,12 @@ -namespace NUnit.Framework { - - /// An IProtectable can be run and can throw an Exception. - /// - /// - public interface IProtectable { - - /// Run the the following method protected. - void Protect(); - } -} +namespace NUnit.Framework +{ + /// + /// An IProtectable can be run and can throw an Exception. + /// + /// + public interface IProtectable + { + /// Run the the following method protected. + void Protect(); + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/ITest.cs b/mcs/nunit/src/NUnitCore/ITest.cs index 91ee9826715ca..098f4c0f23f53 100644 --- a/mcs/nunit/src/NUnitCore/ITest.cs +++ b/mcs/nunit/src/NUnitCore/ITest.cs @@ -1,14 +1,18 @@ -namespace NUnit.Framework { - - /// An ITest can be run and collect its results. - /// - public interface ITest { - /// Counts the number of test cases that will be run by this - /// test. - int CountTestCases { get; } - - /// Runs a test and collects its result in a - /// instance. - void Run(TestResult result); - } +namespace NUnit.Framework +{ + /// An ITest can be run and collect its results. + /// + public interface ITest + { + /// + /// Counts the number of test cases that will be run by this test. + /// + int CountTestCases { get; } + /// + /// Runs a test and collects its result in a + /// instance. + /// + /// + void Run(TestResult result); + } } diff --git a/mcs/nunit/src/NUnitCore/ITestCollector.cs b/mcs/nunit/src/NUnitCore/ITestCollector.cs index 920ff19a59037..40bf089be8376 100644 --- a/mcs/nunit/src/NUnitCore/ITestCollector.cs +++ b/mcs/nunit/src/NUnitCore/ITestCollector.cs @@ -1,15 +1,16 @@ -namespace NUnit.Runner { - using System.Collections; - - /// - /// Collects Test class names to be presented by the TestSelector. - /// - /// - public interface ITestCollector { - - /// - /// Returns a StringCollection of qualified class names. - /// - Hashtable CollectTests(); - } +namespace NUnit.Runner +{ + using System; + + /// + /// Collects Test classes to be presented by the TestSelector. + /// + /// + public interface ITestCollector + { + /// + /// Returns an array of FullNames for classes that are tests. + /// + string[] CollectTestsClassNames(); + } } diff --git a/mcs/nunit/src/NUnitCore/ITestListener.cs b/mcs/nunit/src/NUnitCore/ITestListener.cs index 175814b5d32be..87726ea95d48e 100644 --- a/mcs/nunit/src/NUnitCore/ITestListener.cs +++ b/mcs/nunit/src/NUnitCore/ITestListener.cs @@ -1,78 +1,65 @@ -namespace NUnit.Framework { - - using System; +namespace NUnit.Framework +{ + using System; - /// A Listener for test progress - public interface ITestListener { - /// An error occurred. - void AddError(ITest test, Exception t); - - /// A failure occurred. - void AddFailure(ITest test, AssertionFailedError t); + /// A Listener for test progress + public interface ITestListener + { + /// An error occurred. + void AddError(ITest test, Exception ex); - /// A test ended. - void EndTest(ITest test); + /// A failure occurred. + void AddFailure(ITest test, AssertionFailedError ex); - /// A test started. - void StartTest(ITest test); - } - /// - /// - /// - public delegate void TestEventHandler(Object source, TestEventArgs e); - /// - /// - /// - public class TestEventArgs : EventArgs{ - /// - /// - /// - protected ITest fTest; - /// - /// - /// - protected TestEventArgs (){} - /// - /// - /// - /// - public TestEventArgs (ITest test){ - fTest = test; - } - /// - /// - /// - public ITest Test{ - get{return fTest;} - } - } - /// - /// - /// - public delegate void TestExceptionEventHandler(Object source, - TestExceptionEventArgs e); - /// - /// - /// - public class TestExceptionEventArgs : TestEventArgs{ - private TestExceptionEventArgs(){} + /// A test ended. + void EndTest(ITest test); - private Exception fThrownException; - /// - /// - /// - /// - /// - public TestExceptionEventArgs(ITest test, Exception e){ - //this(test); - fTest = test; - fThrownException = e; - } - /// - /// - /// - public Exception ThrownException{ - get{return fThrownException;} - } - } -} + /// A test started. + void StartTest(ITest test); + } +#if false + public class TestEventArgs : System.EventArgs + { + private readonly ITest fTest; + public TestEventArgs(ITest test) : base() + { + fTest = test; + } + public ITest Test + { + get { return fTest;} + } + } + public class TestErrorArgs : TestEventArgs + { + private readonly Exception fThrownException; + + public TestErrorArgs(ITest test, Exception thrownException) : base(test) + { + fThrownException = thrownException; + } + + public TestErrorArgs(TestFailure error) + : this(error.FailedTest,error.ThrownException){} + + public Exception ThrownException + { + get { return fThrownException;} + + } + } + + public delegate void TestErrorHandler(TestFailure failure); + public delegate void TestEventHandler(ITest test); + + public interface ITestEvents + { + event TestErrorHandler TestErred; + event TestErrorHandler TestFailed; + event TestEventHandler TestStarted; + event TestEventHandler TestEnded; + event TestEventHandler RunStarted; + event TestEventHandler RunEnded; + } +#endif +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/ITestSuiteLoader.cs b/mcs/nunit/src/NUnitCore/ITestSuiteLoader.cs index f7bc5bdc1f05e..71f7da29f6e79 100644 --- a/mcs/nunit/src/NUnitCore/ITestSuiteLoader.cs +++ b/mcs/nunit/src/NUnitCore/ITestSuiteLoader.cs @@ -1,17 +1,17 @@ -namespace NUnit.Runner { +namespace NUnit.Runner +{ + using System; - using System; - - /// An interface to define how a test suite should be - /// loaded. - public interface ITestSuiteLoader { - /// - /// - /// - Type Load(string suiteClassName); - /// - /// - /// - Type Reload(Type aType); - } + /// + /// An interface to define how a test suite should be loaded. + /// + [Obsolete("Use ILoader")] + public interface ITestSuiteLoader + { + /// + /// + /// + Type Load(string suiteClassName); + //Type Reload(Type aType); + } } diff --git a/mcs/nunit/src/NUnitCore/LoadingTestCollector.cs b/mcs/nunit/src/NUnitCore/LoadingTestCollector.cs index 63ac74ef5f007..4938ee952e920 100644 --- a/mcs/nunit/src/NUnitCore/LoadingTestCollector.cs +++ b/mcs/nunit/src/NUnitCore/LoadingTestCollector.cs @@ -1,71 +1,54 @@ -namespace NUnit.Runner { +namespace NUnit.Runner +{ + using System; + using System.Reflection; + using NUnit.Framework; - using System; - using System.Reflection; - - using NUnit.Framework; - - /// - /// An implementation of a TestCollector that loads - /// all classes on the class path and tests whether - /// it is assignable from ITest or provides a static Suite property. - /// - /// - public class LoadingClassPathTestCollector: ClassPathTestCollector { - - TestCaseClassLoader fLoader; /// - /// + /// An implementation of a TestCollector that loads + /// all classes on the class path and tests whether + /// it is assignable from ITest or provides a static Suite property. + /// /// - public LoadingClassPathTestCollector() { - fLoader= new TestCaseClassLoader(); - } - /// - /// - /// - /// - /// - protected override bool IsTestClass(string classFileName) { - try { - if (classFileName.EndsWith(".dll") || classFileName.EndsWith(".exe")) { - Type testClass= ClassFromFile(classFileName); - return (testClass != null) && IsTestClass(testClass); - } - } catch (TypeLoadException) { - } - return false; - } - - Type ClassFromFile(string classFileName) { - string className= ClassNameFromFile(classFileName); - if (!fLoader.IsExcluded(className)) - return fLoader.LoadClass(className, false); - return null; - } - - bool IsTestClass(Type testClass) { - if (HasSuiteMethod(testClass)) - return true; - if (typeof(ITest).IsAssignableFrom(testClass) && - testClass.IsPublic && - HasPublicConstructor(testClass)) - return true; - return false; - } + [Obsolete("Use StandardLoader or UnloadingLoader")] + public class LoadingClassPathTestCollector: ClassPathTestCollector + { - bool HasSuiteMethod(Type testClass) { - return (testClass.GetProperty(BaseTestRunner.SUITE_PROPERTYNAME, new Type[0]) == null); - } + TestCaseClassLoader fLoader; + /// + /// + /// + public LoadingClassPathTestCollector() + { + fLoader= new TestCaseClassLoader(); + } + /// + /// + /// + /// + /// + protected override bool IsTestClass(string classFileName) + { + try + { + if (classFileName.EndsWith(".dll") || classFileName.EndsWith(".exe")) + { + Type testClass= ClassFromFile(classFileName); + return (testClass != null); //HACK: && TestCase.IsTest(testClass); + } + } + catch (TypeLoadException) + { + } + return false; + } - bool HasPublicConstructor(Type testClass) { - Type[] args= { typeof(string) }; - ConstructorInfo c= null; - try { - c= testClass.GetConstructor(args); - } catch(Exception) { - return false; - } - return true; - } - } + private Type ClassFromFile(string classFileName) + { + string className = base.ClassNameFromFile(classFileName); + if (!fLoader.IsExcluded(className)) + return fLoader.LoadClass(className, false); + return null; + } + } } \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/NUnitException.cs b/mcs/nunit/src/NUnitCore/NUnitException.cs index 155fe74154753..f0273ef791f3d 100644 --- a/mcs/nunit/src/NUnitCore/NUnitException.cs +++ b/mcs/nunit/src/NUnitCore/NUnitException.cs @@ -1,24 +1,51 @@ -namespace NUnit.Framework { - - using System; - using System.Diagnostics; +namespace NUnit.Framework +{ + using System; + using System.Diagnostics; + using System.Runtime.Serialization; - /// Thrown when an assertion failed. Here to preserve the inner - /// exception and hence its stack trace. - public class NUnitException: ApplicationException { - /// - /// - /// - /// - /// - public NUnitException(string message, Exception inner) : - base(message, inner) { } - /// - /// - /// - public bool IsAssertionFailure { - get { return InnerException.GetType() == typeof(AssertionFailedError); } - } - } -} + /// + /// Thrown when an assertion failed. Here to preserve the inner + /// exception and hence its stack trace. + /// + [Serializable] + public class NUnitException : ApplicationException + { + /// + /// Serialization Constructor + /// + protected NUnitException(SerializationInfo info, + StreamingContext context) : base(info,context){} + /// + /// Standard constructor + /// + /// The error message that explains + /// the reason for the exception + public NUnitException(string message) : base (message){} + /// + /// Standard constructor + /// + /// The error message that explains + /// the reason for the exception + /// The exception that caused the + /// current exception + public NUnitException(string message, Exception inner) : + base(message, inner) {} + /// + /// Indicates that this exception wraps an AssertionFailedError + /// exception + /// + public virtual bool IsAssertionFailure + { + get + { + AssertionFailedError inner = this.InnerException + as AssertionFailedError; + if(inner != null) + return true; + return false; + } + } + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/ReflectionUtils.cs b/mcs/nunit/src/NUnitCore/ReflectionUtils.cs index 19f656f04c421..491e0e7ec9169 100644 --- a/mcs/nunit/src/NUnitCore/ReflectionUtils.cs +++ b/mcs/nunit/src/NUnitCore/ReflectionUtils.cs @@ -1,74 +1,94 @@ -namespace NUnit.Runner { +namespace NUnit.Runner +{ - using System; - using System.Collections; - using System.Collections.Specialized; - using System.IO; - using System.Reflection; + using System; + using System.Collections; + using System.Collections.Specialized; + using System.IO; + using System.Reflection; - using NUnit.Framework; -/// -/// -/// - public class ReflectionUtils{ -/// -/// -/// -/// -/// - public static bool HasTests(Type testClass) { + using NUnit.Framework; + /// + /// + /// + [Obsolete("Use Standar Loader")] + public class ReflectionUtils + { + /// + /// + /// + /// + /// + [Obsolete("Use Standar Loader")] + public static bool HasTests(Type testClass) + { - PropertyInfo suiteProperty= null; - suiteProperty = testClass.GetProperty("Suite", new Type[0]); - if (suiteProperty == null ) { - // try to extract a test suite automatically - bool result = false; - TestSuite dummy = new TestSuite(testClass, ref result); - return result; - } - ITest test= null; - try { - // static property - test= (ITest)suiteProperty.GetValue(null, new Type[0]); - if (test == null) - return false; - } catch(Exception) { - return false; - } - return true; - } -/// -/// -/// -/// -/// - public static StringCollection GetAssemblyClasses(string assemblyName){ - StringCollection classNames = new StringCollection (); - try { - Assembly testAssembly = Assembly.LoadFrom(assemblyName); + PropertyInfo suiteProperty= null; + suiteProperty = testClass.GetProperty("Suite", new Type[0]); + if (suiteProperty == null ) + { + // try to extract a test suite automatically + TestSuite dummy = new TestSuite(testClass, true); + return (dummy.CountTestCases > 0); + } + ITest test= null; + try + { + // static property + test= (ITest)suiteProperty.GetValue(null, new Type[0]); + if (test == null) + return false; + } + catch(Exception) + { + return false; + } + return true; + } + /// + /// + /// + /// + /// + [Obsolete("Use Standar Loader")] + public static StringCollection GetAssemblyClasses(string assemblyName) + { + StringCollection classNames = new StringCollection (); + try + { + Assembly testAssembly = Assembly.LoadFrom(assemblyName); - foreach(Type testType in testAssembly.GetExportedTypes()){ - if(testType.IsClass && HasTests(testType)){ - classNames.Add(testType.FullName); - } - } - }catch(ReflectionTypeLoadException rcle){ + foreach(Type testType in testAssembly.GetExportedTypes()) + { + if(testType.IsClass && HasTests(testType)) + { + classNames.Add(testType.FullName); + } + } + } + catch(ReflectionTypeLoadException rcle) + { - Type[] loadedTypes = rcle.Types; - Exception[] exceptions = rcle.LoaderExceptions; + Type[] loadedTypes = rcle.Types; + Exception[] exceptions = rcle.LoaderExceptions; - int exceptionCount = 0; + int exceptionCount = 0; - for ( int i =0; i < loadedTypes.Length; i++ ){ - Console.Error.WriteLine("Unable to load a type because {0}", exceptions[exceptionCount] ); - exceptionCount++; - } - }catch(FileNotFoundException fnfe){ - Console.Error.WriteLine(fnfe.Message); - }catch(Exception e){ - Console.Error.WriteLine("Error reading file {0}: {1}", assemblyName, e.Message); - } - return classNames; - } - } -} + for ( int i =0; i < loadedTypes.Length; i++ ) + { + Console.Error.WriteLine("Unable to load a type because {0}", exceptions[exceptionCount] ); + exceptionCount++; + } + } + catch(FileNotFoundException fnfe) + { + Console.Error.WriteLine(fnfe.Message); + } + catch(Exception e) + { + Console.Error.WriteLine("Error reading file {0}: {1}", assemblyName, e.Message); + } + return classNames; + } + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/ReloadingTestSuiteLoader.cs b/mcs/nunit/src/NUnitCore/ReloadingTestSuiteLoader.cs index 14aaac27b5db9..de222ed9d77b1 100644 --- a/mcs/nunit/src/NUnitCore/ReloadingTestSuiteLoader.cs +++ b/mcs/nunit/src/NUnitCore/ReloadingTestSuiteLoader.cs @@ -1,28 +1,33 @@ -namespace NUnit.Runner { +namespace NUnit.Runner +{ - using System; + using System; - /// A TestSuite loader that can reload classes. - public class ReloadingTestSuiteLoader: ITestSuiteLoader { - /// - /// - /// - /// - /// - public Type Load(string suiteClassName) { - // TestCaseClassLoader loader= new TestCaseClassLoader(); - // return loader.LoadClass(suiteClassName, true); - return Type.GetType(suiteClassName, true); - } - /// - /// - /// - /// - /// - public Type Reload(Type aClass) { - // TestCaseClassLoader loader= new TestCaseClassLoader(); - // return loader.LoadClass(aClass.ToString(), true); - return aClass; - } - } + /// A TestSuite loader that can reload classes. + [Obsolete("Use StandardLoader or UnloadingLoader")] + public class ReloadingTestSuiteLoader: ITestSuiteLoader + { + /// + /// + /// + /// + /// + public Type Load(string suiteClassName) + { + // TestCaseClassLoader loader= new TestCaseClassLoader(); + // return loader.LoadClass(suiteClassName, true); + return Type.GetType(suiteClassName, true); + } + /// + /// + /// + /// + /// + public Type Reload(Type aClass) + { + // TestCaseClassLoader loader= new TestCaseClassLoader(); + // return loader.LoadClass(aClass.ToString(), true); + return aClass; + } + } } diff --git a/mcs/nunit/src/NUnitCore/StandardTestSuiteLoader.cs b/mcs/nunit/src/NUnitCore/StandardTestSuiteLoader.cs index 7ea7071e7c666..ebdd956576052 100644 --- a/mcs/nunit/src/NUnitCore/StandardTestSuiteLoader.cs +++ b/mcs/nunit/src/NUnitCore/StandardTestSuiteLoader.cs @@ -1,39 +1,47 @@ -namespace NUnit.Runner { +namespace NUnit.Runner +{ + using System; + using System.Reflection; + using System.IO; + using System.Security; - using System; - using System.Reflection; - using System.IO; - using System.Security; + /// + /// The standard test suite loader. It can only load the same + /// class once. + /// + [Obsolete("Use StandardLoader or UnloadingLoader")] + public class StandardTestSuiteLoader: ITestSuiteLoader + { + /// + /// Loads + /// + /// + /// + public Type Load(string testClassName) + { + Type testClass; + string[] classSpec=testClassName.Split(','); + if (classSpec.Length > 1) + { + FileInfo dll=new FileInfo(classSpec[1]); + if (!dll.Exists) + throw new FileNotFoundException("File " + dll.FullName + " not found", dll.FullName); + Assembly a = Assembly.LoadFrom(dll.FullName); + testClass=a.GetType(classSpec[0], true); + } + else + testClass = Type.GetType(testClassName, true); + return testClass; + } - /// The standard test suite loader. It can only load the same - /// class once. - public class StandardTestSuiteLoader: ITestSuiteLoader { - /// - /// - /// - /// - /// - public Type Load(string suiteClassName) { - Type testClass; - string[] classSpec=suiteClassName.Split(','); - if (classSpec.Length > 1) { - FileInfo dll=new FileInfo(classSpec[1]); - if (!dll.Exists) - throw new FileNotFoundException("File " + dll.FullName + " not found", dll.FullName); - Assembly a = Assembly.LoadFrom(dll.FullName); - testClass=a.GetType(classSpec[0], true); - } - else - testClass = Type.GetType(suiteClassName, true); - return testClass; - } - /// - /// - /// - /// - /// - public Type Reload(Type aClass) { - return aClass; - } - } + /// + /// + /// + /// + /// + public Type Reload(Type aClass) + { + return aClass; + } + } } \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/TestCase.cs b/mcs/nunit/src/NUnitCore/TestCase.cs index 45f54d6d0bb0c..e2e746394bf95 100644 --- a/mcs/nunit/src/NUnitCore/TestCase.cs +++ b/mcs/nunit/src/NUnitCore/TestCase.cs @@ -1,196 +1,241 @@ -namespace NUnit.Framework { - - using System; - using System.Reflection; - /// A test case defines the fixture to run multiple Tests. - /// To define a test case - /// - /// implement a subclass of TestCase - /// define instance variables that store the state - /// of the fixture - /// initialize the fixture state by overriding - /// SetUp - /// clean-up after a test by overriding - /// TearDown - /// - /// Each test runs in its own fixture so there - /// can be no side effects among test runs. - /// Here is an example: - /// - /// public class MathTest: TestCase { - /// protected double fValue1; - /// protected double fValue2; - /// - /// public MathTest(string name) : base(name) {} - /// - /// protected override void SetUp() { - /// fValue1= 2.0; - /// fValue2= 3.0; - /// } - /// } - /// - /// - /// For each test implement a method which interacts - /// with the fixture. Verify the expected results with Assertions specified - /// by calling Assert with a bool. - /// - /// protected void TestAdd() { - /// double result= fValue1 + fValue2; - /// Assert(result == 5.0); - /// } - /// - /// Once the methods are defined you can run them. The framework supports - /// both a static type safe and more dynamic way to run a test. - /// In the static way you override the runTest method and define the method - /// to be invoked. - /// - /// protected class AddMathTest: TestCase { - /// public void AddMathTest(string name) : base(name) {} - /// protected override void RunTest() { TestAdd(); } - /// } - /// - /// test test= new AddMathTest("Add"); - /// test.Run(); - /// - /// The dynamic way uses reflection to implement RunTest. It - /// dynamically finds and invokes a method. In this case the name of the - /// test case has to correspond to the test method to be run. - /// - /// test= new MathTest("TestAdd"); - /// test.Run(); - /// - /// The Tests to be run can be collected into a . - /// NUnit provides different test runners which can run a test suite - /// and collect the results. - /// A test runner either expects a static property Suite as the entry - /// point to get a test to run or it will extract the suite automatically. - /// - /// public static ITest Suite { - /// get { - /// suite.AddTest(new MathTest("TestAdd")); - /// suite.AddTest(new MathTest("TestDivideByZero")); - /// return suite; - /// } - /// } - /// - /// - /// - public abstract class TestCase: Assertion, ITest { - - /// the name of the test case. - private readonly string name; - - /// Constructs a test case with the given name. - public TestCase(string TestName) { - name = TestName; - } - - /// Counts the number of test cases executed by - /// Run(TestResult result). - public int CountTestCases { - get { return 1; } - } - - /// Creates a default object. - protected TestResult CreateResult() { - return new TestResult(); - } - - /// The name of the test case. - public string Name { - get { return name; } - } - - /// A convenience method to run this test, collecting the - /// results with a default object. - public TestResult Run() { - TestResult result= CreateResult(); - Run(result); - return result; - } - - /// Runs the test case and collects the results in - /// TestResult. - public void Run(TestResult result) { - result.Run(this); - } - - /// Runs the bare test sequence. - public void RunBare() { - SetUp(); - try { - RunTest(); - } - finally { - TearDown(); - } - } - - /// Override to run the test and Assert its state. - protected virtual void RunTest() { - MethodInfo runMethod= GetType().GetMethod(name, new Type[0]); - if (runMethod == null) - Fail("Method \""+name+"\" not found"); +namespace NUnit.Framework +{ + using System; + using System.Reflection; + + /// A test case defines the fixture to run multiple Tests. + /// To define a test case + /// + /// implement a subclass of TestCase + /// define instance variables that store the state + /// of the fixture + /// initialize the fixture state by overriding + /// SetUp + /// clean-up after a test by overriding + /// TearDown + /// + /// Each test runs in its own fixture so there can be no side effects + /// among test runs. + /// Here is an example: + /// + /// public class MathTest: TestCase { + /// protected double fValue1; + /// protected double fValue2; + /// + /// public MathTest(string name) : base(name) {} + /// + /// protected override void SetUp() { + /// fValue1= 2.0; + /// fValue2= 3.0; + /// } + /// } + /// + /// + /// For each test implement a method which interacts with the fixture. + /// Verify the expected results with Assertions specified by calling + /// Assert with a bool. + /// + /// protected void TestAdd() { + /// double result= fValue1 + fValue2; + /// Assert(result == 5.0); + /// } + /// + /// Once the methods are defined you can run them. The framework supports + /// both a static type safe and more dynamic way to run a test. + /// In the static way you override the runTest method and define the method + /// to be invoked. + /// + /// protected class AddMathTest: TestCase { + /// public void AddMathTest(string name) : base(name) {} + /// protected override void RunTest() { TestAdd(); } + /// } + /// + /// test test= new AddMathTest("Add"); + /// test.Run(); + /// + /// The dynamic way uses reflection to implement RunTest. It + /// dynamically finds and invokes a method. In this case the name of the + /// test case has to correspond to the test method to be run. + /// + /// test= new MathTest("TestAdd"); + /// test.Run(); + /// + /// The Tests to be run can be collected into a . + /// NUnit provides different test runners which can run a test suite + /// and collect the results. + /// A test runner either expects a static property Suite as the entry + /// point to get a test to run or it will extract the suite automatically. + /// + /// public static ITest Suite { + /// get { + /// suite.AddTest(new MathTest("TestAdd")); + /// suite.AddTest(new MathTest("TestDivideByZero")); + /// return suite; + /// } + /// } + /// + /// + /// + public abstract class TestCase: Assertion, ITest + { + #region Instance Variables + /// the name of the test case. + private readonly string fName; + #endregion + + #region Constructors + /// Constructs a test case with no name. + public TestCase() : this(String.Empty){} + + /// Constructs a test case with the given name. + public TestCase(string testName) + { + this.fName = testName; + } + #endregion + + #region Properties + /// Counts the number of test cases executed by + /// Run(TestResult result). + public int CountTestCases + { + get { return 1; } + } + + /// The name of the test case. + public string Name + { + get { return this.fName; } + } + #endregion + + #region Utility Methods + /// Creates a default object. + protected TestResult CreateResult() + { + return new TestResult(); + } + #endregion + + #region Run Methods + /// A convenience method to run this test, collecting the + /// results with a default object. + public TestResult Run() + { + TestResult result = this.CreateResult(); + this.Run(result); + return result; + } + + /// Runs the test case and collects the results in + /// TestResult. + public void Run(TestResult result) + { + result.Run(this); + } + + /// Runs the bare test sequence. + public void RunBare() + { + this.SetUp(); + try + { + this.RunTest(); + } + finally + { + this.TearDown(); + } + } + + /// Override to run the test and Assert its state. + protected virtual void RunTest() + { + MethodInfo runMethod = GetType().GetMethod(this.Name, new Type[0]); + if (runMethod == null) + Assertion.Fail("Method \""+this.Name+"\" not found"); - if (runMethod != null && !runMethod.IsPublic) { - Fail("Method \""+name+"\" should be public"); - } + if (runMethod != null && !runMethod.IsPublic) + { + Assertion.Fail("Method \""+this.Name+"\" should be public"); + } object[] exa = - runMethod.GetCustomAttributes(typeof(ExpectExceptionAttribute),true); - - try { - runMethod.Invoke(this, null); - } - catch (TargetInvocationException e) { - Exception i = e.InnerException; - if (i is AssertionFailedError) { - throw new NUnitException("", i); - } + runMethod.GetCustomAttributes(typeof(ExpectExceptionAttribute),true); - if (exa.Length > 0) { - foreach (ExpectExceptionAttribute ex in exa) { - if (ex.ExceptionExpected.IsAssignableFrom(i.GetType())) - return; - } - Fail("Wrong exception: " + i); - } else - throw new NUnitException("", i); - } - catch (MemberAccessException e) + try + { + runMethod.Invoke(this, null); + } + catch (AssertionFailedError e) + { + throw new NUnitException("Run Error: ", e); + } + catch (TargetInvocationException e) + { + Exception inner = e.InnerException; + if (inner is AssertionFailedError) + { + throw new NUnitException("Run Error: ", inner); + } + if (exa.Length>0) + { + foreach (ExpectExceptionAttribute ex in exa) + { + if (ex.ExceptionExpected.IsAssignableFrom(inner.GetType())) + return; + } + Assertion.Fail("Unexpected Exception thrown: " + inner); + } + else + { + throw new NUnitException("Run Error: ", inner); + } + } + catch (MemberAccessException e) { throw new NUnitException("", e); } - if (exa.Length > 0) { - System.Text.StringBuilder sb = - new System.Text.StringBuilder - ("One of these exceptions should have been thrown: "); - bool first = true; - foreach (ExpectExceptionAttribute ex in exa) { - if (first) - first = false; - else - sb.Append(", "); - sb.Append(ex); - } - Fail(sb.ToString()); - } - } - - /// Sets up the fixture, for example, open a network connection. - /// This method is called before a test is executed. - protected virtual void SetUp() { - } - - /// Tears down the fixture, for example, close a network - /// connection. This method is called after a test is executed. - protected virtual void TearDown() { - } - - /// Returns a string representation of the test case. - public override string ToString() { - return name+"("+GetType().ToString()+")"; - } - } -} + if (exa.Length > 0) + { + System.Text.StringBuilder sb = + new System.Text.StringBuilder + ("One of these exceptions should have been thrown: "); + bool first = true; + foreach (ExpectExceptionAttribute ex in exa) + { + if(first) + first = false; + else + sb.Append(", "); + sb.Append(ex); + } + Assertion.Fail(sb.ToString()); + } + } + + /// + /// Sets up the fixture, for example, open a network connection. + /// This method is called before a test is executed. + /// + protected virtual void SetUp() {} + /// + /// Tears down the fixture, for example, close a network + /// connection. This method is called after a test is executed. + /// + protected virtual void TearDown() {} + #endregion + + #region Overrides + /// + /// Returns a string representation of the test case. + /// + public override string ToString() + { + return this.Name+"("+this.GetType().ToString()+")"; + } + #endregion + + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/TestCaseClassLoader.cs b/mcs/nunit/src/NUnitCore/TestCaseClassLoader.cs index 52a73b6855e12..80fc7e891001b 100644 --- a/mcs/nunit/src/NUnitCore/TestCaseClassLoader.cs +++ b/mcs/nunit/src/NUnitCore/TestCaseClassLoader.cs @@ -1,37 +1,42 @@ -namespace NUnit.Runner { - using System; -/// -/// -/// - public class TestCaseClassLoader : StandardTestSuiteLoader { - /// - /// - /// - /// - /// - /// - public Type LoadClass(string name, bool resolve) { - return Load(name); - } -/// -/// -/// -/// -/// - public bool IsExcluded(string name) { - return false; - } - } +namespace NUnit.Runner +{ + using System; + + /// + /// + /// + [Obsolete("Use StandardLoader or UnloadingLoader")] + public class TestCaseClassLoader : StandardTestSuiteLoader + { + /// + /// + /// + /// + /// + /// + public Type LoadClass(string name, bool resolve) + { + return Load(name); + } + /// + /// + /// + /// + /// + public bool IsExcluded(string name) + { + return false; + } + } } #if false - // commented out till figure out .net class reloading namespace NUnit.Runner { - /** + /** * A custom class loader which enables the reloading * of classes for each test run. The class loader * can be configured with a list of package paths that @@ -200,5 +205,4 @@ public class TestCaseClassLoader: ClassLoader { return excluded; } } - #endif diff --git a/mcs/nunit/src/NUnitCore/TestDecorator.cs b/mcs/nunit/src/NUnitCore/TestDecorator.cs index 0275391235037..eded1c24ba5e7 100644 --- a/mcs/nunit/src/NUnitCore/TestDecorator.cs +++ b/mcs/nunit/src/NUnitCore/TestDecorator.cs @@ -1,56 +1,71 @@ -namespace NUnit.Extensions { +namespace NUnit.Extensions +{ + using System; + using NUnit.Framework; - using System; - - using NUnit.Framework; - - /// A Decorator for Tests. - /// Use TestDecorator as the base class - /// for defining new test decorators. TestDecorator subclasses - /// can be introduced to add behaviour before or after a test - /// is run. - public class TestDecorator: Assertion, ITest { - /// - /// - /// - protected readonly ITest fTest; - /// - /// - /// - /// - public TestDecorator(ITest test) { - fTest= test; - } - - /// The basic run behaviour. - public void BasicRun(TestResult result) { - fTest.Run(result); - } - /// - /// - /// - public virtual int CountTestCases { - get { return fTest.CountTestCases; } - } - /// - /// - /// - public ITest GetTest { - get { return fTest; } - } - /// - /// - /// - /// - public virtual void Run(TestResult result) { - BasicRun(result); - } - /// - /// - /// - /// - public override string ToString() { - return fTest.ToString(); - } - } -} + /// A Decorator for Tests. + /// Use TestDecorator as the base class + /// for defining new test decorators. TestDecorator subclasses + /// can be introduced to add behaviour before or after a test + /// is run. + public class TestDecorator: Assertion, ITest + { + /// + /// A reference to the test that is being decorated + /// + protected readonly ITest fTest; + /// + /// Creates a decorator for the supplied test + /// + /// The test to be decorated + public TestDecorator(ITest test) + { + if(test!= null) + { + this.fTest= test; + } + else + throw new ArgumentNullException("test"); + } + /// + /// + /// + /// + public virtual void Run(TestResult result) + { + this.BasicRun(result); + } + /// The basic run behaviour. + public void BasicRun(TestResult result) + { + this.fTest.Run(result); + } + /// + /// + /// + public virtual int CountTestCases + { + get { return fTest.CountTestCases; } + } + /// + /// + /// + public ITest GetTest + { + get { return fTest; } + } + //public string Name + //{ + // get{return fTest.Name;} + //} + + /// + /// + /// + /// + public override string ToString() + { + return fTest.ToString(); + } + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/TestFailure.cs b/mcs/nunit/src/NUnitCore/TestFailure.cs index 7d768b494bac6..4dad5bd02bd04 100644 --- a/mcs/nunit/src/NUnitCore/TestFailure.cs +++ b/mcs/nunit/src/NUnitCore/TestFailure.cs @@ -1,44 +1,55 @@ -namespace NUnit.Framework { - - using System; - using System.Diagnostics; - using System.IO; - using System.Text; +namespace NUnit.Framework +{ + using System; + using System.Diagnostics; + using System.IO; + using System.Text; - /// A TestFailure collects a failed test together with - /// the caught exception. - /// - public class TestFailure { - private readonly ITest failedTest; - private readonly Exception thrownException; + /// + /// A TestFailure collects a failed test together with + /// the caught exception. + /// + /// + public class TestFailure : MarshalByRefObject + { + private readonly ITest fFailedTest; + private readonly Exception fThrownException; - /// Constructs a TestFailure with the given test and - /// exception. - public TestFailure(ITest theFailedTest, Exception theThrownException) { - failedTest= theFailedTest; - thrownException= theThrownException; - } + /// + /// Constructs a TestFailure with the given test and exception. + /// + public TestFailure(ITest theFailedTest, Exception theThrownException) + { + if(theFailedTest==null) + throw new ArgumentNullException("theFailedTest"); + if(theThrownException==null) + throw new ArgumentNullException("theThrownException"); + this.fFailedTest = theFailedTest; + this.fThrownException = theThrownException; + } - /// Gets the failed test. - public ITest FailedTest { - get { return failedTest; } - } + /// Gets the failed test. + public ITest FailedTest + { + get { return this.fFailedTest; } + } - /// True if it's a failure, false if error. - public bool IsFailure { - get { return thrownException is AssertionFailedError; } - } + /// True if it's a failure, false if error. + public bool IsFailure + { + get { return this.fThrownException is AssertionFailedError; } + } - /// Gets the thrown exception. - public Exception ThrownException { - get { return thrownException; } - } + /// Gets the thrown exception. + public Exception ThrownException + { + get { return this.fThrownException; } + } - /// Returns a short description of the failure. - public override string ToString() { - StringBuilder buffer= new StringBuilder(); - buffer.Append(failedTest+": "+thrownException.Message); - return buffer.ToString(); - } - } -} + /// Returns a short description of the failure. + public override string ToString() + { + return this.fFailedTest + ": " + this.fThrownException.Message; + } + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/TestResult.cs b/mcs/nunit/src/NUnitCore/TestResult.cs index 9b0bfb7590d48..ff274a8c4ff22 100644 --- a/mcs/nunit/src/NUnitCore/TestResult.cs +++ b/mcs/nunit/src/NUnitCore/TestResult.cs @@ -1,181 +1,249 @@ -namespace NUnit.Framework { - - using System; - using System.Collections; - using System.Threading; - - /// A TestResult collects the results of executing - /// a test case. It is an instance of the Collecting Parameter pattern. - /// - /// The test framework distinguishes between failures and errors. - /// A failure is anticipated and checked for with assertions. Errors are - /// unanticipated problems like an ArgumentOutOfRangeException. - /// - public class TestResult { - private ArrayList fFailures; - private ArrayList fErrors; - private ArrayList fListeners; - private int fRunTests; - private bool fStop; - /// - /// - /// - public TestResult() { - fFailures= new ArrayList(); - fErrors= new ArrayList(); - fListeners= new ArrayList(); - } - - /// Adds an error to the list of errors. The passed in exception - /// caused the error. - public void AddError(ITest test, Exception t) { - lock(this) { - fErrors.Add(new TestFailure(test, t)); - foreach (ITestListener l in CloneListeners()) { - l.AddError(test, t); - } - } - } - - /// Adds a failure to the list of failures. The passed in - /// exception caused the failure. - public void AddFailure(ITest test, AssertionFailedError t) { - lock(this) - { - fFailures.Add(new TestFailure(test, t)); - foreach (ITestListener l in CloneListeners()) { - l.AddFailure(test, t); - } - } - } - - /// Registers a TestListener. - public void AddListener(ITestListener listener) { - lock(this) - fListeners.Add(listener); - } - - /// Returns a copy of the listeners. - private ArrayList CloneListeners() { - lock(this) - return (ArrayList)fListeners.Clone(); - } - - /// Informs the result that a test was completed. - public void EndTest(ITest test) { - foreach (ITestListener l in CloneListeners()) { - l.EndTest(test); - } - } - - /// Gets the number of detected errors. - public int ErrorCount { - get {return fErrors.Count; } - } - - /// Returns an IEnumerable for the errors. - public IEnumerable Errors { - get { return fErrors; } - } - - /// Gets the number of detected failures. - public int FailureCount { - get {return fFailures.Count; } - } - - /// Returns an IEnumerable for the failures. - public IEnumerable Failures { - get { return fFailures; } - } - - /// Runs a TestCase. - protected class ProtectedProtect: IProtectable { - private TestCase fTest; +namespace NUnit.Framework +{ + using System; + using System.Collections; + using System.Threading; + + /// A TestResult collects the results of executing + /// a test case. It is an instance of the Collecting Parameter pattern. + /// + /// The test framework distinguishes between failures and errors. + /// A failure is anticipated and checked for with assertions. Errors are + /// unanticipated problems like an ArgumentOutOfRangeException. + /// + public class TestResult : MarshalByRefObject + { + #region Instance Variables + private ArrayList fFailures; + private ArrayList fErrors; + private ArrayList fListeners; + private int fRunTests; + private bool fStop; + #endregion + + #region Constructors /// /// /// - /// - public ProtectedProtect(TestCase test) { - fTest = test; - } + public TestResult() + { + fFailures= new ArrayList(); + fErrors= new ArrayList(); + fListeners= new ArrayList(); + } + #endregion + + #region Collection Methods /// - /// + /// Adds an error to the list of errors. The passed in exception + /// caused the error. /// - public void Protect() { - fTest.RunBare(); - } - } - - /// Unregisters a TestListener - public void RemoveListener(ITestListener listener) { - lock(this) { - fListeners.Remove(listener); - } - } - - /// Runs a TestCase. - internal void Run(TestCase test) { - StartTest(test); - IProtectable p = new ProtectedProtect(test); - RunProtected(test, p); - - EndTest(test); - } - - /// Gets the number of run tests. - public int RunCount { - get {return fRunTests; } - } - - /// Runs a TestCase. - public void RunProtected(ITest test, IProtectable p) { - try { - p.Protect(); - } - catch (NUnitException e) { - if (e.IsAssertionFailure) - AddFailure(test, (AssertionFailedError)e.InnerException); - else - AddError(test, e.InnerException); - } - catch (ThreadAbortException e) { // don't catch by accident - throw e; - } - catch (AssertionFailedError e) { - AddFailure(test, e); - } - catch (System.Exception e) { - AddError(test, e); - } - } - - /// Checks whether the test run should stop. - public bool ShouldStop { - get {return fStop; } - } - - /// Informs the result that a test will be started. - public void StartTest(ITest test) { - int count = test.CountTestCases; - lock(this) - fRunTests += count; - foreach (ITestListener l in CloneListeners()) { - l.StartTest(test); - } - } - - /// Marks that the test run should stop. - public void Stop() { - fStop= true; - } - - /// Returns whether the entire test was successful or not. - public bool WasSuccessful { - get { - lock(this) - return (FailureCount == 0) && (ErrorCount == 0); - } - } - } -} - + public void AddError(ITest test, Exception error) + { + lock(this) + { + this.fErrors.Add(new TestFailure(test, error)); + foreach (ITestListener listner in CloneListeners()) + { + listner.AddError(test, error); + } + } + } + /// + /// Adds a failure to the list of failures. The passed in + /// exception caused the failure. + /// + public void AddFailure(ITest test, AssertionFailedError failure) + { + lock(this) + { + fFailures.Add(new TestFailure(test, failure)); + foreach (ITestListener listner in CloneListeners()) + { + listner.AddFailure(test, failure); + } + } + } + #endregion + + #region Events + /// Registers a TestListener. + public void AddListener(ITestListener listener) + { + lock(this) + this.fListeners.Add(listener); + } + /// Unregisters a TestListener + public void RemoveListener(ITestListener listener) + { + lock(this) + { + fListeners.Remove(listener); + } + } + /// Returns a copy of the listeners. + private ArrayList CloneListeners() + { + lock(this) + { + return (ArrayList)fListeners.Clone(); + } + } + /// Informs the result that a test was completed. + public void EndTest(ITest test) + { + foreach (ITestListener listner in CloneListeners()) + { + listner.EndTest(test); + } + } + /// Informs the result that a test will be started. + public void StartTest(ITest test) + { + lock(this) + { + this.fRunTests += test.CountTestCases; + } + foreach (ITestListener listner in CloneListeners()) + { + listner.StartTest(test); + } + } + #endregion + + #region Properties + /// Gets the number of run tests. + public int RunCount + { + get {lock(this)return this.fRunTests; } + } + /// Gets the number of detected errors. + public int ErrorCount + { + get {lock(this)return this.fErrors.Count; } + } + /// Gets the number of detected failures. + public int FailureCount + { + get {lock(this)return this.fFailures.Count; } + } + /// Checks whether the test run should stop. + public bool ShouldStop + { + get {lock(this)return this.fStop; } + } + /// Returns whether the entire test was successful or not. + public bool WasSuccessful + { + get + { + lock(this) + { + return (this.FailureCount == 0) + && (this.ErrorCount == 0); + } + } + } + /// Returns a TestFailure[] for the errors. + public TestFailure[] Errors + { + get + { + lock(this) + { + TestFailure[] retVal = new TestFailure[this.fErrors.Count]; + this.fErrors.CopyTo(retVal); + return retVal; + } + } + } + /// Returns a TestFauiler[] for the failures. + public TestFailure[] Failures + { + get + { + lock(this) + { + TestFailure[] retVal = new TestFailure[this.fFailures.Count]; + this.fFailures.CopyTo(retVal); + return retVal; + } + } + } + #endregion + + #region Nested Classes + /// Runs a TestCase. + protected class ProtectedProtect: IProtectable + { + private TestCase fTest; + /// + /// + /// + /// + public ProtectedProtect(TestCase test) + { + if(test != null) + { + this.fTest = test; + } + else + { + throw new ArgumentNullException("test"); + } + } + /// + /// + /// + public void Protect() + { + this.fTest.RunBare(); + } + } + #endregion + + #region Run Methods + /// Runs a TestCase. + internal void Run(TestCase test) + { + StartTest(test); + IProtectable p = new ProtectedProtect(test); + RunProtected(test, p); + EndTest(test); + } + + /// Runs a TestCase. + public void RunProtected(ITest test, IProtectable p) + { + try + { + p.Protect(); + } + catch (AssertionFailedError e) + { + AddFailure(test, e); + } + catch (NUnitException e) + { + if (e.IsAssertionFailure) + AddFailure(test, (AssertionFailedError)e.InnerException); + else + AddError(test, e.InnerException); + } + catch (ThreadAbortException e) + { // don't catch by accident + throw e; + } + catch (System.Exception e) + { + AddError(test, e); + } + } + /// Marks that the test run should stop. + public void Stop() + { + fStop= true; + } + #endregion + } +} \ No newline at end of file diff --git a/mcs/nunit/src/NUnitCore/TestSetup.cs b/mcs/nunit/src/NUnitCore/TestSetup.cs index fb360a6035156..9582350401572 100644 --- a/mcs/nunit/src/NUnitCore/TestSetup.cs +++ b/mcs/nunit/src/NUnitCore/TestSetup.cs @@ -1,58 +1,70 @@ -namespace NUnit.Extensions { +namespace NUnit.Extensions +{ + using System; + using NUnit.Framework; + + /// A Decorator to set up and tear down additional fixture state. + /// + /// Subclass TestSetup and insert it into your tests when you want + /// to set up additional state once before the tests are run. + public class TestSetup: TestDecorator + { + #region Constructors + /// + /// + /// + /// + public TestSetup(ITest test) : base(test) {} + #endregion - using System; + #region Nested Classes + /// + /// + /// + protected class ProtectedProtect: IProtectable + { + private readonly TestSetup fTestSetup; + private readonly TestResult fTestResult; + /// + /// + /// + /// + /// + public ProtectedProtect(TestSetup testSetup, TestResult testResult) + { + if(testSetup == null) + throw new ArgumentNullException("testSetup"); + if(testResult == null) + throw new ArgumentNullException("testResult"); + this.fTestSetup = testSetup; + this.fTestResult = testResult; + } + /// + /// + /// + void IProtectable.Protect() + { + this.fTestSetup.SetUp(); + this.fTestSetup.BasicRun(fTestResult); + this.fTestSetup.TearDown(); + } + } + #endregion - using NUnit.Framework; - - /// A Decorator to set up and tear down additional fixture state. - /// - /// Subclass TestSetup and insert it into your tests when you want - /// to set up additional state once before the tests are run. - public class TestSetup: TestDecorator { - /// - /// - /// - /// - public TestSetup(ITest test) : base(test) {} - /// - /// - /// - protected class ProtectedProtect: IProtectable { - private readonly TestSetup fTestSetup; - private readonly TestResult fTestResult; - /// - /// - /// - /// - /// - public ProtectedProtect(TestSetup testSetup, TestResult testResult) { - fTestSetup = testSetup; - fTestResult = testResult; - } - /// - /// - /// - public void Protect() { - fTestSetup.SetUp(); - fTestSetup.BasicRun(fTestResult); - fTestSetup.TearDown(); - } - } - /// - /// - /// - /// - public override void Run(TestResult result) { - IProtectable p= new ProtectedProtect(this, result); - result.RunProtected(this, p); - } - /// Sets up the fixture. Override to set up additional fixture - /// state. - protected virtual void SetUp() { - } - /// Tears down the fixture. Override to tear down the additional - /// fixture state. - protected virtual void TearDown() { - } - } + /// + /// + /// + /// + public override void Run(TestResult result) + { + IProtectable p = new ProtectedProtect(this, result); + result.RunProtected(this, p); + } + /// Sets up the fixture. Override to set up additional fixture + /// state. + protected virtual void SetUp() {} + /// Tears down the fixture. Override to tear down the additional + /// fixture state. + protected virtual void TearDown() {} + } } diff --git a/mcs/nunit/src/NUnitCore/TestSuite.cs b/mcs/nunit/src/NUnitCore/TestSuite.cs index 558060ee4d181..7febc1150f598 100644 --- a/mcs/nunit/src/NUnitCore/TestSuite.cs +++ b/mcs/nunit/src/NUnitCore/TestSuite.cs @@ -1,243 +1,293 @@ -namespace NUnit.Framework { - - using System; - using System.Collections; - using System.Reflection; - - /// A TestSuite is a Composite of Tests. - /// It runs a collection of test cases. Here is an example using - /// the dynamic test definition. - /// - /// TestSuite suite= new TestSuite(); - /// suite.AddTest(new MathTest("TestAdd")); - /// suite.AddTest(new MathTest("TestDivideByZero")); - /// - /// Alternatively, a TestSuite can extract the Tests to be run automatically. - /// To do so you pass the class of your TestCase class to the - /// TestSuite constructor. - /// - /// TestSuite suite= new TestSuite(typeof(MathTest)); - /// - /// This constructor creates a suite with all the methods - /// starting with "Test" that take no arguments. - /// - public class TestSuite: MarshalByRefObject, ITest { - - private ArrayList fTests= new ArrayList(10); - private string fName; - private bool fHasWarnings = false; - - /// Constructs an empty TestSuite. - public TestSuite() { - } - - /// Constructs a TestSuite from the given class. - /// Adds all the methods - /// starting with "Test" as test cases to the suite. - /// Parts of this method was written at 2337 meters in the Hüffihütte, - /// Kanton Uri - public TestSuite(Type theClass) { - fName= theClass.Name; - ConstructorInfo constructor = GetConstructor(theClass); - if (constructor == null) { - AddTest(Warning("Class "+theClass.Name+" has no public constructor TestCase(String name)")); - return; - } - if (theClass.IsNotPublic) { - AddTest(Warning("Class "+theClass.Name+" is not public")); - return; - } - - Type superClass= theClass; - ArrayList names= new ArrayList(); - while (typeof(ITest).IsAssignableFrom(superClass)) { - MethodInfo[] methods= superClass.GetMethods(BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance); - for (int i= 0; i < methods.Length; i++) { - AddTestMethod(methods[i], names, constructor); - } - superClass= superClass.BaseType; - } - if (fTests.Count == 0) - AddTest(Warning("No Tests found in "+theClass.ToString())); - } - /// - /// - /// - /// - /// - public TestSuite(Type theClass, ref bool hasNonWarningTests) { - hasNonWarningTests = false; - fName= theClass.ToString(); - ConstructorInfo constructor= GetConstructor(theClass); - if (constructor == null) { - return; - } - if (theClass.IsNotPublic) { - return; - } - - Type superClass= theClass; - ArrayList names= new ArrayList(); - while (typeof(ITest).IsAssignableFrom(superClass)) { - MethodInfo[] methods= superClass.GetMethods(BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance); - for (int i= 0; i < methods.Length; i++) { - AddTestMethod(methods[i], names, constructor); - } - superClass= superClass.BaseType; - } - if (fHasWarnings) { - hasNonWarningTests = false; - } else { - hasNonWarningTests = (fTests.Count != 0); - } - } - - /// Constructs an empty TestSuite. - public TestSuite(string name) { - fName= name; - } - - /// Adds a test to the suite. - public void AddTest(ITest test) { - fTests.Add(test); - } - - private void AddTestMethod(MethodInfo m, ArrayList names, - ConstructorInfo constructor) { - string name= m.Name; - if (names.Contains(name)) - return; - if (IsPublicTestMethod(m)) { - names.Add(name); - - Object[] args= new Object[]{name}; - try { - AddTest((ITest)constructor.Invoke(args)); - } catch (TypeLoadException e) { - AddTest(Warning("Cannot instantiate test case: "+name + "( " + e.ToString() + ")")); - } catch (TargetInvocationException e) { - AddTest(Warning("Exception in constructor: "+name + "( " + e.ToString() + ")")); - } - catch (MemberAccessException e) - { - AddTest(Warning("Cannot access test case: "+name + "( " + e.ToString() + ")")); - } - - } else { // almost a test method - if (IsTestMethod(m)) - AddTest(Warning("test method isn't public: "+m.Name)); - } - } - - /// Adds the tests from the given class to the suite - public void AddTestSuite(Type testClass) { - AddTest(new TestSuite(testClass)); - } - - /// The number of test cases that will be run by this test. - public int CountTestCases { - get { - int count= 0; - foreach (ITest test in Tests) { - count += test.CountTestCases; - } - return count; - } - } - - /// Gets a constructor which takes a single string as - /// its argument. - private ConstructorInfo GetConstructor(Type theClass) { - Type[] args= { typeof(string) }; - return theClass.GetConstructor(args); - } - - /// - /// Returns the name of the suite. Not all test suites have a name - /// and this method can return null. - /// - public string Name { - get { return fName; } - } - - private bool IsPublicTestMethod(MethodInfo m) { - return IsTestMethod(m) && m.IsPublic; - } - - private bool IsTestMethod(MethodInfo m) { - string name= m.Name; - - ParameterInfo[] parameters= m.GetParameters(); - Type returnType= m.ReturnType; - return parameters.Length == 0 && name.ToLower().StartsWith("test") - && returnType.Equals(typeof(void)); - } - - /// Runs the Tests and collects their result in a - /// TestResult. - public virtual void Run(TestResult result) { - foreach (ITest test in Tests) { - if (result.ShouldStop ) - break; - RunTest(test, result); - } - } - /// - /// - /// - /// - /// - public virtual void RunTest(ITest test, TestResult result) { - test.Run(result); - } +namespace NUnit.Framework +{ + using System; + using System.Collections; + using System.Collections.Specialized; + using System.Reflection; + + /// A TestSuite is a Composite of Tests. + /// It runs a collection of test cases. Here is an example using + /// the dynamic test definition. + /// + /// TestSuite suite= new TestSuite(); + /// suite.AddTest(new MathTest("TestAdd")); + /// suite.AddTest(new MathTest("TestDivideByZero")); + /// + /// Alternatively, a TestSuite can extract the Tests to be run automatically. + /// To do so you pass the class of your TestCase class to the + /// TestSuite constructor. + /// + /// TestSuite suite= new TestSuite(typeof(MathTest)); + /// + /// This constructor creates a suite with all the methods + /// starting with "Test" that take no arguments. + /// + public class TestSuite: MarshalByRefObject, ITest + { + #region Instance Variables + private ArrayList fTests= new ArrayList(10); + private string fName; + private bool fSupressWarnings = false; + private string fDynamicConstructionQualifiedName= string.Empty; + + #endregion + + #region Constructors + /// Constructs an empty TestSuite with a name. + public TestSuite(string name) + { + if(name==null) + this.fName=String.Empty; + this.fName = name; + } + + /// Constructs an empty TestSuite with no name. + public TestSuite() : this(String.Empty){} + + /// Constructs a TestSuite from the given class. + /// Adds all the methods starting with "Test" as test cases + /// to the suite. Parts of this method was written at 2337 meters in + /// the Hüffihütte, Kanton Uri + /// + /// + public TestSuite(Type theClass, bool supressWarnings) : + this(theClass.FullName) + { + this.fSupressWarnings = supressWarnings; + //REFACTOR: these checks are also found in AssemblyTestCollector + if( theClass.IsClass + && (theClass.IsPublic || theClass.IsNestedPublic) + && !theClass.IsAbstract + && typeof(ITest).IsAssignableFrom(theClass) + ) + { + ConstructorInfo FixtureConstructor = GetConstructor(theClass); + if(FixtureConstructor != null) + { + { + MethodInfo[] methods = theClass.GetMethods( + BindingFlags.Public + |BindingFlags.NonPublic + |BindingFlags.Instance + ); + foreach (MethodInfo method in methods) + { + AddTestMethod(method, FixtureConstructor); + } + if (this.fTests.Count == 0) + AddWarning("No Tests found in "+theClass.ToString()); + } + } + else + { + AddWarning("Class "+theClass.Name + +" has no public constructor TestCase(String name)"); + } + } + else + { + AddWarning("Type '" + theClass.Name + +"' must be a public, not abstract class that" + +" implements ITest."); + } + } + + /// + /// + /// + /// + public TestSuite(Type theClass) : this(theClass,false){} + #endregion + + #region Collection Methods + /// Adds a test to the suite. + public void AddTest(ITest test) + { + fTests.Add(test); + } - /// The test at the given index. - /// Formerly TestAt(int). - public ITest this[int index] { - get {return (ITest)fTests[index]; } - } + /// Adds the tests from the given class to the suite + public void AddTestSuite(Type testClass) + { + AddTest(new TestSuite(testClass)); + } + #endregion + + #region Dynamic Test Case Creation + //private void AddTestMethod(MethodInfo m, StringCollection names, + private void AddTestMethod(MethodInfo m, + ConstructorInfo constructor) + { + string name = m.Name; + if (IsPublicTestMethod(m)) + { + Object[] args= new Object[]{name}; + try + { + AddTest((ITest)constructor.Invoke(args)); + } + catch (TypeLoadException e) + { + AddWarning("Cannot instantiate test case: "+name + "( " + e.ToString() + ")"); + } + catch (TargetInvocationException e) + { + AddWarning("Exception in constructor: "+name + "( " + e.ToString() + ")"); + } + catch (MemberAccessException e) + { + AddWarning("Cannot access test case: "+name + "( " + e.ToString() + ")"); + } + } + else + { // almost a test method + if (IsTestMethod(m)) + AddWarning("test method isn't public: "+m.Name); + } + } + + /// Gets a constructor which takes a single string as + /// its argument. + private ConstructorInfo GetConstructor(Type theClass) + { + //REFACTOR: these checks are also found in AssemblyTestCollector + return theClass.GetConstructor(new Type[]{typeof(string)}); + } + + private bool IsPublicTestMethod(MethodInfo methodToCheck) + { + return methodToCheck.IsPublic + && IsTestMethod(methodToCheck); + } + + private bool IsTestMethod(MethodInfo methodToCheck) + { + return + !methodToCheck.IsAbstract + && methodToCheck.GetParameters().Length == 0 + && methodToCheck.ReturnType.Equals(typeof(void)) + && methodToCheck.Name.ToLower().StartsWith("test") + ; + } + #endregion + + #region Properties + /// + /// Returns the name of the suite. Not all test suites have a name + /// and this method can return null. + /// + public string Name + { + get { return this.fName; } + } + + /// + /// The number of test cases that will be run by this test. + /// + public int CountTestCases + { + get + { + int count= 0; + foreach (ITest test in this.Tests) + { + count += test.CountTestCases; + } + return count; + } + } + + /// The number of Tests in this suite. + public int TestCount + { + get {return this.fTests.Count; } + } + + /// The test at the given index. + /// Formerly TestAt(int). + public ITest this[int index] + { + get {return (ITest)this.fTests[index]; } + } - /// The number of Tests in this suite. - public int TestCount { - get {return fTests.Count; } - } + /// The Tests as a Test[]. + public ITest[] Tests + { + get { + ITest[] ret = new ITest[this.fTests.Count]; + this.fTests.CopyTo(ret); + return ret; + } + } + #endregion + + #region Utility Methods + private void AddWarning(string message) + { + if(!this.fSupressWarnings) + AddTest(new WarningFail(message)); + } + #endregion + + #region Run Methods + /// Runs the Tests and collects their result in a + /// TestResult. + public virtual void Run(TestResult result) + { + foreach (ITest test in Tests) + { + if (result.ShouldStop ) + break; + RunTest(test, result); + } + } + /// + /// + /// + /// + /// + public virtual void RunTest(ITest test, TestResult result) + { + test.Run(result); + } - /// The Tests as an ArrayList. - public ArrayList Tests { - get { return fTests; } - } - /// - /// - /// - /// - public override string ToString() { - if (Name != null) - return Name; - return base.ToString(); - } - - private ITest Warning(string message) { - fHasWarnings = true; - return new WarningFail(message); - } - - /// Returns a test which will fail and log a warning - /// message. - public class WarningFail: TestCase { - private string fMessage; - /// - /// - /// - /// - public WarningFail(string message): base("warning") { - fMessage = message; - } - /// - /// - /// - protected override void RunTest() { - Fail(fMessage); - } - } - } + /// + /// + /// + /// + #endregion + + #region Overrides + public override string ToString() + { + return this.Name; + } + #endregion + + #region Nested Classes + /// A test which will fail and log a warning + /// message. + public class WarningFail : TestCase + { + private string fMessage; + + /// + /// + /// + /// + public WarningFail(string message): base("warning") + { + this.fMessage = message; + } + + /// + /// + /// + protected override void RunTest() + { + Assertion.Fail(fMessage); + } + } + #endregion + } } diff --git a/mcs/nunit/src/NUnitCore/Version.cs b/mcs/nunit/src/NUnitCore/Version.cs index 64a5a7a23c25d..bc7770df126e9 100644 --- a/mcs/nunit/src/NUnitCore/Version.cs +++ b/mcs/nunit/src/NUnitCore/Version.cs @@ -1,18 +1,23 @@ -namespace NUnit.Runner { - +namespace NUnit.Runner +{ + using System.Reflection; /// /// This class defines the current version of NUnit /// - public class Version { - private Version() { - // don't instantiate - } - /// - /// - /// - /// - public static string id() { - return "1.10"; - } - } + public class Version + { + private Version() + { + // don't instantiate + } + /// + /// + /// + /// + public static string id() + { + return Assembly.GetExecutingAssembly().GetName().Version.ToString(); + //return "1.10"; + } + } } From 4e4824afab6cd0f9f0d71aa6baeddb7bee74f8c4 Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 21 Aug 2002 10:08:33 +0000 Subject: [PATCH 2/2] This commit was manufactured by cvs2svn to create branch 'SAVANNAH_CVS'. svn path=/branches/SAVANNAH_CVS/mcs/; revision=6844 --- mcs/AUTHORS | 16 - mcs/ChangeLog | 96 - mcs/INSTALL | 53 - mcs/INSTALL.txt | 53 - mcs/MonoIcon.png | Bin 448 -> 0 bytes mcs/README | 25 - mcs/class/.cvsignore | 1 - mcs/class/Microsoft.VisualBasic/Changelog | 21 - .../Microsoft.VisualBasic.build | 40 - .../Microsoft.VisualBasic/AppWinStyle.cs | 18 - .../Microsoft.VisualBasic/CallType.cs | 16 - .../Microsoft.VisualBasic/ChangeLog | 6 - .../Microsoft.VisualBasic/Collection.cs | 314 - .../ComClassAttribute.cs | 35 - .../Microsoft.VisualBasic/CompareMethod.cs | 26 - .../Microsoft.VisualBasic/Constants.cs | 136 - .../Microsoft.VisualBasic/ControlChars.cs | 27 - .../Microsoft.VisualBasic/Conversion.cs | 616 -- .../Microsoft.VisualBasic/DateAndTime.cs | 478 - .../Microsoft.VisualBasic/DateFormat.cs | 37 - .../Microsoft.VisualBasic/DateInterval.cs | 22 - .../Microsoft.VisualBasic/DueDate.cs | 14 - .../Microsoft.VisualBasic/ErrObject.cs | 41 - .../Microsoft.VisualBasic/FileAttribute.cs | 20 - .../Microsoft.VisualBasic/FileSystem.cs | 189 - .../Microsoft.VisualBasic/Financial.cs | 48 - .../Microsoft.VisualBasic/FirstDayOfWeek.cs | 20 - .../Microsoft.VisualBasic/FirstWeekOfYear.cs | 16 - .../Microsoft.VisualBasic/Globals.cs | 30 - .../Microsoft.VisualBasic/Information.cs | 57 - .../Microsoft.VisualBasic/Interaction.cs | 39 - .../BooleanType.cs | 26 - .../ByteType.cs | 26 - .../CharArrayType.cs | 27 - .../CharType.cs | 27 - .../DateType.cs | 28 - .../DecimalType.cs | 34 - .../DoubleType.cs | 33 - .../ExceptionUtils.cs | 20 - .../FlowControl.cs | 41 - .../HostServices.cs | 24 - .../IVbHost.cs | 20 - .../IncompleteInitialization.cs | 19 - .../IntegerType.cs | 26 - .../LateBinding.cs | 51 - .../LongType.cs | 26 - .../ObjectType.cs | 58 - .../OptionCompareAttribute.cs | 32 - .../OptionTextAttribute.cs | 20 - .../ProjectData.cs | 80 - .../ShortType.cs | 26 - .../SingleType.cs | 30 - .../StandardModuleAttribute.cs | 20 - .../StaticLocalInitFlag.cs | 20 - .../StringType.cs | 61 - .../TODOAttribute.cs | 39 - .../Utils.cs | 31 - .../Microsoft.VisualBasic/MsgBoxResult.cs | 19 - .../Microsoft.VisualBasic/MsgBoxStyle.cs | 32 - .../Microsoft.VisualBasic/OpenAccess.cs | 16 - .../Microsoft.VisualBasic/OpenMode.cs | 17 - .../Microsoft.VisualBasic/OpenShare.cs | 17 - .../Microsoft.VisualBasic/SpcInfo.cs | 20 - .../Microsoft.VisualBasic/Strings.cs | 1110 -- .../Microsoft.VisualBasic/TODOAttribute.cs | 39 - .../Microsoft.VisualBasic/TabInfo.cs | 23 - .../Microsoft.VisualBasic/TriState.cs | 19 - .../VBFixedArrayAttribute.cs | 30 - .../VBFixedStringAttribute.cs | 26 - .../Microsoft.VisualBasic/VBMath.cs | 29 - .../Microsoft.VisualBasic/VariantType.cs | 32 - .../Microsoft.VisualBasic/VbStrConv.cs | 73 - .../Microsoft.VisualBasic/Test/.cvsignore | 1 - .../Microsoft.VisualBasic/Test/AllTests.cs | 33 - .../Test/CollectionTest.cs | 535 - .../Test/ConversionTest.cs | 674 -- .../Test/DateAndTimeTest.cs | 380 - .../Test/Microsoft.VisualBasic_test.build | 63 - mcs/class/Microsoft.VisualBasic/list | 62 - mcs/class/Microsoft.VisualBasic/makefile.gnu | 13 - .../AssemblerWriterI386.cs | 311 - mcs/class/Mono.CSharp.Debugger/ChangeLog | 251 - .../Mono.CSharp.Debugger/IAssemblerWriter.cs | 70 - .../Mono.CSharp.Debugger/IMonoSymbolWriter.cs | 200 - .../Mono.CSharp.Debugger.build | 24 - .../MonoDwarfFileWriter.cs | 2822 ------ .../MonoSymbolDocumentWriter.cs | 60 - .../Mono.CSharp.Debugger/MonoSymbolWriter.cs | 811 -- mcs/class/Mono.CSharp.Debugger/README | 43 - .../README.relocation-table | 100 - mcs/class/Mono.CSharp.Debugger/csharp-lang.c | 330 - mcs/class/Mono.CSharp.Debugger/csharp-lang.h | 38 - .../Mono.CSharp.Debugger/csharp-mono-lang.c | 76 - .../gdb-csharp-support.patch | 460 - .../gdb-variable-scopes.patch | 175 - mcs/class/Mono.Data.MySql/ChangeLog | 79 - .../Mono.Data.MySql/Mono.Data.MySql.build | 65 - .../Mono.Data.MySql/Mono.Data.MySql/Field.cs | 66 - .../Mono.Data.MySql/Mono.Data.MySql/MySql.cs | 270 - .../Mono.Data.MySql/MySqlCommand.cs | 335 - .../Mono.Data.MySql/MySqlConnection.cs | 534 - .../Mono.Data.MySql/TODOAttribute.cs | 33 - .../Mono.Data.MySql/Mono.Data.MySql/Test.cs | 259 - .../Mono.Data.MySql/Mono.Data.MySql/makefile | 20 - .../Mono.Data.MySql/Test/TestMySqlInsert.cs | 103 - mcs/class/Mono.Data.MySql/list | 5 - .../Mono.Data.PostgreSqlClient/ParmUtil.cs | 176 - .../PgSqlClientPermission.cs | 78 - .../PgSqlClientPermissionAttribute.cs | 46 - .../PgSqlCommand.cs | 928 -- .../PgSqlCommandBuilder.cs | 103 - .../PgSqlConnection.cs | 722 -- .../PgSqlDataAdapter.cs | 191 - .../PgSqlDataReader.cs | 422 - .../Mono.Data.PostgreSqlClient/PgSqlError.cs | 155 - .../PgSqlErrorCollection.cs | 114 - .../PgSqlException.cs | 204 - .../PgSqlInfoMessageEventArgs.cs | 51 - .../PgSqlInfoMessageEventHandler.cs | 19 - .../PgSqlParameter.cs | 227 - .../PgSqlParameterCollection.cs | 276 - .../PgSqlRowUpdatedEventArgs.cs | 37 - .../PgSqlRowUpdatedEventHandler.cs | 18 - .../PgSqlRowUpdatingEventArgs.cs | 43 - .../PgSqlRowUpdatingEventHandler.cs | 18 - .../PgSqlTransaction.cs | 191 - .../PostgresLibrary.cs | 475 - .../PostgresTypes.cs | 512 - .../Mono.Data.PostgreSqlClient/ParmUtil.cs | 176 - .../PgSqlClientPermission.cs | 78 - .../PgSqlClientPermissionAttribute.cs | 46 - .../PgSqlCommand.cs | 928 -- .../PgSqlCommandBuilder.cs | 103 - .../PgSqlConnection.cs | 722 -- .../PgSqlDataAdapter.cs | 191 - .../PgSqlDataReader.cs | 422 - .../Mono.Data.PostgreSqlClient/PgSqlError.cs | 155 - .../PgSqlErrorCollection.cs | 114 - .../PgSqlException.cs | 204 - .../PgSqlInfoMessageEventArgs.cs | 51 - .../PgSqlInfoMessageEventHandler.cs | 19 - .../PgSqlParameter.cs | 227 - .../PgSqlParameterCollection.cs | 276 - .../PgSqlRowUpdatedEventArgs.cs | 37 - .../PgSqlRowUpdatedEventHandler.cs | 18 - .../PgSqlRowUpdatingEventArgs.cs | 43 - .../PgSqlRowUpdatingEventHandler.cs | 18 - .../PgSqlTransaction.cs | 191 - .../PostgresLibrary.cs | 475 - .../PostgresTypes.cs | 512 - mcs/class/Mono.GetOptions/.cvsignore | 4 - mcs/class/Mono.GetOptions/AssemblyInfo.cs | 59 - .../Mono.GetOptions/Mono.GetOptions.csproj | 93 - mcs/class/Mono.GetOptions/OptionList.cs | 209 - mcs/class/README | 277 - .../System.Configuration.Install/ChangeLog | 9 - .../System.Configuration.Install.build | 34 - .../System.Configuration.Install/ChangeLog | 8 - .../UninstallAction.cs | 20 - .../Test/.cvsignore | 2 - .../Test/AllTests.cs | 29 - .../Test/ChangeLog | 12 - .../System.Configuration.Install/AllTests.cs | 27 - .../System.Configuration.Install/ChangeLog | 5 - .../System.Configuration.Install_test.build | 36 - .../System.Configuration.Install/list.unix | 1 - .../System.Configuration.Install/makefile.gnu | 13 - mcs/class/System.Data/.cvsignore | 6 - mcs/class/System.Data/ChangeLog | 1686 ---- .../System.Data/System.Data.Common/ChangeLog | 10 - .../System.Data.Common/DataAdapter.cs | 113 - .../System.Data.Common/DataColumnMapping.cs | 64 - .../DataColumnMappingCollection.cs | 219 - .../System.Data.Common/DataTableMapping.cs | 99 - .../DataTableMappingCollection.cs | 225 - .../System.Data.Common/DbDataAdapter.cs | 310 - .../System.Data.Common/DbDataPermission.cs | 83 - .../DbDataPermissionAttribute.cs | 36 - .../System.Data.Common/RowUpdatedEventArgs.cs | 64 - .../RowUpdatingEventArgs.cs | 58 - .../System.Data.OleDb/OleDbCommand.cs | 326 - .../System.Data.OleDb/OleDbCommandBuilder.cs | 107 - .../System.Data.OleDb/OleDbConnection.cs | 233 - .../System.Data.OleDb/OleDbDataAdapter.cs | 179 - .../System.Data.OleDb/OleDbDataReader.cs | 503 - .../System.Data.OleDb/OleDbError.cs | 74 - .../System.Data.OleDb/OleDbErrorCollection.cs | 80 - .../System.Data.OleDb/OleDbException.cs | 123 - .../OleDbInfoMessageEventArgs.cs | 53 - .../OleDbInfoMessageEventHandler.cs | 17 - .../System.Data.OleDb/OleDbLiteral.cs | 48 - .../System.Data.OleDb/OleDbParameter.cs | 364 - .../OleDbParameterCollection.cs | 208 - .../System.Data.OleDb/OleDbPermission.cs | 95 - .../OleDbPermissionAttribute.cs | 62 - .../OleDbRowUpdatedEventArgs.cs | 46 - .../OleDbRowUpdatedEventHandler.cs | 19 - .../OleDbRowUpdatingEventArgs.cs | 48 - .../OleDbRowUpdatingEventHandler.cs | 19 - .../System.Data.OleDb/OleDbSchemaGuid.cs | 67 - .../System.Data.OleDb/OleDbTransaction.cs | 119 - .../System.Data.OleDb/OleDbType.cs | 56 - .../System.Data/System.Data.OleDb/TestGDA.cs | 32 - .../System.Data.OleDb/TestOleDb.cs | 107 - .../System.Data/System.Data.OleDb/libgda.cs | 270 - .../System.Data.SqlClient/ParmUtil.cs | 176 - .../System.Data.SqlClient/PostgresLibrary.cs | 475 - .../System.Data.SqlClient/PostgresTypes.cs | 512 - .../SqlClientPermission.cs | 78 - .../SqlClientPermissionAttribute.cs | 46 - .../System.Data.SqlClient/SqlCommand.cs | 928 -- .../SqlCommandBuilder.cs | 103 - .../System.Data.SqlClient/SqlConnection.cs | 722 -- .../System.Data.SqlClient/SqlDataAdapter.cs | 191 - .../System.Data.SqlClient/SqlDataReader.cs | 422 - .../System.Data.SqlClient/SqlError.cs | 155 - .../SqlErrorCollection.cs | 114 - .../System.Data.SqlClient/SqlException.cs | 204 - .../SqlInfoMessageEventArgs.cs | 51 - .../SqlInfoMessageEventHandler.cs | 19 - .../System.Data.SqlClient/SqlParameter.cs | 227 - .../SqlParameterCollection.cs | 276 - .../SqlRowUpdatedEventArgs.cs | 37 - .../SqlRowUpdatedEventHandler.cs | 18 - .../SqlRowUpdatingEventArgs.cs | 43 - .../SqlRowUpdatingEventHandler.cs | 18 - .../System.Data.SqlClient/SqlTransaction.cs | 191 - .../System.Data.SqlTypes/INullable.cs | 22 - .../System.Data.SqlTypes/SqlBinary.cs | 232 - .../System.Data.SqlTypes/SqlBoolean.cs | 377 - .../System.Data.SqlTypes/SqlByte.cs | 390 - .../System.Data.SqlTypes/SqlCompareOptions.cs | 29 - .../System.Data.SqlTypes/SqlDateTime.cs | 249 - .../System.Data.SqlTypes/SqlDecimal.cs | 638 -- .../System.Data.SqlTypes/SqlDouble.cs | 345 - .../System.Data.SqlTypes/SqlGuid.cs | 215 - .../System.Data.SqlTypes/SqlInt16.cs | 396 - .../System.Data.SqlTypes/SqlInt32.cs | 423 - .../System.Data.SqlTypes/SqlInt64.cs | 398 - .../System.Data.SqlTypes/SqlMoney.cs | 381 - .../SqlNullValueException.cs | 27 - .../System.Data.SqlTypes/SqlSingle.cs | 332 - .../System.Data.SqlTypes/SqlString.cs | 461 - .../SqlTruncateException.cs | 27 - .../System.Data.SqlTypes/SqlTypeException.cs | 27 - mcs/class/System.Data/System.Data.build | 40 - .../System.Data/AcceptRejectRule.cs | 25 - mcs/class/System.Data/System.Data/ChangeLog | 3 - .../System.Data/CommandBehavior.cs | 30 - .../System.Data/System.Data/CommandType.cs | 25 - .../System.Data/ConnectionState.cs | 30 - .../System.Data/System.Data/Constraint.cs | 113 - .../System.Data/ConstraintCollection.cs | 344 - .../System.Data/ConstraintException.cs | 32 - .../System.Data/DBConcurrencyException.cs | 40 - .../System.Data/System.Data/DataColumn.cs | 375 - .../System.Data/DataColumnChangeEventArgs.cs | 80 - .../DataColumnChangeEventHandler.cs | 18 - .../System.Data/DataColumnCollection.cs | 416 - .../System.Data/System.Data/DataException.cs | 37 - .../System.Data/System.Data/DataRelation.cs | 165 - .../System.Data/DataRelationCollection.cs | 324 - mcs/class/System.Data/System.Data/DataRow.cs | 658 -- .../System.Data/System.Data/DataRowAction.cs | 28 - .../System.Data/System.Data/DataRowBuilder.cs | 52 - .../System.Data/DataRowChangeEventArgs.cs | 41 - .../System.Data/DataRowChangeEventHandler.cs | 18 - .../System.Data/DataRowCollection.cs | 141 - .../System.Data/System.Data/DataRowState.cs | 26 - .../System.Data/System.Data/DataRowVersion.cs | 23 - .../System.Data/System.Data/DataRowView.cs | 197 - mcs/class/System.Data/System.Data/DataSet.cs | 336 - .../System.Data/System.Data/DataTable.cs | 750 -- .../System.Data/DataTableCollection.cs | 139 - .../DataTableRelationCollection.cs | 122 - mcs/class/System.Data/System.Data/DataView.cs | 233 - .../System.Data/DataViewManager.cs | 76 - .../System.Data/DataViewRowState.cs | 29 - .../System.Data/DataViewSetting.cs | 72 - .../System.Data/DataViewSettingCollection.cs | 87 - mcs/class/System.Data/System.Data/DbType.cs | 44 - .../DeletedRowInaccessibleException.cs | 32 - .../System.Data/DuplicateNameException.cs | 32 - .../System.Data/EvaluateException.cs | 31 - .../System.Data/FillErrorEventArgs.cs | 58 - .../System.Data/FillErrorEventHandler.cs | 18 - .../System.Data/ForeignKeyConstraint.cs | 347 - .../System.Data/System.Data/IColumnMapping.cs | 35 - .../System.Data/IColumnMappingCollection.cs | 35 - .../System.Data/System.Data/IDataAdapter.cs | 33 - .../System.Data/System.Data/IDataParameter.cs | 36 - .../System.Data/IDataParameterCollection.cs | 28 - .../System.Data/System.Data/IDataReader.cs | 33 - .../System.Data/System.Data/IDataRecord.cs | 71 - .../System.Data/System.Data/IDbCommand.cs | 47 - .../System.Data/System.Data/IDbConnection.cs | 41 - .../System.Data/System.Data/IDbDataAdapter.cs | 25 - .../System.Data/IDbDataParameter.cs | 25 - .../System.Data/System.Data/IDbTransaction.cs | 27 - .../System.Data/System.Data/ITableMapping.cs | 23 - .../System.Data/ITableMappingCollection.cs | 31 - .../InRowChangingEventException.cs | 32 - .../System.Data/InternalDataCollectionBase.cs | 118 - .../System.Data/InvalidConstraintException.cs | 32 - .../System.Data/InvalidExpressionException.cs | 32 - .../System.Data/System.Data/IsolationLevel.cs | 27 - mcs/class/System.Data/System.Data/Locale.cs | 22 - .../System.Data/System.Data/MappingType.cs | 26 - .../System.Data/MergeFailedEventArgs.cs | 38 - .../System.Data/MergeFailedEventHandler.cs | 18 - .../System.Data/MissingMappingAction.cs | 24 - .../System.Data/MissingPrimaryKeyException.cs | 33 - .../System.Data/MissingSchemaAction.cs | 25 - .../System.Data/NoNullAllowedException.cs | 32 - .../System.Data/ParameterDirection.cs | 25 - .../System.Data/PropertyAttributes.cs | 28 - .../System.Data/PropertyCollection.cs | 31 - .../System.Data/ReadOnlyException.cs | 33 - .../System.Data/RowNotInTableException.cs | 32 - mcs/class/System.Data/System.Data/Rule.cs | 25 - .../System.Data/System.Data/SchemaType.cs | 23 - .../System.Data/System.Data/SqlDbType.cs | 45 - .../System.Data/StateChangeEventArgs.cs | 43 - .../System.Data/StateChangeEventHandler.cs | 18 - .../System.Data/System.Data/StatementType.cs | 25 - .../System.Data/StrongTypingException.cs | 32 - .../System.Data/SyntaxErrorException.cs | 32 - .../System.Data/System.Data/TODOAttribute.cs | 33 - .../TypeDataSetGeneratorException.cs | 32 - .../System.Data/UniqueConstraint.cs | 298 - .../System.Data/UpdateRowSource.cs | 25 - .../System.Data/System.Data/UpdateStatus.cs | 25 - .../System.Data/VersionNotFoundException.cs | 32 - .../System.Data/System.Data/XmlReadMode.cs | 27 - .../System.Data/System.Data/XmlWriteMode.cs | 24 - .../System.Data/System.Xml/XmlDataDocument.cs | 232 - mcs/class/System.Data/TODO | 134 - mcs/class/System.Data/Test/.cvsignore | 2 - mcs/class/System.Data/Test/AllTests.cs | 21 - mcs/class/System.Data/Test/ChangeLog | 147 - mcs/class/System.Data/Test/PostgresTest.cs | 510 - .../System.Data/Test/ReadPostgresData.cs | 585 -- mcs/class/System.Data/Test/SqlSharpCli.cs | 1082 -- .../Test/System.Data.SqlTypes/AllTests.cs | 27 - .../Test/System.Data.SqlTypes/SqlInt32Test.cs | 413 - .../System.Data/Test/System.Data/AllTests.cs | 34 - .../System.Data/ConstraintCollectionTest.cs | 323 - .../Test/System.Data/ConstraintTest.cs | 135 - .../Test/System.Data/DataColumnTest.cs | 32 - .../Test/System.Data/DataTableTest.cs | 58 - .../System.Data/ForeignKeyConstraintTest.cs | 202 - .../Test/System.Data/UniqueConstraintTest.cs | 181 - .../System.Data/Test/System.Data_test.build | 75 - .../System.Data/Test/TestExecuteScalar.cs | 149 - .../System.Data/Test/TestSqlDataAdapter.cs | 66 - .../System.Data/Test/TestSqlDataReader.cs | 181 - .../System.Data/Test/TestSqlException.cs | 118 - mcs/class/System.Data/Test/TestSqlInsert.cs | 105 - .../System.Data/Test/TestSqlIsolationLevel.cs | 104 - .../System.Data/Test/TestSqlParameters.cs | 127 - mcs/class/System.Data/Test/TheTests.cs | 78 - mcs/class/System.Data/list | 152 - mcs/class/System.Data/makefile.gnu | 16 - mcs/class/System.Drawing/.cvsignore | 2 - mcs/class/System.Drawing/ChangeLog | 6 - .../UITypeEditorEditStyle.cs | 15 - .../System.Drawing.Drawing2D/ChangeLog | 7 - .../System.Drawing.Drawing2D/Enums.cs | 258 - .../System.Drawing.Drawing2D/Matrix.cs | 453 - .../System.Drawing.Drawing2D/PenAlignment.cs | 21 - .../System.Drawing.Drawing2D/TODOAttribute.cs | 37 - .../System.Drawing.Imaging/BitmapData.cs | 79 - .../System.Drawing.Imaging/ChangeLog | 17 - .../System.Drawing.Imaging/ColorAdjustType.cs | 19 - .../ColorChannelFlag.cs | 17 - .../System.Drawing.Imaging/ColorMapType.cs | 14 - .../System.Drawing.Imaging/ColorMatrixFlag.cs | 15 - .../System.Drawing.Imaging/ColorMode.cs | 14 - .../System.Drawing.Imaging/ColorPalette.cs | 44 - .../EmfPlusRecordType.cs | 262 - .../System.Drawing.Imaging/EmfType.cs | 15 - .../EncoderParameterValueType.cs | 20 - .../System.Drawing.Imaging/EncoderValue.cs | 36 - .../System.Drawing.Imaging/FrameDimension.cs | 59 - .../System.Drawing.Imaging/ImageCodecFlags.cs | 21 - .../System.Drawing.Imaging/ImageFlags.cs | 26 - .../System.Drawing.Imaging/ImageLockMode.cs | 16 - .../System.Drawing.Imaging/Metafile.cs | 111 - .../MetafileFrameUnit.cs | 18 - .../System.Drawing.Imaging/PaletteFlags.cs | 15 - .../System.Drawing.Imaging/PixelFormat.cs | 39 - .../System.Drawing.Printing/Duplex.cs | 16 - .../System.Drawing.Printing/PaperKind.cs | 125 - .../PaperSourceKind.cs | 26 - .../System.Drawing.Printing/PrintRange.cs | 15 - .../PrinterResolutionKind.cs | 17 - .../System.Drawing.Printing/PrinterUnit.cs | 16 - .../PrintingPermissionLevel.cs | 16 - .../GenericFontFamilies.cs | 15 - .../System.Drawing.Text/HotkeyPrefix.cs | 15 - .../System.Drawing.Text/TextRenderingHint.cs | 18 - mcs/class/System.Drawing/System.Drawing.build | 25 - .../System.Drawing/System.Drawing/Bitmap.cs | 278 - .../System.Drawing/System.Drawing/Brush.cs | 34 - .../System.Drawing/System.Drawing/ChangeLog | 85 - .../System.Drawing/System.Drawing/Color.cs | 1453 --- .../System.Drawing/ColorConverter.cs | 87 - .../System.Drawing/ColorTranslator.cs | 101 - .../System.Drawing/ContentAlignment.cs | 22 - .../System.Drawing/FontStyle.cs | 19 - .../System.Drawing/System.Drawing/Graphics.cs | 18 - .../System.Drawing/GraphicsUnit.cs | 20 - .../System.Drawing/System.Drawing/Image.cs | 199 - .../System.Drawing/KnownColor.cs | 182 - .../System.Drawing/System.Drawing/Pen.cs | 113 - .../System.Drawing/System.Drawing/Point.cs | 339 - .../System.Drawing/System.Drawing/PointF.cs | 204 - .../System.Drawing/Rectangle.cs | 584 -- .../System.Drawing/RectangleF.cs | 531 - .../System.Drawing/RotateFlipType.cs | 29 - .../System.Drawing/System.Drawing/Size.cs | 309 - .../System.Drawing/System.Drawing/SizeF.cs | 249 - .../System.Drawing/StringAligment.cs | 17 - .../System.Drawing/StringDigitSubstitute.cs | 18 - .../System.Drawing/StringFormatFlags.cs | 23 - .../System.Drawing/StringTrimming.cs | 20 - .../System.Drawing/StringUnit.cs | 22 - .../System.Drawing/SystemColors.cs | 200 - .../Test/System.Drawing/ChangeLog | 4 - .../Test/System.Drawing/TestPoint.cs | 159 - mcs/class/System.Drawing/list.unix | 60 - mcs/class/System.Drawing/makefile.gnu | 13 - mcs/class/System.EnterpriseServices/ChangeLog | 25 - .../ChangeLog | 19 - .../Clerk.cs | 84 - .../Compensator.cs | 93 - .../CompensatorOptions.cs | 22 - .../LogRecord.cs | 69 - .../LogRecordFlags.cs | 24 - .../TransactionState.cs | 20 - .../System.EnterpriseServices.build | 27 - .../AccessChecksLevelOption.cs | 16 - .../ActivationOption.cs | 16 - .../ApplicationAccessControlAttribute.cs | 63 - .../ApplicationActivationAttribute.cs | 51 - .../ApplicationIDAttribute.cs | 39 - .../ApplicationNameAttribute.cs | 39 - .../ApplicationQueuingAttribute.cs | 54 - .../AuthenticationOption.cs | 21 - .../AutoCompleteAttribute.cs | 44 - .../System.EnterpriseServices/BOID.cs | 21 - .../System.EnterpriseServices/BYOT.cs | 31 - .../COMTIIntrinsicsAttribute.cs | 45 - .../System.EnterpriseServices/ChangeLog | 99 - .../ComponentAccessControlAttribute.cs | 45 - .../ConstructionEnabledAttribute.cs | 53 - .../System.EnterpriseServices/ContextUtil.cs | 130 - .../DescriptionAttribute.cs | 31 - .../EventClassAttribute.cs | 54 - .../EventTrackingEnabledAttribute.cs | 44 - .../ExceptionClassAttribute.cs | 39 - .../IISIntrinsicsAttribute.cs | 44 - .../IRegistrationHelper.cs | 26 - .../IRemoteDispatch.cs | 27 - .../ISecurityCallContext.cs | 34 - .../ISecurityCallersColl.cs | 31 - .../ISecurityIdentityColl.cs | 31 - .../IServicedComponentInfo.cs | 24 - .../ISharedProperty.cs | 24 - .../ISharedPropertyGroup.cs | 24 - .../System.EnterpriseServices/ITransaction.cs | 26 - .../ImpersonationLevelOption.cs | 19 - .../InstallationFlags.cs | 25 - .../InterfaceQueuingAttribute.cs | 52 - .../JustInTimeActivationAttribute.cs | 44 - .../LoadBalancingSupportedAttribute.cs | 44 - .../MustRunInClientContextAttribute.cs | 44 - .../ObjectPoolingAttribute.cs | 98 - .../PrivateComponentAttribute.cs | 24 - .../PropertyLockMode.cs | 20 - .../PropertyReleaseMode.cs | 20 - .../RegistrationErrorInfo.cs | 63 - .../RegistrationException.cs | 51 - .../RegistrationHelper.cs | 54 - .../RegistrationHelperTx.cs | 69 - .../System.EnterpriseServices/ResourcePool.cs | 54 - .../SecureMethodAttribute.cs | 24 - .../SecurityCallContext.cs | 86 - .../SecurityCallers.cs | 52 - .../SecurityIdentity.cs | 54 - .../SecurityRoleAttribute.cs | 59 - .../ServicedComponent.cs | 88 - .../ServicedComponentException.cs | 35 - .../SharedProperty.cs | 41 - .../SharedPropertyGroup.cs | 56 - .../SharedPropertyGroupManager.cs | 48 - .../SynchronizationAttribute.cs | 44 - .../SynchronizationOption.cs | 21 - .../TODOAttribute.cs | 37 - .../TransactionAttribute.cs | 58 - .../TransactionIsolationLevel.cs | 19 - .../TransactionOption.cs | 19 - .../TransactionVote.cs | 20 - .../XACTTRANSINFO.cs | 27 - mcs/class/System.EnterpriseServices/list | 68 - .../System.EnterpriseServices/makefile.gnu | 13 - mcs/class/System.Runtime.Remoting/ChangeLog | 3 - .../TcpChannel.cs | 93 - .../TcpClientChannel.cs | 68 - .../BinaryClientFormatterSink.cs | 92 - .../BinaryClientFormatterSinkProvider.cs | 43 - .../BinaryServerFormatterSink.cs | 69 - .../BinaryServerFormatterSinkProvider.cs | 53 - .../ChangeLog | 0 .../CommonTransportKeys.cs | 21 - .../SoapClientFormatterSink.cs | 96 - .../SoapServerFormatterSink.cs | 70 - .../SoapServerFormatterSinkProvider.cs | 54 - .../System.Runtime.Remoting.build | 25 - .../System.Runtime.Remoting/TODOAttribute.cs | 37 - .../System.Runtime.Remoting/makefile.gnu | 13 - mcs/class/System.Runtime.Remoting/unix.args | 11 - .../ChangeLog | 6 - .../README | 4 - .../Sample.txt | 179 - ...untime.Serialization.Formatters.Soap.build | 36 - .../ChangeLog | 10 - .../ObjectDeserializer.cs | 450 - .../ObjectSerializer.cs | 374 - .../SoapFormatter.cs | 91 - .../SoapReader.cs | 584 -- .../SoapWriter.cs | 222 - .../TODOAttribute.cs | 37 - .../list | 6 - .../makefile.gnu | 13 - mcs/class/System.Web.Services/.cvsignore | 7 - mcs/class/System.Web.Services/ChangeLog | 45 - .../Mono.System.Web.Services.csproj | 869 -- .../ChangeLog | 6 - .../XmlFormatExtensionAttribute.cs | 77 - .../XmlFormatExtensionPointAttribute.cs | 44 - .../XmlFormatExtensionPrefixAttribute.cs | 50 - .../Binding.cs | 80 - .../BindingCollection.cs | 92 - .../System.Web.Services.Description/ChangeLog | 289 - .../DocumentableItem.cs | 42 - .../FaultBinding.cs | 52 - .../FaultBindingCollection.cs | 87 - .../HttpAddressBinding.cs | 42 - .../HttpBinding.cs | 44 - .../HttpOperationBinding.cs | 42 - .../HttpUrlEncodedBinding.cs | 24 - .../HttpUrlReplacementBinding.cs | 24 - .../System.Web.Services.Description/Import.cs | 63 - .../ImportCollection.cs | 75 - .../InputBinding.cs | 41 - .../Message.cs | 86 - .../MessageBinding.cs | 51 - .../MessageCollection.cs | 88 - .../MessagePart.cs | 73 - .../MessagePartCollection.cs | 86 - .../MimeContentBinding.cs | 52 - .../MimeMultipartRelatedBinding.cs | 41 - .../MimePart.cs | 41 - .../MimePartCollection.cs | 64 - .../MimeTextBinding.cs | 43 - .../MimeTextMatch.cs | 126 - .../MimeTextMatchCollection.cs | 70 - .../MimeXmlBinding.cs | 42 - .../Operation.cs | 96 - .../OperationBinding.cs | 86 - .../OperationBindingCollection.cs | 75 - .../OperationCollection.cs | 75 - .../OperationFault.cs | 15 - .../OperationFaultCollection.cs | 87 - .../OperationFlow.cs | 19 - .../OperationInput.cs | 16 - .../OperationMessage.cs | 65 - .../OperationMessageCollection.cs | 130 - .../OperationOutput.cs | 13 - .../OutputBinding.cs | 41 - .../System.Web.Services.Description/Port.cs | 73 - .../PortCollection.cs | 88 - .../PortType.cs | 62 - .../PortTypeCollection.cs | 87 - .../ProtocolImporter.cs | 201 - .../ProtocolReflector.cs | 170 - .../Service.cs | 69 - .../ServiceCollection.cs | 90 - .../ServiceDescription.cs | 260 - .../ServiceDescriptionBaseCollection.cs | 80 - .../ServiceDescriptionCollection.cs | 121 - .../ServiceDescriptionFormatExtension.cs | 65 - ...iceDescriptionFormatExtensionCollection.cs | 154 - .../ServiceDescriptionImportStyle.cs | 15 - .../ServiceDescriptionImportWarnings.cs | 20 - .../ServiceDescriptionImporter.cs | 76 - .../ServiceDescriptionReflector.cs | 56 - .../SoapAddressBinding.cs | 42 - .../SoapBinding.cs | 61 - .../SoapBindingStyle.cs | 21 - .../SoapBindingUse.cs | 21 - .../SoapBodyBinding.cs | 76 - .../SoapExtensionImporter.cs | 44 - .../SoapExtensionReflector.cs | 42 - .../SoapFaultBinding.cs | 60 - .../SoapHeaderBinding.cs | 89 - .../SoapHeaderFaultBinding.cs | 82 - .../SoapOperationBinding.cs | 56 - .../SoapProtocolImporter.cs | 111 - .../SoapProtocolReflector.cs | 70 - .../SoapTransportImporter.cs | 44 - .../System.Web.Services.Description/Types.cs | 49 - .../System.Web.Services.Discovery/ChangeLog | 61 - .../ContractReference.cs | 107 - .../ContractSearchPattern.cs | 47 - .../DiscoveryClientDocumentCollection.cs | 66 - .../DiscoveryClientProtocol.cs | 138 - .../DiscoveryClientReferenceCollection.cs | 67 - .../DiscoveryClientResult.cs | 62 - .../DiscoveryClientResultCollection.cs | 62 - .../DiscoveryDocument.cs | 93 - .../DiscoveryDocumentLinksPattern.cs | 47 - .../DiscoveryDocumentReference.cs | 99 - .../DiscoveryDocumentSearchPattern.cs | 47 - .../DiscoveryExceptionDictionary.cs | 69 - .../DiscoveryReference.cs | 77 - .../DiscoveryReferenceCollection.cs | 62 - .../DiscoveryRequestHandler.cs | 49 - .../DiscoverySearchPattern.cs | 33 - .../DynamicDiscoveryDocument.cs | 62 - .../ExcludePathInfo.cs | 46 - .../SchemaReference.cs | 105 - .../SoapBinding.cs | 54 - .../XmlSchemaSearchPattern.cs | 47 - .../AnyReturnReader.cs | 49 - .../System.Web.Services.Protocols/ChangeLog | 185 - .../HtmlFormParameterReader.cs | 36 - .../HtmlFormParameterWriter.cs | 52 - .../HttpGetClientProtocol.cs | 37 - .../HttpMethodAttribute.cs | 50 - .../HttpPostClientProtocol.cs | 37 - .../HttpSimpleClientProtocol.cs | 53 - .../HttpWebClientProtocol.cs | 104 - .../LogicalMethodInfo.cs | 176 - .../LogicalMethodTypes.cs | 16 - .../MatchAttribute.cs | 64 - .../MimeFormatter.cs | 57 - .../MimeParameterReader.cs | 29 - .../MimeParameterWriter.cs | 66 - .../MimeReturnReader.cs | 30 - .../NopReturnReader.cs | 49 - .../PatternMatcher.cs | 35 - .../ServerProtocol.cs | 61 - .../SoapClientMessage.cs | 78 - .../SoapClientMethod.cs | 27 - .../SoapDocumentMethodAttribute.cs | 102 - .../SoapDocumentServiceAttribute.cs | 67 - .../SoapException.cs | 91 - .../SoapExtension.cs | 46 - .../SoapExtensionAttribute.cs | 34 - .../SoapHeader.cs | 78 - .../SoapHeaderAttribute.cs | 52 - .../SoapHeaderCollection.cs | 69 - .../SoapHeaderDirection.cs | 18 - .../SoapHeaderException.cs | 39 - .../SoapHttpClientProtocol.cs | 58 - .../SoapMessage.cs | 106 - .../SoapMessageStage.cs | 18 - .../SoapParameterStyle.cs | 17 - .../SoapRpcMethodAttribute.cs | 86 - .../SoapRpcServiceAttribute.cs | 38 - .../SoapServerMessage.cs | 80 - .../SoapServerProtocol.cs | 35 - .../SoapServiceRoutingStyle.cs | 16 - .../SoapUnknownHeader.cs | 41 - .../TextReturnReader.cs | 46 - .../UrlEncodedParameterWriter.cs | 66 - .../UrlParameterReader.cs | 36 - .../UrlParameterWriter.cs | 35 - .../ValueCollectionParameterReader.cs | 61 - .../WebClientAsyncResult.cs | 71 - .../WebClientProtocol.cs | 140 - .../WebServiceHandlerFactory.cs | 41 - .../XmlReturnReader.cs | 53 - .../System.Web.Services.build | 38 - .../System.Web.Services/ChangeLog | 67 - .../System.Web.Services/TODOAttribute.cs | 32 - .../System.Web.Services/WebMethodAttribute.cs | 96 - .../System.Web.Services/WebService.cs | 72 - .../WebServiceAttribute.cs | 54 - .../WebServiceBindingAttribute.cs | 67 - .../WebServicesDescriptionAttribute.cs | 33 - .../System.Web.Services/Test/AllTests.cs | 24 - mcs/class/System.Web.Services/Test/ChangeLog | 10 - .../AllTests.cs | 22 - .../ChangeLog | 5 - .../XmlFormatExtensionAttributeTest.cs | 80 - .../System.Web.Services.Discovery/AllTests.cs | 22 - .../System.Web.Services.Discovery/ChangeLog | 5 - .../ContractReferenceTest.cs | 55 - .../Test/System.Web.Services/AllTests.cs | 23 - .../Test/System.Web.Services/ChangeLog | 6 - .../WebMethodAttributeTest.cs | 54 - .../WebServiceAttributeTest.cs | 50 - .../Test/System.Web.Services_test.build | 35 - mcs/class/System.Web.Services/list | 149 - mcs/class/System.Web.Services/makefile.gnu | 13 - mcs/class/System.Web/.cvsignore | 6 - mcs/class/System.Web/ChangeLog | 132 - .../System.Web/System.Web.Caching/Cache.cs | 520 - .../System.Web.Caching/CacheDefinitions.cs | 53 - .../System.Web.Caching/CacheDependency.cs | 95 - .../System.Web.Caching/CacheEntry.cs | 363 - .../System.Web.Caching/CacheExpires.cs | 145 - .../System.Web/System.Web.Caching/ChangeLog | 23 - .../System.Web.Caching/ExpiresBuckets.cs | 253 - .../AspComponentFoundry.cs | 106 - .../System.Web.Compilation/AspElements.cs | 774 -- .../System.Web.Compilation/AspGenerator.cs | 1726 ---- .../System.Web.Compilation/AspParser.cs | 240 - .../System.Web.Compilation/AspTokenizer.cs | 215 - .../System.Web.Compilation/ChangeLog | 27 - .../System.Web.Compilation/PageCompiler.cs | 47 - .../System.Web.Compilation/TemplateFactory.cs | 214 - .../AuthenticationMode.cs | 19 - .../System.Web.Configuration/ChangeLog | 13 - .../ClientTargetSectionHandler.cs | 44 - .../FormsAuthPasswordFormat.cs | 18 - .../FormsProtectionEnum.cs | 19 - .../GlobalizationConfiguration.cs | 29 - .../HandlerFactoryConfiguration.cs | 35 - .../HandlerFactoryProxy.cs | 15 - .../System.Web.Configuration/HandlerItem.cs | 45 - .../HttpCapabilitiesBase.cs | 36 - .../System.Web.Configuration/ModuleItem.cs | 40 - .../ModulesConfiguration.cs | 35 - .../System.Web.Hosting/AppDomainFactory.cs | 122 - .../System.Web.Hosting/ApplicationHost.cs | 77 - .../System.Web/System.Web.Hosting/ChangeLog | 31 - .../System.Web.Hosting/IAppDomainFactory.cs | 24 - .../System.Web.Hosting/IISAPIRuntime.cs | 21 - .../System.Web.Hosting/ISAPIRuntime.cs | 48 - .../System.Web.Hosting/SimpleWorkerRequest.cs | 263 - .../System.Web/System.Web.Mail/ChangeLog | 8 - .../System.Web.Mail/MailAttachment.cs | 44 - .../System.Web.Mail/MailEncoding.cs | 26 - .../System.Web/System.Web.Mail/MailFormat.cs | 26 - .../System.Web/System.Web.Mail/MailMessage.cs | 106 - .../System.Web.Mail/MailPriority.cs | 30 - .../System.Web/System.Web.Mail/SmtpMail.cs | 75 - .../System.Web/System.Web.Security/ChangeLog | 4 - .../DefaultAuthenticationEventArgs.cs | 32 - .../System.Web.SessionState/ChangeLog | 34 - .../HttpSessionState.cs | 199 - .../IReadOnlySessionState.cs | 15 - .../IRequiresSessionState.cs | 15 - .../SessionDictionary.cs | 93 - .../SessionStateMode.cs | 20 - .../SessionStateModule.cs | 35 - .../System.Web.UI.HtmlControls/ChangeLog | 206 - .../System.Web.UI.HtmlControls/HtmlAnchor.cs | 106 - .../System.Web.UI.HtmlControls/HtmlButton.cs | 72 - .../HtmlContainerControl.cs | 117 - .../System.Web.UI.HtmlControls/HtmlControl.cs | 121 - .../System.Web.UI.HtmlControls/HtmlForm.cs | 163 - .../HtmlGenericControl.cs | 42 - .../System.Web.UI.HtmlControls/HtmlImage.cs | 103 - .../HtmlInputButton.cs | 74 - .../HtmlInputCheckBox.cs | 80 - .../HtmlInputControl.cs | 60 - .../HtmlInputFile.cs | 75 - .../HtmlInputHidden.cs | 60 - .../HtmlInputImage.cs | 129 - .../HtmlInputRadioButton.cs | 129 - .../HtmlInputText.cs | 104 - .../System.Web.UI.HtmlControls/HtmlSelect.cs | 419 - .../System.Web.UI.HtmlControls/HtmlTable.cs | 172 - .../HtmlTableCell.cs | 130 - .../HtmlTableCellCollection.cs | 84 - .../HtmlTableRow.cs | 138 - .../HtmlTableRowCollection.cs | 83 - .../HtmlTextArea.cs | 122 - .../System.Web.UI.WebControls/.cvsignore | 2 - .../AdCreatedEventArgs.cs | 92 - .../AdCreatedEventHandler.cs | 17 - .../System.Web.UI.WebControls/AdRotator.cs | 364 - .../BaseCompareValidator.cs | 311 - .../System.Web.UI.WebControls/BaseDataList.cs | 277 - .../BaseValidator.cs | 410 - .../System.Web.UI.WebControls/BorderStyle.cs | 29 - .../System.Web.UI.WebControls/BoundColumn.cs | 109 - .../System.Web.UI.WebControls/Button.cs | 172 - .../System.Web.UI.WebControls/ButtonColumn.cs | 186 - .../ButtonColumnType.cs | 21 - .../System.Web.UI.WebControls/Calendar.cs | 1160 --- .../System.Web.UI.WebControls/CalendarDay.cs | 100 - .../CalendarSelectionMode.cs | 23 - .../System.Web.UI.WebControls/ChangeLog | 806 -- .../System.Web.UI.WebControls/CheckBox.cs | 215 - .../System.Web.UI.WebControls/CheckBoxList.cs | 252 - .../CommandEventArgs.cs | 50 - .../CommandEventHandler.cs | 17 - .../CompareValidator.cs | 89 - .../CustomValidator.cs | 113 - .../System.Web.UI.WebControls/DataGrid.cs | 1152 --- .../DataGridColumn.cs | 403 - .../DataGridColumnCollection.cs | 186 - .../DataGridCommandEventArgs.cs | 46 - .../DataGridCommandEventHandler.cs | 17 - .../System.Web.UI.WebControls/DataGridItem.cs | 86 - .../DataGridItemCollection.cs | 83 - .../DataGridItemEventArgs.cs | 37 - .../DataGridItemEventHandler.cs | 17 - .../DataGridPageChangedEventArgs.cs | 47 - .../DataGridPageChangedEventHandler.cs | 16 - .../DataGridPagerStyle.cs | 257 - .../DataGridSortCommandEventArgs.cs | 47 - .../DataGridSortCommandEventHandler.cs | 16 - .../DataKeyCollection.cs | 83 - .../System.Web.UI.WebControls/DataList.cs | 825 -- .../DataListCommandEventArgs.cs | 46 - .../DataListCommandEventHandler.cs | 16 - .../System.Web.UI.WebControls/DataListItem.cs | 112 - .../DataListItemCollection.cs | 83 - .../DataListItemEventArgs.cs | 37 - .../DataListItemEventHandler.cs | 16 - .../DayNameFormat.cs | 23 - .../DayRenderEventArgs.cs | 43 - .../DayRenderEventHandler.cs | 17 - .../System.Web.UI.WebControls/DropDownList.cs | 160 - .../EditCommandColumn.cs | 109 - .../FirstDayOfWeek.cs | 27 - .../System.Web.UI.WebControls/FontInfo.cs | 253 - .../FontNamesConverter.cs | 63 - .../System.Web.UI.WebControls/FontSize.cs | 30 - .../System.Web.UI.WebControls/FontUnit.cs | 213 - .../FontUnitConverter.cs | 81 - .../System.Web.UI.WebControls/GridLines.cs | 23 - .../HorizontalAlign.cs | 24 - .../System.Web.UI.WebControls/HyperLink.cs | 158 - .../HyperLinkColumn.cs | 221 - .../HyperLinkControlBuilder.cs | 27 - .../IRepeatInfoUser.cs | 29 - .../System.Web.UI.WebControls/Image.cs | 118 - .../System.Web.UI.WebControls/ImageAlign.cs | 29 - .../System.Web.UI.WebControls/ImageButton.cs | 181 - .../System.Web.UI.WebControls/Label.cs | 86 - .../LabelControlBuilder.cs | 27 - .../System.Web.UI.WebControls/LinkButton.cs | 174 - .../LinkButtonControlBuilder.cs | 31 - .../LinkButtonInternal.cs | 55 - .../System.Web.UI.WebControls/ListBox.cs | 177 - .../System.Web.UI.WebControls/ListControl.cs | 340 - .../System.Web.UI.WebControls/ListItem.cs | 241 - .../ListItemCollection.cs | 361 - .../ListItemControlBuilder.cs | 36 - .../System.Web.UI.WebControls/ListItemType.cs | 27 - .../ListSelectionMode.cs | 21 - .../System.Web.UI.WebControls/Literal.cs | 62 - .../LiteralControlBuilder.cs | 36 - .../MonthChangedEventArgs.cs | 47 - .../MonthChangedEventHandler.cs | 16 - .../NextPrevFormat.cs | 22 - .../PagedDataSource.cs | 475 - .../System.Web.UI.WebControls/PagerMode.cs | 21 - .../PagerPosition.cs | 22 - .../System.Web.UI.WebControls/Panel.cs | 97 - .../System.Web.UI.WebControls/PlaceHolder.cs | 28 - .../PlaceHolderControlBuilder.cs | 31 - .../System.Web.UI.WebControls/RadioButton.cs | 125 - .../RadioButtonList.cs | 244 - .../RangeValidator.cs | 125 - .../RegularExpressionValidator.cs | 93 - .../RepeatDirection.cs | 21 - .../System.Web.UI.WebControls/RepeatInfo.cs | 372 - .../System.Web.UI.WebControls/RepeatLayout.cs | 21 - .../System.Web.UI.WebControls/Repeater.cs | 377 - .../RepeaterCommandEventArgs.cs | 46 - .../RepeaterCommandEventHandler.cs | 16 - .../System.Web.UI.WebControls/RepeaterItem.cs | 72 - .../RepeaterItemCollection.cs | 83 - .../RepeaterItemEventArgs.cs | 37 - .../RepeaterItemEventHandler.cs | 16 - .../RequiredFieldValidator.cs | 60 - .../SelectedDatesCollection.cs | 120 - .../ServerValidateEventArgs.cs | 42 - .../ServerValidateEventHandler.cs | 16 - .../System.Web.UI.WebControls/Style.cs | 539 - .../System.Web/System.Web.UI.WebControls/TODO | 156 - .../System.Web.UI.WebControls/Table.cs | 159 - .../System.Web.UI.WebControls/TableCell.cs | 147 - .../TableCellCollection.cs | 181 - .../TableCellControlBuilder.cs | 31 - .../TableHeaderCell.cs | 26 - .../TableItemStyle.cs | 172 - .../System.Web.UI.WebControls/TableRow.cs | 99 - .../TableRowCollection.cs | 179 - .../System.Web.UI.WebControls/TableStyle.cs | 229 - .../TargetConverter.cs | 55 - .../TemplateColumn.cs | 109 - .../System.Web.UI.WebControls/TextAlign.cs | 21 - .../System.Web.UI.WebControls/TextBox.cs | 236 - .../TextBoxControlBuilder.cs | 36 - .../System.Web.UI.WebControls/TextBoxMode.cs | 22 - .../System.Web.UI.WebControls/TitleFormat.cs | 21 - .../System.Web.UI.WebControls/Unit.cs | 256 - .../UnitConverter.cs | 65 - .../System.Web.UI.WebControls/UnitType.cs | 28 - .../ValidatedControlConverter.cs | 76 - .../ValidationCompareOperator.cs | 26 - .../ValidationDataType.cs | 24 - .../ValidationSummary.cs | 142 - .../ValidationSummaryDisplayMode.cs | 22 - .../ValidatorDisplay.cs | 22 - .../VerticalAlign.cs | 23 - .../WebColorConverter.cs | 57 - .../System.Web.UI.WebControls/WebControl.cs | 451 - .../System.Web.UI.WebControls/Xml.cs | 224 - .../System.Web.UI/ApplicationFileParser.cs | 46 - .../System.Web.UI/AttributeCollection.cs | 82 - .../System.Web/System.Web.UI/BaseParser.cs | 73 - .../System.Web/System.Web.UI/BuildMethod.cs | 16 - .../System.Web.UI/BuildTemplateMethod.cs | 16 - mcs/class/System.Web/System.Web.UI/ChangeLog | 470 - .../System.Web.UI/CompiledTemplateBuilder.cs | 29 - .../ConstructorNeedsTagAttribute.cs | 31 - mcs/class/System.Web/System.Web.UI/Control.cs | 721 -- .../System.Web.UI/ControlBuilder.cs | 167 - .../System.Web.UI/ControlBuilderAttribute.cs | 47 - .../System.Web.UI/ControlCollection.cs | 122 - .../System.Web.UI/CssStyleCollection.cs | 106 - .../System.Web/System.Web.UI/DataBinder.cs | 77 - .../System.Web/System.Web.UI/DataBinding.cs | 60 - .../System.Web.UI/DataBindingCollection.cs | 92 - .../DataBindingHandlerAttribute.cs | 49 - .../System.Web.UI/DataBoundLiteralControl.cs | 80 - .../System.Web.UI/DesignTimeParseData.cs | 29 - .../System.Web.UI/EmptyControlCollection.cs | 30 - .../System.Web.UI/HtmlTextWriter.cs | 1027 -- .../System.Web.UI/HtmlTextWriterAttribute.cs | 54 - .../System.Web.UI/HtmlTextWriterStyle.cs | 28 - .../System.Web.UI/HtmlTextWriterTag.cs | 111 - .../System.Web.UI/IAttributeAccessor.cs | 20 - .../System.Web.UI/IDataBindingsAccessor.cs | 20 - .../System.Web.UI/INamingContainer.cs | 18 - .../System.Web.UI/IParserAccessor.cs | 19 - .../System.Web.UI/IPostBackDataHandler.cs | 21 - .../System.Web.UI/IPostBackEventHandler.cs | 19 - .../System.Web/System.Web.UI/IStateManager.cs | 22 - .../System.Web.UI/ITagNameToTypeMapper.cs | 20 - .../System.Web/System.Web.UI/ITemplate.cs | 19 - .../System.Web/System.Web.UI/IValidator.cs | 21 - .../System.Web.UI/ImageClickEventArgs.cs | 25 - .../System.Web.UI/ImageClickEventHandler.cs | 16 - .../System.Web.UI/LiteralControl.cs | 44 - .../System.Web/System.Web.UI/LosFormatter.cs | 54 - .../System.Web.UI/OutputCacheLocation.cs | 23 - mcs/class/System.Web/System.Web.UI/Page.cs | 682 -- .../System.Web/System.Web.UI/PageParser.cs | 45 - mcs/class/System.Web/System.Web.UI/Pair.cs | 36 - .../System.Web.UI/ParseChildrenAttribute.cs | 80 - .../System.Web.UI/PartialCachingAttribute.cs | 51 - .../System.Web.UI/PersistChildrenAttribute.cs | 50 - .../System.Web.UI/PersistenceMode.cs | 22 - .../System.Web.UI/PersistenceModeAttribute.cs | 52 - .../System.Web.UI/PropertyConverter.cs | 124 - .../System.Web/System.Web.UI/RenderMethod.cs | 13 - .../System.Web/System.Web.UI/StateBag.cs | 243 - .../System.Web/System.Web.UI/StateItem.cs | 47 - mcs/class/System.Web/System.Web.UI/TODO | 42 - .../System.Web.UI/TagPrefixAttribute.cs | 37 - .../TemplateContainerAttribute.cs | 27 - .../System.Web.UI/TemplateControl.cs | 156 - .../System.Web.UI/TemplateControlParser.cs | 28 - .../System.Web.UI/TemplateParser.cs | 46 - .../System.Web.UI/ToolboxDataAttribute.cs | 58 - mcs/class/System.Web/System.Web.UI/Triplet.cs | 36 - .../System.Web/System.Web.UI/UserControl.cs | 188 - mcs/class/System.Web/System.Web.UI/Utils.cs | 46 - .../ValidationPropertyAttribute.cs | 27 - .../System.Web.UI/ValidatorCollection.cs | 69 - .../System.Web/System.Web.Utils/.cvsignore | 1 - .../System.Web.Utils/ApacheVersionInfo.cs | 31 - .../System.Web/System.Web.Utils/ChangeLog | 57 - .../System.Web.Utils/DataSourceHelper.cs | 72 - .../System.Web/System.Web.Utils/FileAction.cs | 26 - .../FileChangeEventHandler.cs | 17 - .../System.Web.Utils/FileChangedEventArgs.cs | 43 - .../System.Web.Utils/FileChangesMonitor.cs | 62 - .../System.Web.Utils/FilePathParser.cs | 82 - .../System.Web.Utils/IISVersionInfo.cs | 110 - .../NativeFileChangeEventHandler.cs | 17 - .../System.Web/System.Web.Utils/UrlUtils.cs | 283 - .../System.Web.Utils/WebEqualComparer.cs | 107 - .../System.Web.Utils/WebHashCodeProvider.cs | 54 - mcs/class/System.Web/System.Web.build | 37 - mcs/class/System.Web/System.Web/.cvsignore | 1 - .../System.Web/BeginEventHandler.cs | 16 - mcs/class/System.Web/System.Web/ChangeLog | 298 - .../System.Web/System.Web/EndEventHandler.cs | 13 - .../System.Web/System.Web/HttpApplication.cs | 967 -- .../System.Web/HttpApplicationFactory.cs | 189 - .../System.Web/HttpApplicationState.cs | 232 - .../System.Web/System.Web/HttpAsyncResult.cs | 73 - .../System.Web/HttpBrowserCapabilities.cs | 143 - .../System.Web/System.Web/HttpCachePolicy.cs | 144 - .../System.Web/HttpCacheRevalidation.cs | 17 - .../System.Web/HttpCacheValidateHandler.cs | 16 - .../System.Web/HttpCacheVaryByHeaders.cs | 110 - .../System.Web/HttpCacheVaryByParams.cs | 81 - .../System.Web/System.Web/HttpCacheability.cs | 18 - .../System.Web/HttpClientCertificate.cs | 147 - .../System.Web/HttpCompileException.cs | 45 - .../System.Web/System.Web/HttpContext.cs | 318 - mcs/class/System.Web/System.Web/HttpCookie.cs | 177 - .../System.Web/HttpCookieCollection.cs | 139 - .../System.Web/System.Web/HttpException.cs | 59 - .../System.Web/HttpFileCollection.cs | 73 - mcs/class/System.Web/System.Web/HttpHelper.cs | 48 - .../System.Web/HttpModuleCollection.cs | 73 - .../System.Web/HttpParseException.cs | 44 - .../System.Web/System.Web/HttpPostedFile.cs | 56 - .../System.Web/System.Web/HttpRequest.cs | 843 -- .../System.Web/HttpRequestStream.cs | 142 - .../System.Web/System.Web/HttpResponse.cs | 765 -- .../System.Web/HttpResponseHeader.cs | 53 - .../System.Web/HttpResponseStream.cs | 87 - .../System.Web/HttpResponseStreamProxy.cs | 48 - .../System.Web/System.Web/HttpRuntime.cs | 429 - .../System.Web/HttpServerUtility.cs | 283 - .../System.Web/HttpStaticObjectsCollection.cs | 59 - .../System.Web/HttpUnhandledException.cs | 28 - .../System.Web/System.Web/HttpUtility.cs | 481 - .../System.Web/HttpValidationStatus.cs | 17 - .../System.Web/HttpValueCollection.cs | 142 - .../System.Web/HttpWorkerRequest.cs | 477 - mcs/class/System.Web/System.Web/HttpWriter.cs | 230 - .../System.Web/IHttpAsyncHandler.cs | 18 - .../System.Web/System.Web/IHttpHandler.cs | 16 - .../System.Web/IHttpHandlerFactory.cs | 19 - .../System.Web/System.Web/IHttpModule.cs | 14 - mcs/class/System.Web/System.Web/NOTES | 21 - .../System.Web/System.Web/ProcessInfo.cs | 90 - .../System.Web/System.Web/ProcessModelInfo.cs | 52 - .../System.Web/ProcessShutdownReason.cs | 23 - .../System.Web/System.Web/ProcessStatus.cs | 17 - mcs/class/System.Web/System.Web/TODO | 19 - .../System.Web/System.Web/TODOAttribute.cs | 33 - .../System.Web/System.Web/TraceContext.cs | 69 - mcs/class/System.Web/System.Web/TraceMode.cs | 16 - .../System.Web/WebCategoryAttribute.cs | 38 - .../System.Web/WebSysDescriptionAttribute.cs | 44 - .../Test/TestMonoWeb/AsyncHandler.cs | 103 - .../Test/TestMonoWeb/AsyncModule.cs | 36 - .../Test/TestMonoWeb/AsyncOperation.cs | 42 - mcs/class/System.Web/Test/TestMonoWeb/README | 5 - .../Test/TestMonoWeb/SyncHandler.cs | 16 - .../System.Web/Test/TestMonoWeb/SyncModule.cs | 37 - .../System.Web/Test/TestMonoWeb/Test1.cs | 46 - .../Test/TestMonoWeb/TestMonoWeb.build | 26 - mcs/class/System.Web/Test/test.aspx | 29 - mcs/class/System.Web/Test/test2.aspx | 101 - mcs/class/System.Web/Test/test3.aspx | 23 - mcs/class/System.Web/Test/test4.aspx | 119 - mcs/class/System.Web/Test/test5.aspx | 121 - mcs/class/System.Web/Test/test6.aspx | 83 - mcs/class/System.Web/list | 321 - mcs/class/System.Web/makefile.gnu | 13 - .../System.Windows.Forms/Gtk/AnchorStyles.cs | 22 - .../System.Windows.Forms/Gtk/Application.cs | 37 - mcs/class/System.Windows.Forms/Gtk/Button.cs | 107 - .../System.Windows.Forms/Gtk/ButtonBase.cs | 204 - .../Gtk/ContainerControl.cs | 114 - mcs/class/System.Windows.Forms/Gtk/Control.cs | 266 - .../Gtk/ControlEventArgs.cs | 36 - .../Gtk/ControlEventHandler.cs | 16 - .../System.Windows.Forms/Gtk/DialogResult.cs | 31 - mcs/class/System.Windows.Forms/Gtk/Form.cs | 823 -- .../Gtk/HorizontalAlignment.cs | 20 - .../Gtk/IButtonControl.cs | 17 - .../Gtk/IContainerControl.cs | 18 - mcs/class/System.Windows.Forms/Gtk/Label.cs | 276 - .../System.Windows.Forms/Gtk/ProgressBar.cs | 206 - .../System.Windows.Forms/Gtk/ScrollBars.cs | 21 - .../Gtk/ScrollableControl.cs | 305 - mcs/class/System.Windows.Forms/Gtk/TextBox.cs | 218 - .../System.Windows.Forms/Gtk/TextBoxBase.cs | 442 - mcs/class/System.Windows.Forms/Gtk/changelog | 13 - mcs/class/System.Windows.Forms/Gtk/demo.cs | 58 - mcs/class/System.Windows.Forms/Gtk/makefile | 26 - .../System.Resources/ResXResourceReader.cs | 89 - .../System.Resources/ResXResourceWriter.cs | 64 - .../AnchorEditor.cs | 35 - .../AssemblyInfo.cs | 58 - .../System.Windows.Forms.Design/AxImporter.cs | 87 - .../ComponentDocumentDesigner.cs | 59 - .../ComponentEditor.cs | 25 - .../ComponentEditorForm.cs | 51 - .../ComponentTray.cs | 25 - .../ControlDesigner.cs | 29 - .../DocumentDesigner.cs | 25 - .../System.Windows.Forms.Design/EventsTab.cs | 25 - .../FileNameEditor.cs | 25 - .../IMenuEditorService.cs | 11 - .../System.Windows.Forms.Design/IUIService.cs | 11 - .../IWindowsformsEditorService.cs | 11 - .../MenusCommands.cs | 25 - .../ParentControlDesigner.cs | 25 - .../PropertyTab.cs | 25 - .../ScrollableControlDesigner.cs | 25 - .../SelectionRules.cs | 11 - .../System.Windows.Forms.Design.csproj | 193 - .../System.Windows.Forms.Design.csproj.user | 48 - .../TODOAttribute.cs | 32 - .../UITypeEditor.cs | 17 - .../System.Windows.Forms.Design/changelog | 40 - .../System.Windows.Forms/AccessibleEvents.cs | 59 - .../AccessibleNavigation.cs | 32 - .../System.Windows.Forms/AccessibleObject.cs | 369 - .../System.Windows.Forms/AccessibleRole.cs | 80 - .../AccessibleSelection.cs | 30 - .../System.Windows.Forms/AccessibleStates.cs | 59 - .../System.Windows.Forms/AmbientProperties.cs | 116 - .../System.Windows.Forms/AnchorStyles.cs | 22 - .../System.Windows.Forms/Appearance.cs | 19 - .../System.Windows.Forms/Application.cs | 232 - .../ApplicationContext.cs | 83 - .../System.Windows.Forms/ArrangeDirection.cs | 21 - .../ArrangeStartingPosition.cs | 22 - .../System.Windows.Forms/AssemblyInfo.cs | 61 - .../System.Windows.Forms/AxHost.cs | 438 - .../System.Windows.Forms/BaseCollection.cs | 85 - .../System.Windows.Forms/Binding.cs | 101 - .../System.Windows.Forms/BindingContext.cs | 87 - .../BindingManagerBase.cs | 125 - .../System.Windows.Forms/BindingMemberInfo.cs | 149 - .../BindingsCollection.cs | 134 - .../System.Windows.Forms/BootMode.cs | 20 - .../System.Windows.Forms/Border3DSide.cs | 23 - .../System.Windows.Forms/Border3DStyle.cs | 27 - .../System.Windows.Forms/BorderStyle.cs | 20 - .../System.Windows.Forms/BoundsSpecified.cs | 25 - .../System.Windows.Forms/ButtonBorderStyle.cs | 23 - .../System.Windows.Forms/ButtonState.cs | 23 - .../System.Windows.Forms/CaptionButton.cs | 29 - .../System.Windows.Forms/ChangeLog | 1562 --- .../System.Windows.Forms/CharacterCasing.cs | 26 - .../System.Windows.Forms/CheckBox.cs | 194 - .../System.Windows.Forms/CheckState.cs | 27 - .../System.Windows.Forms/CheckedListBox.cs | 496 - .../System.Windows.Forms/Clipboard.cs | 42 - .../System.Windows.Forms/ColorDepth.cs | 22 - .../System.Windows.Forms/ColorDialog.cs | 150 - .../ColumnClickEventArgs.cs | 103 - .../ColumnClickEventHandler.cs | 15 - .../System.Windows.Forms/ColumnHeader.cs | 85 - .../System.Windows.Forms/ColumnHeaderStyle.cs | 20 - .../System.Windows.Forms/ComVisible.cs | 25 - .../System.Windows.Forms/ComboBox.cs | 589 -- .../System.Windows.Forms/ComboBoxStyle.cs | 20 - .../System.Windows.Forms/CommonDialog.cs | 81 - .../System.Windows.Forms/ContainerControl.cs | 129 - .../ContentsResizedEventArgs.cs | 122 - .../ContentsResizedEventHandler.cs | 16 - .../System.Windows.Forms/ContextMenu.cs | 82 - .../System.Windows.Forms/Control.cs | 2718 ----- .../ControlBindingsCollection.cs | 85 - .../System.Windows.Forms/ControlEventArgs.cs | 121 - .../ControlEventHandler.cs | 16 - .../System.Windows.Forms/ControlPaint.cs | 466 - .../System.Windows.Forms/ControlStyles.cs | 32 - .../System.Windows.Forms/ConvertEventArgs.cs | 134 - .../ConvertEventHandler.cs | 16 - .../System.Windows.Forms/CreateParams.cs | 108 - .../System.Windows.Forms/CurrencyManager.cs | 157 - .../System.Windows.Forms/Cursor.cs | 180 - .../System.Windows.Forms/CursorConverter.cs | 75 - .../System.Windows.Forms/Cursors.cs | 170 - .../System.Windows.Forms/DataFormats.cs | 100 - .../System.Windows.Forms/DataGrid.cs | 1107 -- .../DataGridBoolColumn.cs | 212 - .../System.Windows.Forms/DataGridCell.cs | 138 - .../DataGridColumnStyle.cs | 332 - .../System.Windows.Forms/DataGridLineStyle.cs | 19 - .../DataGridParentRowsLabelStyle.cs | 27 - ...taGridPreferredColumnWidthTypeConverter.cs | 60 - .../DataGridTableStyle.cs | 657 -- .../System.Windows.Forms/DataGridTextBox.cs | 87 - .../DataGridTextBoxColumn.cs | 192 - .../System.Windows.Forms/DataObject.cs | 118 - .../System.Windows.Forms/DateBoldEventArgs.cs | 39 - .../DateRangeEventArgs.cs | 133 - .../DateRangeEventHandler.cs | 16 - .../System.Windows.Forms/DateTimePicker.cs | 324 - .../DateTimePickerFormat.cs | 21 - .../System.Windows.Forms/DialogResult.cs | 32 - .../System.Windows.Forms/DockStyle.cs | 29 - .../System.Windows.Forms/DomainUpDown.cs | 185 - .../System.Windows.Forms/DragAction.cs | 27 - .../System.Windows.Forms/DragDropEffects.cs | 30 - .../System.Windows.Forms/DragEventArgs.cs | 177 - .../System.Windows.Forms/DragEventHandler.cs | 16 - .../System.Windows.Forms/DrawItemEventArgs.cs | 208 - .../DrawItemEventHandler.cs | 16 - .../System.Windows.Forms/DrawItemState.cs | 36 - .../System.Windows.Forms/DrawMode.cs | 26 - .../System.Windows.Forms/ErrorBlinkStyle.cs | 27 - .../ErrorIconAlignment.cs | 30 - .../System.Windows.Forms/ErrorProvider.cs | 236 - .../System.Windows.Forms/FeatureSupport.cs | 70 - .../System.Windows.Forms/FileDialog.cs | 230 - .../System.Windows.Forms/FlatStyle.cs | 27 - .../System.Windows.Forms/FontDialog.cs | 226 - .../System.Windows.Forms/Form.cs | 1033 -- .../System.Windows.Forms/FormBorderStyle.cs | 31 - .../System.Windows.Forms/FormStartPosition.cs | 29 - .../System.Windows.Forms/FormWindowState.cs | 27 - .../System.Windows.Forms/FrameStyle.cs | 25 - .../GiveFeedbackEventArgs.cs | 131 - .../GiveFeedbackEventHandler.cs | 16 - .../GridColumnStylesCollection.cs | 215 - .../System.Windows.Forms/GridItem.cs | 100 - .../GridItemCollection.cs | 86 - .../System.Windows.Forms/GridItemType.cs | 21 - .../GridTableStylesCollection.cs | 181 - .../System.Windows.Forms/GroupBox.cs | 208 - .../System.Windows.Forms/HScrollBar.cs | 188 - .../System.Windows.Forms/Help.cs | 65 - .../System.Windows.Forms/HelpEventArgs.cs | 134 - .../System.Windows.Forms/HelpEventHandler.cs | 16 - .../System.Windows.Forms/HelpNavigator.cs | 23 - .../System.Windows.Forms/HelpProvider.cs | 134 - .../HorizontalAlignment.cs | 20 - .../System.Windows.Forms/IButtonControl.cs | 17 - .../System.Windows.Forms/ICommandExecutor.cs | 22 - .../IComponentEditorPageSite.cs | 24 - .../System.Windows.Forms/IContainerControl.cs | 18 - ...idColumnStyleEditingNotificationService.cs | 17 - .../IDataGridEditingService.cs | 24 - .../System.Windows.Forms/IDataObject.cs | 33 - .../System.Windows.Forms/IFeatureSupport.cs | 19 - .../IFileReaderService.cs | 23 - .../System.Windows.Forms/IMessageFilter.cs | 16 - .../System.Windows.Forms/IWin32Window.cs | 20 - .../System.Windows.Forms/IWindowTarget.cs | 25 - .../ImageIndexConverter.cs | 249 - .../System.Windows.Forms/ImageList.cs | 381 - .../System.Windows.Forms/ImageListStreamer.cs | 41 - .../System.Windows.Forms/ImeMode.cs | 29 - .../System.Windows.Forms/InputLanguage.cs | 86 - .../InputLanguageChangedEventArgs.cs | 140 - .../InputLanguageChangedEventHandler.cs | 16 - .../InputLanguageChangingEventArgs.cs | 146 - .../InputLanguageChangingEventHandler.cs | 16 - .../InputLanguageCollection.cs | 70 - .../InvalidateEventArgs.cs | 122 - .../InvalidateEventHandler.cs | 16 - .../System.Windows.Forms/ItemActivation.cs | 20 - .../System.Windows.Forms/ItemBoundsPortion.cs | 21 - .../ItemChangedEventArgs.cs | 113 - .../ItemChangedEventHandler.cs | 16 - .../ItemCheckEventArgs.cs | 143 - .../ItemCheckEventHandler.cs | 16 - .../System.Windows.Forms/ItemDragEventArgs.cs | 137 - .../ItemDragEventHandler.cs | 16 - .../System.Windows.Forms/KeyEventArgs.cs | 208 - .../System.Windows.Forms/KeyEventHandler.cs | 16 - .../System.Windows.Forms/KeyPressEventArgs.cs | 135 - .../KeyPressEventHandler.cs | 16 - .../System.Windows.Forms/Keys.cs | 202 - .../System.Windows.Forms/KeysConverter.cs | 200 - .../LabelEditEventArgs.cs | 144 - .../LabelEditEventHandler.cs | 16 - .../System.Windows.Forms/LayoutEventArgs.cs | 130 - .../LayoutEventHandler.cs | 16 - .../LeftRightAlignment.cs | 19 - .../System.Windows.Forms/LinkArea.cs | 146 - .../System.Windows.Forms/LinkBehavior.cs | 21 - .../LinkClickedEventArgs.cs | 123 - .../LinkClickedEventHandler.cs | 16 - .../System.Windows.Forms/LinkLabel.cs | 601 -- .../LinkLabelLinkClickedEventArgs.cs | 124 - .../LinkLabelLinkClickedEventHandler.cs | 16 - .../System.Windows.Forms/LinkState.cs | 21 - .../ListBindingConverter.cs | 220 - .../System.Windows.Forms/ListBox.cs | 896 -- .../System.Windows.Forms/ListControl.cs | 278 - .../System.Windows.Forms/ListView.cs | 1539 --- .../System.Windows.Forms/ListViewAlignment.cs | 21 - .../System.Windows.Forms/ListViewItem.cs | 554 - .../ListViewItemConverter.cs | 188 - .../System.Windows.Forms/MainMenu.cs | 243 - .../System.Windows.Forms/MdiLayout.cs | 21 - .../MeasureItemEventArgs.cs | 180 - .../MeasureItemEventHandler.cs | 19 - .../System.Windows.Forms/Menu.cs | 394 - .../System.Windows.Forms/MenuGlyph.cs | 24 - .../System.Windows.Forms/MenuItem.cs | 417 - .../System.Windows.Forms/MenuMerge.cs | 21 - .../System.Windows.Forms/Message.cs | 172 - .../System.Windows.Forms/MessageBoxButtons.cs | 23 - .../MessageBoxDefaultButton.cs | 20 - .../System.Windows.Forms/MessageBoxIcon.cs | 26 - .../System.Windows.Forms/MessageBoxOptions.cs | 21 - .../System.Windows.Forms/MethodInvoker.cs | 18 - .../System.Windows.Forms/MonthCalendar.cs | 1861 ---- .../System.Windows.Forms/MouseButtons.cs | 23 - .../System.Windows.Forms/MouseEventArgs.cs | 168 - .../System.Windows.Forms/MouseEventHandler.cs | 19 - .../System.Windows.Forms/NativeWindow.cs | 190 - .../System.Windows.Forms/NavigateEventArgs.cs | 128 - .../NavigateEventHandler.cs | 18 - .../NodeLabelEditEventArgs.cs | 144 - .../NodeLabelEditEventHandler.cs | 19 - .../System.Windows.Forms/NotifyIcon.cs | 192 - .../System.Windows.Forms/NumericUpDown.cs | 1635 --- .../System.Windows.Forms/OSFeature.cs | 95 - .../System.Windows.Forms/OpacityConverter.cs | 276 - .../System.Windows.Forms/OpenFileDialog.cs | 315 - .../System.Windows.Forms/Orientation.cs | 19 - .../System.Windows.Forms/PageSetupDialog.cs | 259 - .../System.Windows.Forms/PaintEventArgs.cs | 146 - .../System.Windows.Forms/PaintEventHandler.cs | 18 - .../System.Windows.Forms/Panel.cs | 1281 --- .../PictureBoxSizeMode.cs | 21 - .../PrintControllerWithStatusDialog.cs | 99 - .../System.Windows.Forms/PrintDialog.cs | 246 - .../PrintPreviewControl.cs | 167 - .../PrintPreviewDialog.cs | 384 - .../System.Windows.Forms/ProgressBar.cs | 190 - .../System.Windows.Forms/PropertyGrid.cs | 526 - .../System.Windows.Forms/PropertyManager.cs | 130 - .../System.Windows.Forms/PropertySort.cs | 21 - .../PropertyTabChangedEventArgs.cs | 139 - .../PropertyTabChangedEventHandler.cs | 18 - .../PropertyValueChangedEventArgs.cs | 131 - .../PropertyValueChangedEventHandler.cs | 19 - .../QueryAccessibilityHelpEventArgs.cs | 156 - .../QueryAccessibilityHelpEventHandler.cs | 18 - .../QueryContinueDragEventArgs.cs | 142 - .../QueryContinueDragEventHandler.cs | 18 - .../System.Windows.Forms/RadioButton.cs | 302 - .../System.Windows.Forms/RichTextBox.cs | 667 -- .../System.Windows.Forms/RichTextBoxFinds.cs | 22 - .../RichTextBoxScrollBars.cs | 24 - .../RichTextBoxSelectionAttribute.cs | 20 - .../RichTextBoxSelectionTypes.cs | 22 - .../RichTextBoxStreamType.cs | 22 - .../RichTextBoxWordPunctuations.cs | 21 - .../System.Windows.Forms/RightToLeft.cs | 20 - .../System.Windows.Forms/SaveFileDialog.cs | 84 - .../System.Windows.Forms/Screen.cs | 128 - .../System.Windows.Forms/ScrollBar.cs | 361 - .../System.Windows.Forms/ScrollBars.cs | 21 - .../System.Windows.Forms/ScrollButton.cs | 23 - .../System.Windows.Forms/ScrollEventArgs.cs | 140 - .../ScrollEventHandler.cs | 19 - .../System.Windows.Forms/ScrollEventType.cs | 29 - .../System.Windows.Forms/ScrollableControl.cs | 371 - .../System.Windows.Forms/SecurityIDType.cs | 26 - .../SelectedGridItemChangedEventArgs.cs | 121 - .../SelectedGridItemChangedEventHandler.cs | 18 - .../System.Windows.Forms/SelectionMode.cs | 24 - .../System.Windows.Forms/SelectionRange.cs | 85 - .../SelectionRangeConverter.cs | 200 - .../System.Windows.Forms/SendKeys.cs | 52 - .../System.Windows.Forms/Shortcut.cs | 170 - .../System.Windows.Forms/SizeGripStyle.cs | 20 - .../System.Windows.Forms/SortOrder.cs | 20 - .../System.Windows.Forms/Splitter.cs | 329 - .../System.Windows.Forms/SplitterEventArgs.cs | 148 - .../SplitterEventHandler.cs | 18 - .../System.Windows.Forms/StatusBar.cs | 487 - .../StatusBarDrawItemEventArgs.cs | 111 - .../StatusBarDrawItemEventHandler.cs | 18 - .../System.Windows.Forms/StatusBarPanel.cs | 141 - .../StatusBarPanelAutoSize.cs | 20 - .../StatusBarPanelBorderStyle.cs | 20 - .../StatusBarPanelClickEventArgs.cs | 121 - .../StatusBarPanelClickEventHandler.cs | 18 - .../StatusBarPanelCollection.cs | 195 - .../StatusBarPanelStyle.cs | 19 - .../System.Windows.Forms/StructFormat.cs | 20 - .../System.Windows.Forms.csproj | 1658 --- .../System.Windows.Forms.csproj.user | 48 - .../System.Windows.Forms.sln | 27 - .../System.Windows.Forms/SystemInformation.cs | 333 - .../System.Windows.Forms/TODOAttribute.cs | 32 - .../System.Windows.Forms/TabAlignment.cs | 21 - .../System.Windows.Forms/TabAppearance.cs | 20 - .../System.Windows.Forms/TabControl.cs | 457 - .../System.Windows.Forms/TabDrawMode.cs | 19 - .../System.Windows.Forms/TabPage.cs | 108 - .../System.Windows.Forms/TabSizeMode.cs | 20 - .../System.Windows.Forms/TextBox.cs | 138 - .../System.Windows.Forms/TextBoxBase.cs | 407 - .../ThreadExceptionDialog.cs | 29 - .../System.Windows.Forms/TickStyle.cs | 23 - .../System.Windows.Forms/Timer.cs | 92 - .../System.Windows.Forms/ToolBar.cs | 458 - .../System.Windows.Forms/ToolBarAppearance.cs | 19 - .../System.Windows.Forms/ToolBarButton.cs | 157 - .../ToolBarButtonClickEventArgs.cs | 118 - .../ToolBarButtonClickEventHandler.cs | 18 - .../ToolBarButtonStyle.cs | 21 - .../System.Windows.Forms/ToolBarTextAlign.cs | 19 - .../System.Windows.Forms/TrackBar.cs | 236 - .../System.Windows.Forms/TreeNode.cs | 316 - .../TreeNodeCollection.cs | 187 - .../System.Windows.Forms/TreeNodeConverter.cs | 42 - .../System.Windows.Forms/TreeView.cs | 485 - .../System.Windows.Forms/TreeViewAction.cs | 24 - .../TreeViewCancelEventArgs.cs | 138 - .../TreeViewCancelEventHandler.cs | 19 - .../System.Windows.Forms/TreeViewEventArgs.cs | 44 - .../TreeViewEventHandler.cs | 19 - .../TreeViewImageIndexConverter.cs | 39 - .../System.Windows.Forms/UICues.cs | 26 - .../System.Windows.Forms/UICuesEventArgs.cs | 149 - .../UICuesEventHandler.cs | 17 - .../System.Windows.Forms/UpDownBase.cs | 315 - .../System.Windows.Forms/UpDownEventArgs.cs | 19 - .../UpDownEventHandler.cs | 20 - .../System.Windows.Forms/UserControl.cs | 67 - .../System.Windows.Forms/VScrollBar.cs | 43 - .../System.Windows.Forms/View.cs | 21 - .../System.Windows.Forms/Win32.cs | 416 - .../System.Windows.Forms/day.cs | 25 - .../System.Windows.Forms/makefile | 139 - .../System.Windows.Forms/monostub.c | 37 - .../System.Windows.Forms/ochangelog | 73 - .../System.Windows.Forms/tooltip.cs | 120 - .../WINELib/Application.cs | 232 - .../WINELib/ContainerControl.cs | 129 - .../System.Windows.Forms/WINELib/Control.cs | 2718 ----- .../WINELib/DrawItemEventArgs.cs | 9 - .../WINELib/DrawItemEventHandler.cs | 8 - .../System.Windows.Forms/WINELib/Font.cs | 6 - .../System.Windows.Forms/WINELib/Form.cs | 1033 -- .../System.Windows.Forms/WINELib/FormTest.cs | 13 - .../WINELib/IAccessible.cs | 7 - .../WINELib/IContainerControl.cs | 8 - .../System.Windows.Forms/WINELib/MenuItem.cs | 7 - .../WINELib/NativeWindow.cs | 190 - .../WINELib/NativeWindowTest.cs | 50 - .../WINELib/ScrollableControl.cs | 371 - .../System.Windows.Forms/WINELib/Test.cs | 14 - .../System.Windows.Forms/WINELib/Win32.cs | 416 - .../System.Windows.Forms/WINELib/build.sh | 42 - .../System.Windows.Forms/WINELib/changelog | 73 - .../System.Windows.Forms/WINELib/makefile | 139 - .../System.Windows.Forms/WINELib/monostart.c | 76 - .../System.Windows.Forms/WINELib/monostub.c | 37 - .../System.Windows.Forms/WINELib/test.sh | 1 - mcs/class/System.XML/.cvsignore | 8 - mcs/class/System.XML/ChangeLog | 39 - mcs/class/System.XML/Mono.System.XML.csproj | 510 - mcs/class/System.XML/Mono.System.XML.sln | 27 - mcs/class/System.XML/README | 8 - mcs/class/System.XML/System.XML.build | 38 - .../System.XML/System.Xml.Schema/BUGS-MS.txt | 20 - .../System.XML/System.Xml.Schema/BUGS.txt | 5 - .../System.XML/System.Xml.Schema/ChangeLog | 69 - .../System.Xml.Schema/ValidationEventArgs.cs | 38 - .../System.Xml.Schema/ValidationHandler.cs | 48 - .../System.XML/System.Xml.Schema/XmlSchema.cs | 711 -- .../System.Xml.Schema/XmlSchemaAll.cs | 165 - .../System.Xml.Schema/XmlSchemaAnnotated.cs | 56 - .../System.Xml.Schema/XmlSchemaAnnotation.cs | 145 - .../System.Xml.Schema/XmlSchemaAny.cs | 192 - .../XmlSchemaAnyAttribute.cs | 169 - .../System.Xml.Schema/XmlSchemaAppInfo.cs | 91 - .../System.Xml.Schema/XmlSchemaAttribute.cs | 435 - .../XmlSchemaAttributeGroup.cs | 208 - .../XmlSchemaAttributeGroupRef.cs | 126 - .../System.Xml.Schema/XmlSchemaChoice.cs | 203 - .../System.Xml.Schema/XmlSchemaCollection.cs | 118 - .../XmlSchemaCollectionEnumerator.cs | 47 - .../XmlSchemaComplexContent.cs | 162 - .../XmlSchemaComplexContentExtension.cs | 254 - .../XmlSchemaComplexContentRestriction.cs | 256 - .../System.Xml.Schema/XmlSchemaComplexType.cs | 463 - .../System.Xml.Schema/XmlSchemaContent.cs | 15 - .../XmlSchemaContentModel.cs | 19 - .../XmlSchemaContentProcessing.cs | 22 - .../System.Xml.Schema/XmlSchemaContentType.cs | 17 - .../System.Xml.Schema/XmlSchemaDatatype.cs | 30 - .../XmlSchemaDerivationMethod.cs | 31 - .../XmlSchemaDocumentation.cs | 104 - .../System.Xml.Schema/XmlSchemaElement.cs | 625 -- .../XmlSchemaEnumerationFacet.cs | 87 - .../System.Xml.Schema/XmlSchemaException.cs | 81 - .../System.Xml.Schema/XmlSchemaExternal.cs | 62 - .../System.Xml.Schema/XmlSchemaFacet.cs | 37 - .../System.Xml.Schema/XmlSchemaForm.cs | 19 - .../XmlSchemaFractionDigitsFacet.cs | 98 - .../System.Xml.Schema/XmlSchemaGroup.cs | 195 - .../System.Xml.Schema/XmlSchemaGroupBase.cs | 20 - .../System.Xml.Schema/XmlSchemaGroupRef.cs | 156 - .../XmlSchemaIdentityConstraint.cs | 91 - .../System.Xml.Schema/XmlSchemaImport.cs | 109 - .../System.Xml.Schema/XmlSchemaInclude.cs | 97 - .../System.Xml.Schema/XmlSchemaInfo.cs | 25 - .../System.Xml.Schema/XmlSchemaKey.cs | 127 - .../System.Xml.Schema/XmlSchemaKeyref.cs | 151 - .../System.Xml.Schema/XmlSchemaLengthFacet.cs | 96 - .../XmlSchemaMaxExclusiveFacet.cs | 96 - .../XmlSchemaMaxInclusiveFacet.cs | 96 - .../XmlSchemaMaxLengthFacet.cs | 97 - .../XmlSchemaMinExclusiveFacet.cs | 96 - .../XmlSchemaMinInclusiveFacet.cs | 95 - .../XmlSchemaMinLengthFacet.cs | 96 - .../System.Xml.Schema/XmlSchemaNotation.cs | 158 - .../XmlSchemaNumericFacet.cs | 16 - .../System.Xml.Schema/XmlSchemaObject.cs | 75 - .../XmlSchemaObjectCollection.cs | 82 - .../XmlSchemaObjectEnumerator.cs | 49 - .../System.Xml.Schema/XmlSchemaObjectTable.cs | 51 - .../System.Xml.Schema/XmlSchemaParticle.cs | 98 - .../XmlSchemaPatternFacet.cs | 87 - .../System.Xml.Schema/XmlSchemaReader.cs | 358 - .../System.Xml.Schema/XmlSchemaRedefine.cs | 151 - .../System.Xml.Schema/XmlSchemaSequence.cs | 202 - .../XmlSchemaSimpleContent.cs | 146 - .../XmlSchemaSimpleContentExtension.cs | 190 - .../XmlSchemaSimpleContentRestriction.cs | 337 - .../System.Xml.Schema/XmlSchemaSimpleType.cs | 237 - .../XmlSchemaSimpleTypeContent.cs | 17 - .../XmlSchemaSimpleTypeList.cs | 152 - .../XmlSchemaSimpleTypeRestriction.cs | 267 - .../XmlSchemaSimpleTypeUnion.cs | 175 - .../XmlSchemaTotalDigitsFacet.cs | 96 - .../System.Xml.Schema/XmlSchemaType.cs | 81 - .../System.Xml.Schema/XmlSchemaUnique.cs | 126 - .../System.Xml.Schema/XmlSchemaUse.cs | 22 - .../System.Xml.Schema/XmlSchemaUtil.cs | 299 - .../XmlSchemaWhiteSpaceFacet.cs | 97 - .../System.Xml.Schema/XmlSchemaXPath.cs | 104 - .../System.Xml.Schema/XmlSeverityType.cs | 15 - .../System.Xml.Serialization/AssemblyInfo.cs | 58 - .../System.Xml.Serialization/ChangeLog | 86 - .../CodeIdentifier.cs | 50 - .../CodeIdentifiers.cs | 108 - .../IXmlSerializable.cs | 19 - .../SoapAttributeAttribute.cs | 61 - .../SoapAttributeOverrides.cs | 72 - .../SoapAttributes.cs | 88 - .../SoapCodeExporter.cs | 75 - .../SoapElementAttribute.cs | 60 - .../SoapEnumAttribute.cs | 40 - .../SoapIgnoreAttribute.cs | 25 - .../SoapIncludeAttribute.cs | 38 - .../SoapReflectionImporter.cs | 90 - .../SoapSchemaImporter.cs | 71 - .../SoapSchemaMember.cs | 44 - .../SoapTypeAttribute.cs | 59 - .../System.Xml.Serialization/TypeMember.cs | 54 - .../UnreferencedObjectEventArgs.cs | 35 - .../UnreferencedObjectEventHandler.cs | 16 - .../XmlAnyAttributeAttribute.cs | 28 - .../XmlAnyElementAttribute.cs | 66 - .../XmlAnyElementAttributes.cs | 66 - .../XmlArrayAttribute.cs | 90 - .../XmlArrayItemAttribute.cs | 85 - .../XmlArrayItemAttributes.cs | 61 - .../XmlAttributeAttribute.cs | 95 - .../XmlAttributeEventArgs.cs | 49 - .../XmlAttributeEventHandler.cs | 16 - .../XmlAttributeOverrides.cs | 60 - .../System.Xml.Serialization/XmlAttributes.cs | 443 - .../XmlChoiceIdentifierAttribute.cs | 51 - .../XmlCodeExporter.cs | 81 - .../XmlElementAttribute.cs | 104 - .../XmlElementAttributes.cs | 59 - .../XmlElementEventArgs.cs | 53 - .../XmlElementEventHandler.cs | 16 - .../XmlEnumAttribute.cs | 41 - .../XmlIgnoreAttribute.cs | 26 - .../XmlIncludeAttribute.cs | 37 - .../System.Xml.Serialization/XmlMapping.cs | 20 - .../XmlMemberMapping.cs | 52 - .../XmlMembersMapping.cs | 49 - .../XmlNamespaceDeclarationsAttribute.cs | 26 - .../XmlNodeEventArgs.cs | 82 - .../XmlNodeEventHandler.cs | 16 - .../XmlReflectionImporter.cs | 89 - .../XmlReflectionMember.cs | 66 - .../XmlRootAttribute.cs | 73 - .../XmlSchemaExporter.cs | 58 - .../XmlSchemaImporter.cs | 83 - .../System.Xml.Serialization/XmlSchemas.cs | 115 - ...XmlSerializationCollectionFixupCallback.cs | 17 - .../XmlSerializationFixupCallback.cs | 17 - .../XmlSerializationReadCallback.cs | 17 - .../XmlSerializationReader.cs | 454 - .../XmlSerializationWriteCallback.cs | 17 - .../XmlSerializationWriter.cs | 494 - .../System.Xml.Serialization/XmlSerializer.cs | 857 -- .../XmlSerializerNamespaces.cs | 70 - .../XmlTextAttribute.cs | 61 - .../XmlTypeAttribute.cs | 60 - .../XmlTypeMapping.cs | 50 - .../System.XML/System.Xml.XPath/ChangeLog | 137 - .../System.Xml.XPath/DefaultContext.cs | 618 -- .../System.XML/System.Xml.XPath/Expression.cs | 986 -- .../System.Xml.XPath/IXPathNavigable.cs | 16 - .../System.XML/System.Xml.XPath/Iterator.cs | 594 -- .../System.XML/System.Xml.XPath/Parser.cs | 1085 -- .../System.XML/System.Xml.XPath/Parser.jay | 391 - .../System.XML/System.Xml.XPath/Tokenizer.cs | 334 - .../System.Xml.XPath/XPathDocument.cs | 68 - .../System.Xml.XPath/XPathException.cs | 57 - .../System.Xml.XPath/XPathExpression.cs | 50 - .../System.Xml.XPath/XPathNamespaceScope.cs | 18 - .../System.Xml.XPath/XPathNavigator.cs | 261 - .../System.Xml.XPath/XPathNodeIterator.cs | 63 - .../System.Xml.XPath/XPathNodeType.cs | 25 - .../System.Xml.XPath/XPathResultType.cs | 22 - .../System.Xml.XPath/XmlCaseOrder.cs | 33 - .../System.Xml.XPath/XmlDataType.cs | 17 - .../System.Xml.XPath/XmlSortOrder.cs | 17 - mcs/class/System.XML/System.Xml.Xsl/ChangeLog | 4 - .../System.Xml.Xsl/IXsltContextFunction.cs | 28 - .../System.Xml.Xsl/IXsltContextVariable.cs | 27 - .../System.XML/System.Xml.Xsl/XslTransform.cs | 154 - .../System.Xml.Xsl/XsltArgumentList.cs | 131 - .../System.Xml.Xsl/XsltCompileException.cs | 56 - .../System.XML/System.Xml.Xsl/XsltContext.cs | 45 - .../System.Xml.Xsl/XsltException.cs | 72 - mcs/class/System.XML/System.Xml/ChangeLog | 731 -- mcs/class/System.XML/System.Xml/Driver.cs | 56 - .../System.XML/System.Xml/EntityHandling.cs | 29 - mcs/class/System.XML/System.Xml/Formatting.cs | 29 - .../System.XML/System.Xml/IHasXmlNode.cs | 15 - .../System.XML/System.Xml/IXmlLineInfo.cs | 19 - mcs/class/System.XML/System.Xml/NameTable.cs | 74 - mcs/class/System.XML/System.Xml/Profile.cs | 47 - mcs/class/System.XML/System.Xml/ReadState.cs | 41 - .../System.XML/System.Xml/TODOAttribute.cs | 32 - .../System.XML/System.Xml/ValidationType.cs | 20 - .../System.Xml/WhitespaceHandling.cs | 33 - mcs/class/System.XML/System.Xml/WriteState.cs | 53 - .../System.XML/System.Xml/XmlAttribute.cs | 189 - .../System.Xml/XmlAttributeCollection.cs | 117 - .../System.XML/System.Xml/XmlCDataSection.cs | 54 - mcs/class/System.XML/System.Xml/XmlChar.cs | 200 - .../System.XML/System.Xml/XmlCharacterData.cs | 132 - mcs/class/System.XML/System.Xml/XmlComment.cs | 58 - .../System.XML/System.Xml/XmlConstructs.cs | 545 - mcs/class/System.XML/System.Xml/XmlConvert.cs | 254 - .../System.XML/System.Xml/XmlDeclaration.cs | 107 - .../System.XML/System.Xml/XmlDocument.cs | 593 -- .../System.Xml/XmlDocumentFragment.cs | 84 - .../System.Xml/XmlDocumentNavigator.cs | 317 - .../System.XML/System.Xml/XmlDocumentType.cs | 98 - mcs/class/System.XML/System.Xml/XmlElement.cs | 302 - mcs/class/System.XML/System.Xml/XmlEntity.cs | 123 - .../System.Xml/XmlEntityReference.cs | 70 - .../System.XML/System.Xml/XmlException.cs | 82 - .../System.Xml/XmlImplementation.cs | 32 - .../System.XML/System.Xml/XmlLinkedNode.cs | 66 - .../System.XML/System.Xml/XmlNameTable.cs | 20 - .../System.XML/System.Xml/XmlNamedNodeMap.cs | 106 - .../System.Xml/XmlNamespaceManager.cs | 158 - mcs/class/System.XML/System.Xml/XmlNode.cs | 398 - .../System.XML/System.Xml/XmlNodeArrayList.cs | 36 - .../System.Xml/XmlNodeChangedAction.cs | 27 - .../System.Xml/XmlNodeChangedEventArgs.cs | 67 - .../System.Xml/XmlNodeChangedEventHandler.cs | 14 - .../System.XML/System.Xml/XmlNodeList.cs | 42 - .../System.Xml/XmlNodeListChildren.cs | 146 - .../System.XML/System.Xml/XmlNodeOrder.cs | 19 - .../System.XML/System.Xml/XmlNodeReader.cs | 319 - .../System.XML/System.Xml/XmlNodeType.cs | 93 - .../System.XML/System.Xml/XmlNotation.cs | 100 - .../System.XML/System.Xml/XmlParserContext.cs | 186 - .../System.Xml/XmlProcessingInstruction.cs | 96 - .../System.XML/System.Xml/XmlQualifiedName.cs | 114 - mcs/class/System.XML/System.Xml/XmlReader.cs | 241 - .../System.XML/System.Xml/XmlResolver.cs | 32 - .../System.Xml/XmlSignificantWhitespace.cs | 65 - mcs/class/System.XML/System.Xml/XmlSpace.cs | 37 - mcs/class/System.XML/System.Xml/XmlText.cs | 69 - .../System.XML/System.Xml/XmlTextReader.cs | 1291 --- .../System.XML/System.Xml/XmlTextWriter.cs | 649 -- .../System.Xml/XmlTextWriterOpenElement.cs | 72 - .../System.XML/System.Xml/XmlTokenizedType.cs | 27 - .../System.XML/System.Xml/XmlUrlResolver.cs | 41 - .../System.XML/System.Xml/XmlWhitespace.cs | 66 - mcs/class/System.XML/System.Xml/XmlWriter.cs | 170 - mcs/class/System.XML/Test/.cvsignore | 4 - mcs/class/System.XML/Test/AllTests.cs | 47 - mcs/class/System.XML/Test/ChangeLog | 409 - .../System.XML/Test/Microsoft.Test.csproj | 162 - mcs/class/System.XML/Test/Mono.Test.csproj | 167 - .../System.XML/Test/MonoMicro.Test.csproj | 197 - mcs/class/System.XML/Test/NameTableTests.cs | 91 - mcs/class/System.XML/Test/SelectNodesTests.cs | 218 - .../Test/System.XML_linux_test.args | 28 - .../System.XML/Test/System.XML_test.build | 52 - mcs/class/System.XML/Test/TheTests.cs | 93 - .../Test/XPathNavigatorMatchesTests.cs | 116 - .../System.XML/Test/XPathNavigatorTests.cs | 172 - .../System.XML/Test/XmlAttributeTests.cs | 95 - .../System.XML/Test/XmlCDataSectionTests.cs | 99 - .../System.XML/Test/XmlCharacterDataTests.cs | 175 - mcs/class/System.XML/Test/XmlCommentTests.cs | 107 - .../System.XML/Test/XmlDeclarationTests.cs | 130 - mcs/class/System.XML/Test/XmlDocumentTests.cs | 725 -- .../System.XML/Test/XmlDocumentTypeTests.cs | 104 - mcs/class/System.XML/Test/XmlElementTests.cs | 163 - .../Test/XmlNamespaceManagerTests.cs | 138 - mcs/class/System.XML/Test/XmlNodeListTests.cs | 215 - mcs/class/System.XML/Test/XmlNodeTests.cs | 130 - .../Test/XmlProcessingInstructionTests.cs | 36 - .../Test/XmlSignificantWhitespaceTests.cs | 117 - .../System.XML/Test/XmlTextReaderTests.cs | 1785 ---- mcs/class/System.XML/Test/XmlTextTests.cs | 36 - .../System.XML/Test/XmlTextWriterTests.cs | 911 -- .../System.XML/Test/XmlWhiteSpaceTests.cs | 117 - mcs/class/System.XML/Test/makefile.gnu | 19 - mcs/class/System.XML/list | 190 - mcs/class/System.XML/list.unix | 220 - mcs/class/System.XML/makefile.gnu | 15 - mcs/class/System/.cvsignore | 4 - mcs/class/System/ChangeLog | 72 - .../Microsoft.CSharp/CSharpCodeGenerator.cs | 760 -- .../Microsoft.CSharp/CSharpCodeProvider.cs | 55 - mcs/class/System/Microsoft.CSharp/ChangeLog | 10 - mcs/class/System/README | 8 - .../System/System.CodeDom.Compiler/ChangeLog | 35 - .../CodeDomProvider.cs | 69 - .../System.CodeDom.Compiler/CodeGenerator.cs | 936 -- .../CodeGeneratorOptions.cs | 99 - .../CompilerErrorCollection.cs | 16 - .../CompilerOptions.cs | 16 - .../CompilerParameters.cs | 160 - .../CompilerResults.cs | 87 - .../GeneratorSupport.cs | 38 - .../System.CodeDom.Compiler/ICodeCompiler.cs | 32 - .../System.CodeDom.Compiler/ICodeGenerator.cs | 53 - .../System.CodeDom.Compiler/ICodeParser.cs | 20 - .../IndentedTextWriter.cs | 286 - .../LanguageOptions.cs | 18 - .../TempFileCollection.cs | 16 - mcs/class/System/System.CodeDom/ChangeLog | 229 - .../CodeArgumentReferenceExpression.cs | 46 - .../CodeArrayCreateExpression.cs | 145 - .../CodeArrayIndexerExpression.cs | 56 - .../System.CodeDom/CodeAssignStatement.cs | 55 - .../CodeAttachEventStatement.cs | 68 - .../System.CodeDom/CodeAttributeArgument.cs | 61 - .../CodeAttributeArgumentCollection.cs | 100 - .../CodeAttributeDeclaration.cs | 63 - .../CodeAttributeDeclarationCollection.cs | 100 - .../CodeBaseReferenceExpression.cs | 21 - .../CodeBinaryOperatorExpression.cs | 69 - .../System.CodeDom/CodeBinaryOperatorType.cs | 35 - .../System.CodeDom/CodeCastExpression.cs | 71 - .../System/System.CodeDom/CodeCatchClause.cs | 81 - .../CodeCatchClauseCollection.cs | 98 - .../System/System.CodeDom/CodeComment.cs | 62 - .../System.CodeDom/CodeCommentStatement.cs | 57 - .../CodeCommentStatementCollection.cs | 100 - .../System/System.CodeDom/CodeCompileUnit.cs | 60 - .../System.CodeDom/CodeConditionStatement.cs | 77 - .../System/System.CodeDom/CodeConstructor.cs | 52 - .../CodeDelegateCreateExpression.cs | 72 - .../CodeDelegateInvokeExpression.cs | 64 - .../System.CodeDom/CodeDirectionExpression.cs | 59 - .../System.CodeDom/CodeEntryPointMethod.cs | 21 - .../CodeEventReferenceExpression.cs | 57 - .../System/System.CodeDom/CodeExpression.cs | 21 - .../CodeExpressionCollection.cs | 100 - .../System.CodeDom/CodeExpressionStatement.cs | 46 - .../CodeFieldReferenceExpression.cs | 59 - .../System.CodeDom/CodeGotoStatement.cs | 42 - .../System.CodeDom/CodeIndexerExpression.cs | 58 - .../System.CodeDom/CodeIterationStatement.cs | 81 - .../System.CodeDom/CodeLabeledStatement.cs | 62 - .../System/System.CodeDom/CodeLinePragma.cs | 56 - .../System/System.CodeDom/CodeMemberEvent.cs | 62 - .../System/System.CodeDom/CodeMemberField.cs | 67 - .../System/System.CodeDom/CodeMemberMethod.cs | 109 - .../System.CodeDom/CodeMemberProperty.cs | 108 - .../CodeMethodInvokeExpression.cs | 65 - .../CodeMethodReferenceExpression.cs | 59 - .../CodeMethodReturnStatement.cs | 47 - .../System/System.CodeDom/CodeNamespace.cs | 92 - .../System.CodeDom/CodeNamespaceCollection.cs | 99 - .../System.CodeDom/CodeNamespaceImport.cs | 57 - .../CodeNamespaceImportCollection.cs | 150 - mcs/class/System/System.CodeDom/CodeObject.cs | 35 - .../CodeObjectCreateExpression.cs | 72 - .../CodeParameterDeclarationExpression.cs | 88 - ...arameterDeclarationExpressionCollection.cs | 100 - .../System.CodeDom/CodePrimitiveExpression.cs | 46 - .../CodePropertyReferenceExpression.cs | 59 - ...CodePropertySetValueReferenceExpression.cs | 21 - .../CodeRemoveEventStatement.cs | 68 - .../System.CodeDom/CodeSnippetCompileUnit.cs | 52 - .../System.CodeDom/CodeSnippetExpression.cs | 46 - .../System.CodeDom/CodeSnippetStatement.cs | 46 - .../System.CodeDom/CodeSnippetTypeMember.cs | 46 - .../System/System.CodeDom/CodeStatement.cs | 42 - .../System.CodeDom/CodeStatementCollection.cs | 105 - .../CodeThisReferenceExpression.cs | 28 - .../CodeThrowExceptionStatement.cs | 46 - .../CodeTryCatchFinallyStatement.cs | 73 - .../System.CodeDom/CodeTypeConstructor.cs | 21 - .../System.CodeDom/CodeTypeDeclaration.cs | 149 - .../CodeTypeDeclarationCollection.cs | 99 - .../System/System.CodeDom/CodeTypeDelegate.cs | 55 - .../System/System.CodeDom/CodeTypeMember.cs | 81 - .../CodeTypeMemberCollection.cs | 99 - .../System.CodeDom/CodeTypeOfExpression.cs | 57 - .../System.CodeDom/CodeTypeReference.cs | 91 - .../CodeTypeReferenceCollection.cs | 99 - .../CodeTypeReferenceExpression.cs | 57 - .../CodeVariableDeclarationStatement.cs | 108 - .../CodeVariableReferenceExpression.cs | 46 - .../System/System.CodeDom/FieldDirection.cs | 21 - .../System/System.CodeDom/MemberAttributes.cs | 38 - .../BitVector32.cs | 199 - .../System.Collections.Specialized/ChangeLog | 65 - .../CollectionsUtil.cs | 38 - .../HybridDictionary.cs | 184 - .../ListDictionary.cs | 435 - .../NameObjectCollectionBase.cs | 518 - .../NameValueCollection.cs | 367 - .../StringCollection.cs | 293 - .../StringDictionary.cs | 97 - .../StringEnumerator.cs | 36 - .../AttributeCollection.cs | 130 - .../BindableAttribute.cs | 71 - .../System.ComponentModel/BindableSupport.cs | 18 - .../BrowsableAttribute.cs | 38 - .../CategoryAttribute.cs | 227 - .../System/System.ComponentModel/ChangeLog | 256 - .../CollectionChangeAction.cs | 20 - .../CollectionChangeEventArgs.cs | 38 - .../CollectionChangeEventHandler.cs | 14 - .../System/System.ComponentModel/Component.cs | 126 - .../ComponentCollection.cs | 61 - .../System/System.ComponentModel/Container.cs | 159 - .../DefaultEventAttribute.cs | 43 - .../DefaultPropertyAttribute.cs | 43 - .../DefaultValueAttribute.cs | 133 - .../DerivedPropertyDescriptor.cs | 80 - .../DescriptionAttribute.cs | 46 - .../DesignOnlyAttribute.cs | 37 - .../DesignerSerializationVisibility.cs | 16 - ...esignerSerializationVisibilityAttribute.cs | 42 - .../EditorBrowsableAttribute.cs | 53 - .../EditorBrowsableState.cs | 34 - .../System.ComponentModel/EnumConverter.cs | 92 - .../System.ComponentModel/EventDescriptor.cs | 26 - .../EventDescriptorCollection.cs | 167 - .../System.ComponentModel/EventHandlerList.cs | 64 - .../ExpandableObjectConverter.cs | 41 - .../System.ComponentModel/IBindingList.cs | 69 - .../System.ComponentModel/IComponent.cs | 22 - .../System.ComponentModel/IContainer.cs | 24 - .../ICustomTypeDescriptor.cs | 38 - .../System.ComponentModel/IDataErrorInfo.cs | 18 - .../System.ComponentModel/IEditableObject.cs | 20 - .../System.ComponentModel/IListSource.cs | 23 - .../System/System.ComponentModel/ISite.cs | 23 - .../ISupportInitialize.cs | 23 - .../ISynchronizeInvoke.cs | 26 - .../ITypeDescriptorContext.cs | 29 - .../System.ComponentModel/ITypedList.cs | 24 - .../ListChangedEventArgs.cs | 53 - .../ListChangedEventHandler.cs | 15 - .../System.ComponentModel/ListChangedType.cs | 23 - .../ListSortDirection.cs | 20 - .../LocalizableAttribute.cs | 40 - .../MarshalByValueComponent.cs | 78 - .../System.ComponentModel/MemberDescriptor.cs | 120 - .../NotifyParentPropertyAttribute.cs | 64 - .../PropertyChangedEventArgs.cs | 29 - .../PropertyDescriptor.cs | 113 - .../PropertyDescriptorCollection.cs | 283 - .../ReadOnlyAttribute.cs | 54 - .../RecommendedAsConfigurableAttribute.cs | 65 - .../System.ComponentModel/RefreshEventArgs.cs | 44 - .../RefreshEventHandler.cs | 14 - .../System.ComponentModel/StringConverter.cs | 34 - .../ToolboxItemAttribute.cs | 82 - .../System.ComponentModel/TypeConverter.cs | 318 - .../TypeConverterAttribute.cs | 53 - .../System.ComponentModel/TypeDescriptor.cs | 340 - .../System.ComponentModel/Win32Exception.cs | 118 - .../System/System.Configuration/ChangeLog | 25 - .../ConfigurationException.cs | 132 - .../ConfigurationSettings.cs | 198 - .../DictionarySectionHandler.cs | 91 - .../IConfigurationSectionHandler.cs | 27 - .../IgnoreSectionHandler.cs | 45 - .../NameValueSectionHandler.cs | 107 - .../SingleTagSectionHandler.cs | 64 - .../System.Diagnostics/BooleanSwitch.cs | 59 - mcs/class/System/System.Diagnostics/ChangeLog | 152 - .../System.Diagnostics/CounterCreationData.cs | 52 - .../CounterCreationDataCollection.cs | 97 - .../System.Diagnostics/CounterSample.cs | 110 - .../CounterSampleCalculator.cs | 32 - mcs/class/System/System.Diagnostics/Debug.cs | 197 - .../DefaultTraceListener.cs | 225 - .../DiagnosticsConfigurationHandler.cs | 41 - .../EntryWrittenEventArgs.cs | 34 - .../EntryWrittenEventHandler.cs | 21 - .../System/System.Diagnostics/EventLog.cs | 271 - .../System.Diagnostics/EventLogEntry.cs | 105 - .../EventLogEntryCollection.cs | 57 - .../System.Diagnostics/EventLogEntryType.cs | 24 - .../System.Diagnostics/EventLogInstaller.cs | 75 - .../System.Diagnostics/EventLogPermission.cs | 50 - .../EventLogPermissionAccess.cs | 23 - .../EventLogPermissionAttribute.cs | 48 - .../EventLogPermissionEntry.cs | 37 - .../EventLogPermissionEntryCollection.cs | 104 - .../EventLogTraceListener.cs | 75 - .../System.Diagnostics/FileVersionInfo.cs | 274 - .../System/System.Diagnostics/ICollectData.cs | 26 - .../System/System.Diagnostics/InstanceData.cs | 39 - .../InstanceDataCollection.cs | 66 - .../InstanceDataCollectionCollection.cs | 58 - .../MonitoringDescriptionAttribute.cs | 29 - .../System.Diagnostics/PerformanceCounter.cs | 216 - .../PerformanceCounterCategory.cs | 182 - .../PerformanceCounterInstaller.cs | 82 - .../PerformanceCounterManager.cs | 44 - .../PerformanceCounterPermission.cs | 45 - .../PerformanceCounterPermissionAccess.cs | 22 - .../PerformanceCounterPermissionAttribute.cs | 61 - .../PerformanceCounterPermissionEntry.cs | 44 - ...ormanceCounterPermissionEntryCollection.cs | 107 - .../PerformanceCounterType.cs | 47 - .../System/System.Diagnostics/Process.cs | 601 -- .../System.Diagnostics/ProcessModule.cs | 74 - .../ProcessModuleCollection.cs | 57 - .../ProcessPriorityClass.cs | 20 - .../System.Diagnostics/ProcessStartInfo.cs | 171 - .../System.Diagnostics/ProcessThread.cs | 118 - .../ProcessThreadCollection.cs | 56 - .../System.Diagnostics/ProcessWindowStyle.cs | 18 - mcs/class/System/System.Diagnostics/Switch.cs | 75 - .../TextWriterTraceListener.cs | 107 - .../System.Diagnostics/ThreadPriorityLevel.cs | 21 - .../System/System.Diagnostics/ThreadState.cs | 22 - .../System.Diagnostics/ThreadWaitReason.cs | 28 - mcs/class/System/System.Diagnostics/Trace.cs | 197 - .../System/System.Diagnostics/TraceImpl.cs | 298 - .../System/System.Diagnostics/TraceLevel.cs | 24 - .../System.Diagnostics/TraceListener.cs | 136 - .../TraceListenerCollection.cs | 210 - .../System/System.Diagnostics/TraceSwitch.cs | 74 - .../System/System.Globalization/Locale.cs | 22 - mcs/class/System/System.IO/ChangeLog | 21 - mcs/class/System/System.IO/ErrorEventArgs.cs | 39 - .../System/System.IO/ErrorEventHandler.cs | 15 - .../System/System.IO/FileSystemEventArgs.cs | 51 - .../System.IO/FileSystemEventHandler.cs | 15 - .../System/System.IO/FileSystemWatcher.cs | 185 - .../System.IO/IODescriptionAttribute.cs | 40 - .../InternalBufferOverflowException.cs | 41 - mcs/class/System/System.IO/MonoIO.cs | 51 - mcs/class/System/System.IO/NotifyFilters.cs | 25 - .../System/System.IO/RenamedEventArgs.cs | 44 - .../System/System.IO/RenamedEventHandler.cs | 15 - .../System/System.IO/WaitForChangedResult.cs | 48 - .../System/System.IO/WatcherChangeTypes.cs | 22 - .../System.Net.Sockets/AddressFamily.cs | 50 - mcs/class/System/System.Net.Sockets/ChangeLog | 70 - .../System/System.Net.Sockets/LingerOption.cs | 42 - .../System.Net.Sockets/MulticastOption.cs | 48 - .../System.Net.Sockets/NetworkStream.cs | 307 - .../System.Net.Sockets/ProtocolFamily.cs | 47 - .../System/System.Net.Sockets/ProtocolType.cs | 81 - .../System/System.Net.Sockets/SelectMode.cs | 33 - mcs/class/System/System.Net.Sockets/Socket.cs | 963 -- .../System.Net.Sockets/SocketException.cs | 41 - .../System/System.Net.Sockets/SocketFlags.cs | 42 - .../System.Net.Sockets/SocketOptionLevel.cs | 37 - .../System.Net.Sockets/SocketOptionName.cs | 181 - .../System.Net.Sockets/SocketShutdown.cs | 33 - .../System/System.Net.Sockets/SocketType.cs | 45 - .../System/System.Net.Sockets/TcpClient.cs | 338 - .../System/System.Net.Sockets/TcpListener.cs | 171 - .../System/System.Net.Sockets/UdpClient.cs | 269 - .../System.Net/AuthenticationManager.cs | 55 - mcs/class/System/System.Net/Authorization.cs | 52 - mcs/class/System/System.Net/ChangeLog | 232 - .../System/System.Net/ConnectionModes.cs | 37 - mcs/class/System/System.Net/Cookie.cs | 276 - .../System/System.Net/CookieCollection.cs | 110 - .../System/System.Net/CookieContainer.cs | 130 - .../System/System.Net/CookieException.cs | 42 - .../System/System.Net/CredentialCache.cs | 170 - mcs/class/System/System.Net/Dns.cs | 152 - mcs/class/System/System.Net/DnsPermission.cs | 139 - .../System.Net/DnsPermissionAttribute.cs | 38 - mcs/class/System/System.Net/EndPoint.cs | 40 - .../System/System.Net/EndpointPermission.cs | 326 - mcs/class/System/System.Net/FileWebRequest.cs | 295 - .../System/System.Net/FileWebResponse.cs | 139 - .../System/System.Net/GlobalProxySelection.cs | 74 - .../System/System.Net/HttpContinueDelegate.cs | 13 - mcs/class/System/System.Net/HttpStatusCode.cs | 205 - mcs/class/System/System.Net/HttpVersion.cs | 22 - mcs/class/System/System.Net/HttpWebRequest.cs | 579 -- .../System/System.Net/HttpWebResponse.cs | 271 - .../System.Net/IAuthenticationModule.cs | 30 - .../System/System.Net/ICertificatePolicy.cs | 22 - .../System/System.Net/ICredentialLookup.cs | 18 - mcs/class/System/System.Net/IPAddress.cs | 231 - mcs/class/System/System.Net/IPEndPoint.cs | 129 - mcs/class/System/System.Net/IPHostEntry.cs | 75 - mcs/class/System/System.Net/IPv6Address.cs | 278 - mcs/class/System/System.Net/IWebProxy.cs | 24 - .../System/System.Net/IWebRequestCreate.cs | 15 - mcs/class/System/System.Net/MonoHttpDate.cs | 33 - mcs/class/System/System.Net/NetworkAccess.cs | 29 - .../System/System.Net/NetworkCredential.cs | 63 - .../System.Net/ProtocolViolationException.cs | 38 - mcs/class/System/System.Net/ProxyUseType.cs | 37 - mcs/class/System/System.Net/ServicePoint.cs | 105 - .../System/System.Net/ServicePointManager.cs | 169 - mcs/class/System/System.Net/SocketAddress.cs | 101 - .../System/System.Net/SocketPermission.cs | 339 - .../System.Net/SocketPermissionAttribute.cs | 127 - mcs/class/System/System.Net/TransportType.cs | 41 - mcs/class/System/System.Net/WebClient.cs | 123 - mcs/class/System/System.Net/WebException.cs | 74 - .../System/System.Net/WebExceptionStatus.cs | 85 - .../System/System.Net/WebHeaderCollection.cs | 310 - mcs/class/System/System.Net/WebProxy.cs | 194 - mcs/class/System/System.Net/WebRequest.cs | 216 - mcs/class/System/System.Net/WebResponse.cs | 69 - mcs/class/System/System.Net/WebStatus.cs | 77 - .../ChangeLog | 4 - .../X509CertificateCollection.cs | 146 - .../ResourcePermissionBase.cs | 118 - .../ResourcePermissionBaseEntry.cs | 42 - .../System.Text.RegularExpressions/ChangeLog | 46 - .../RegexRunner.cs | 92 - .../RegexRunnerFactory.cs | 20 - .../System.Text.RegularExpressions/arch.cs | 333 - .../System.Text.RegularExpressions/cache.cs | 143 - .../category.cs | 637 -- .../collections.cs | 123 - .../compiler.cs | 368 - .../System.Text.RegularExpressions/debug.cs | 208 - .../interpreter.cs | 953 -- .../interval.cs | 305 - .../System.Text.RegularExpressions/match.cs | 157 - .../System.Text.RegularExpressions/notes.txt | 45 - .../System.Text.RegularExpressions/parser.cs | 1109 -- .../quicksearch.cs | 108 - .../System.Text.RegularExpressions/regex.cs | 410 - .../System.Text.RegularExpressions/replace.cs | 181 - .../System.Text.RegularExpressions/syntax.cs | 976 -- mcs/class/System/System.Threading/ChangeLog | 9 - .../ThreadExceptionEventArgs.cs | 27 - .../ThreadExceptionEventHandler.cs | 14 - mcs/class/System/System.build | 40 - mcs/class/System/System/ChangeLog | 45 - mcs/class/System/System/TODOAttribute.cs | 32 - mcs/class/System/System/Uri.cs | 823 -- mcs/class/System/System/UriBuilder.cs | 247 - mcs/class/System/System/UriFormatException.cs | 43 - mcs/class/System/System/UriHostNameType.cs | 41 - mcs/class/System/System/UriPartial.cs | 33 - mcs/class/System/Test/.cvsignore | 1 - mcs/class/System/Test/AllTests.cs | 33 - mcs/class/System/Test/BasicOperationsTest.cs | 165 - mcs/class/System/Test/ChangeLog | 84 - .../AllTests.cs | 31 - .../BitVector32Test.cs | 140 - .../System.Collections.Specialized/ChangeLog | 11 - .../HybridDictionaryTest.cs | 57 - .../NameValueCollectionTest.cs | 35 - .../StringCollectionTest.cs | 157 - .../Test/System.Diagnostics/AllTests.cs | 29 - .../System/Test/System.Diagnostics/ChangeLog | 14 - .../Test/System.Diagnostics/TraceTest.cs | 155 - .../Test/System.Net.Sockets/AllTests.cs | 33 - .../System/Test/System.Net.Sockets/ChangeLog | 6 - .../Test/System.Net.Sockets/TcpClientTest.cs | 82 - .../System.Net.Sockets/TcpListenerTest.cs | 85 - mcs/class/System/Test/System.Net/AllTests.cs | 47 - mcs/class/System/Test/System.Net/ChangeLog | 78 - .../Test/System.Net/CookieCollectionTest.cs | 123 - .../System/Test/System.Net/CookieTest.cs | 165 - .../Test/System.Net/CredentialCacheTest.cs | 120 - mcs/class/System/Test/System.Net/DnsTest.cs | 172 - .../Test/System.Net/FileWebRequestTest.cs | 306 - .../Test/System.Net/HttpWebRequestTest.cs | 101 - .../System/Test/System.Net/IPAddressTest.cs | 234 - .../System/Test/System.Net/IPEndPointTest.cs | 134 - .../System.Net/ServicePointManagerTest.cs | 113 - .../Test/System.Net/ServicePointTest.cs | 171 - .../Test/System.Net/SocketPermissionTest.cs | 113 - .../System.Net/WebHeaderCollectionTest.cs | 213 - .../System/Test/System.Net/WebProxyTest.cs | 180 - .../System/Test/System.Net/WebRequestTest.cs | 122 - .../AllTests.cs | 26 - .../PerlTest.cs | 40 - .../PerlTrials.cs | 746 -- .../RegexTrial.cs | 98 - mcs/class/System/Test/System/AllTests.cs | 29 - mcs/class/System/Test/System/ChangeLog | 17 - .../System/Test/System/UriBuilderTest.cs | 147 - mcs/class/System/Test/System/UriTest.cs | 537 - mcs/class/System/Test/System_test.build | 54 - mcs/class/System/Test/TheTests.cs | 74 - mcs/class/System/list | 142 - mcs/class/System/list.unix | 309 - mcs/class/System/makefile.gnu | 21 - mcs/class/corlib/.cvsignore | 4 - mcs/class/corlib/ChangeLog | 143 - mcs/class/corlib/Linux/ChangeLog | 27 - mcs/class/corlib/Linux/Linux.cs | 484 - .../corlib/System.Collections/ArrayList.cs | 1009 -- .../corlib/System.Collections/BitArray.cs | 499 - .../CaseInsensitiveComparer.cs | 77 - .../CaseInsensitiveHashCodeProvider.cs | 95 - mcs/class/corlib/System.Collections/ChangeLog | 306 - .../System.Collections/CollectionBase.cs | 137 - .../corlib/System.Collections/Comparer.cs | 56 - .../System.Collections/DictionaryBase.cs | 372 - .../System.Collections/DictionaryEntry.cs | 24 - .../corlib/System.Collections/Hashtable.cs | 1046 -- .../corlib/System.Collections/ICollection.cs | 24 - .../corlib/System.Collections/IComparer.cs | 19 - .../corlib/System.Collections/IDictionary.cs | 40 - .../IDictionaryEnumerator.cs | 20 - .../corlib/System.Collections/IEnumerable.cs | 18 - .../corlib/System.Collections/IEnumerator.cs | 22 - .../System.Collections/IHashCodeProvider.cs | 18 - mcs/class/corlib/System.Collections/IList.cs | 40 - mcs/class/corlib/System.Collections/Queue.cs | 342 - .../ReadOnlyCollectionBase.cs | 45 - .../corlib/System.Collections/SortedList.cs | 1134 --- mcs/class/corlib/System.Collections/Stack.cs | 321 - .../AssemblyHash.cs | 71 - .../AssemblyHashAlgorithm.cs | 33 - .../AssemblyVersionCompatibility.cs | 33 - .../System.Configuration.Assemblies/ChangeLog | 6 - .../ProcessorID.cs | 101 - .../System.Diagnostics.SymbolStore/ChangeLog | 29 - .../ISymbolBinder.cs | 19 - .../ISymbolDocument.cs | 30 - .../ISymbolDocumentWriter.cs | 13 - .../ISymbolMethod.cs | 38 - .../ISymbolNamespace.cs | 21 - .../ISymbolReader.cs | 38 - .../ISymbolScope.cs | 26 - .../ISymbolVariable.cs | 28 - .../ISymbolWriter.cs | 88 - .../SymAddressKind.cs | 25 - .../SymDocumentType.cs | 21 - .../SymLanguageType.cs | 31 - .../SymLanguageVendor.cs | 21 - .../SymbolToken.cs | 29 - mcs/class/corlib/System.Diagnostics/ChangeLog | 67 - .../ConditionalAttribute.cs | 30 - .../System.Diagnostics/DebuggableAttribute.cs | 29 - .../corlib/System.Diagnostics/Debugger.cs | 94 - .../DebuggerHiddenAttribute.cs | 25 - .../DebuggerStepThroughAttribute.cs | 23 - .../corlib/System.Diagnostics/StackFrame.cs | 321 - .../corlib/System.Diagnostics/StackTrace.cs | 281 - .../corlib/System.Globalization/Calendar.cs | 917 -- .../System.Globalization/CalendarWeekRule.cs | 28 - .../CalendricalCalculations.cs | 2120 ---- .../corlib/System.Globalization/ChangeLog | 120 - .../System.Globalization/CompareInfo.cs | 155 - .../System.Globalization/CompareOptions.cs | 54 - .../System.Globalization/CultureInfo.cs | 1413 --- .../System.Globalization/CultureTypes.cs | 39 - .../DateTimeFormatInfo.cs | 609 -- .../System.Globalization/DateTimeStyles.cs | 50 - .../System.Globalization/DaylightTime.cs | 51 - .../System.Globalization/GregorianCalendar.cs | 448 - .../GregorianCalendarTypes.cs | 45 - .../System.Globalization/HebrewCalendar.cs | 861 -- .../System.Globalization/HijriCalendar.cs | 870 -- .../System.Globalization/JapaneseCalendar.cs | 783 -- .../System.Globalization/JulianCalendar.cs | 443 - .../System.Globalization/KoreanCalendar.cs | 444 - .../corlib/System.Globalization/Locale.cs | 22 - .../System.Globalization/NumberFormatInfo.cs | 676 -- .../System.Globalization/NumberStyles.cs | 46 - .../corlib/System.Globalization/RegionInfo.cs | 1689 ---- .../System.Globalization/TaiwanCalendar.cs | 745 -- .../corlib/System.Globalization/TextInfo.cs | 126 - .../ThaiBuddhistCalendar.cs | 445 - .../System.Globalization/UnicodeCategory.cs | 44 - .../System.IO.IsolatedStorage/ChangeLog | 19 - .../INormalizeForIsolatedStorage.cs | 18 - .../IsolatedStorage.cs | 78 - .../IsolatedStorageException.cs | 37 - .../IsolatedStorageFileStream.cs | 19 - .../IsolatedStorageScope.cs | 38 - mcs/class/corlib/System.IO/BinaryReader.cs | 386 - mcs/class/corlib/System.IO/BinaryWriter.cs | 206 - mcs/class/corlib/System.IO/BufferedStream.cs | 162 - mcs/class/corlib/System.IO/ChangeLog | 472 - mcs/class/corlib/System.IO/CheckArgument.cs | 167 - mcs/class/corlib/System.IO/CheckPermission.cs | 87 - mcs/class/corlib/System.IO/Directory.cs | 242 - mcs/class/corlib/System.IO/DirectoryInfo.cs | 135 - .../System.IO/DirectoryNotFoundException.cs | 38 - .../corlib/System.IO/EndOfStreamException.cs | 43 - mcs/class/corlib/System.IO/File.cs | 273 - mcs/class/corlib/System.IO/FileAccess.cs | 34 - mcs/class/corlib/System.IO/FileAttributes.cs | 35 - mcs/class/corlib/System.IO/FileInfo.cs | 141 - .../corlib/System.IO/FileLoadException.cs | 102 - mcs/class/corlib/System.IO/FileMode.cs | 45 - .../corlib/System.IO/FileNotFoundException.cs | 97 - mcs/class/corlib/System.IO/FileShare.cs | 28 - mcs/class/corlib/System.IO/FileStream.cs | 348 - mcs/class/corlib/System.IO/FileSystemInfo.cs | 133 - mcs/class/corlib/System.IO/IOException.cs | 43 - mcs/class/corlib/System.IO/MemoryStream.cs | 409 - mcs/class/corlib/System.IO/MonoIO.cs | 228 - mcs/class/corlib/System.IO/MonoIOError.cs | 1798 ---- mcs/class/corlib/System.IO/MonoIOStat.cs | 22 - mcs/class/corlib/System.IO/Path.cs | 264 - .../corlib/System.IO/PathTooLongException.cs | 43 - mcs/class/corlib/System.IO/SearchPattern.cs | 169 - mcs/class/corlib/System.IO/SeekOrigin.cs | 34 - mcs/class/corlib/System.IO/Stream.cs | 323 - mcs/class/corlib/System.IO/StreamReader.cs | 274 - mcs/class/corlib/System.IO/StreamWriter.cs | 206 - mcs/class/corlib/System.IO/StringReader.cs | 131 - mcs/class/corlib/System.IO/StringWriter.cs | 79 - mcs/class/corlib/System.IO/TextReader.cs | 84 - mcs/class/corlib/System.IO/TextWriter.cs | 271 - .../corlib/System.PAL/IOperatingSystem.cs | 194 - mcs/class/corlib/System.PAL/Platform.cs | 23 - .../System.Reflection.Emit/AssemblyBuilder.cs | 299 - .../AssemblyBuilderAccess.cs | 16 - .../corlib/System.Reflection.Emit/ChangeLog | 473 - .../ConstructorBuilder.cs | 163 - .../CustomAttributeBuilder.cs | 123 - .../System.Reflection.Emit/EnumBuilder.cs | 188 - .../System.Reflection.Emit/EventBuilder.cs | 85 - .../System.Reflection.Emit/EventToken.cs | 70 - .../System.Reflection.Emit/FieldBuilder.cs | 128 - .../System.Reflection.Emit/FieldToken.cs | 70 - .../System.Reflection.Emit/FlowControl.cs | 63 - .../System.Reflection.Emit/ILGenerator.cs | 635 -- .../corlib/System.Reflection.Emit/Label.cs | 29 - .../System.Reflection.Emit/LocalBuilder.cs | 64 - .../System.Reflection.Emit/MethodBuilder.cs | 182 - .../System.Reflection.Emit/MethodToken.cs | 70 - .../System.Reflection.Emit/ModuleBuilder.cs | 294 - .../System.Reflection.Emit/MonoArrayMethod.cs | 111 - .../corlib/System.Reflection.Emit/OpCode.cs | 125 - .../System.Reflection.Emit/OpCodeType.cs | 49 - .../corlib/System.Reflection.Emit/OpCodes.cs | 486 - .../System.Reflection.Emit/OperandType.cs | 87 - .../System.Reflection.Emit/PEFileKinds.cs | 8 - .../System.Reflection.Emit/PackingSize.cs | 41 - .../ParameterBuilder.cs | 102 - .../System.Reflection.Emit/ParameterToken.cs | 70 - .../System.Reflection.Emit/PropertyBuilder.cs | 124 - .../System.Reflection.Emit/PropertyToken.cs | 70 - .../System.Reflection.Emit/SignatureHelper.cs | 121 - .../System.Reflection.Emit/SignatureToken.cs | 70 - .../System.Reflection.Emit/StackBehaviour.cs | 126 - .../System.Reflection.Emit/StringToken.cs | 70 - .../System.Reflection.Emit/TypeBuilder.cs | 742 -- .../System.Reflection.Emit/TypeToken.cs | 70 - .../UnmanagedMarshal.cs | 75 - .../corlib/System.Reflection.Emit/common.src | 23 - .../AmbiguousMatchException.cs | 32 - .../corlib/System.Reflection/Assembly.cs | 310 - .../AssemblyAlgorithmIdAttribute.cs | 39 - .../AssemblyCompanyAttribute.cs | 31 - .../AssemblyConfigurationAttribute.cs | 31 - .../AssemblyCopyrightAttribute.cs | 31 - .../AssemblyCultureAttribute.cs | 31 - .../AssemblyDefaultAliasAttribute.cs | 31 - .../AssemblyDelaySignAttribute.cs | 32 - .../AssemblyDescriptionAttribute.cs | 30 - .../AssemblyFileVersionAttribute.cs | 29 - .../AssemblyFlagsAttribute.cs | 31 - .../AssemblyInformationalVersionAttribute.cs | 29 - .../AssemblyKeyFileAttribute.cs | 29 - .../AssemblyKeyNameAttribute.cs | 29 - .../corlib/System.Reflection/AssemblyName.cs | 174 - .../System.Reflection/AssemblyNameFlags.cs | 33 - .../System.Reflection/AssemblyNameProxy.cs | 27 - .../AssemblyProductAttribute.cs | 29 - .../AssemblyTitleAttribute.cs | 29 - .../AssemblyTradeMarkAttribute.cs | 29 - .../AssemblyVersionAttribute.cs | 29 - mcs/class/corlib/System.Reflection/Binder.cs | 13 - .../corlib/System.Reflection/BindingFlags.cs | 92 - .../System.Reflection/CallingConventions.cs | 42 - mcs/class/corlib/System.Reflection/ChangeLog | 307 - .../System.Reflection/ConstructorInfo.cs | 39 - .../CustomAttributeFormatException.cs | 38 - .../DefaultMemberAttribute.cs | 29 - .../System.Reflection/EventAttributes.cs | 37 - .../corlib/System.Reflection/EventInfo.cs | 87 - .../System.Reflection/FieldAttributes.cs | 102 - .../corlib/System.Reflection/FieldInfo.cs | 122 - .../ICustomAttributeProvider.cs | 25 - .../corlib/System.Reflection/IReflect.cs | 44 - .../System.Reflection/InterfaceMapping.cs | 10 - .../InvalidFilterCriteriaException.cs | 37 - .../System.Reflection/ManifestResourceInfo.cs | 37 - .../corlib/System.Reflection/MemberFilter.cs | 7 - .../corlib/System.Reflection/MemberInfo.cs | 39 - .../corlib/System.Reflection/MemberTypes.cs | 57 - .../System.Reflection/MethodAttributes.cs | 113 - .../corlib/System.Reflection/MethodBase.cs | 126 - .../System.Reflection/MethodImplAttributes.cs | 77 - .../corlib/System.Reflection/MethodInfo.cs | 26 - mcs/class/corlib/System.Reflection/Missing.cs | 17 - mcs/class/corlib/System.Reflection/Module.cs | 103 - .../corlib/System.Reflection/MonoEvent.cs | 85 - .../corlib/System.Reflection/MonoField.cs | 99 - .../corlib/System.Reflection/MonoMethod.cs | 203 - .../corlib/System.Reflection/MonoProperty.cs | 163 - .../System.Reflection/ParameterAttributes.cs | 66 - .../corlib/System.Reflection/ParameterInfo.cs | 88 - .../System.Reflection/ParameterModifier.cs | 26 - .../System.Reflection/PropertyAttributes.cs | 54 - .../corlib/System.Reflection/PropertyInfo.cs | 55 - .../ReflectionTypeLoadException.cs | 62 - .../System.Reflection/ResourceAttributes.cs | 30 - .../System.Reflection/ResourceLocation.cs | 34 - .../System.Reflection/StrongNameKeyPair.cs | 39 - .../System.Reflection/TargetException.cs | 37 - .../TargetInvocationException.cs | 23 - .../TargetParameterCountException.cs | 38 - .../System.Reflection/TypeAttributes.cs | 138 - .../corlib/System.Reflection/TypeDelegator.cs | 204 - .../corlib/System.Reflection/TypeFilter.cs | 13 - mcs/class/corlib/System.Reflection/common.src | 25 - mcs/class/corlib/System.Resources/ChangeLog | 146 - .../System.Resources/IResourceReader.cs | 20 - .../System.Resources/IResourceWriter.cs | 25 - .../MissingManifestResourceException.cs | 42 - .../NeutralResourcesLanguageAttribute.cs | 32 - .../System.Resources/ResourceManager.cs | 359 - .../corlib/System.Resources/ResourceReader.cs | 401 - .../corlib/System.Resources/ResourceSet.cs | 148 - .../corlib/System.Resources/ResourceWriter.cs | 335 - .../SatelliteContractVersionAttribute.cs | 27 - .../AccessedThroughPropertyAttribute.cs | 25 - .../System.Runtime.CompilerServices/ChangeLog | 44 - .../CompilationRelaxationsAttribute.cs | 25 - .../CompilerGlobalScopeAttribute.cs | 19 - .../CustomConstantAttribute.cs | 21 - .../DateTimeConstantAttribute.cs | 27 - .../DecimalConstantAttribute.cs | 35 - .../DiscardableAttribute.cs | 18 - .../IDispatchConstantAttribute.cs | 24 - .../IUnknownConstantAttribute.cs | 24 - .../IndexerNameAttribute.cs | 18 - .../IsVolatile.cs | 17 - .../MethodCodeType.cs | 23 - .../MethodImplAttribute.cs | 40 - .../MethodImplOptions.cs | 46 - .../RequiredAttributeAttribute.cs | 25 - .../RuntimeHelpers.cs | 26 - .../AssemblyRegistrationFlags.cs | 18 - .../AutomationProxyAttribute.cs | 28 - .../System.Runtime.InteropServices/BINDPTR.cs | 20 - .../CallingConvention.cs | 41 - .../System.Runtime.InteropServices/ChangeLog | 161 - .../System.Runtime.InteropServices/CharSet.cs | 35 - .../ClassInterfaceAttribute.cs | 30 - .../ClassInterfaceType.cs | 24 - .../CoClassAttribute.cs | 26 - .../ComAliasNameAttribute.cs | 27 - .../ComConversionLossAttribute.cs | 21 - .../ComEventInterfaceAttribute.cs | 34 - .../ComImportAttribute.cs | 21 - .../ComInterfaceType.cs | 17 - .../ComMemberType.cs | 19 - .../ComRegisterFunctionAttribute.cs | 18 - .../ComUnregisterFunctionAttribute.cs | 20 - .../ComVisible.cs | 25 - .../DESCKIND.cs | 24 - .../DISPPARAMS.cs | 21 - .../DispIdAttribute.cs | 25 - .../DllImportAttribute.cs | 33 - .../EXCEPINFO.cs | 25 - .../ExporterEventKind.cs | 18 - .../ExternalException.cs | 50 - .../FieldOffsetAttribute.cs | 17 - .../GCHandle.cs | 108 - .../GCHandleType.cs | 38 - .../GuidAttribute.cs | 25 - .../ICustomAdapter.cs | 15 - .../ICustomFactory.cs | 15 - .../ICustomMarshaler.cs | 19 - .../INVOKEKIND.cs | 22 - .../IRegistrationServices.cs | 25 - .../ITypeLibConverter.cs | 22 - .../ITypeLibExporterNameProvider.cs | 18 - .../ITypeLibExporterNotifySink.cs | 20 - .../ITypeLibImporterNotifySink.cs | 20 - .../ImportedFromTypeLibAttribute.cs | 26 - .../ImporterEventKind.cs | 17 - .../InAttribute.cs | 18 - .../InterfaceTypeAttribute.cs | 29 - .../LCIDConversionAttribute.cs | 27 - .../LayoutKind.cs | 33 - .../System.Runtime.InteropServices/Marshal.cs | 556 - .../MarshalAsAttribute.cs | 27 - .../OptionalAttribute.cs | 10 - .../OutAttribute.cs | 26 - .../PInvokeMap.cs | 78 - .../PreserveSigAttribute.cs | 19 - .../PrimaryInteropAssemblyAttribute.cs | 32 - .../ProgIdAttribute.cs | 28 - .../StructLayoutAttribute.cs | 23 - .../TYPEKIND.cs | 27 - .../TypeLibExporterFlags.cs | 16 - .../TypeLibFuncAttribute.cs | 32 - .../TypeLibFuncFlags.cs | 25 - .../TypeLibTypeAttribute.cs | 32 - .../TypeLibTypeFlags.cs | 26 - .../TypeLibVarAttribute.cs | 32 - .../TypeLibVarFlags.cs | 26 - .../UCOMTypeComp.cs | 20 - .../UCOMTypeInfo.cs | 37 - .../UCOMTypeLib.cs | 27 - .../UnmanagedType.cs | 170 - .../System.Runtime.InteropServices/VarEnum.cs | 50 - .../ActivatorLevel.cs | 19 - .../ChangeLog | 6 - .../IActivator.cs | 24 - .../IConstructionCallMessage.cs | 37 - .../IConstructionReturnMessage.cs | 17 - .../UrlAttribute.cs | 54 - .../TcpClientChannel.cs | 68 - .../BaseChannelObjectWithProperties.cs | 108 - .../BaseChannelSinkWithProperties.cs | 22 - .../BaseChannelWithProperties.cs | 30 - .../ChangeLog | 74 - .../ChannelDataStore.cs | 43 - .../ChannelServices.cs | 93 - .../ClientChannelSinkStack.cs | 59 - .../IChannel.cs | 19 - .../IChannelDataStore.cs | 17 - .../IChannelReceiver.cs | 21 - .../IChannelReceiverHook.cs | 22 - .../IChannelSender.cs | 17 - .../IChannelSinkBase.cs | 17 - .../IClientChannelSink.cs | 29 - .../IClientChannelSinkProvider.cs | 20 - .../IClientChannelSinkStack.cs | 17 - .../IClientFormatterSink.cs | 17 - .../IClientFormatterSinkProvider.cs | 15 - .../IClientResponseChannelSinkStack.cs | 23 - .../IServerChannelSink.cs | 28 - .../IServerChannelSinkProvider.cs | 19 - .../IServerChannelSinkStack.cs | 25 - .../IServerFormatterSinkProvider.cs | 15 - .../IServerResponseChannelSinkStack.cs | 20 - .../ITransportHeaders.cs | 19 - .../ServerChannelSinkStack.cs | 64 - .../ServerProcessing.cs | 18 - .../SinkProviderData.cs | 45 - .../TransportHeaders.cs | 40 - .../ChangeLog | 25 - .../Context.cs | 72 - .../ContextAttribute.cs | 105 - .../ContextProperty.cs | 25 - .../CrossContextDelegate.cs | 13 - .../IContextAttribute.cs | 20 - .../IContextProperty.cs | 23 - .../IContextPropertyActivator.cs | 21 - .../IContributeClientContextSink.cs | 17 - .../IContributeDynamicSink.cs | 17 - .../IContributeEnvoySink.cs | 18 - .../IContributeObjectSink.cs | 18 - .../IContributeServerContextSink.cs | 18 - .../IDynamicMessageSink.cs | 20 - .../IDynamicProperty.cs | 19 - .../ChangeLog | 20 - .../ClientSponsor.cs | 73 - .../ILease.cs | 27 - .../ISponsor.cs | 18 - .../LeaseState.cs | 41 - .../LifetimeServices.cs | 65 - .../AsyncResult.cs | 105 - .../ChangeLog | 65 - .../Header.cs | 50 - .../HeaderHandler.cs | 13 - .../IMessage.cs | 20 - .../IMessageCtrl.cs | 19 - .../IMessageSink.cs | 21 - .../IMethodCallMessage.cs | 28 - .../IMethodMessage.cs | 55 - .../IMethodReturnMessage.cs | 22 - .../IRemotingFormatter.cs | 20 - .../InternalMessageWrapper.cs | 22 - .../LogicalCallContext.cs | 43 - .../MessageSurrogateFilter.cs | 13 - .../MethodCall.cs | 145 - .../MethodCallMessageWrapper.cs | 109 - .../MethodResponse.cs | 139 - .../MethodReturnMessageWrapper.cs | 142 - .../MonoMethodMessage.cs | 235 - .../OneWayAttribute.cs | 20 - .../RemotingSurrogateSelector.cs | 66 - .../ReturnMessage.cs | 150 - .../ChangeLog | 16 - .../SoapAttribute.cs | 55 - .../SoapFieldAttribute.cs | 48 - .../SoapMethodAttribute.cs | 87 - .../SoapOption.cs | 47 - .../SoapParameterAttribute.cs | 20 - .../SoapTypeAttribute.cs | 99 - .../XmlFieldOrderOption.cs | 17 - .../System.Runtime.Remoting.Proxies/ChangeLog | 10 - .../ProxyAttribute.cs | 48 - .../RealProxy.cs | 56 - .../RemotingProxy.cs | 35 - .../ChangeLog | 3 - .../ITrackingHandler.cs | 19 - .../ActivatedClientTypeEntry.cs | 54 - .../ActivatedServiceTypeEntry.cs | 50 - .../corlib/System.Runtime.Remoting/ChangeLog | 47 - .../System.Runtime.Remoting/IChannelInfo.cs | 17 - .../System.Runtime.Remoting/IEnvoyInfo.cs | 17 - .../System.Runtime.Remoting/IObjectHandle.cs | 18 - .../IRemotingTypeInfo.cs | 18 - .../corlib/System.Runtime.Remoting/ObjRef.cs | 72 - .../System.Runtime.Remoting/ObjectHandle.cs | 37 - .../RemotingException.cs | 37 - .../RemotingServices.cs | 78 - .../RemotingTimeoutException.cs | 32 - .../ServerException.cs | 32 - .../System.Runtime.Remoting/TypeEntry.cs | 32 - .../WellKnownClientTypeEntry.cs | 57 - .../WellKnownObjectMode.cs | 29 - .../WellKnownServiceTypeEntry.cs | 64 - .../BinaryArrayTypeEnum.cs | 45 - .../BinaryFormatter.cs | 142 - .../ChangeLog | 5 - .../ChangeLog | 16 - .../FormatterAssemblyStyle.cs | 29 - .../FormatterTopObjectStyle.cs | 29 - .../FormatterTypeStyle.cs | 33 - .../IFieldInfo.cs | 30 - .../ISoapMessage.cs | 60 - .../InternalArrayTypeE.cs | 41 - .../InternalElementTypeE.cs | 33 - .../InternalMemberTypeE.cs | 37 - .../InternalMemberValueE.cs | 41 - .../InternalNameSpaceE.cs | 61 - .../InternalObjectPositionE.cs | 37 - .../InternalObjectTypeE.cs | 33 - .../InternalParseStateE.cs | 37 - .../InternalParseTypeE.cs | 73 - .../InternalPrimitiveTypeE.cs | 89 - .../InternalSerializerTypeE.cs | 29 - .../ServerFault.cs | 45 - .../SoapFault.cs | 73 - .../SoapMessage.cs | 59 - .../System.Runtime.Serialization/ChangeLog | 125 - .../System.Runtime.Serialization/Formatter.cs | 105 - .../FormatterConverter.cs | 153 - .../FormatterServices.cs | 142 - .../IDeserializationCallback.cs | 14 - .../IFormatter.cs | 66 - .../IFormatterConverter.cs | 33 - .../IObjectReference.cs | 16 - .../ISerializable.cs | 15 - .../ISerializationSurrogate.cs | 43 - .../ISurrogateSelector.cs | 40 - .../ObjectIDGenerator.cs | 62 - .../SerializationBinder.cs | 22 - .../SerializationEntry.cs | 40 - .../SerializationException.cs | 39 - .../SerializationInfo.cs | 313 - .../SerializationInfoEnumerator.cs | 62 - .../StreamingContext.cs | 58 - .../StreamingContextStates.cs | 56 - .../SurrogateSelector.cs | 92 - .../AsymmetricAlgorithm.cs | 108 - .../AsymmetricKeyExchangeDeformatter.cs | 45 - .../AsymmetricKeyExchangeFormatter.cs | 50 - .../AsymmetricSignatureDeformatter.cs | 52 - .../AsymmetricSignatureFormatter.cs | 52 - .../System.Security.Cryptography/ChangeLog | 100 - .../CipherMode.cs | 24 - .../CryptoAPITransform.cs | 77 - .../CryptoStream.cs | 120 - .../CryptoStreamMode.cs | 20 - .../CryptographicException.cs | 40 - ...yptographicUnexpectedOperationExcpetion.cs | 35 - .../CspParameters.cs | 57 - .../CspProviderFlags.cs | 20 - .../System.Security.Cryptography/DES.cs | 587 -- .../DESCryptoServiceProvider.cs | 250 - .../System.Security.Cryptography/DSA.cs | 101 - .../DSACryptoServiceProvider.cs | 87 - .../DSAParameters.cs | 38 - .../DSASignatureDeformatter.cs | 51 - .../DSASignatureFormatter.cs | 52 - .../DeriveBytes.cs | 27 - .../FromBase64Transform.cs | 271 - .../HashAlgorithm.cs | 157 - .../ICryptoTransform.cs | 49 - .../System.Security.Cryptography/KeySizes.cs | 61 - .../System.Security.Cryptography/MD5.cs | 44 - .../MD5CryptoServiceProvider.cs | 482 - .../PaddingMode.cs | 22 - .../RNGCryptoServiceProvider.cs | 52 - .../System.Security.Cryptography/RSA.cs | 36 - .../RSAParameters.cs | 36 - .../RandomNumberGenerator.cs | 36 - .../System.Security.Cryptography/Rijndael.cs | 25 - .../RijndaelManaged.cs | 744 -- .../System.Security.Cryptography/SHA1.cs | 44 - .../SHA1CryptoServiceProvider.cs | 455 - .../System.Security.Cryptography/SHA256.cs | 45 - .../SHA256Managed.cs | 290 - .../System.Security.Cryptography/SHA384.cs | 45 - .../SHA384Managed.cs | 33 - .../System.Security.Cryptography/SHA512.cs | 45 - .../SHA512Managed.cs | 33 - .../SignatureDescription.cs | 107 - .../SymmetricAlgorithm.cs | 256 - .../ToBase64Transform.cs | 234 - .../X509Certificates.cs | 10 - .../System.Security.Permissions/ChangeLog | 87 - .../CodeAccessSecurityAttribute.cs | 33 - .../EnvironmentPermission.cs | 103 - .../EnvironmentPermissionAccess.cs | 38 - .../EnvironmentPermissionAttribute.cs | 53 - .../FileDialogPermissionAccess.cs | 21 - .../FileDialogPermissionAttribute.cs | 47 - .../FileIOPermission.cs | 411 - .../FileIOPermissionAccess.cs | 46 - .../FileIOPermissionAttribute.cs | 68 - .../IUnrestrictedPermission.cs | 15 - .../IsolatedStorageContainment.cs | 27 - .../IsolatedStorageFilePermissionAttribute.cs | 34 - .../IsolatedStoragePermission.cs | 84 - .../IsolatedStoragePermissionAttribute.cs | 44 - .../PermissionSetAttribute.cs | 69 - .../PermissionState.cs | 29 - .../PrincipalPermissionAttribute.cs | 60 - .../ReflectionPermission.cs | 94 - .../ReflectionPermissionAttribute.cs | 61 - .../ReflectionPermissionFlag.cs | 42 - .../RegistryPermissionAccess.cs | 42 - .../RegistryPermissionAttribute.cs | 60 - .../SecurityAction.cs | 57 - .../SecurityAttribute.cs | 59 - .../SecurityPermission.cs | 66 - .../SecurityPermissionAttribute.cs | 216 - .../SecurityPermissionFlag.cs | 68 - .../SiteIdentityPermissionAttribute.cs | 43 - .../StrongNamePermissionAttribute.cs | 56 - .../UIPermissionAttribute.cs | 48 - .../UIPermissionClipboard.cs | 33 - .../UIPermissionWindow.cs | 37 - .../UrlIdentityPermissionAttribute.cs | 40 - .../ZoneIdentityPermission.cs | 119 - .../ZoneIdentityPermissionAttribute.cs | 40 - .../AllMembershipCondition.cs | 86 - ...ApplicationDirectoryMembershipCondition.cs | 66 - .../corlib/System.Security.Policy/ChangeLog | 69 - .../System.Security.Policy/CodeGroup.cs | 252 - .../corlib/System.Security.Policy/Evidence.cs | 27 - .../System.Security.Policy/FileCodeGroup.cs | 135 - .../IBuiltInEvidence.cs | 20 - .../IIdentityPermissionFactory.cs | 13 - .../IMembershipCondition.cs | 17 - .../System.Security.Policy/PolicyException.cs | 42 - .../System.Security.Policy/PolicyLevel.cs | 62 - .../System.Security.Policy/PolicyStatement.cs | 61 - .../PolicyStatementAttribute.cs | 17 - .../corlib/System.Security.Policy/Zone.cs | 90 - .../System.Security.Principal/ChangeLog | 9 - .../GenericIdentity.cs | 46 - .../GenericPrincipal.cs | 38 - .../System.Security.Principal/IIdentity.cs | 26 - .../System.Security.Principal/IPrincipal.cs | 20 - .../PrincipalPolicy.cs | 17 - .../WindowsAccountType.cs | 18 - .../WindowsBuiltInRole.cs | 23 - mcs/class/corlib/System.Security/ChangeLog | 67 - .../System.Security/CodeAccessPermission.cs | 86 - .../System.Security/IEvidenceFactory.cs | 15 - .../corlib/System.Security/IPermission.cs | 24 - .../System.Security/ISecurityEncodable.cs | 18 - .../ISecurityPolicyEncodable.cs | 20 - .../corlib/System.Security/IStackWalk.cs | 22 - .../System.Security/NamedPermissionSet.cs | 66 - .../corlib/System.Security/PermissionSet.cs | 202 - .../corlib/System.Security/PolicyLevelType.cs | 18 - .../corlib/System.Security/SecurityElement.cs | 340 - .../System.Security/SecurityException.cs | 79 - .../corlib/System.Security/SecurityManager.cs | 88 - .../corlib/System.Security/SecurityZone.cs | 20 - .../SuppressUnmanagedCodeSecurityAttribute.cs | 15 - .../UnverifiableCodeAttribute.cs | 14 - .../System.Security/VerificationException.cs | 26 - .../System.Security/XmlSyntaxException.cs | 27 - mcs/class/corlib/System.Text/ASCIIEncoding.cs | 166 - mcs/class/corlib/System.Text/ChangeLog | 145 - mcs/class/corlib/System.Text/Decoder.cs | 89 - mcs/class/corlib/System.Text/Encoder.cs | 99 - mcs/class/corlib/System.Text/Encoding.cs | 384 - mcs/class/corlib/System.Text/StringBuilder.cs | 616 -- mcs/class/corlib/System.Text/UTF7Encoding.cs | 42 - mcs/class/corlib/System.Text/UTF8Encoding.cs | 38 - .../corlib/System.Text/UnicodeEncoding.cs | 55 - .../corlib/System.Threading/ApartmentState.cs | 18 - .../corlib/System.Threading/AutoResetEvent.cs | 35 - mcs/class/corlib/System.Threading/ChangeLog | 161 - .../System.Threading/IOCompletionCallback.cs | 18 - .../corlib/System.Threading/Interlocked.cs | 51 - .../corlib/System.Threading/LockCookie.cs | 17 - .../System.Threading/ManualResetEvent.cs | 38 - mcs/class/corlib/System.Threading/Monitor.cs | 219 - mcs/class/corlib/System.Threading/Mutex.cs | 49 - .../System.Threading/NativeEventCalls.cs | 28 - .../System.Threading/NativeOverlapped.cs | 27 - .../corlib/System.Threading/Overlapped.cs | 92 - .../System.Threading/ReaderWriterLock.cs | 109 - .../System.Threading/RegisteredWaitHandle.cs | 28 - .../SynchronizationLockException.cs | 33 - mcs/class/corlib/System.Threading/Thread.cs | 436 - .../System.Threading/ThreadAbortException.cs | 25 - .../ThreadInterruptedException.cs | 33 - .../corlib/System.Threading/ThreadPool.cs | 245 - .../corlib/System.Threading/ThreadPriority.cs | 41 - .../corlib/System.Threading/ThreadStart.cs | 14 - .../corlib/System.Threading/ThreadState.cs | 55 - .../System.Threading/ThreadStateException.cs | 33 - mcs/class/corlib/System.Threading/Timeout.cs | 18 - mcs/class/corlib/System.Threading/Timer.cs | 112 - .../corlib/System.Threading/TimerCallback.cs | 14 - .../corlib/System.Threading/WaitCallback.cs | 14 - .../corlib/System.Threading/WaitHandle.cs | 204 - .../System.Threading/WaitOrTimerCallback.cs | 14 - mcs/class/corlib/System/Activator.cs | 214 - mcs/class/corlib/System/AppDomain.cs | 567 -- mcs/class/corlib/System/AppDomainSetup.cs | 172 - .../System/AppDomainUnloadedException.cs | 42 - .../corlib/System/ApplicationException.cs | 42 - mcs/class/corlib/System/ArgumentException.cs | 78 - .../corlib/System/ArgumentNullException.cs | 38 - .../System/ArgumentOutOfRangeException.cs | 72 - .../corlib/System/ArithmeticException.cs | 38 - mcs/class/corlib/System/Array.cs | 838 -- .../System/ArrayTypeMismatchException.cs | 38 - .../corlib/System/AssemblyLoadEventArgs.cs | 34 - .../corlib/System/AssemblyLoadEventHandler.cs | 10 - mcs/class/corlib/System/AsyncCallback.cs | 13 - mcs/class/corlib/System/Attribute.cs | 386 - mcs/class/corlib/System/AttributeTargets.cs | 82 - mcs/class/corlib/System/AttributeUsage.cs | 50 - .../corlib/System/BadImageFormatException.cs | 93 - mcs/class/corlib/System/BitConverter.cs | 270 - mcs/class/corlib/System/Boolean.cs | 266 - mcs/class/corlib/System/Buffer.cs | 70 - mcs/class/corlib/System/Byte.cs | 251 - .../corlib/System/CLSCompliantAttribute.cs | 35 - .../System/CannotUnloadAppDomainException.cs | 41 - mcs/class/corlib/System/ChangeLog | 2366 ----- mcs/class/corlib/System/Char.cs | 399 - mcs/class/corlib/System/CharEnumerator.cs | 90 - mcs/class/corlib/System/Console.cs | 319 - mcs/class/corlib/System/ContextBoundObject.cs | 25 - .../corlib/System/ContextMarshalException.cs | 42 - .../corlib/System/ContextStaticAttribute.cs | 28 - mcs/class/corlib/System/Convert.cs | 2463 ----- .../corlib/System/CrossAppDomainDelegate.cs | 10 - mcs/class/corlib/System/DBNull.cs | 133 - mcs/class/corlib/System/DateTime.cs | 1463 --- mcs/class/corlib/System/Decimal.cs | 1115 --- mcs/class/corlib/System/DecimalFormatter.cs | 381 - mcs/class/corlib/System/Delegate.cs | 263 - .../corlib/System/DivideByZeroException.cs | 38 - .../corlib/System/DllNotFoundException.cs | 42 - mcs/class/corlib/System/Double.cs | 435 - .../System/DuplicateWaitObjectException.cs | 39 - .../System/EntryPointNotFoundException.cs | 42 - mcs/class/corlib/System/Enum.cs | 557 - mcs/class/corlib/System/Environment.cs | 291 - mcs/class/corlib/System/EventArgs.cs | 26 - mcs/class/corlib/System/EventHandler.cs | 16 - mcs/class/corlib/System/Exception.cs | 159 - .../corlib/System/ExecutionEngineException.cs | 31 - .../corlib/System/FieldAccessException.cs | 41 - mcs/class/corlib/System/FlagsAttribute.cs | 29 - mcs/class/corlib/System/FormatException.cs | 39 - mcs/class/corlib/System/GC.cs | 65 - mcs/class/corlib/System/Guid.cs | 654 -- mcs/class/corlib/System/IAppDomainSetup.cs | 37 - mcs/class/corlib/System/IAsyncResult.cs | 43 - mcs/class/corlib/System/ICloneable.cs | 15 - mcs/class/corlib/System/IComparable.cs | 15 - mcs/class/corlib/System/IConvertible.cs | 55 - mcs/class/corlib/System/ICustomFormatter.cs | 15 - mcs/class/corlib/System/IDisposable.cs | 17 - mcs/class/corlib/System/IFormatProvider.cs | 15 - mcs/class/corlib/System/IFormattable.cs | 15 - mcs/class/corlib/System/IServiceProvider.cs | 20 - .../corlib/System/IndexOutOfRangeException.cs | 31 - mcs/class/corlib/System/Int16.cs | 237 - mcs/class/corlib/System/Int32.cs | 490 - mcs/class/corlib/System/Int64.cs | 432 - mcs/class/corlib/System/IntPtr.cs | 165 - mcs/class/corlib/System/IntegerFormatter.cs | 4030 -------- .../corlib/System/InvalidCastException.cs | 39 - .../System/InvalidOperationException.cs | 38 - .../corlib/System/InvalidProgramException.cs | 31 - mcs/class/corlib/System/LoaderOptimization.cs | 18 - .../System/LoaderOptimizationAttribute.cs | 34 - mcs/class/corlib/System/LocalDataStoreSlot.cs | 18 - mcs/class/corlib/System/MTAThreadAttribute.cs | 19 - mcs/class/corlib/System/MarshalByRefObject.cs | 36 - mcs/class/corlib/System/Math.cs | 375 - .../corlib/System/MemberAccessException.cs | 29 - .../corlib/System/MethodAccessException.cs | 42 - .../corlib/System/MissingFieldException.cs | 46 - .../corlib/System/MissingMemberException.cs | 70 - .../corlib/System/MissingMethodException.cs | 47 - mcs/class/corlib/System/MonoCustomAttrs.cs | 80 - mcs/class/corlib/System/MonoDummy.cs | 20 - mcs/class/corlib/System/MonoType.cs | 364 - mcs/class/corlib/System/MulticastDelegate.cs | 242 - .../System/MulticastNotSupportedException.cs | 31 - .../corlib/System/NonSerializedAttribute.cs | 18 - .../corlib/System/NotFiniteNumberException.cs | 67 - .../corlib/System/NotImplementedException.cs | 39 - .../corlib/System/NotSupportedException.cs | 39 - .../corlib/System/NullReferenceException.cs | 39 - mcs/class/corlib/System/Object.cs | 108 - .../corlib/System/ObjectDisposedException.cs | 60 - mcs/class/corlib/System/ObsoleteAttribute.cs | 48 - mcs/class/corlib/System/OperatingSystem.cs | 106 - .../corlib/System/OutOfMemoryException.cs | 39 - mcs/class/corlib/System/OverflowException.cs | 39 - .../corlib/System/ParamArrayAttribute.cs | 23 - mcs/class/corlib/System/PlatformID.cs | 37 - .../System/PlatformNotSupportedException.cs | 41 - mcs/class/corlib/System/Random.cs | 83 - mcs/class/corlib/System/RankException.cs | 40 - mcs/class/corlib/System/ResolveEventArgs.cs | 29 - .../corlib/System/ResolveEventHandler.cs | 10 - .../corlib/System/RuntimeArgumentHandle.cs | 16 - mcs/class/corlib/System/RuntimeFieldHandle.cs | 45 - .../corlib/System/RuntimeMethodHandle.cs | 34 - mcs/class/corlib/System/RuntimeTypeHandle.cs | 31 - mcs/class/corlib/System/SByte.cs | 232 - mcs/class/corlib/System/STAThreadAttribute.cs | 19 - .../corlib/System/SerializableAttribute.cs | 38 - mcs/class/corlib/System/Single.cs | 225 - .../corlib/System/StackOverflowException.cs | 39 - mcs/class/corlib/System/String.cs | 1097 -- mcs/class/corlib/System/SystemException.cs | 39 - mcs/class/corlib/System/TODO | 22 - mcs/class/corlib/System/TODOAttribute.cs | 37 - .../corlib/System/ThreadStaticAttribute.cs | 20 - mcs/class/corlib/System/TimeSpan.cs | 551 - mcs/class/corlib/System/TimeZone.cs | 198 - mcs/class/corlib/System/Type.cs | 880 -- mcs/class/corlib/System/TypeCode.cs | 93 - .../System/TypeInitializationException.cs | 40 - mcs/class/corlib/System/TypeLoadException.cs | 73 - .../corlib/System/TypeUnloadedException.cs | 43 - mcs/class/corlib/System/UInt16.cs | 241 - mcs/class/corlib/System/UInt32.cs | 429 - mcs/class/corlib/System/UInt64.cs | 359 - mcs/class/corlib/System/UIntPtr.cs | 180 - .../System/UnauthorizedAccessException.cs | 39 - .../System/UnhandledExceptionEventArgs.cs | 43 - .../System/UnhandledExceptionEventHandler.cs | 10 - mcs/class/corlib/System/ValueType.cs | 48 - mcs/class/corlib/System/Version.cs | 277 - mcs/class/corlib/System/Void.cs | 15 - mcs/class/corlib/System/WeakReference.cs | 114 - mcs/class/corlib/System/_AppDomain.cs | 161 - mcs/class/corlib/Test/.cvsignore | 6 - mcs/class/corlib/Test/AllTests.cs | 39 - mcs/class/corlib/Test/ChangeLog | 240 - .../Test/System.Collections/AllTests.cs | 39 - .../Test/System.Collections/ArrayListTest.cs | 1451 --- .../Test/System.Collections/BitArrayTest.cs | 300 - .../CaseInsensitiveComparerTest.cs | 50 - .../CaseInsensitiveHashCodeProviderTest.cs | 57 - .../corlib/Test/System.Collections/ChangeLog | 101 - .../System.Collections/CollectionBaseTest.cs | 236 - .../Test/System.Collections/ComparerTest.cs | 60 - .../Test/System.Collections/HashtableTest.cs | 761 -- .../Test/System.Collections/QueueTest.cs | 182 - .../ReadOnlyCollectionBaseTest.cs | 49 - .../Test/System.Collections/SortedListTest.cs | 623 -- .../Test/System.Collections/StackTest.cs | 270 - .../Test/System.Diagnostics/AllTests.cs | 32 - .../corlib/Test/System.Diagnostics/ChangeLog | 8 - .../Test/System.Diagnostics/DebugTest.cs | 89 - .../Test/System.Diagnostics/StackFrameTest.cs | 350 - .../Test/System.Diagnostics/StackTraceTest.cs | 98 - .../TextWriterTraceListenerTest.cs | 83 - .../Test/System.Globalization/AllTests.cs | 28 - .../Test/System.Globalization/CalendarTest.cs | 602 -- mcs/class/corlib/Test/System.IO/AllTests.cs | 36 - .../corlib/Test/System.IO/BinaryReaderTest.cs | 249 - mcs/class/corlib/Test/System.IO/ChangeLog | 100 - mcs/class/corlib/Test/System.IO/FileTest.cs | 441 - .../corlib/Test/System.IO/MemoryStreamTest.cs | 154 - mcs/class/corlib/Test/System.IO/PathTest.cs | 144 - .../corlib/Test/System.IO/StreamReaderTest.cs | 558 -- .../corlib/Test/System.IO/StreamWriterTest.cs | 353 - .../corlib/Test/System.IO/StringReaderTest.cs | 133 - .../corlib/Test/System.IO/StringWriterTest.cs | 56 - .../corlib/Test/System.Resources/AllTests.cs | 28 - .../corlib/Test/System.Resources/ChangeLog | 26 - .../System.Resources/ResourceReaderTest.cs | 144 - .../System.Runtime.Serialization/AllTests.cs | 29 - .../System.Runtime.Serialization/ChangeLog | 10 - .../FormatterServicesTests.cs | 142 - .../ObjectIDGeneratorTests.cs | 91 - .../System.Security.Cryptography/AllTests.cs | 31 - .../AsymmetricAlgorithmTest.cs | 54 - .../FromBase64Transform.cs | 75 - .../RNGCryptoServiceProviderTest.cs | 55 - .../SymmetricAlgorithmTest.cs | 65 - .../System.Security.Permissions/AllTests.cs | 27 - .../System.Security.Permissions/ChangeLog | 18 - .../FileIOPermissionTest.cs | 297 - .../Test/System.Security.Policy/AllTests.cs | 27 - .../Test/System.Security.Policy/ChangeLog | 15 - .../System.Security.Policy/CodeGroupTest.cs | 248 - .../corlib/Test/System.Security/AllTests.cs | 27 - .../corlib/Test/System.Security/ChangeLog | 10 - .../System.Security/SecurityElementTest.cs | 228 - .../Test/System.Text/ASCIIEncodingTest.cs | 192 - mcs/class/corlib/Test/System.Text/AllTests.cs | 30 - mcs/class/corlib/Test/System.Text/ChangeLog | 13 - .../Test/System.Text/StringBuilderTest.cs | 238 - mcs/class/corlib/Test/System/AllTests.cs | 62 - mcs/class/corlib/Test/System/ArrayTest.cs | 1988 ---- mcs/class/corlib/Test/System/AttributeTest.cs | 164 - .../corlib/Test/System/BitConverterTest.cs | 545 - mcs/class/corlib/Test/System/BooleanTest.cs | 113 - mcs/class/corlib/Test/System/BufferTest.cs | 150 - mcs/class/corlib/Test/System/ByteTest.cs | 189 - mcs/class/corlib/Test/System/ChangeLog | 531 - .../corlib/Test/System/CharEnumeratorTest.cs | 123 - mcs/class/corlib/Test/System/CharTest.cs | 500 - mcs/class/corlib/Test/System/ConsoleTest.cs | 294 - mcs/class/corlib/Test/System/ConvertTest.cs | 2754 ----- mcs/class/corlib/Test/System/DateTimeTest.cs | 407 - mcs/class/corlib/Test/System/DecimalTest.cs | 889 -- mcs/class/corlib/Test/System/DecimalTest2.cs | 3131 ------ mcs/class/corlib/Test/System/DoubleTest.cs | 191 - mcs/class/corlib/Test/System/EnumTest.cs | 728 -- mcs/class/corlib/Test/System/ExceptionTest.cs | 204 - mcs/class/corlib/Test/System/GuidTest.cs | 247 - mcs/class/corlib/Test/System/Int16Test.cs | 193 - mcs/class/corlib/Test/System/Int32Test.cs | 238 - mcs/class/corlib/Test/System/Int64Test.cs | 363 - .../Test/System/IntegerFormatterTest.cs | 2016 ---- mcs/class/corlib/Test/System/MathTest.cs | 614 -- .../corlib/Test/System/MulticastDelegate.cs | 129 - mcs/class/corlib/Test/System/ObjectTest.cs | 121 - mcs/class/corlib/Test/System/RandomTest.cs | 90 - .../Test/System/ResolveEventArgsTest.cs | 30 - mcs/class/corlib/Test/System/SByteTest.cs | 180 - mcs/class/corlib/Test/System/StringTest.cs | 1083 -- mcs/class/corlib/Test/System/TimeSpanTest.cs | 266 - mcs/class/corlib/Test/System/TimeZoneTest.cs | 74 - mcs/class/corlib/Test/System/UInt16Test.cs | 194 - mcs/class/corlib/Test/System/UInt32Test.cs | 236 - mcs/class/corlib/Test/System/UInt64Test.cs | 204 - mcs/class/corlib/Test/System/VersionTest.cs | 244 - mcs/class/corlib/Test/corlib_linux_test.args | 85 - mcs/class/corlib/Test/corlib_test.build | 70 - mcs/class/corlib/Test/makefile.gnu | 16 - mcs/class/corlib/Test/resources/AFile.txt | 39 - .../corlib/Test/resources/Empty.resources | 0 .../Test/resources/MyResources.resources | Bin 412 -> 0 bytes mcs/class/corlib/Unix/Errno.cs | 139 - mcs/class/corlib/Unix/Wrapper.cs | 237 - mcs/class/corlib/Unix/common.src | 1 - mcs/class/corlib/Unix/mono.src | 0 mcs/class/corlib/Unix/windows.src | 0 mcs/class/corlib/Windows/Windows.cs | 694 -- mcs/class/corlib/corlib.build | 152 - mcs/class/corlib/makefile.gnu | 15 - mcs/class/corlib/unix.args | 721 -- mcs/class/executable.make | 28 - mcs/class/lib/.cvsignore | 2 - mcs/class/library.build | 49 - mcs/class/library.make | 54 - mcs/class/makefile | 15 - mcs/class/makefile.gnu | 29 - mcs/class/notes/BitVecto32.txt | 6 - .../System.CodeDom.Compiler/CodeGenerator.xml | 117 - .../ICodeGenerator.xml | 8 - .../CodeArrayCreateExpression.xml | 50 - .../en/System.CodeDom/CodeAssignStatement.xml | 28 - .../CodeAttachEventStatement.xml | 34 - .../System.CodeDom/CodeAttributeArgument.xml | 33 - .../CodeAttributeArgumentCollection.xml | 108 - .../en/System.CodeDom/CodeAttributeBlock.xml | 22 - .../CodeAttributeDeclaration.xml | 33 - .../CodeAttributeDeclarationCollection.xml | 108 - .../CodeBaseReferenceExpression.xml | 12 - .../CodeBinaryOperatorExpression.xml | 34 - .../System.CodeDom/CodeBinaryOperatorType.xml | 9 - .../en/System.CodeDom/CodeCastExpression.xml | 28 - .../xml/en/System.CodeDom/CodeCatchClause.xml | 28 - .../CodeCatchClauseCollection.xml | 108 - .../xml/en/System.CodeDom/CodeClass.xml | 52 - .../en/System.CodeDom/CodeClassCollection.xml | 108 - .../System.CodeDom/CodeClassConstructor.xml | 12 - .../en/System.CodeDom/CodeClassDelegate.xml | 27 - .../xml/en/System.CodeDom/CodeClassMember.xml | 27 - .../CodeClassMemberCollection.xml | 108 - .../System.CodeDom/CodeCommentStatement.xml | 22 - .../xml/en/System.CodeDom/CodeConstructor.xml | 22 - .../CodeDelegateCreateExpression.xml | 34 - .../CodeDelegateInvokeExpression.xml | 33 - .../CodeDelegateInvokeStatement.xml | 33 - .../CodeDetachEventStatement.xml | 34 - .../xml/en/System.CodeDom/CodeExpression.xml | 17 - .../CodeExpressionCollection.xml | 108 - .../CodeFieldReferenceExpression.xml | 33 - .../System.CodeDom/CodeForLoopStatement.xml | 40 - .../xml/en/System.CodeDom/CodeIfStatement.xml | 40 - .../System.CodeDom/CodeIndexerExpression.xml | 18 - .../xml/en/System.CodeDom/CodeLinePragma.xml | 24 - .../System.CodeDom/CodeLiteralClassMember.xml | 22 - .../System.CodeDom/CodeLiteralExpression.xml | 22 - .../System.CodeDom/CodeLiteralNamespace.xml | 23 - .../System.CodeDom/CodeLiteralStatement.xml | 18 - .../xml/en/System.CodeDom/CodeMemberEvent.xml | 27 - .../xml/en/System.CodeDom/CodeMemberField.xml | 28 - .../en/System.CodeDom/CodeMemberMethod.xml | 37 - .../en/System.CodeDom/CodeMemberProperty.xml | 52 - .../CodeMethodInvokeExpression.xml | 40 - .../CodeMethodInvokeStatement.xml | 50 - .../CodeMethodReturnStatement.xml | 12 - .../xml/en/System.CodeDom/CodeNamespace.xml | 47 - .../en/System.CodeDom/CodeNamespaceImport.xml | 22 - .../CodeNamespaceImportCollection.xml | 108 - .../xml/en/System.CodeDom/CodeObject.xml | 12 - .../CodeObjectCreateExpression.xml | 33 - .../CodeParameterDeclarationExpression.xml | 38 - ...rameterDeclarationExpressionCollection.xml | 108 - .../CodePrimitiveExpression.xml | 22 - .../CodePropertyReferenceExpression.xml | 33 - .../xml/en/System.CodeDom/CodeStatement.xml | 12 - .../CodeStatementCollection.xml | 108 - .../CodeThisReferenceExpression.xml | 12 - .../CodeThrowExceptionStatement.xml | 22 - .../CodeTryCatchFinallyStatement.xml | 40 - .../en/System.CodeDom/CodeTypeDeclaration.xml | 12 - .../xml/en/System.CodeDom/CodeTypeMember.xml | 17 - .../System.CodeDom/CodeTypeOfExpression.xml | 22 - .../CodeTypeReferenceExpression.xml | 22 - .../CodeVariableDeclarationStatement.xml | 40 - .../xml/en/System.CodeDom/FieldDirection.xml | 9 - .../en/System.CodeDom/MemberAttributes.xml | 9 - .../BitVector32.xml | 51 - .../KeysCollection.xml | 41 - .../ListDictionary.xml | 88 - .../NameObjectCollectionBase.xml | 68 - .../NameValueCollection.xml | 123 - .../Section.xml | 12 - .../StringCollection.xml | 102 - .../StringDictionary.xml | 84 - .../StringEnumerator.xml | 23 - .../xml/en/System.Collections/ArrayList.xml | 326 - .../xml/en/System.Collections/BitArray.xml | 128 - .../CaseInsensitiveComparer.xml | 24 - .../CaseInsensitiveHashCodeProvider.xml | 23 - .../en/System.Collections/CollectionBase.xml | 39 - .../xml/en/System.Collections/Comparer.xml | 19 - .../en/System.Collections/DictionaryBase.xml | 40 - .../en/System.Collections/DictionaryEntry.xml | 24 - .../en/System.Collections/EnumeratorMode.xml | 9 - .../xml/en/System.Collections/Hashtable.xml | 192 - .../xml/en/System.Collections/ICollection.xml | 8 - .../xml/en/System.Collections/IComparer.xml | 8 - .../xml/en/System.Collections/IDictionary.xml | 8 - .../IDictionaryEnumerator.xml | 8 - .../xml/en/System.Collections/IEnumerable.xml | 8 - .../xml/en/System.Collections/IEnumerator.xml | 8 - .../System.Collections/IHashCodeProvider.xml | 8 - .../xml/en/System.Collections/IList.xml | 8 - .../xml/en/System.Collections/Queue.xml | 98 - .../ReadOnlyCollectionBase.xml | 23 - .../xml/en/System.Collections/SortedList.xml | 195 - .../xml/en/System.Collections/Stack.xml | 92 - .../BrowsableAttribute.xml | 26 - .../CategoryAttribute.xml | 87 - .../en/System.ComponentModel/Component.xml | 42 - .../ComponentCollection.xml | 17 - .../en/System.ComponentModel/Container.xml | 41 - .../DescriptionAttribute.xml | 27 - .../DesignOnlyAttribute.xml | 26 - .../DesignerSerializationVisibility.xml | 9 - ...signerSerializationVisibilityAttribute.xml | 30 - .../EventHandlerList.xml | 36 - .../en/System.ComponentModel/IComponent.xml | 8 - .../en/System.ComponentModel/IContainer.xml | 8 - .../xml/en/System.ComponentModel/ISite.xml | 8 - .../LocalizableAttribute.xml | 26 - .../MemberDescriptor.xml | 48 - .../PropertyDescriptor.xml | 45 - .../System.ComponentModel/TypeConverter.xml | 12 - .../System.ComponentModel/Win32Exception.xml | 35 - .../AssemblyHash.xml | 44 - .../AssemblyHashAlgorithm.xml | 9 - .../AssemblyVersionCompatibility.xml | 9 - .../ProcessorID.xml | 9 - .../ConfigurationException.xml | 90 - .../ConfigurationSettings.xml | 19 - .../DictionarySectionHandler.xml | 30 - .../IConfigurationSectionHandler.xml | 8 - .../IgnoreSectionHandler.xml | 20 - .../NameValueSectionHandler.xml | 30 - .../SingleTagSectionHandler.xml | 20 - .../xml/en/System.Data/AcceptRejectRule.xml | 9 - .../xml/en/System.Data/CommandBehavior.xml | 9 - .../xml/en/System.Data/CommandType.xml | 9 - .../xml/en/System.Data/ConnectionState.xml | 9 - .../System.Data/DataColumnChangeEventArgs.xml | 30 - .../DataColumnChangeEventHandler.xml | 8 - .../en/System.Data/DataColumnCollection.xml | 113 - .../xml/en/System.Data/DataRowAction.xml | 9 - .../System.Data/DataRowChangeEventHandler.xml | 8 - .../xml/en/System.Data/DataRowState.xml | 9 - .../xml/en/System.Data/DataRowVersion.xml | 9 - .../xml/en/System.Data/DataViewRowState.xml | 9 - .../apidocs/xml/en/System.Data/DbType.xml | 9 - .../en/System.Data/FillErrorEventHandler.xml | 8 - .../xml/en/System.Data/IColumnMapping.xml | 8 - .../System.Data/IColumnMappingCollection.xml | 8 - .../apidocs/xml/en/System.Data/IDBCommand.xml | 8 - .../xml/en/System.Data/IDBConnection.xml | 8 - .../xml/en/System.Data/IDataAdapter.xml | 8 - .../xml/en/System.Data/IDataParameter.xml | 8 - .../System.Data/IDataParameterCollection.xml | 8 - .../xml/en/System.Data/IDataReader.xml | 8 - .../xml/en/System.Data/IDataRecord.xml | 8 - .../xml/en/System.Data/IDbDataAdapter.xml | 8 - .../xml/en/System.Data/IDbDataParameter.xml | 8 - .../xml/en/System.Data/IDbTransaction.xml | 8 - .../xml/en/System.Data/ITableMapping.xml | 8 - .../System.Data/ITableMappingCollection.xml | 8 - .../xml/en/System.Data/IsolationLevel.xml | 9 - .../xml/en/System.Data/MappingType.xml | 9 - .../System.Data/MergeFailedEventHandler.xml | 8 - .../en/System.Data/MissingMappingAction.xml | 9 - .../en/System.Data/MissingSchemaAction.xml | 9 - .../xml/en/System.Data/ParameterDirection.xml | 9 - .../xml/en/System.Data/PropertyAttributes.xml | 9 - mcs/docs/apidocs/xml/en/System.Data/Rule.xml | 9 - .../apidocs/xml/en/System.Data/SchemaType.xml | 9 - .../apidocs/xml/en/System.Data/SqlDbType.xml | 9 - .../System.Data/StateChangeEventHandler.xml | 8 - .../xml/en/System.Data/StatementType.xml | 9 - .../xml/en/System.Data/UpdateRowSource.xml | 9 - .../xml/en/System.Data/UpdateStatus.xml | 9 - .../xml/en/System.Data/XmlReadMode.xml | 9 - .../xml/en/System.Data/XmlWriteMode.xml | 9 - .../ISymbolBinder.xml | 8 - .../ISymbolDocument.xml | 8 - .../ISymbolDocumentWriter.xml | 8 - .../ISymbolMethod.xml | 8 - .../ISymbolNamespace.xml | 8 - .../ISymbolReader.xml | 8 - .../ISymbolScope.xml | 8 - .../ISymbolVariable.xml | 8 - .../ISymbolWriter.xml | 8 - .../SymAddressKind.xml | 9 - .../SymDocumentType.xml | 16 - .../SymLanguageType.xml | 56 - .../SymLanguageVendor.xml | 16 - .../SymbolToken.xml | 29 - .../en/System.Diagnostics/BooleanSwitch.xml | 19 - .../xml/en/System.Diagnostics/ChangeLog | 18 - .../ConditionalAttribute.xml | 18 - .../xml/en/System.Diagnostics/Debug.xml | 261 - .../DebuggableAttribute.xml | 24 - .../xml/en/System.Diagnostics/Debugger.xml | 44 - .../DebuggerHiddenAttribute.xml | 12 - .../DebuggerStepThroughAttribute.xml | 12 - .../DefaultTraceListener.xml | 137 - .../DiagnosticsConfigurationHandler.xml | 37 - .../en/System.Diagnostics/FileVersionInfo.xml | 158 - .../xml/en/System.Diagnostics/Process.xml | 340 - .../en/System.Diagnostics/ProcessModule.xml | 47 - .../ProcessPriorityClass.xml | 9 - .../xml/en/System.Diagnostics/StackFrame.xml | 91 - .../xml/en/System.Diagnostics/StackTrace.xml | 94 - .../xml/en/System.Diagnostics/Switch.xml | 34 - .../TextWriterTraceListener.xml | 179 - .../xml/en/System.Diagnostics/Trace.xml | 260 - .../xml/en/System.Diagnostics/TraceLevel.xml | 9 - .../en/System.Diagnostics/TraceListener.xml | 223 - .../TraceListenerCollection.xml | 132 - .../xml/en/System.Diagnostics/TraceSwitch.xml | 57 - .../CCGregorianEraHandler.xml | 64 - .../System.Globalization/CCHijriCalendar.xml | 88 - .../xml/en/System.Globalization/Calendar.xml | 283 - .../System.Globalization/CalendarWeekRule.xml | 9 - .../System.Globalization/CompareOptions.xml | 9 - .../en/System.Globalization/CultureInfo.xml | 87 - .../en/System.Globalization/CultureTypes.xml | 9 - .../DateTimeFormatInfo.xml | 212 - .../System.Globalization/DateTimeStyles.xml | 9 - .../en/System.Globalization/DaylightTime.xml | 30 - .../GregorianCalendar.xml | 140 - .../GregorianCalendarTypes.xml | 9 - .../System.Globalization/HebrewCalendar.xml | 201 - .../en/System.Globalization/HijriCalendar.xml | 201 - .../System.Globalization/JapaneseCalendar.xml | 198 - .../System.Globalization/JulianCalendar.xml | 130 - .../System.Globalization/KoreanCalendar.xml | 130 - .../xml/en/System.Globalization/Month.xml | 9 - .../System.Globalization/NumberFormatInfo.xml | 175 - .../en/System.Globalization/NumberStyles.xml | 9 - .../en/System.Globalization/RegionInfo.xml | 59 - .../System.Globalization/TaiwanCalendar.xml | 198 - .../ThaiBuddhistCalendar.xml | 130 - .../System.Globalization/UnicodeCategory.xml | 9 - .../INormalizeForIsolatedStorage.xml | 8 - .../IsolatedStorage.xml | 48 - .../IsolatedStorageException.xml | 23 - .../IsolatedStorageFileStream.xml | 14 - .../IsolatedStorageScope.xml | 9 - .../apidocs/xml/en/System.IO/BinaryReader.xml | 142 - .../apidocs/xml/en/System.IO/BinaryWriter.xml | 162 - .../xml/en/System.IO/BufferedStream.xml | 99 - .../apidocs/xml/en/System.IO/Directory.xml | 146 - .../xml/en/System.IO/DirectoryInfo.xml | 99 - .../System.IO/DirectoryNotFoundException.xml | 23 - .../xml/en/System.IO/EndOfStreamException.xml | 23 - mcs/docs/apidocs/xml/en/System.IO/File.xml | 155 - .../apidocs/xml/en/System.IO/FileAccess.xml | 9 - .../xml/en/System.IO/FileAttributes.xml | 9 - .../apidocs/xml/en/System.IO/FileInfo.xml | 113 - .../xml/en/System.IO/FileLoadException.xml | 45 - .../apidocs/xml/en/System.IO/FileMode.xml | 9 - .../en/System.IO/FileNotFoundException.xml | 63 - .../apidocs/xml/en/System.IO/FileShare.xml | 9 - .../apidocs/xml/en/System.IO/FileStream.xml | 163 - .../xml/en/System.IO/FileSystemInfo.xml | 58 - .../apidocs/xml/en/System.IO/IOException.xml | 29 - .../apidocs/xml/en/System.IO/MemoryStream.xml | 148 - mcs/docs/apidocs/xml/en/System.IO/Path.xml | 100 - .../xml/en/System.IO/PathTooLongException.xml | 23 - .../apidocs/xml/en/System.IO/SeekOrigin.xml | 9 - mcs/docs/apidocs/xml/en/System.IO/Stream.xml | 124 - .../apidocs/xml/en/System.IO/StreamReader.xml | 124 - .../apidocs/xml/en/System.IO/StreamWriter.xml | 86 - .../apidocs/xml/en/System.IO/StringReader.xml | 46 - .../apidocs/xml/en/System.IO/StringWriter.xml | 68 - .../apidocs/xml/en/System.IO/TextReader.xml | 59 - .../apidocs/xml/en/System.IO/TextWriter.xml | 270 - .../en/System.Net.Sockets/AddressFamily.xml | 9 - .../en/System.Net.Sockets/LingerOption.xml | 24 - .../en/System.Net.Sockets/MulticastOption.xml | 29 - .../en/System.Net.Sockets/NetworkStream.xml | 148 - .../en/System.Net.Sockets/ProtocolFamily.xml | 9 - .../en/System.Net.Sockets/ProtocolType.xml | 9 - .../xml/en/System.Net.Sockets/SelectMode.xml | 9 - .../xml/en/System.Net.Sockets/Socket.xml | 396 - .../en/System.Net.Sockets/SocketException.xml | 22 - .../xml/en/System.Net.Sockets/SocketFlags.xml | 9 - .../System.Net.Sockets/SocketOptionLevel.xml | 9 - .../System.Net.Sockets/SocketOptionName.xml | 9 - .../en/System.Net.Sockets/SocketShutdown.xml | 9 - .../xml/en/System.Net.Sockets/SocketType.xml | 9 - .../xml/en/System.Net.Sockets/TcpClient.xml | 98 - .../xml/en/System.Net.Sockets/TcpListener.xml | 64 - .../xml/en/System.Net/Authorization.xml | 24 - .../xml/en/System.Net/ConnectionModes.xml | 9 - mcs/docs/apidocs/xml/en/System.Net/Dns.xml | 65 - .../apidocs/xml/en/System.Net/EndPoint.xml | 24 - .../xml/en/System.Net/HttpStatusCode.xml | 9 - .../xml/en/System.Net/ICredentials.xml | 8 - .../apidocs/xml/en/System.Net/IPAddress.xml | 103 - .../apidocs/xml/en/System.Net/IPEndPoint.xml | 59 - .../apidocs/xml/en/System.Net/IPHostEntry.xml | 27 - .../xml/en/System.Net/NetworkAccess.xml | 9 - .../xml/en/System.Net/NetworkCredential.xml | 47 - .../xml/en/System.Net/ProxyUseType.xml | 9 - .../xml/en/System.Net/SocketAddress.xml | 39 - .../xml/en/System.Net/TransportType.xml | 9 - .../xml/en/System.Net/WebExceptionStatus.xml | 9 - .../apidocs/xml/en/System.Net/WebStatus.xml | 9 - .../AssemblyBuilder.xml | 159 - .../AssemblyBuilderAccess.xml | 9 - .../ConstructorBuilder.xml | 169 - .../CustomAttributeBuilder.xml | 40 - .../en/System.Reflection.Emit/EnumBuilder.xml | 240 - .../System.Reflection.Emit/EventBuilder.xml | 50 - .../en/System.Reflection.Emit/EventToken.xml | 28 - .../System.Reflection.Emit/FieldBuilder.xml | 110 - .../en/System.Reflection.Emit/FieldToken.xml | 28 - .../en/System.Reflection.Emit/FlowControl.xml | 9 - .../en/System.Reflection.Emit/ILGenerator.xml | 242 - .../xml/en/System.Reflection.Emit/Label.xml | 19 - .../System.Reflection.Emit/LocalBuilder.xml | 27 - .../System.Reflection.Emit/MethodBuilder.xml | 143 - .../en/System.Reflection.Emit/MethodToken.xml | 28 - .../System.Reflection.Emit/ModuleBuilder.xml | 128 - .../xml/en/System.Reflection.Emit/OpCode.xml | 48 - .../en/System.Reflection.Emit/OpCodeType.xml | 9 - .../xml/en/System.Reflection.Emit/OpCodes.xml | 906 -- .../en/System.Reflection.Emit/OperandType.xml | 9 - .../en/System.Reflection.Emit/PEFileKinds.xml | 9 - .../en/System.Reflection.Emit/PackingSize.xml | 9 - .../ParameterBuilder.xml | 68 - .../System.Reflection.Emit/ParameterToken.xml | 28 - .../PropertyBuilder.xml | 164 - .../System.Reflection.Emit/PropertyToken.xml | 28 - .../SignatureHelper.xml | 76 - .../System.Reflection.Emit/SignatureToken.xml | 28 - .../System.Reflection.Emit/StackBehaviour.xml | 9 - .../en/System.Reflection.Emit/StringToken.xml | 28 - .../en/System.Reflection.Emit/TypeBuilder.xml | 403 - .../en/System.Reflection.Emit/TypeToken.xml | 28 - .../UnmanagedMarshal.xml | 62 - .../AmbiguousMatchException.xml | 23 - .../xml/en/System.Reflection/Assembly.xml | 277 - .../AssemblyAlgorithmIdAttribute.xml | 23 - .../AssemblyCompanyAttribute.xml | 18 - .../AssemblyConfigurationAttribute.xml | 18 - .../AssemblyCopyrightAttribute.xml | 18 - .../AssemblyCultureAttribute.xml | 18 - .../AssemblyDefaultAliasAttribute.xml | 18 - .../AssemblyDelaySignAttribute.xml | 18 - .../AssemblyDescriptionAttribute.xml | 18 - .../AssemblyFileVersionAttribute.xml | 18 - .../AssemblyFlagsAttribute.xml | 18 - .../AssemblyInformationalVersionAttribute.xml | 18 - .../AssemblyKeyFileAttribute.xml | 18 - .../AssemblyKeyNameAttribute.xml | 18 - .../xml/en/System.Reflection/AssemblyName.xml | 45 - .../System.Reflection/AssemblyNameFlags.xml | 9 - .../System.Reflection/AssemblyNameProxy.xml | 18 - .../AssemblyProductAttribute.xml | 18 - .../AssemblyTitleAttribute.xml | 18 - .../AssemblyTrademarkAttribute.xml | 18 - .../AssemblyVersionAttribute.xml | 18 - .../xml/en/System.Reflection/Binder.xml | 8 - .../xml/en/System.Reflection/BindingFlags.xml | 9 - .../System.Reflection/CallingConventions.xml | 9 - .../en/System.Reflection/ConstructorInfo.xml | 36 - .../CustomAttributeFormatException.xml | 23 - .../DefaultMemberAttribute.xml | 18 - .../en/System.Reflection/EventAttributes.xml | 9 - .../xml/en/System.Reflection/EventInfo.xml | 115 - .../en/System.Reflection/FieldAttributes.xml | 9 - .../xml/en/System.Reflection/FieldInfo.xml | 66 - .../ICustomAttributeProvider.xml | 8 - .../xml/en/System.Reflection/IReflect.xml | 8 - .../en/System.Reflection/InterfaceMapping.xml | 24 - .../InvalidFilterCriteriaException.xml | 23 - .../ManifestResourceInfo.xml | 12 - .../xml/en/System.Reflection/MemberFilter.xml | 8 - .../xml/en/System.Reflection/MemberInfo.xml | 48 - .../xml/en/System.Reflection/MemberTypes.xml | 9 - .../en/System.Reflection/MethodAttributes.xml | 9 - .../xml/en/System.Reflection/MethodBase.xml | 126 - .../MethodImplAttributes.xml | 9 - .../xml/en/System.Reflection/MethodInfo.xml | 28 - .../xml/en/System.Reflection/Missing.xml | 12 - .../xml/en/System.Reflection/Module.xml | 158 - .../xml/en/System.Reflection/MonoEvent.xml | 45 - .../System.Reflection/ParameterAttributes.xml | 9 - .../en/System.Reflection/ParameterInfo.xml | 83 - .../System.Reflection/ParameterModifier.xml | 18 - .../System.Reflection/PropertyAttributes.xml | 9 - .../xml/en/System.Reflection/PropertyInfo.xml | 112 - .../ReflectionTypeLoadException.xml | 38 - .../System.Reflection/ResourceAttributes.xml | 9 - .../en/System.Reflection/ResourceLocation.xml | 9 - .../System.Reflection/StrongNameKeyPair.xml | 28 - .../en/System.Reflection/TargetException.xml | 23 - .../TargetInvocationException.xml | 8 - .../TargetParameterCountException.xml | 23 - .../en/System.Reflection/TypeAttributes.xml | 9 - .../en/System.Reflection/TypeDelegator.xml | 195 - .../xml/en/System.Reflection/TypeFilter.xml | 8 - .../en/System.Resources/IResourceReader.xml | 8 - .../en/System.Resources/IResourceWriter.xml | 8 - .../MissingManifestResourceException.xml | 23 - .../NeutralResourcesLanguageAttribute.xml | 18 - .../en/System.Resources/ResourceManager.xml | 79 - .../en/System.Resources/ResourceReader.xml | 28 - .../xml/en/System.Resources/ResourceSet.xml | 69 - .../en/System.Resources/ResourceWriter.xml | 54 - .../SatelliteContractVersionAttribute.xml | 18 - .../IndexerNameAttribute.xml | 13 - .../MethodCodeType.xml | 9 - .../MethodImplAttribute.xml | 31 - .../MethodImplOptions.xml | 9 - .../RuntimeHelpers.xml | 20 - .../AssemblyRegistrationFlags.xml | 9 - .../CallingConvention.xml | 9 - .../CharSet.xml | 9 - .../ClassInterfaceAttribute.xml | 23 - .../ClassInterfaceType.xml | 9 - .../ComInterfaceType.xml | 9 - .../DllImportAttribute.xml | 42 - .../ExporterEventKind.xml | 9 - .../ExternalException.xml | 34 - .../FieldOffsetAttribute.xml | 18 - .../GCHandle.xml | 53 - .../GCHandleType.xml | 9 - .../GuidAttribute.xml | 18 - .../ICustomAdapter.xml | 8 - .../ICustomFactory.xml | 8 - .../ICustomMarshaler.xml | 8 - .../IRegistrationServices.xml | 8 - .../ITypeLibConverter.xml | 8 - .../ITypeLibExporterNameProvider.xml | 8 - .../ITypeLibExporterNotifySink.xml | 8 - .../ITypeLibImporterNotifySink.xml | 8 - .../ImporterEventKind.xml | 9 - .../InAttribute.xml | 12 - .../InterfaceTypeAttribute.xml | 23 - .../LayoutKind.xml | 9 - .../MarshalAsAttribute.xml | 51 - .../OptionalAttribute.xml | 12 - .../OutAttribute.xml | 17 - .../PInvokeMap.xml | 9 - .../StructLayoutAttribute.xml | 35 - .../TypeLibExporterFlags.xml | 9 - .../UnmanagedType.xml | 9 - .../VarEnum.xml | 9 - .../ActivatorLevel.xml | 9 - .../IActivator.xml | 8 - .../IConstructionCallMessage.xml | 8 - .../IConstructionReturnMessage.xml | 8 - .../Context.xml | 34 - .../ContextAttribute.xml | 53 - .../IContextAttribute.xml | 8 - .../IContextProperty.xml | 8 - .../IDynamicMessageSink.xml | 8 - .../IDynamicProperty.xml | 8 - .../SynchronizationAttribute.xml | 8 - .../AsyncResult.xml | 42 - .../Header.xml | 45 - .../IMessage.xml | 8 - .../IMessageCtrl.xml | 8 - .../IMessageSink.xml | 8 - .../IMethodCallMessage.xml | 8 - .../IMethodMessage.xml | 8 - .../IMethodReturnMessage.xml | 8 - .../LogicalCallContext.xml | 44 - .../RealProxy.xml | 19 - .../en/System.Runtime.Remoting/LeaseState.xml | 9 - .../xml/en/System.Runtime.Remoting/ObjRef.xml | 41 - .../System.Runtime.Remoting/ObjectHandle.xml | 29 - .../RemotingServices.xml | 21 - .../SoapMethodOption.xml | 9 - .../en/System.Runtime.Remoting/SoapOption.xml | 9 - .../WellKnownObjectMode.xml | 9 - .../BinaryArrayTypeEnum.xml | 9 - .../FormatterAssemblyStyle.xml | 9 - .../FormatterTopObjectStyle.xml | 9 - .../FormatterTypeStyle.xml | 9 - .../IFieldInfo.xml | 8 - .../ISoapMessage.xml | 8 - .../InternalArrayTypeE.xml | 9 - .../InternalElementTypeE.xml | 9 - .../InternalMemberTypeE.xml | 9 - .../InternalMemberValueE.xml | 9 - .../InternalNameSpaceE.xml | 9 - .../InternalObjectPositionE.xml | 9 - .../InternalObjectTypeE.xml | 9 - .../InternalParseStateE.xml | 9 - .../InternalParseTypeE.xml | 9 - .../InternalPrimitiveTypeE.xml | 9 - .../InternalSerializerTypeE.xml | 9 - .../IDeserializationCallback.xml | 8 - .../IFormatter.xml | 8 - .../IFormatterConverter.xml | 8 - .../IObjectReference.xml | 8 - .../ISerializable.xml | 8 - .../ISerializationSurrogate.xml | 8 - .../ISurrogateSelector.xml | 8 - .../ObjectIDGenerator.xml | 26 - .../SerializationBinder.xml | 15 - .../SerializationEntry.xml | 23 - .../SerializationException.xml | 23 - .../SerializationInfo.xml | 250 - .../SerializationInfoEnumerator.xml | 38 - .../StreamingContext.xml | 40 - .../StreamingContextStates.xml | 9 - .../SurrogateSelector.xml | 46 - .../X509Certificate.xml | 8 - .../AsymmetricAlgorithm.xml | 57 - .../AsymmetricKeyExchangeDeformatter.xml | 29 - .../AsymmetricKeyExchangeFormatter.xml | 36 - .../AsymmetricSignatureDeformatter.xml | 38 - .../AsymmetricSignatureFormatter.xml | 36 - .../CipherMode.xml | 9 - .../CryptoAPITransform.xml | 50 - .../CryptoStream.xml | 79 - .../CryptoStreamMode.xml | 9 - .../CryptographicException.xml | 34 - ...ptographicUnexpectedOperationException.xml | 29 - .../CspParameters.xml | 51 - .../CspProviderFlags.xml | 9 - .../en/System.Security.Cryptography/DES.xml | 40 - .../DESCryptoServiceProvider.xml | 37 - .../en/System.Security.Cryptography/DSA.xml | 56 - .../DSACryptoServiceProvider.xml | 124 - .../DSAParameters.xml | 40 - .../DSASignatureDeformatter.xml | 36 - .../DSASignatureFormatter.xml | 35 - .../DeriveBytes.xml | 19 - .../FromBase64Transform.xml | 55 - .../FromBase64TransformMode.xml | 9 - .../HashAlgorithm.xml | 73 - .../ICryptoTransform.xml | 8 - .../System.Security.Cryptography/KeySizes.xml | 30 - .../en/System.Security.Cryptography/MD5.xml | 19 - .../MD5CryptoServiceProvider.xml | 17 - .../PaddingMode.xml | 9 - .../RNGCryptoServiceProvider.xml | 39 - .../en/System.Security.Cryptography/RSA.xml | 59 - .../RSAParameters.xml | 40 - .../RandomNumberGenerator.xml | 35 - .../System.Security.Cryptography/Rijndael.xml | 23 - .../RijndaelManaged.xml | 36 - .../en/System.Security.Cryptography/SHA1.xml | 19 - .../SHA1CryptoServiceProvider.xml | 17 - .../System.Security.Cryptography/SHA256.xml | 23 - .../SHA256Managed.xml | 32 - .../System.Security.Cryptography/SHA384.xml | 23 - .../SHA384Managed.xml | 17 - .../System.Security.Cryptography/SHA512.xml | 23 - .../SHA512Managed.xml | 17 - .../SignatureDescription.xml | 50 - .../SymmetricAlgorithm.xml | 108 - .../ToBase64Transform.xml | 50 - .../CodeAccessSecurityAttribute.xml | 13 - .../EnvironmentPermissionAccess.xml | 9 - .../EnvironmentPermissionAttribute.xml | 33 - .../FileDialogPermissionAccess.xml | 9 - .../FileDialogPermissionAttribute.xml | 28 - .../FileIOPermission.xml | 108 - .../FileIOPermissionAccess.xml | 9 - .../FileIOPermissionAttribute.xml | 43 - .../IUnrestrictedPermission.xml | 8 - .../IsolatedStorageContainment.xml | 9 - ...IsolatedStorageFilePermissionAttribute.xml | 18 - .../IsolatedStoragePermission.xml | 23 - .../IsolatedStoragePermissionAttribute.xml | 28 - .../PermissionSetAttribute.xml | 43 - .../PermissionState.xml | 9 - .../PrinciplePermissionAttribute.xml | 33 - .../ReflectionPermissionAttribute.xml | 38 - .../ReflectionPermissionFlag.xml | 9 - .../RegistryPermissionAccess.xml | 9 - .../RegistryPermissionAttribute.xml | 38 - .../SecurityAction.xml | 9 - .../SecurityAttribute.xml | 28 - .../SecurityPermission.xml | 62 - .../SecurityPermissionFlag.xml | 9 - .../SiteIdentityPermissionAttribute.xml | 23 - .../StrongNameIdentityPermissionAttribute.xml | 33 - .../UIPermissionAttribute.xml | 28 - .../UIPermissionClipboard.xml | 9 - .../UIPermissionWindow.xml | 9 - .../UrlIdentityPermissionAttribute.xml | 23 - .../ZoneIdentityPermissionAttribute.xml | 23 - .../AllMembershipCondition.xml | 63 - ...pplicationDirectoryMembershipCondition.xml | 63 - .../en/System.Security.Policy/CodeGroup.xml | 125 - .../en/System.Security.Policy/Evidence.xml | 17 - .../System.Security.Policy/FileCodeGroup.xml | 57 - .../IIdentityPermissionFactory.xml | 8 - .../IMembershipCondition.xml | 8 - .../PolicyException.xml | 23 - .../en/System.Security.Policy/PolicyLevel.xml | 33 - .../PolicyStatement.xml | 58 - .../PolicyStatementAttribute.xml | 9 - .../GenericIdentity.xml | 34 - .../GenericPrincipal.xml | 25 - .../System.Security.Principal/IIdentity.xml | 8 - .../System.Security.Principal/IPrincipal.xml | 8 - .../PrincipalPolicy.xml | 9 - .../System.Security/CodeAccessPermission.xml | 67 - .../en/System.Security/IEvidenceFactory.xml | 8 - .../xml/en/System.Security/IPermission.xml | 8 - .../en/System.Security/ISecurityEncodable.xml | 8 - .../ISecurityPolicyEncodable.xml | 8 - .../xml/en/System.Security/IStackWalk.xml | 8 - .../en/System.Security/NamedPermissionSet.xml | 62 - .../xml/en/System.Security/PermissionSet.xml | 89 - .../en/System.Security/PolicyLevelType.xml | 9 - .../en/System.Security/SecurityElement.xml | 94 - .../en/System.Security/SecurityException.xml | 58 - .../en/System.Security/SecurityManager.xml | 76 - .../xml/en/System.Security/SecurityZone.xml | 9 - ...SuppressUnmanagedCodeSecurityAttribute.xml | 12 - .../UnverifiableCodeAttribute.xml | 12 - .../System.Security/VerificationException.xml | 23 - .../en/System.Security/XmlSyntaxException.xml | 34 - .../Capture.xml | 48 - .../CaptureCollection.xml | 13 - .../CostDelegate.xml | 8 - .../System.Text.RegularExpressions/Group.xml | 24 - .../GroupCollection.xml | 13 - .../System.Text.RegularExpressions/Match.xml | 40 - .../MatchCollection.xml | 13 - .../MatchEvaluator.xml | 8 - .../System.Text.RegularExpressions/Regex.xml | 291 - .../RegexCollectionBase.xml | 40 - .../RegexCompilationInfo.xml | 42 - .../RegexOptions.xml | 9 - .../xml/en/System.Text/ASCIIEncoding.xml | 102 - .../apidocs/xml/en/System.Text/Decoder.xml | 26 - .../apidocs/xml/en/System.Text/Encoder.xml | 28 - .../apidocs/xml/en/System.Text/Encoding.xml | 268 - .../xml/en/System.Text/StringBuilder.xml | 412 - .../xml/en/System.Text/UTF7Encoding.xml | 24 - .../xml/en/System.Text/UTF8Encoding.xml | 24 - .../xml/en/System.Text/UnicodeEncoding.xml | 30 - .../en/System.Threading/ApartmentState.xml | 9 - .../en/System.Threading/AutoResetEvent.xml | 23 - .../System.Threading/IOCompletionCallback.xml | 8 - .../xml/en/System.Threading/Interlocked.xml | 77 - .../xml/en/System.Threading/LockCookie.xml | 8 - .../en/System.Threading/ManualResetEvent.xml | 23 - .../xml/en/System.Threading/Monitor.xml | 88 - .../apidocs/xml/en/System.Threading/Mutex.xml | 35 - .../en/System.Threading/NativeOverlapped.xml | 28 - .../xml/en/System.Threading/Overlapped.xml | 64 - .../en/System.Threading/ReaderWriterLock.xml | 96 - .../System.Threading/RegisteredWaitHandle.xml | 14 - .../SynchronizationLockException.xml | 23 - .../xml/en/System.Threading/Thread.xml | 179 - .../System.Threading/ThreadAbortException.xml | 13 - .../ThreadExceptionEventArgs.xml | 18 - .../ThreadExceptionEventHandler.xml | 8 - .../ThreadInterruptedException.xml | 23 - .../xml/en/System.Threading/ThreadPool.xml | 114 - .../en/System.Threading/ThreadPriority.xml | 9 - .../xml/en/System.Threading/ThreadStart.xml | 8 - .../xml/en/System.Threading/ThreadState.xml | 9 - .../System.Threading/ThreadStateException.xml | 23 - .../xml/en/System.Threading/Timeout.xml | 12 - .../apidocs/xml/en/System.Threading/Timer.xml | 79 - .../xml/en/System.Threading/TimerCallback.xml | 8 - .../xml/en/System.Threading/WaitCallback.xml | 8 - .../xml/en/System.Threading/WaitHandle.xml | 94 - .../System.Threading/WaitOrTimerCallback.xml | 8 - .../xml/en/System.Web.Caching/Cache.xml | 114 - .../en/System.Web.Caching/CacheDependency.xml | 53 - .../CacheDependencyCallback.xml | 8 - .../xml/en/System.Web.Caching/CacheEntry.xml | 106 - .../en/System.Web.Caching/CacheExpires.xml | 43 - .../System.Web.Caching/CacheItemPriority.xml | 9 - .../CacheItemPriorityDecay.xml | 9 - .../CacheItemRemovedCallback.xml | 8 - .../CacheItemRemovedReason.xml | 9 - .../en/System.Web.Caching/ExpiresBucket.xml | 48 - .../en/System.Web.Caching/ExpiresEntry.xml | 20 - .../xml/en/System.Web.Caching/Flags.xml | 9 - .../AuthenticationMode.xml | 9 - .../ClientTargetSectionHandler.xml | 22 - .../FormsAuthPasswordFormat.xml | 9 - .../FormsProtectionEnum.xml | 9 - .../AdCreatedEventArgs.xml | 33 - .../AdCreatedEventHandler.xml | 8 - .../System.Web.UI.WebControls/AdRotator.xml | 37 - .../BaseCompareValidator.xml | 25 - .../BaseDataList.xml | 78 - .../BaseValidator.xml | 64 - .../System.Web.UI.WebControls/BorderStyle.xml | 9 - .../System.Web.UI.WebControls/BoundColumn.xml | 44 - .../en/System.Web.UI.WebControls/Button.xml | 42 - .../ButtonColumn.xml | 50 - .../ButtonColumnType.xml | 9 - .../en/System.Web.UI.WebControls/Calendar.xml | 167 - .../System.Web.UI.WebControls/CalendarDay.xml | 53 - .../CalendarSelectionMode.xml | 9 - .../en/System.Web.UI.WebControls/CheckBox.xml | 42 - .../CheckBoxList.xml | 42 - .../CommandEventArgs.xml | 29 - .../CommandEventHandler.xml | 8 - .../CompareValidator.xml | 27 - .../CustomValidator.xml | 22 - .../en/System.Web.UI.WebControls/DataGrid.xml | 208 - .../DataGridColumn.xml | 90 - .../DataGridColumnCollection.xml | 87 - .../DataGridCommandEventArgs.xml | 25 - .../DataGridCommandEventHandler.xml | 8 - .../DataGridItem.xml | 35 - .../DataGridItemCollection.xml | 50 - .../DataGridItemEventArgs.xml | 18 - .../DataGridItemEventHandler.xml | 8 - .../DataGridPageChangedEventArgs.xml | 24 - .../DataGridPageChangedEventHandler.xml | 8 - .../DataGridPagerStyle.xml | 55 - .../DataGridSortCommandEventArgs.xml | 24 - .../DataGridSortCommandEventHandler.xml | 8 - .../DataKeyCollection.xml | 50 - .../en/System.Web.UI.WebControls/DataList.xml | 197 - .../DataListCommandEventArgs.xml | 25 - .../DataListCommandEventHandler.xml | 8 - .../DataListItem.xml | 37 - .../DataListItemCollection.xml | 50 - .../DataListItemEventArgs.xml | 18 - .../DataListItemEventHandler.xml | 8 - .../DayNameFormat.xml | 9 - .../DayRenderEventArgs.xml | 24 - .../DayRenderEventHandler.xml | 8 - .../DropDownList.xml | 37 - .../EditCommandColumn.xml | 40 - .../FirstDayOfWeek.xml | 9 - .../en/System.Web.UI.WebControls/FontInfo.xml | 75 - .../FontNamesConverter.xml | 36 - .../en/System.Web.UI.WebControls/FontSize.xml | 9 - .../en/System.Web.UI.WebControls/FontUnit.xml | 150 - .../FontUnitConverter.xml | 54 - .../System.Web.UI.WebControls/GridLines.xml | 9 - .../HorizontalAlign.xml | 9 - .../System.Web.UI.WebControls/HyperLink.xml | 32 - .../HyperLinkColumn.xml | 60 - .../HyperLinkControlBuilder.xml | 17 - .../IRepeatInfoUser.xml | 8 - .../en/System.Web.UI.WebControls/Image.xml | 37 - .../System.Web.UI.WebControls/ImageAlign.xml | 9 - .../System.Web.UI.WebControls/ImageButton.xml | 42 - .../en/System.Web.UI.WebControls/Label.xml | 17 - .../LabelControlBuilder.xml | 17 - .../System.Web.UI.WebControls/LinkButton.xml | 42 - .../LinkButtonControlBuilder.xml | 17 - .../en/System.Web.UI.WebControls/ListBox.xml | 42 - .../System.Web.UI.WebControls/ListControl.xml | 77 - .../en/System.Web.UI.WebControls/ListItem.xml | 59 - .../ListItemCollection.xml | 133 - .../ListItemControlBuilder.xml | 22 - .../ListItemType.xml | 9 - .../ListSelectionMode.xml | 9 - .../en/System.Web.UI.WebControls/Literal.xml | 17 - .../LiteralControlBuilder.xml | 23 - .../MonthChangedEventArgs.xml | 24 - .../MonthChangedEventHandler.xml | 8 - .../NextPrevFormat.xml | 9 - .../PagedDataSource.xml | 121 - .../System.Web.UI.WebControls/PagerMode.xml | 9 - .../PagerPosition.xml | 9 - .../en/System.Web.UI.WebControls/Panel.xml | 27 - .../System.Web.UI.WebControls/PlaceHolder.xml | 12 - .../PlaceHolderControlBuilder.xml | 17 - .../System.Web.UI.WebControls/RadioButton.xml | 27 - .../RadioButtonList.xml | 42 - .../RangeValidator.xml | 22 - .../RegularExpressionValidator.xml | 17 - .../RepeatDirection.xml | 9 - .../System.Web.UI.WebControls/RepeatInfo.xml | 41 - .../RepeatLayout.xml | 9 - .../en/System.Web.UI.WebControls/Repeater.xml | 77 - .../RepeaterCommandEventArgs.xml | 25 - .../RepeaterCommandEventHandler.xml | 8 - .../RepeaterItem.xml | 29 - .../RepeaterItemCollection.xml | 50 - .../RepeaterItemEventArgs.xml | 18 - .../RepeaterItemEventHandler.xml | 8 - .../RequiredFieldValidator.xml | 17 - .../SelectedDatesCollection.xml | 80 - .../ServerValidateEventArgs.xml | 24 - .../ServerValidateEventHandler.xml | 8 - .../en/System.Web.UI.WebControls/Style.xml | 112 - .../en/System.Web.UI.WebControls/Table.xml | 42 - .../System.Web.UI.WebControls/TableCell.xml | 42 - .../TableCellCollection.xml | 87 - .../TableCellControlBuilder.xml | 17 - .../TableHeaderCell.xml | 12 - .../TableItemStyle.xml | 56 - .../en/System.Web.UI.WebControls/TableRow.xml | 27 - .../TableRowCollection.xml | 87 - .../System.Web.UI.WebControls/TableStyle.xml | 66 - .../TargetConverter.xml | 30 - .../TemplateColumn.xml | 40 - .../System.Web.UI.WebControls/TextAlign.xml | 9 - .../en/System.Web.UI.WebControls/TextBox.xml | 62 - .../TextBoxControlBuilder.xml | 22 - .../System.Web.UI.WebControls/TextBoxMode.xml | 9 - .../System.Web.UI.WebControls/TitleFormat.xml | 9 - .../xml/en/System.Web.UI.WebControls/Unit.xml | 127 - .../UnitConverter.xml | 36 - .../en/System.Web.UI.WebControls/UnitType.xml | 9 - .../ValidatedControlConverter.xml | 30 - .../ValidationCompareOperator.xml | 9 - .../ValidationDataType.xml | 9 - .../ValidationSummary.xml | 42 - .../ValidationSummaryDisplayMode.xml | 9 - .../ValidatorDisplay.xml | 9 - .../VerticalAlign.xml | 9 - .../WebColorConverter.xml | 29 - .../System.Web.UI.WebControls/WebControl.xml | 138 - .../xml/en/System.Web.UI.WebControls/Xml.xml | 42 - .../xml/en/System.Web.UI/BuildMethod.xml | 8 - .../en/System.Web.UI/BuildTemplateMethod.xml | 8 - .../apidocs/xml/en/System.Web.UI/Control.xml | 171 - .../DataBindingHandlerAttribute.xml | 31 - .../en/System.Web.UI/DesignTimeParseData.xml | 17 - .../xml/en/System.Web.UI/HtmlTextWriter.xml | 409 - .../System.Web.UI/HtmlTextWriterAttribute.xml | 9 - .../en/System.Web.UI/HtmlTextWriterStyle.xml | 9 - .../en/System.Web.UI/HtmlTextWriterTag.xml | 9 - .../en/System.Web.UI/IAttributeAccessor.xml | 8 - .../System.Web.UI/IDataBindingsAccessor.xml | 8 - .../xml/en/System.Web.UI/INamingContainer.xml | 8 - .../xml/en/System.Web.UI/IParserAccessor.xml | 8 - .../en/System.Web.UI/IPostBackDataHandler.xml | 8 - .../System.Web.UI/IPostBackEventHandler.xml | 8 - .../xml/en/System.Web.UI/IStateManager.xml | 8 - .../en/System.Web.UI/ITagNameToTypeMapper.xml | 8 - .../xml/en/System.Web.UI/ITemplate.xml | 8 - .../xml/en/System.Web.UI/IValidator.xml | 8 - .../System.Web.UI/ImageClickEventHandler.xml | 8 - .../xml/en/System.Web.UI/LiteralControl.xml | 22 - .../en/System.Web.UI/OutputCacheLocation.xml | 9 - .../apidocs/xml/en/System.Web.UI/Pair.xml | 26 - .../xml/en/System.Web.UI/PersistenceMode.xml | 9 - .../en/System.Web.UI/PropertyConverter.xml | 30 - .../apidocs/xml/en/System.Web.UI/StateBag.xml | 78 - .../xml/en/System.Web.UI/StateItem.xml | 18 - .../en/System.Web.UI/ToolboxDataAttribute.xml | 38 - .../xml/en/System.Web.Utils/FileAction.xml | 9 - .../FileChangeEventHandler.xml | 8 - .../NativeFileChangeEventHandler.xml | 8 - .../en/System.Web.Utils/WebEqualComparer.xml | 17 - .../System.Web.Utils/WebHashCodeProvider.xml | 17 - .../xml/en/System.Web/BeginEventHandler.xml | 8 - .../xml/en/System.Web/EndEventHandler.xml | 8 - .../en/System.Web/EndOfSendNotification.xml | 8 - .../en/System.Web/HttpCacheRevalidation.xml | 9 - .../xml/en/System.Web/HttpCacheability.xml | 9 - .../apidocs/xml/en/System.Web/HttpCookie.xml | 64 - .../en/System.Web/HttpCookieCollection.xml | 63 - .../apidocs/xml/en/System.Web/HttpRuntime.xml | 102 - .../xml/en/System.Web/HttpServerUtility.xml | 140 - .../en/System.Web/HttpValidationStatus.xml | 9 - .../xml/en/System.Web/HttpWorkerRequest.xml | 12 - .../en/System.Web/ProcessShutdownReason.xml | 9 - .../xml/en/System.Web/ProcessStatus.xml | 9 - .../apidocs/xml/en/System.Web/TraceMode.xml | 9 - .../System.Xml.Schema/ValidationEventArgs.xml | 23 - .../ValidationEventHandler.xml | 8 - .../xml/en/System.Xml.Schema/XmlSchema.xml | 176 - .../xml/en/System.Xml.Schema/XmlSchemaAll.xml | 17 - .../System.Xml.Schema/XmlSchemaAnnotated.xml | 27 - .../System.Xml.Schema/XmlSchemaAnnotation.xml | 27 - .../xml/en/System.Xml.Schema/XmlSchemaAny.xml | 22 - .../XmlSchemaAnyAttribute.xml | 22 - .../en/System.Xml.Schema/XmlSchemaAppInfo.xml | 22 - .../System.Xml.Schema/XmlSchemaAttribute.xml | 62 - .../XmlSchemaAttributeGroup.xml | 32 - .../XmlSchemaAttributeGroupRef.xml | 17 - .../en/System.Xml.Schema/XmlSchemaChoice.xml | 17 - .../System.Xml.Schema/XmlSchemaCollection.xml | 87 - .../XmlSchemaCollectionEnumerator.xml | 18 - .../XmlSchemaComplexContent.xml | 22 - .../XmlSchemaComplexContentExtension.xml | 32 - .../XmlSchemaComplexContentRestriction.xml | 32 - .../XmlSchemaComplexType.xml | 72 - .../en/System.Xml.Schema/XmlSchemaContent.xml | 8 - .../XmlSchemaContentModel.xml | 13 - .../XmlSchemaContentProcessing.xml | 9 - .../XmlSchemaContentType.xml | 9 - .../System.Xml.Schema/XmlSchemaDatatype.xml | 26 - .../XmlSchemaDerivationMethod.xml | 9 - .../XmlSchemaDocumentation.xml | 27 - .../en/System.Xml.Schema/XmlSchemaElement.xml | 97 - .../XmlSchemaEnumerationFacet.xml | 12 - .../System.Xml.Schema/XmlSchemaException.xml | 46 - .../System.Xml.Schema/XmlSchemaExternal.xml | 28 - .../en/System.Xml.Schema/XmlSchemaFacet.xml | 18 - .../en/System.Xml.Schema/XmlSchemaForm.xml | 9 - .../XmlSchemaFractionDigitsFacet.xml | 12 - .../en/System.Xml.Schema/XmlSchemaGroup.xml | 22 - .../System.Xml.Schema/XmlSchemaGroupBase.xml | 13 - .../System.Xml.Schema/XmlSchemaGroupRef.xml | 22 - .../XmlSchemaIdentityConstraint.xml | 32 - .../en/System.Xml.Schema/XmlSchemaImport.xml | 22 - .../en/System.Xml.Schema/XmlSchemaInclude.xml | 17 - .../xml/en/System.Xml.Schema/XmlSchemaKey.xml | 12 - .../en/System.Xml.Schema/XmlSchemaKeyref.xml | 17 - .../XmlSchemaLengthFacet.xml | 12 - .../XmlSchemaMaxExclusiveFacet.xml | 12 - .../XmlSchemaMaxInclusiveFacet.xml | 12 - .../XmlSchemaMaxLengthFacet.xml | 12 - .../XmlSchemaMinExclusiveFacet.xml | 12 - .../XmlSchemaMinInclusiveFacet.xml | 12 - .../XmlSchemaMinLengthFacet.xml | 12 - .../System.Xml.Schema/XmlSchemaNotation.xml | 27 - .../XmlSchemaNumericFacet.xml | 8 - .../en/System.Xml.Schema/XmlSchemaObject.xml | 28 - .../XmlSchemaObjectCollection.xml | 65 - .../XmlSchemaObjectEnumerator.xml | 23 - .../XmlSchemaObjectTable.xml | 39 - .../System.Xml.Schema/XmlSchemaParticle.xml | 28 - .../XmlSchemaPatternFacet.xml | 12 - .../System.Xml.Schema/XmlSchemaRedefine.xml | 32 - .../System.Xml.Schema/XmlSchemaSequence.xml | 17 - .../XmlSchemaSimpleContent.xml | 17 - .../XmlSchemaSimpleContentExtension.xml | 27 - .../XmlSchemaSimpleContentRestriction.xml | 37 - .../System.Xml.Schema/XmlSchemaSimpleType.xml | 17 - .../XmlSchemaSimpleTypeContent.xml | 8 - .../XmlSchemaSimpleTypeList.xml | 22 - .../XmlSchemaSimpleTypeRestriction.xml | 27 - .../XmlSchemaSimpleTypeUnion.xml | 22 - .../XmlSchemaTotalDigitsFacet.xml | 12 - .../en/System.Xml.Schema/XmlSchemaType.xml | 52 - .../en/System.Xml.Schema/XmlSchemaUnique.xml | 12 - .../xml/en/System.Xml.Schema/XmlSchemaUse.xml | 9 - .../XmlSchemaWhiteSpaceFacet.xml | 12 - .../en/System.Xml.Schema/XmlSchemaXPath.xml | 17 - .../en/System.Xml.Schema/XmlSeverityType.xml | 9 - .../en/System.Xml.XPath/IXPathNavigable.xml | 8 - .../en/System.Xml.XPath/XPathExpression.xml | 46 - .../System.Xml.XPath/XPathNamespaceScope.xml | 9 - .../en/System.Xml.XPath/XPathNavigator.xml | 288 - .../en/System.Xml.XPath/XPathNodeIterator.xml | 33 - .../xml/en/System.Xml.XPath/XPathNodeType.xml | 9 - .../en/System.Xml.XPath/XPathResultType.xml | 9 - .../xml/en/System.Xml.XPath/XPathScanner.xml | 28 - .../en/System.Xml.XPath/XPathTokenType.xml | 9 - .../xml/en/System.Xml.XPath/XmlDataType.xml | 9 - .../xml/en/System.Xml.XPath/XmlSortOrder.xml | 9 - .../xml/en/System.Xml/EntityHandling.xml | 9 - .../apidocs/xml/en/System.Xml/Formatting.xml | 9 - .../apidocs/xml/en/System.Xml/IHasXmlNode.xml | 8 - .../xml/en/System.Xml/IXmlLineInfo.xml | 8 - .../apidocs/xml/en/System.Xml/NameTable.xml | 40 - .../apidocs/xml/en/System.Xml/ReadState.xml | 9 - .../xml/en/System.Xml/ValidationType.xml | 9 - .../xml/en/System.Xml/WhitespaceHandling.xml | 9 - .../apidocs/xml/en/System.Xml/WriteState.xml | 9 - .../xml/en/System.Xml/XmlAttribute.xml | 96 - .../en/System.Xml/XmlAttributeCollection.xml | 79 - .../xml/en/System.Xml/XmlCDataSection.xml | 41 - .../xml/en/System.Xml/XmlCaseOrder.xml | 9 - .../xml/en/System.Xml/XmlCharacterData.xml | 63 - .../apidocs/xml/en/System.Xml/XmlComment.xml | 41 - .../xml/en/System.Xml/XmlDeclaration.xml | 66 - .../apidocs/xml/en/System.Xml/XmlDocument.xml | 353 - .../xml/en/System.Xml/XmlDocumentFragment.xml | 56 - .../xml/en/System.Xml/XmlDocumentType.xml | 71 - .../apidocs/xml/en/System.Xml/XmlElement.xml | 213 - .../apidocs/xml/en/System.Xml/XmlEntity.xml | 81 - .../xml/en/System.Xml/XmlEntityReference.xml | 56 - .../xml/en/System.Xml/XmlException.xml | 36 - .../xml/en/System.Xml/XmlImplementation.xml | 24 - .../xml/en/System.Xml/XmlLinkedNode.xml | 23 - .../xml/en/System.Xml/XmlNameTable.xml | 36 - .../xml/en/System.Xml/XmlNamedNodeMap.xml | 56 - .../xml/en/System.Xml/XmlNamespaceManager.xml | 70 - .../apidocs/xml/en/System.Xml/XmlNode.xml | 250 - .../en/System.Xml/XmlNodeChangedAction.xml | 9 - .../en/System.Xml/XmlNodeChangedEventArgs.xml | 28 - .../System.Xml/XmlNodeChangedEventHandler.xml | 8 - .../apidocs/xml/en/System.Xml/XmlNodeList.xml | 29 - .../xml/en/System.Xml/XmlNodeOrder.xml | 9 - .../apidocs/xml/en/System.Xml/XmlNodeType.xml | 9 - .../apidocs/xml/en/System.Xml/XmlNotation.xml | 66 - .../xml/en/System.Xml/XmlParserContext.xml | 102 - .../System.Xml/XmlProcessingInstruction.xml | 61 - .../xml/en/System.Xml/XmlQualifiedName.xml | 79 - .../apidocs/xml/en/System.Xml/XmlReader.xml | 298 - .../apidocs/xml/en/System.Xml/XmlResolver.xml | 28 - .../System.Xml/XmlSignificantWhitespace.xml | 46 - .../apidocs/xml/en/System.Xml/XmlSpace.xml | 9 - .../apidocs/xml/en/System.Xml/XmlText.xml | 52 - .../xml/en/System.Xml/XmlTextReader.xml | 349 - .../xml/en/System.Xml/XmlTextWriter.xml | 254 - .../xml/en/System.Xml/XmlTokenizedType.xml | 9 - .../xml/en/System.Xml/XmlUrlResolver.xml | 32 - .../xml/en/System.Xml/XmlWhitespace.xml | 46 - .../apidocs/xml/en/System.Xml/XmlWriter.xml | 275 - mcs/docs/apidocs/xml/en/System/AppDomain.xml | 426 - .../apidocs/xml/en/System/AppDomainSetup.xml | 67 - .../en/System/AppDomainUnloadedException.xml | 23 - .../xml/en/System/ApplicationException.xml | 23 - .../xml/en/System/ArgumentException.xml | 48 - .../xml/en/System/ArgumentNullException.xml | 23 - .../en/System/ArgumentOutOfRangeException.xml | 42 - .../xml/en/System/ArithmeticException.xml | 23 - mcs/docs/apidocs/xml/en/System/Array.xml | 366 - .../en/System/ArrayTypeMismatchException.xml | 23 - .../xml/en/System/AssemblyLoadEventArgs.xml | 18 - .../en/System/AssemblyLoadEventHandler.xml | 8 - .../apidocs/xml/en/System/AsyncCallback.xml | 8 - mcs/docs/apidocs/xml/en/System/Attribute.xml | 261 - .../xml/en/System/AttributeTargets.xml | 9 - .../xml/en/System/AttributeUsageAttribute.xml | 28 - .../xml/en/System/BadImageFormatException.xml | 63 - .../apidocs/xml/en/System/BitConverter.xml | 175 - mcs/docs/apidocs/xml/en/System/Boolean.xml | 150 - mcs/docs/apidocs/xml/en/System/Buffer.xml | 39 - mcs/docs/apidocs/xml/en/System/Byte.xml | 185 - .../xml/en/System/CLSCompliantAttribute.xml | 18 - .../System/CannotUnloadAppDomainException.xml | 23 - mcs/docs/apidocs/xml/en/System/Char.xml | 344 - .../apidocs/xml/en/System/CharEnumerator.xml | 28 - mcs/docs/apidocs/xml/en/System/Console.xml | 311 - .../xml/en/System/ContextBoundObject.xml | 8 - .../xml/en/System/ContextMarshalException.xml | 23 - .../xml/en/System/ContextStaticAttribute.xml | 12 - mcs/docs/apidocs/xml/en/System/Convert.xml | 1924 ---- .../xml/en/System/CrossAppDomainDelegate.xml | 8 - mcs/docs/apidocs/xml/en/System/DBNull.xml | 35 - mcs/docs/apidocs/xml/en/System/DateTime.xml | 565 -- mcs/docs/apidocs/xml/en/System/DayOfWeek.xml | 9 - mcs/docs/apidocs/xml/en/System/Decimal.xml | 454 - .../xml/en/System/DivideByZeroException.xml | 23 - .../xml/en/System/DllNotFoundException.xml | 23 - mcs/docs/apidocs/xml/en/System/Double.xml | 225 - .../System/DuplicateWaitObjectException.xml | 23 - .../en/System/EntryPointNotFoundException.xml | 23 - .../apidocs/xml/en/System/Environment.xml | 117 - mcs/docs/apidocs/xml/en/System/EventArgs.xml | 16 - .../apidocs/xml/en/System/EventHandler.xml | 8 - .../en/System/ExecutionEngineException.xml | 23 - .../xml/en/System/FieldAccessException.xml | 23 - .../apidocs/xml/en/System/FlagsAttribute.xml | 12 - .../apidocs/xml/en/System/FormatException.xml | 23 - mcs/docs/apidocs/xml/en/System/GC.xml | 14 - mcs/docs/apidocs/xml/en/System/Guid.xml | 119 - .../apidocs/xml/en/System/IAppDomainSetup.xml | 8 - .../apidocs/xml/en/System/IAsyncResult.xml | 8 - mcs/docs/apidocs/xml/en/System/ICloneable.xml | 8 - .../apidocs/xml/en/System/IComparable.xml | 8 - .../apidocs/xml/en/System/IConvertible.xml | 8 - .../apidocs/xml/en/System/IDisposable.xml | 8 - .../apidocs/xml/en/System/IFormatProvider.xml | 8 - .../apidocs/xml/en/System/IFormattable.xml | 8 - .../xml/en/System/IServiceProvider.xml | 8 - .../en/System/IndexOutOfRangeException.xml | 23 - mcs/docs/apidocs/xml/en/System/Int16.xml | 185 - mcs/docs/apidocs/xml/en/System/Int32.xml | 185 - mcs/docs/apidocs/xml/en/System/Int64.xml | 185 - mcs/docs/apidocs/xml/en/System/IntPtr.xml | 120 - .../xml/en/System/IntegerFormatter.xml | 76 - .../xml/en/System/InvalidCastException.xml | 23 - .../en/System/InvalidOperationException.xml | 23 - .../xml/en/System/InvalidProgramException.xml | 23 - .../xml/en/System/LoaderOptimization.xml | 9 - .../en/System/LoaderOptimizationAttribute.xml | 23 - .../xml/en/System/LocalDataStoreSlot.xml | 12 - .../xml/en/System/MTAThreadAttribute.xml | 12 - .../xml/en/System/MarshalByRefObject.xml | 24 - mcs/docs/apidocs/xml/en/System/Math.xml | 398 - .../xml/en/System/MemberAccessException.xml | 23 - .../xml/en/System/MethodAccessException.xml | 23 - .../xml/en/System/MissingFieldException.xml | 29 - .../xml/en/System/MissingMemberException.xml | 41 - .../xml/en/System/MissingMethodException.xml | 23 - mcs/docs/apidocs/xml/en/System/MonoDummy.xml | 12 - .../xml/en/System/MonoTODOAttribute.xml | 22 - .../System/MulticastNotSupportedException.xml | 23 - .../xml/en/System/NonSerializedAttribute.xml | 12 - .../en/System/NotFiniteNumberException.xml | 47 - .../xml/en/System/NotImplementedException.xml | 23 - .../xml/en/System/NotSupportedException.xml | 23 - .../xml/en/System/NullReferenceException.xml | 23 - .../xml/en/System/ObjectDisposedException.xml | 36 - .../xml/en/System/ObsoleteAttribute.xml | 33 - .../apidocs/xml/en/System/OperatingSystem.xml | 45 - .../xml/en/System/OutOfMemoryException.xml | 23 - .../xml/en/System/OverflowException.xml | 23 - .../xml/en/System/ParamArrayAttribute.xml | 12 - mcs/docs/apidocs/xml/en/System/PlatformID.xml | 9 - .../System/PlatformNotSupportedException.xml | 23 - mcs/docs/apidocs/xml/en/System/Random.xml | 46 - .../apidocs/xml/en/System/RankException.xml | 23 - .../xml/en/System/ResolveEventArgs.xml | 18 - .../xml/en/System/ResolveEventHandler.xml | 8 - .../xml/en/System/RuntimeArgumentHandle.xml | 8 - .../xml/en/System/RuntimeFieldHandle.xml | 20 - .../xml/en/System/RuntimeMethodHandle.xml | 20 - .../xml/en/System/RuntimeTypeHandle.xml | 20 - mcs/docs/apidocs/xml/en/System/SByte.xml | 185 - .../xml/en/System/STAThreadAttribute.xml | 12 - .../xml/en/System/SerializableAttribute.xml | 12 - mcs/docs/apidocs/xml/en/System/Single.xml | 225 - .../apidocs/xml/en/System/SpecialFolder.xml | 9 - .../xml/en/System/StackOverflowException.xml | 23 - mcs/docs/apidocs/xml/en/System/String.xml | 630 -- .../apidocs/xml/en/System/SystemException.xml | 23 - .../xml/en/System/ThreadStaticAttribute.xml | 12 - mcs/docs/apidocs/xml/en/System/TimeSpan.xml | 292 - mcs/docs/apidocs/xml/en/System/TimeZone.xml | 60 - mcs/docs/apidocs/xml/en/System/Type.xml | 758 -- mcs/docs/apidocs/xml/en/System/TypeCode.xml | 9 - .../en/System/TypeInitializationException.xml | 26 - .../xml/en/System/TypeLoadException.xml | 40 - .../xml/en/System/TypeUnloadedException.xml | 23 - mcs/docs/apidocs/xml/en/System/UInt16.xml | 185 - mcs/docs/apidocs/xml/en/System/UInt32.xml | 185 - mcs/docs/apidocs/xml/en/System/UInt64.xml | 185 - mcs/docs/apidocs/xml/en/System/UIntPtr.xml | 113 - .../en/System/UnauthorizedAccessException.xml | 23 - .../en/System/UnhandledExceptionEventArgs.xml | 24 - .../System/UnhandledExceptionEventHandler.xml | 8 - mcs/docs/apidocs/xml/en/System/Uri.xml | 233 - .../xml/en/System/UriFormatException.xml | 17 - .../apidocs/xml/en/System/UriHostNameType.xml | 9 - mcs/docs/apidocs/xml/en/System/UriPartial.xml | 9 - mcs/docs/apidocs/xml/en/System/Version.xml | 133 - mcs/docs/apidocs/xml/en/System/Void.xml | 8 - .../apidocs/xml/en/System/WeakReference.xml | 41 - mcs/docs/apidocs/xml/en/System/_AppDomain.xml | 8 - mcs/docs/clr-abi.txt | 3 - mcs/docs/compiler | 407 - mcs/docs/control-flow-analysis.txt | 164 - mcs/docs/order.txt | 3 - mcs/doctools/.cvsignore | 1 - mcs/doctools/ChangeLog | 13 - mcs/doctools/README.build | 8 - mcs/doctools/doctools.build | 70 - mcs/doctools/etc/gui/AboutMonodoc.png | Bin 12632 -> 0 bytes mcs/doctools/etc/gui/AssemblyBrowser.png | Bin 1949 -> 0 bytes mcs/doctools/etc/gui/ErrorExplosion.png | Bin 9302 -> 0 bytes mcs/doctools/etc/gui/ImageResources.resx | 504 - mcs/doctools/etc/gui/TextResources.resx | 138 - mcs/doctools/etc/gui/readme.txt | 20 - mcs/doctools/etc/monodoc.dtd | 135 - mcs/doctools/makefile | 11 - mcs/doctools/src/Console/docstub.cs | 693 -- mcs/doctools/src/Console/docval.cs | 94 - mcs/doctools/src/Core/.cvsignore | 3 - .../src/Core/AbstractClassStructDoc.cs | 159 - mcs/doctools/src/Core/AbstractDoc.cs | 83 - .../src/Core/AbstractMethodOperatorDoc.cs | 71 - mcs/doctools/src/Core/AbstractTypeDoc.cs | 52 - mcs/doctools/src/Core/AssemblyInfo.cs | 79 - mcs/doctools/src/Core/AssemblyLoader.cs | 379 - mcs/doctools/src/Core/ClassDoc.cs | 53 - mcs/doctools/src/Core/ConstructorDoc.cs | 64 - mcs/doctools/src/Core/Core.csproj | 233 - mcs/doctools/src/Core/DelegateDoc.cs | 46 - mcs/doctools/src/Core/DocProject.cs | 327 - mcs/doctools/src/Core/EnumDoc.cs | 76 - mcs/doctools/src/Core/EventDoc.cs | 55 - mcs/doctools/src/Core/ExceptionDoc.cs | 59 - mcs/doctools/src/Core/FieldDoc.cs | 39 - mcs/doctools/src/Core/InterfaceDoc.cs | 36 - mcs/doctools/src/Core/MethodDoc.cs | 43 - mcs/doctools/src/Core/MonodocException.cs | 40 - mcs/doctools/src/Core/MonodocFile.cs | 32 - mcs/doctools/src/Core/NamingFlags.cs | 36 - mcs/doctools/src/Core/NotifyArrayList.cs | 175 - mcs/doctools/src/Core/NotifyCollection.cs | 82 - mcs/doctools/src/Core/NotifyHashtable.cs | 174 - mcs/doctools/src/Core/OperatorDoc.cs | 43 - mcs/doctools/src/Core/ParameterDoc.cs | 46 - mcs/doctools/src/Core/PropertyDoc.cs | 59 - mcs/doctools/src/Core/RecursiveFileList.cs | 105 - mcs/doctools/src/Core/SortedStringValues.cs | 85 - mcs/doctools/src/Core/StructDoc.cs | 47 - mcs/doctools/src/Core/TypeNameHelper.cs | 122 - .../src/Core/ValueConstrainedArrayList.cs | 164 - mcs/doctools/src/Gui/.cvsignore | 3 - mcs/doctools/src/Gui/AboutForm.cs | 82 - mcs/doctools/src/Gui/AssemblyTreeImages.cs | 94 - mcs/doctools/src/Gui/AssemblyTreeLoader.cs | 461 - mcs/doctools/src/Gui/DirectorySelectorForm.cs | 318 - mcs/doctools/src/Gui/EditPropertyForm.cs | 182 - mcs/doctools/src/Gui/ExampleCodeEditorForm.cs | 166 - mcs/doctools/src/Gui/GenericEditorForm.cs | 232 - mcs/doctools/src/Gui/Gui.csproj | 228 - mcs/doctools/src/Gui/GuiDriver.cs | 45 - mcs/doctools/src/Gui/GuiResources.cs | 78 - mcs/doctools/src/Gui/MainForm.cs | 898 -- mcs/doctools/src/Gui/MdiToolBar.cs | 206 - mcs/doctools/src/Gui/ProjectOptionsForm.cs | 560 -- mcs/doctools/src/Gui/TypeEditorForm.cs | 120 - mcs/doctools/src/Gui/UnexpectedErrorForm.cs | 203 - mcs/doctools/src/doctools.sln | 33 - mcs/doctools/src/xmltest/Driver.cs | 38 - mcs/doctools/src/xmltest/xmltest.csproj | 93 - mcs/errors/1529.cs | 4 - mcs/errors/ChangeLog | 48 - mcs/errors/README.tests | 33 - mcs/errors/bug1.cs | 17 - mcs/errors/bug10.cs | 30 - mcs/errors/bug11.cs | 23 - mcs/errors/bug12.cs | 19 - mcs/errors/bug13.cs | 11 - mcs/errors/bug14.cs | 15 - mcs/errors/bug15.cs | 25 - mcs/errors/bug16.cs | 24 - mcs/errors/bug17.cs | 10 - mcs/errors/bug18.cs | 16 - mcs/errors/bug19.cs | 18 - mcs/errors/bug2.cs | 29 - mcs/errors/bug3.cs | 36 - mcs/errors/bug4.cs | 18 - mcs/errors/bug5.cs | 23 - mcs/errors/bug6.cs | 14 - mcs/errors/bug7.cs | 13 - mcs/errors/bug8.cs | 20 - mcs/errors/bug9.cs | 7 - mcs/errors/cs-11.cs | 20 - mcs/errors/cs-12.cs | 34 - mcs/errors/cs0017.cs | 9 - mcs/errors/cs0019-2.cs | 20 - mcs/errors/cs0019-3.cs | 19 - mcs/errors/cs0019-4.cs | 20 - mcs/errors/cs0019-5.cs | 16 - mcs/errors/cs0019.cs | 14 - mcs/errors/cs0020.cs | 12 - mcs/errors/cs0023.cs | 13 - mcs/errors/cs0026-2.cs | 10 - mcs/errors/cs0026.cs | 8 - mcs/errors/cs0028.cs | 12 - mcs/errors/cs0029.cs | 12 - mcs/errors/cs0030.cs | 15 - mcs/errors/cs0031.cs | 14 - mcs/errors/cs0034.cs | 15 - mcs/errors/cs0039.cs | 16 - mcs/errors/cs0051.cs | 15 - mcs/errors/cs0060.cs | 7 - mcs/errors/cs0066.cs | 25 - mcs/errors/cs0070.cs | 30 - mcs/errors/cs0106.cs | 12 - mcs/errors/cs0107.cs | 6 - mcs/errors/cs0108.cs | 10 - mcs/errors/cs0110.cs | 29 - mcs/errors/cs0111.cs | 21 - mcs/errors/cs0113.cs | 3 - mcs/errors/cs0114.cs | 9 - mcs/errors/cs0115.cs | 5 - mcs/errors/cs0117.cs | 10 - mcs/errors/cs0118.cs | 11 - mcs/errors/cs0120-2.cs | 26 - mcs/errors/cs0120.cs | 15 - mcs/errors/cs0121.cs | 17 - mcs/errors/cs0122.cs | 18 - mcs/errors/cs0126.cs | 9 - mcs/errors/cs0127.cs | 8 - mcs/errors/cs0128.cs | 12 - mcs/errors/cs0131.cs | 8 - mcs/errors/cs0132.cs | 7 - mcs/errors/cs0133.cs | 8 - mcs/errors/cs0136-2.cs | 9 - mcs/errors/cs0136.cs | 13 - mcs/errors/cs0139.cs | 8 - mcs/errors/cs0144-2.cs | 13 - mcs/errors/cs0144.cs | 13 - mcs/errors/cs0146.cs | 7 - mcs/errors/cs0150.cs | 14 - mcs/errors/cs0151.cs | 19 - mcs/errors/cs0152.cs | 13 - mcs/errors/cs0153.cs | 8 - mcs/errors/cs0155-2.cs | 12 - mcs/errors/cs0155.cs | 9 - mcs/errors/cs0157.cs | 12 - mcs/errors/cs0159-2.cs | 16 - mcs/errors/cs0159.cs | 23 - mcs/errors/cs0164.cs | 8 - mcs/errors/cs0165-2.cs | 16 - mcs/errors/cs0165.cs | 11 - mcs/errors/cs0169.cs | 11 - mcs/errors/cs0171.cs | 11 - mcs/errors/cs0172.cs | 25 - mcs/errors/cs0176.cs | 14 - mcs/errors/cs0178.cs | 12 - mcs/errors/cs0179.cs | 14 - mcs/errors/cs0180.cs | 12 - mcs/errors/cs0183.cs | 13 - mcs/errors/cs0184.cs | 13 - mcs/errors/cs0185.cs | 11 - mcs/errors/cs0187.cs | 8 - mcs/errors/cs0191.cs | 12 - mcs/errors/cs0193.cs | 13 - mcs/errors/cs0196.cs | 11 - mcs/errors/cs0198.cs | 12 - mcs/errors/cs0200.cs | 15 - mcs/errors/cs0206.cs | 16 - mcs/errors/cs0214-2.cs | 7 - mcs/errors/cs0214-3.cs | 12 - mcs/errors/cs0214.cs | 5 - mcs/errors/cs0215.cs | 13 - mcs/errors/cs0216.cs | 12 - mcs/errors/cs0234.cs | 10 - mcs/errors/cs0236.cs | 15 - mcs/errors/cs0239.cs | 34 - mcs/errors/cs0242.cs | 11 - mcs/errors/cs0246.cs | 9 - mcs/errors/cs0255.cs | 12 - mcs/errors/cs0284.cs | 9 - mcs/errors/cs0500.cs | 4 - mcs/errors/cs0501.cs | 5 - mcs/errors/cs0503.cs | 5 - mcs/errors/cs0509.cs | 8 - mcs/errors/cs0513.cs | 10 - mcs/errors/cs0515.cs | 7 - mcs/errors/cs0523.cs | 12 - mcs/errors/cs0527-2.cs | 8 - mcs/errors/cs0527.cs | 7 - mcs/errors/cs0528.cs | 10 - mcs/errors/cs0529.cs | 7 - mcs/errors/cs0534.cs | 11 - mcs/errors/cs0539.cs | 10 - mcs/errors/cs0540.cs | 11 - mcs/errors/cs0542.cs | 6 - mcs/errors/cs0543.cs | 14 - mcs/errors/cs0552.cs | 17 - mcs/errors/cs0555.cs | 11 - mcs/errors/cs0556.cs | 10 - mcs/errors/cs0563.cs | 7 - mcs/errors/cs0574.cs | 13 - mcs/errors/cs0575.cs | 12 - mcs/errors/cs0592.cs | 29 - mcs/errors/cs0594-2.cs | 8 - mcs/errors/cs0594-3.cs | 8 - mcs/errors/cs0594.cs | 8 - mcs/errors/cs0601.cs | 11 - mcs/errors/cs0616.cs | 12 - mcs/errors/cs0617.cs | 26 - mcs/errors/cs0621.cs | 5 - mcs/errors/cs0642.cs | 6 - mcs/errors/cs0644.cs | 4 - mcs/errors/cs0645.cs | 4 - mcs/errors/cs0646.cs | 26 - mcs/errors/cs0649.cs | 11 - mcs/errors/cs0654.cs | 13 - mcs/errors/cs0658.cs | 18 - mcs/errors/cs0664.cs | 8 - mcs/errors/cs0668.cs | 28 - mcs/errors/cs0677.cs | 12 - mcs/errors/cs1001.cs | 11 - mcs/errors/cs1002.cs | 10 - mcs/errors/cs1008.cs | 14 - mcs/errors/cs1010.cs | 8 - mcs/errors/cs1011.cs | 6 - mcs/errors/cs1012.cs | 6 - mcs/errors/cs1019.cs | 27 - mcs/errors/cs102.cs | 7 - mcs/errors/cs1020.cs | 28 - mcs/errors/cs1021-2.cs | 8 - mcs/errors/cs1021.cs | 8 - mcs/errors/cs1032.cs | 8 - mcs/errors/cs1033.cs | 7 - mcs/errors/cs1039.cs | 6 - mcs/errors/cs1501-2.cs | 14 - mcs/errors/cs1501-3.cs | 8 - mcs/errors/cs1501.cs | 15 - mcs/errors/cs1510.cs | 13 - mcs/errors/cs1511.cs | 14 - mcs/errors/cs1513.cs | 3 - mcs/errors/cs1518.cs | 6 - mcs/errors/cs1520.cs | 12 - mcs/errors/cs1523.cs | 14 - mcs/errors/cs1524.cs | 15 - mcs/errors/cs1525.cs | 8 - mcs/errors/cs1526.cs | 8 - mcs/errors/cs1527.cs | 4 - mcs/errors/cs1528.cs | 14 - mcs/errors/cs1529.cs | 4 - mcs/errors/cs1530.cs | 7 - mcs/errors/cs1540.cs | 13 - mcs/errors/cs1552.cs | 11 - mcs/errors/cs1579.cs | 13 - mcs/errors/cs1593.cs | 30 - mcs/errors/cs1594.cs | 30 - mcs/errors/cs1604.cs | 14 - mcs/errors/cs5001.cs | 8 - mcs/errors/error-1.cs | 92 - mcs/errors/error-2.cs | 106 - mcs/errors/error-3.cs | 60 - mcs/errors/error-4.cs | 22 - mcs/errors/error-5.cs | 17 - mcs/errors/errors.txt | 70 - mcs/errors/fail | 30 - mcs/errors/makefile | 48 - mcs/errors/runtest.pl | 105 - mcs/jay/.cvsignore | 2 - mcs/jay/ACKNOWLEDGEMENTS | 25 - mcs/jay/ChangeLog | 18 - mcs/jay/NEW_FEATURES | 46 - mcs/jay/NOTES | 9 - mcs/jay/README | 9 - mcs/jay/README.jay | 55 - mcs/jay/closure.c | 295 - mcs/jay/defs.h | 308 - mcs/jay/depend | 11 - mcs/jay/error.c | 335 - mcs/jay/jay.1 | 120 - mcs/jay/lalr.c | 678 -- mcs/jay/lr0.c | 637 -- mcs/jay/main.c | 341 - mcs/jay/makefile | 14 - mcs/jay/makefile.gnu | 8 - mcs/jay/mkpar.c | 395 - mcs/jay/output.c | 1173 --- mcs/jay/reader.c | 1627 --- mcs/jay/skeleton | 268 - mcs/jay/skeleton.cs | 352 - mcs/jay/symtab.c | 158 - mcs/jay/verbose.c | 366 - mcs/jay/warshall.c | 122 - mcs/makefile | 30 - mcs/makefile.gnu | 35 - mcs/mbas/.cvsignore | 11 - mcs/mbas/AssemblyInfo.cs | 66 - mcs/mbas/ChangeLog | 92 - mcs/mbas/assign.cs | 495 - mcs/mbas/attribute.cs | 871 -- mcs/mbas/cfold.cs | 1028 -- mcs/mbas/class.cs | 4312 -------- mcs/mbas/codegen.cs | 633 -- mcs/mbas/const.cs | 232 - mcs/mbas/constant.cs | 974 -- mcs/mbas/decl.cs | 549 - mcs/mbas/delegate.cs | 727 -- mcs/mbas/driver.cs | 878 -- mcs/mbas/ecore.cs | 4052 -------- mcs/mbas/enum.cs | 478 - mcs/mbas/expression.cs | 6676 ------------ mcs/mbas/genericparser.cs | 336 - mcs/mbas/interface.cs | 968 -- mcs/mbas/literal.cs | 187 - mcs/mbas/location.cs | 151 - mcs/mbas/makefile | 65 - mcs/mbas/mb-parser.jay | 515 - mcs/mbas/mb-tokenizer.cs | 864 -- mcs/mbas/mbas.csproj | 260 - mcs/mbas/mbas.ico | Bin 2686 -> 0 bytes mcs/mbas/mbas.sln | 33 - mcs/mbas/modifiers.cs | 241 - mcs/mbas/module.cs | 74 - mcs/mbas/namespace.cs | 129 - mcs/mbas/parameter.cs | 422 - mcs/mbas/pending.cs | 517 - mcs/mbas/report.cs | 229 - mcs/mbas/rootcontext.cs | 784 -- mcs/mbas/statement.cs | 4704 --------- mcs/mbas/statementCollection.cs | 166 - mcs/mbas/support.cs | 258 - mcs/mbas/testmbas/.cvsignore | 4 - mcs/mbas/testmbas/AssemblyInfo.vb | 31 - mcs/mbas/testmbas/WriteOK.vb | 17 - mcs/mbas/tree.cs | 109 - mcs/mbas/typemanager.cs | 1966 ---- mcs/mcs/.cvsignore | 9 - mcs/mcs/ChangeLog | 8917 ----------------- mcs/mcs/TODO | 214 - mcs/mcs/assign.cs | 492 - mcs/mcs/attribute.cs | 889 -- mcs/mcs/cfold.cs | 1028 -- mcs/mcs/class.cs | 4485 --------- mcs/mcs/codegen.cs | 639 -- mcs/mcs/compiler.csproj | 243 - mcs/mcs/compiler.csproj.user | 48 - mcs/mcs/compiler.doc | 114 - mcs/mcs/compiler.sln | 21 - mcs/mcs/const.cs | 232 - mcs/mcs/constant.cs | 974 -- mcs/mcs/cs-parser.jay | 3894 ------- mcs/mcs/cs-tokenizer.cs | 1607 --- mcs/mcs/decl.cs | 1195 --- mcs/mcs/delegate.cs | 756 -- mcs/mcs/driver.cs | 1279 --- mcs/mcs/ecore.cs | 4283 -------- mcs/mcs/enum.cs | 481 - mcs/mcs/errors.cs | 0 mcs/mcs/expression.cs | 6765 ------------- mcs/mcs/gen-il.cs | 100 - mcs/mcs/gen-treedump.cs | 988 -- mcs/mcs/genericparser.cs | 61 - mcs/mcs/interface.cs | 1044 -- mcs/mcs/literal.cs | 187 - mcs/mcs/location.cs | 151 - mcs/mcs/makefile | 105 - mcs/mcs/makefile.gnu | 54 - mcs/mcs/mcs.exe.config | 11 - mcs/mcs/modifiers.cs | 241 - mcs/mcs/namespace.cs | 129 - mcs/mcs/old-code.cs | 216 - mcs/mcs/parameter.cs | 422 - mcs/mcs/parameterCollection.cs | 166 - mcs/mcs/parser.cs | 23 - mcs/mcs/pending.cs | 513 - mcs/mcs/report.cs | 359 - mcs/mcs/rootcontext.cs | 830 -- mcs/mcs/statement.cs | 5099 ---------- mcs/mcs/statementCollection.cs | 166 - mcs/mcs/support.cs | 258 - mcs/mcs/tree.cs | 109 - mcs/mcs/typemanager.cs | 2250 ----- mcs/monoresgen/ChangeLog | 8 - mcs/monoresgen/makefile.gnu | 16 - mcs/monoresgen/monoresgen.cs | 207 - mcs/nant/.cvsignore | 2 - mcs/nant/ChangeLog | 17 - mcs/nant/README-nant.txt | 62 - mcs/nant/doc/arrow.gif | Bin 58 -> 0 bytes mcs/nant/doc/authors.html | 43 - mcs/nant/doc/changelog.html | 121 - mcs/nant/doc/index.html | 43 - mcs/nant/doc/license.html | 48 - mcs/nant/doc/style.css | 71 - mcs/nant/doc/todo.html | 55 - mcs/nant/makefile | 15 - mcs/nant/readme.txt | 4 - mcs/nant/src/AssemblyInfo.cs | 37 - .../Attributes/BooleanValidatorAttribute.cs | 42 - .../src/Attributes/Int32ValidatorAttribute.cs | 63 - .../src/Attributes/TaskAttributeAttribute.cs | 78 - .../src/Attributes/TaskFileSetAttribute.cs | 40 - mcs/nant/src/Attributes/TaskNameAttribute.cs | 45 - mcs/nant/src/Attributes/ValidatorAttribute.cs | 28 - mcs/nant/src/BuildException.cs | 85 - mcs/nant/src/DirectoryScanner.cs | 226 - mcs/nant/src/FileSet.cs | 132 - mcs/nant/src/Location.cs | 89 - mcs/nant/src/NAnt.cs | 107 - mcs/nant/src/NAnt.exe | Bin 61440 -> 0 bytes mcs/nant/src/Project.cs | 332 - mcs/nant/src/PropertyDictionary.cs | 72 - mcs/nant/src/Target.cs | 115 - mcs/nant/src/TargetCollection.cs | 35 - mcs/nant/src/Task.cs | 192 - mcs/nant/src/TaskBuilder.cs | 84 - mcs/nant/src/TaskBuilderCollection.cs | 46 - mcs/nant/src/TaskCollection.cs | 26 - mcs/nant/src/TaskFactory.cs | 57 - mcs/nant/src/Tasks/CallTask.cs | 41 - mcs/nant/src/Tasks/ChangeLog | 13 - mcs/nant/src/Tasks/CompilerBase.cs | 195 - mcs/nant/src/Tasks/CopyTask.cs | 196 - mcs/nant/src/Tasks/CscTask.cs | 45 - mcs/nant/src/Tasks/DeleteTask.cs | 173 - mcs/nant/src/Tasks/EchoTask.cs | 34 - mcs/nant/src/Tasks/ExecTask.cs | 58 - mcs/nant/src/Tasks/ExternalProgramBase.cs | 130 - mcs/nant/src/Tasks/FailTask.cs | 38 - mcs/nant/src/Tasks/IncludeTask.cs | 134 - mcs/nant/src/Tasks/JscTask.cs | 40 - mcs/nant/src/Tasks/McsTask.cs | 47 - mcs/nant/src/Tasks/MkDirTask.cs | 49 - mcs/nant/src/Tasks/MoveTask.cs | 71 - mcs/nant/src/Tasks/NantTask.cs | 65 - mcs/nant/src/Tasks/PropertyTask.cs | 37 - mcs/nant/src/Tasks/SleepTask.cs | 91 - mcs/nant/src/Tasks/StyleTask.cs | 171 - mcs/nant/src/Tasks/TStampTask.cs | 43 - mcs/nant/src/Tasks/TaskDefTask.cs | 42 - mcs/nant/src/Tasks/VbcTask.cs | 40 - mcs/nant/src/Util/Log.cs | 155 - mcs/nant/src/Util/XmlNodeTextPositionMap.cs | 187 - mcs/nunit/.cvsignore | 5 - mcs/nunit/ChangeLog | 43 - mcs/nunit/RunTests.cs | 79 - mcs/nunit/list.unix | 24 - mcs/nunit/makefile | 14 - mcs/nunit/makefile.gnu | 14 - mcs/nunit/nunit.build | 85 - mcs/nunit/src/NUnitConsole/.cvsignore | 4 - mcs/nunit/src/NUnitConsole/AssemblyInfo.cs | 55 - .../src/NUnitConsole/NUnitConsole.csproj | 93 - mcs/nunit/src/NUnitConsole/NUnitConsole.xml | 146 - .../src/NUnitConsole/NUnitConsoleMain.cs | 35 - mcs/nunit/src/NUnitConsole/TestRunner.cs | 277 - mcs/nunit/src/NUnitConsole/list.unix | 3 - mcs/nunit/src/NUnitConsole/makefile.gnu | 14 - mcs/nunit/src/NUnitCore/ActiveTestSuite.cs | 113 - mcs/nunit/src/NUnitCore/AssemblyInfo.cs | 55 - .../src/NUnitCore/AssemblyTestCollector.cs | 72 - mcs/nunit/src/NUnitCore/Assertion.cs | 184 - .../src/NUnitCore/AssertionFailedError.cs | 27 - mcs/nunit/src/NUnitCore/BaseTestRunner.cs | 323 - .../src/NUnitCore/ClassPathTestCollector.cs | 78 - mcs/nunit/src/NUnitCore/ExceptionTestCase.cs | 53 - .../src/NUnitCore/ExpectExceptionAttribute.cs | 47 - mcs/nunit/src/NUnitCore/IFailureDetailView.cs | 21 - mcs/nunit/src/NUnitCore/IProtectable.cs | 12 - mcs/nunit/src/NUnitCore/ITest.cs | 18 - mcs/nunit/src/NUnitCore/ITestCollector.cs | 16 - mcs/nunit/src/NUnitCore/ITestListener.cs | 65 - mcs/nunit/src/NUnitCore/ITestLoader.cs | 58 - mcs/nunit/src/NUnitCore/ITestSuiteLoader.cs | 17 - .../src/NUnitCore/LoadingTestCollector.cs | 54 - mcs/nunit/src/NUnitCore/NUnitCore.csproj | 238 - mcs/nunit/src/NUnitCore/NUnitException.cs | 51 - mcs/nunit/src/NUnitCore/ReflectionUtils.cs | 94 - .../src/NUnitCore/ReloadingTestSuiteLoader.cs | 33 - mcs/nunit/src/NUnitCore/RepeatedTest.cs | 45 - .../src/NUnitCore/SimpleTestCollector.cs | 28 - mcs/nunit/src/NUnitCore/StandardLoader.cs | 222 - .../src/NUnitCore/StandardTestSuiteLoader.cs | 47 - mcs/nunit/src/NUnitCore/TestCase.cs | 241 - .../src/NUnitCore/TestCaseClassLoader.cs | 208 - mcs/nunit/src/NUnitCore/TestDecorator.cs | 71 - mcs/nunit/src/NUnitCore/TestFailure.cs | 55 - mcs/nunit/src/NUnitCore/TestResult.cs | 249 - mcs/nunit/src/NUnitCore/TestSetup.cs | 70 - mcs/nunit/src/NUnitCore/TestSuite.cs | 294 - mcs/nunit/src/NUnitCore/Version.cs | 23 - mcs/tests/ChangeLog | 571 -- mcs/tests/README.tests | 142 - mcs/tests/c1.cs | 7 - mcs/tests/c2.cs | 2 - mcs/tests/casts.cs | 566 -- mcs/tests/co1.cs | 4 - mcs/tests/cs1.cs | 5 - mcs/tests/csc-casts.out | Bin 5041 -> 0 bytes mcs/tests/gen-cast-test.cs | 99 - mcs/tests/gen-check.cs | 78 - mcs/tests/i-recursive.cs | 5 - mcs/tests/i-three.cs | 11 - mcs/tests/i-undefined.cs | 2 - mcs/tests/i1.cs | 2 - mcs/tests/i2.cs | 5 - mcs/tests/i3.cs | 5 - mcs/tests/i4.cs | 8 - mcs/tests/i5.cs | 8 - mcs/tests/i6.cs | 4 - mcs/tests/interfaces.cs | 22 - mcs/tests/ix1.cs | 3 - mcs/tests/ix2.cs | 15 - mcs/tests/makefile | 181 - mcs/tests/n1.cs | 11 - mcs/tests/n2.cs | 4 - mcs/tests/s1.cs | 7 - mcs/tests/test-1.cs | 9 - mcs/tests/test-10.cs | 150 - mcs/tests/test-100.cs | 31 - mcs/tests/test-101.cs | 39 - mcs/tests/test-102.cs | 35 - mcs/tests/test-103.cs | 28 - mcs/tests/test-104.cs | 14 - mcs/tests/test-105.cs | 61 - mcs/tests/test-106.cs | 50 - mcs/tests/test-107.cs | 45 - mcs/tests/test-108.cs | 44 - mcs/tests/test-109.cs | 13 - mcs/tests/test-11.cs | 27 - mcs/tests/test-110.cs | 32 - mcs/tests/test-111.cs | 11 - mcs/tests/test-112.cs | 19 - mcs/tests/test-113.cs | 32 - mcs/tests/test-114.cs | 13 - mcs/tests/test-115.cs | 42 - mcs/tests/test-116.cs | 12 - mcs/tests/test-117.cs | 28 - mcs/tests/test-118.cs | 14 - mcs/tests/test-119.cs | 50 - mcs/tests/test-12.cs | 44 - mcs/tests/test-120.cs | 56 - mcs/tests/test-121.cs | 35 - mcs/tests/test-122.cs | 21 - mcs/tests/test-123.cs | 47 - mcs/tests/test-124.cs | 24 - mcs/tests/test-125.cs | 100 - mcs/tests/test-126.cs | 24 - mcs/tests/test-127.cs | 23 - mcs/tests/test-128.cs | 41 - mcs/tests/test-129.cs | 17 - mcs/tests/test-13.cs | 31 - mcs/tests/test-130.cs | 30 - mcs/tests/test-131.cs | 35 - mcs/tests/test-132.cs | 14 - mcs/tests/test-133.cs | 36 - mcs/tests/test-134.cs | 69 - mcs/tests/test-135.cs | 29 - mcs/tests/test-136.cs | 60 - mcs/tests/test-137.cs | 45 - mcs/tests/test-138.cs | 9 - mcs/tests/test-139.cs | 48 - mcs/tests/test-14.cs | 43 - mcs/tests/test-140.cs | 28 - mcs/tests/test-141.cs | 25 - mcs/tests/test-142.cs | 20 - mcs/tests/test-143.cs | 27 - mcs/tests/test-144.cs | 11 - mcs/tests/test-145.cs | 11 - mcs/tests/test-146.cs | 58 - mcs/tests/test-147.cs | 163 - mcs/tests/test-148.cs | 82 - mcs/tests/test-149.cs | 83 - mcs/tests/test-15.cs | 22 - mcs/tests/test-150.cs | 8 - mcs/tests/test-151.cs | 16 - mcs/tests/test-152.cs | 24 - mcs/tests/test-153.cs | 24 - mcs/tests/test-154.cs | 281 - mcs/tests/test-155.cs | 23 - mcs/tests/test-156.cs | 107 - mcs/tests/test-157.cs | 31 - mcs/tests/test-158.cs | 28 - mcs/tests/test-159.cs | 15 - mcs/tests/test-16.cs | 61 - mcs/tests/test-160.cs | 21 - mcs/tests/test-161.cs | 25 - mcs/tests/test-162.cs | 91 - mcs/tests/test-17.cs | 45 - mcs/tests/test-18.cs | 52 - mcs/tests/test-19.cs | 114 - mcs/tests/test-2.cs | 7 - mcs/tests/test-20.cs | 70 - mcs/tests/test-21.cs | 35 - mcs/tests/test-22.cs | 46 - mcs/tests/test-23.cs | 106 - mcs/tests/test-24.cs | 35 - mcs/tests/test-25.cs | 65 - mcs/tests/test-26.cs | 72 - mcs/tests/test-27.cs | 97 - mcs/tests/test-28.cs | 56 - mcs/tests/test-29.cs | 40 - mcs/tests/test-3.cs | 62 - mcs/tests/test-30.cs | 60 - mcs/tests/test-31.cs | 41 - mcs/tests/test-32.cs | 21 - mcs/tests/test-33.cs | 51 - mcs/tests/test-34.cs | 90 - mcs/tests/test-35.cs | 71 - mcs/tests/test-36.cs | 46 - mcs/tests/test-37.cs | 136 - mcs/tests/test-38.cs | 118 - mcs/tests/test-39.cs | 38 - mcs/tests/test-4.cs | 40 - mcs/tests/test-40.cs | 79 - mcs/tests/test-41.cs | 93 - mcs/tests/test-42.cs | 184 - mcs/tests/test-43.cs | 78 - mcs/tests/test-44.cs | 55 - mcs/tests/test-45.cs | 101 - mcs/tests/test-46.cs | 127 - mcs/tests/test-47.cs | 95 - mcs/tests/test-48.cs | 30 - mcs/tests/test-49.cs | 503 - mcs/tests/test-5.cs | 14 - mcs/tests/test-50.cs | 15 - mcs/tests/test-51.cs | 89 - mcs/tests/test-52.cs | 98 - mcs/tests/test-53.cs | 119 - mcs/tests/test-54.cs | 23 - mcs/tests/test-55.cs | 33 - mcs/tests/test-56.cs | 96 - mcs/tests/test-57.cs | 75 - mcs/tests/test-58.cs | 25 - mcs/tests/test-59.cs | 89 - mcs/tests/test-6.cs | 15 - mcs/tests/test-60.cs | 20 - mcs/tests/test-61.cs | 39 - mcs/tests/test-62.cs | 28 - mcs/tests/test-63.cs | 31 - mcs/tests/test-64.cs | 29 - mcs/tests/test-65.cs | 51 - mcs/tests/test-66.cs | 134 - mcs/tests/test-67.cs | 93 - mcs/tests/test-68.cs | 23 - mcs/tests/test-69.cs | 13 - mcs/tests/test-7.cs | 176 - mcs/tests/test-70.cs | 48 - mcs/tests/test-71.cs | 28 - mcs/tests/test-72.cs | 21 - mcs/tests/test-73.cs | 28 - mcs/tests/test-74.cs | 29 - mcs/tests/test-75.cs | 36 - mcs/tests/test-76.cs | 35 - mcs/tests/test-77.cs | 38 - mcs/tests/test-78.cs | 59 - mcs/tests/test-79.cs | 17 - mcs/tests/test-8.cs | 29 - mcs/tests/test-80.cs | 32 - mcs/tests/test-81.cs | 37 - mcs/tests/test-82.cs | 40 - mcs/tests/test-83.cs | 47 - mcs/tests/test-84.cs | 22 - mcs/tests/test-85.cs | 23 - mcs/tests/test-86.cs | 45 - mcs/tests/test-87.cs | 47 - mcs/tests/test-88.cs | 18 - mcs/tests/test-89.cs | 34 - mcs/tests/test-9.cs | 24 - mcs/tests/test-90.cs | 37 - mcs/tests/test-91.cs | 53 - mcs/tests/test-92.cs | 20 - mcs/tests/test-93.cs | 47 - mcs/tests/test-94.cs | 59 - mcs/tests/test-95.cs | 18 - mcs/tests/test-96.cs | 20 - mcs/tests/test-97.cs | 18 - mcs/tests/test-98.cs | 18 - mcs/tests/test-99.cs | 25 - mcs/tests/try.cs | 53 - mcs/tests/unsafe-1.cs | 163 - mcs/tests/unsafe-2.cs | 25 - mcs/tests/unsafe-3.cs | 31 - mcs/tests/unsafe-4.cs | 21 - mcs/tests/verify-1.cs | 40 - mcs/tests/verify-2.cs | 41 - mcs/tests/verify-3.cs | 12 - mcs/tools/.cvsignore | 4 - mcs/tools/ChangeLog | 124 - mcs/tools/DumpCultureInfo.cs | 176 - mcs/tools/EnumCheck.cs | 132 - mcs/tools/EnumCheckAssemblyCollection.cs | 77 - mcs/tools/GenerateDelegate.cs | 190 - mcs/tools/IFaceDisco.cs | 105 - mcs/tools/SqlSharp/SqlSharpCli.cs | 1082 -- mcs/tools/XMLUtil.cs | 36 - mcs/tools/assemblies.xml | 20 - mcs/tools/corcompare/.cvsignore | 3 - mcs/tools/corcompare/ChangeLog | 6 - mcs/tools/corcompare/CompletionInfo.cs | 573 -- mcs/tools/corcompare/CorCompare.cs | 72 - mcs/tools/corcompare/Makefile | 13 - mcs/tools/corcompare/MissingAttribute.cs | 136 - mcs/tools/corcompare/MissingBase.cs | 134 - mcs/tools/corcompare/MissingConstructor.cs | 30 - mcs/tools/corcompare/MissingEvent.cs | 110 - mcs/tools/corcompare/MissingField.cs | 76 - mcs/tools/corcompare/MissingInterface.cs | 51 - mcs/tools/corcompare/MissingMember.cs | 138 - mcs/tools/corcompare/MissingMethod.cs | 58 - mcs/tools/corcompare/MissingNameSpace.cs | 159 - mcs/tools/corcompare/MissingNestedType.cs | 36 - mcs/tools/corcompare/MissingProperty.cs | 108 - mcs/tools/corcompare/MissingType.cs | 493 - mcs/tools/corcompare/TODO | 16 - mcs/tools/corcompare/ToDoAssembly.cs | 199 - mcs/tools/corcompare/corcompare.build | 12 - mcs/tools/corcompare/cormissing.xsl | 424 - mcs/tools/corcompare/transform.js | 11 - mcs/tools/ictool/Makefile | 10 - mcs/tools/ictool/depgraph.cs | 69 - mcs/tools/ictool/ictool-config.xml | 105 - mcs/tools/ictool/ictool.cs | 428 - mcs/tools/ictool/peer.cs | 284 - mcs/tools/makefile | 45 - mcs/tools/monostyle.cs | 366 - mcs/tools/sample_cast_const.cs | 49 - mcs/tools/scan-tests.pl | 163 - mcs/tools/serialize.cs | 138 - mcs/tools/verifier.cs | 1587 --- 4863 files changed, 578742 deletions(-) delete mode 100755 mcs/AUTHORS delete mode 100644 mcs/ChangeLog delete mode 100644 mcs/INSTALL delete mode 100644 mcs/INSTALL.txt delete mode 100644 mcs/MonoIcon.png delete mode 100755 mcs/README delete mode 100644 mcs/class/.cvsignore delete mode 100644 mcs/class/Microsoft.VisualBasic/Changelog delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic.build delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/AppWinStyle.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CallType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Collection.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ComClassAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CompareMethod.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Constants.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ControlChars.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Conversion.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateAndTime.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateFormat.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateInterval.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DueDate.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ErrObject.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileSystem.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstDayOfWeek.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstWeekOfYear.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Globals.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Information.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Interaction.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionCompareAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/TODOAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxResult.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxStyle.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenAccess.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenMode.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenShare.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/SpcInfo.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TODOAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TabInfo.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TriState.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedArrayAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedStringAttribute.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBMath.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VariantType.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VbStrConv.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Test/.cvsignore delete mode 100644 mcs/class/Microsoft.VisualBasic/Test/AllTests.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Test/CollectionTest.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Test/ConversionTest.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs delete mode 100644 mcs/class/Microsoft.VisualBasic/Test/Microsoft.VisualBasic_test.build delete mode 100644 mcs/class/Microsoft.VisualBasic/list delete mode 100644 mcs/class/Microsoft.VisualBasic/makefile.gnu delete mode 100644 mcs/class/Mono.CSharp.Debugger/AssemblerWriterI386.cs delete mode 100644 mcs/class/Mono.CSharp.Debugger/ChangeLog delete mode 100644 mcs/class/Mono.CSharp.Debugger/IAssemblerWriter.cs delete mode 100644 mcs/class/Mono.CSharp.Debugger/IMonoSymbolWriter.cs delete mode 100644 mcs/class/Mono.CSharp.Debugger/Mono.CSharp.Debugger.build delete mode 100755 mcs/class/Mono.CSharp.Debugger/MonoDwarfFileWriter.cs delete mode 100644 mcs/class/Mono.CSharp.Debugger/MonoSymbolDocumentWriter.cs delete mode 100755 mcs/class/Mono.CSharp.Debugger/MonoSymbolWriter.cs delete mode 100644 mcs/class/Mono.CSharp.Debugger/README delete mode 100644 mcs/class/Mono.CSharp.Debugger/README.relocation-table delete mode 100644 mcs/class/Mono.CSharp.Debugger/csharp-lang.c delete mode 100644 mcs/class/Mono.CSharp.Debugger/csharp-lang.h delete mode 100644 mcs/class/Mono.CSharp.Debugger/csharp-mono-lang.c delete mode 100644 mcs/class/Mono.CSharp.Debugger/gdb-csharp-support.patch delete mode 100644 mcs/class/Mono.CSharp.Debugger/gdb-variable-scopes.patch delete mode 100644 mcs/class/Mono.Data.MySql/ChangeLog delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql.build delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql/Field.cs delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySql.cs delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlCommand.cs delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlConnection.cs delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql/TODOAttribute.cs delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql/Test.cs delete mode 100644 mcs/class/Mono.Data.MySql/Mono.Data.MySql/makefile delete mode 100644 mcs/class/Mono.Data.MySql/Test/TestMySqlInsert.cs delete mode 100644 mcs/class/Mono.Data.MySql/list delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/ParmUtil.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlConnection.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlError.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlException.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameter.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresLibrary.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresTypes.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/ParmUtil.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlConnection.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlError.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlException.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameter.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PostgresLibrary.cs delete mode 100644 mcs/class/Mono.Data.PostgreSqlClient/PostgresTypes.cs delete mode 100644 mcs/class/Mono.GetOptions/.cvsignore delete mode 100644 mcs/class/Mono.GetOptions/AssemblyInfo.cs delete mode 100644 mcs/class/Mono.GetOptions/Mono.GetOptions.csproj delete mode 100644 mcs/class/Mono.GetOptions/OptionList.cs delete mode 100644 mcs/class/README delete mode 100644 mcs/class/System.Configuration.Install/ChangeLog delete mode 100644 mcs/class/System.Configuration.Install/System.Configuration.Install.build delete mode 100644 mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog delete mode 100644 mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs delete mode 100644 mcs/class/System.Configuration.Install/Test/.cvsignore delete mode 100644 mcs/class/System.Configuration.Install/Test/AllTests.cs delete mode 100644 mcs/class/System.Configuration.Install/Test/ChangeLog delete mode 100644 mcs/class/System.Configuration.Install/Test/System.Configuration.Install/AllTests.cs delete mode 100644 mcs/class/System.Configuration.Install/Test/System.Configuration.Install/ChangeLog delete mode 100644 mcs/class/System.Configuration.Install/Test/System.Configuration.Install_test.build delete mode 100644 mcs/class/System.Configuration.Install/list.unix delete mode 100644 mcs/class/System.Configuration.Install/makefile.gnu delete mode 100644 mcs/class/System.Data/.cvsignore delete mode 100644 mcs/class/System.Data/ChangeLog delete mode 100755 mcs/class/System.Data/System.Data.Common/ChangeLog delete mode 100644 mcs/class/System.Data/System.Data.Common/DataAdapter.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/DataColumnMapping.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/DataColumnMappingCollection.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/DataTableMapping.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/DbDataPermission.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbCommand.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbCommandBuilder.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbConnection.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbDataAdapter.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbDataReader.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbError.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbErrorCollection.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbException.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbLiteral.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbParameterCollection.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbPermission.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbPermissionAttribute.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbSchemaGuid.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbTransaction.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/OleDbType.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/TestGDA.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/TestOleDb.cs delete mode 100644 mcs/class/System.Data/System.Data.OleDb/libgda.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/ParmUtil.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/PostgresLibrary.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/PostgresTypes.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlClientPermission.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlClientPermissionAttribute.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlDataAdapter.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlError.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlErrorCollection.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlException.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/INullable.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlBinary.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlBoolean.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlByte.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlCompareOptions.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlDateTime.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlDouble.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlGuid.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlInt16.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlInt32.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlInt64.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlMoney.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlNullValueException.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlSingle.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlString.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlTruncateException.cs delete mode 100644 mcs/class/System.Data/System.Data.SqlTypes/SqlTypeException.cs delete mode 100644 mcs/class/System.Data/System.Data.build delete mode 100644 mcs/class/System.Data/System.Data/AcceptRejectRule.cs delete mode 100644 mcs/class/System.Data/System.Data/ChangeLog delete mode 100644 mcs/class/System.Data/System.Data/CommandBehavior.cs delete mode 100644 mcs/class/System.Data/System.Data/CommandType.cs delete mode 100644 mcs/class/System.Data/System.Data/ConnectionState.cs delete mode 100644 mcs/class/System.Data/System.Data/Constraint.cs delete mode 100644 mcs/class/System.Data/System.Data/ConstraintCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/ConstraintException.cs delete mode 100644 mcs/class/System.Data/System.Data/DBConcurrencyException.cs delete mode 100644 mcs/class/System.Data/System.Data/DataColumn.cs delete mode 100644 mcs/class/System.Data/System.Data/DataColumnChangeEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data/DataColumnChangeEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data/DataColumnCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/DataException.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRelation.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRelationCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRow.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowAction.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowBuilder.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowChangeEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowChangeEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowState.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowVersion.cs delete mode 100644 mcs/class/System.Data/System.Data/DataRowView.cs delete mode 100644 mcs/class/System.Data/System.Data/DataSet.cs delete mode 100644 mcs/class/System.Data/System.Data/DataTable.cs delete mode 100644 mcs/class/System.Data/System.Data/DataTableCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/DataTableRelationCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/DataView.cs delete mode 100644 mcs/class/System.Data/System.Data/DataViewManager.cs delete mode 100644 mcs/class/System.Data/System.Data/DataViewRowState.cs delete mode 100644 mcs/class/System.Data/System.Data/DataViewSetting.cs delete mode 100755 mcs/class/System.Data/System.Data/DataViewSettingCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/DbType.cs delete mode 100644 mcs/class/System.Data/System.Data/DeletedRowInaccessibleException.cs delete mode 100644 mcs/class/System.Data/System.Data/DuplicateNameException.cs delete mode 100644 mcs/class/System.Data/System.Data/EvaluateException.cs delete mode 100755 mcs/class/System.Data/System.Data/FillErrorEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data/FillErrorEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data/ForeignKeyConstraint.cs delete mode 100644 mcs/class/System.Data/System.Data/IColumnMapping.cs delete mode 100644 mcs/class/System.Data/System.Data/IColumnMappingCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/IDataAdapter.cs delete mode 100644 mcs/class/System.Data/System.Data/IDataParameter.cs delete mode 100644 mcs/class/System.Data/System.Data/IDataParameterCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/IDataReader.cs delete mode 100644 mcs/class/System.Data/System.Data/IDataRecord.cs delete mode 100644 mcs/class/System.Data/System.Data/IDbCommand.cs delete mode 100644 mcs/class/System.Data/System.Data/IDbConnection.cs delete mode 100644 mcs/class/System.Data/System.Data/IDbDataAdapter.cs delete mode 100644 mcs/class/System.Data/System.Data/IDbDataParameter.cs delete mode 100644 mcs/class/System.Data/System.Data/IDbTransaction.cs delete mode 100644 mcs/class/System.Data/System.Data/ITableMapping.cs delete mode 100644 mcs/class/System.Data/System.Data/ITableMappingCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/InRowChangingEventException.cs delete mode 100644 mcs/class/System.Data/System.Data/InternalDataCollectionBase.cs delete mode 100644 mcs/class/System.Data/System.Data/InvalidConstraintException.cs delete mode 100644 mcs/class/System.Data/System.Data/InvalidExpressionException.cs delete mode 100644 mcs/class/System.Data/System.Data/IsolationLevel.cs delete mode 100755 mcs/class/System.Data/System.Data/Locale.cs delete mode 100644 mcs/class/System.Data/System.Data/MappingType.cs delete mode 100644 mcs/class/System.Data/System.Data/MergeFailedEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data/MergeFailedEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data/MissingMappingAction.cs delete mode 100644 mcs/class/System.Data/System.Data/MissingPrimaryKeyException.cs delete mode 100644 mcs/class/System.Data/System.Data/MissingSchemaAction.cs delete mode 100644 mcs/class/System.Data/System.Data/NoNullAllowedException.cs delete mode 100644 mcs/class/System.Data/System.Data/ParameterDirection.cs delete mode 100644 mcs/class/System.Data/System.Data/PropertyAttributes.cs delete mode 100644 mcs/class/System.Data/System.Data/PropertyCollection.cs delete mode 100644 mcs/class/System.Data/System.Data/ReadOnlyException.cs delete mode 100644 mcs/class/System.Data/System.Data/RowNotInTableException.cs delete mode 100644 mcs/class/System.Data/System.Data/Rule.cs delete mode 100644 mcs/class/System.Data/System.Data/SchemaType.cs delete mode 100644 mcs/class/System.Data/System.Data/SqlDbType.cs delete mode 100644 mcs/class/System.Data/System.Data/StateChangeEventArgs.cs delete mode 100644 mcs/class/System.Data/System.Data/StateChangeEventHandler.cs delete mode 100644 mcs/class/System.Data/System.Data/StatementType.cs delete mode 100644 mcs/class/System.Data/System.Data/StrongTypingException.cs delete mode 100644 mcs/class/System.Data/System.Data/SyntaxErrorException.cs delete mode 100644 mcs/class/System.Data/System.Data/TODOAttribute.cs delete mode 100644 mcs/class/System.Data/System.Data/TypeDataSetGeneratorException.cs delete mode 100644 mcs/class/System.Data/System.Data/UniqueConstraint.cs delete mode 100644 mcs/class/System.Data/System.Data/UpdateRowSource.cs delete mode 100644 mcs/class/System.Data/System.Data/UpdateStatus.cs delete mode 100644 mcs/class/System.Data/System.Data/VersionNotFoundException.cs delete mode 100644 mcs/class/System.Data/System.Data/XmlReadMode.cs delete mode 100644 mcs/class/System.Data/System.Data/XmlWriteMode.cs delete mode 100644 mcs/class/System.Data/System.Xml/XmlDataDocument.cs delete mode 100644 mcs/class/System.Data/TODO delete mode 100644 mcs/class/System.Data/Test/.cvsignore delete mode 100644 mcs/class/System.Data/Test/AllTests.cs delete mode 100644 mcs/class/System.Data/Test/ChangeLog delete mode 100644 mcs/class/System.Data/Test/PostgresTest.cs delete mode 100644 mcs/class/System.Data/Test/ReadPostgresData.cs delete mode 100644 mcs/class/System.Data/Test/SqlSharpCli.cs delete mode 100644 mcs/class/System.Data/Test/System.Data.SqlTypes/AllTests.cs delete mode 100644 mcs/class/System.Data/Test/System.Data.SqlTypes/SqlInt32Test.cs delete mode 100644 mcs/class/System.Data/Test/System.Data/AllTests.cs delete mode 100644 mcs/class/System.Data/Test/System.Data/ConstraintCollectionTest.cs delete mode 100644 mcs/class/System.Data/Test/System.Data/ConstraintTest.cs delete mode 100644 mcs/class/System.Data/Test/System.Data/DataColumnTest.cs delete mode 100644 mcs/class/System.Data/Test/System.Data/DataTableTest.cs delete mode 100644 mcs/class/System.Data/Test/System.Data/ForeignKeyConstraintTest.cs delete mode 100644 mcs/class/System.Data/Test/System.Data/UniqueConstraintTest.cs delete mode 100644 mcs/class/System.Data/Test/System.Data_test.build delete mode 100644 mcs/class/System.Data/Test/TestExecuteScalar.cs delete mode 100644 mcs/class/System.Data/Test/TestSqlDataAdapter.cs delete mode 100644 mcs/class/System.Data/Test/TestSqlDataReader.cs delete mode 100644 mcs/class/System.Data/Test/TestSqlException.cs delete mode 100644 mcs/class/System.Data/Test/TestSqlInsert.cs delete mode 100644 mcs/class/System.Data/Test/TestSqlIsolationLevel.cs delete mode 100644 mcs/class/System.Data/Test/TestSqlParameters.cs delete mode 100644 mcs/class/System.Data/Test/TheTests.cs delete mode 100755 mcs/class/System.Data/list delete mode 100644 mcs/class/System.Data/makefile.gnu delete mode 100644 mcs/class/System.Drawing/.cvsignore delete mode 100644 mcs/class/System.Drawing/ChangeLog delete mode 100644 mcs/class/System.Drawing/System.Drawing.Design/UITypeEditorEditStyle.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Drawing2D/ChangeLog delete mode 100644 mcs/class/System.Drawing/System.Drawing.Drawing2D/Enums.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Drawing2D/Matrix.cs delete mode 100755 mcs/class/System.Drawing/System.Drawing.Drawing2D/PenAlignment.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Drawing2D/TODOAttribute.cs delete mode 100755 mcs/class/System.Drawing/System.Drawing.Imaging/BitmapData.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ColorAdjustType.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ColorChannelFlag.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ColorMapType.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ColorMatrixFlag.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ColorMode.cs delete mode 100755 mcs/class/System.Drawing/System.Drawing.Imaging/ColorPalette.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/EmfPlusRecordType.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/EmfType.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/EncoderParameterValueType.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/EncoderValue.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/FrameDimension.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecFlags.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ImageFlags.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/ImageLockMode.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/MetafileFrameUnit.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/PaletteFlags.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Imaging/PixelFormat.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Printing/Duplex.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Printing/PaperKind.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Printing/PaperSourceKind.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Printing/PrintRange.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Printing/PrinterResolutionKind.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Printing/PrinterUnit.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Printing/PrintingPermissionLevel.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Text/GenericFontFamilies.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Text/HotkeyPrefix.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.Text/TextRenderingHint.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing.build delete mode 100755 mcs/class/System.Drawing/System.Drawing/Bitmap.cs delete mode 100755 mcs/class/System.Drawing/System.Drawing/Brush.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/ChangeLog delete mode 100644 mcs/class/System.Drawing/System.Drawing/Color.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/ColorConverter.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/ContentAlignment.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/FontStyle.cs delete mode 100755 mcs/class/System.Drawing/System.Drawing/Graphics.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/GraphicsUnit.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/Image.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/KnownColor.cs delete mode 100755 mcs/class/System.Drawing/System.Drawing/Pen.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/Point.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/PointF.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/Rectangle.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/RectangleF.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/RotateFlipType.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/Size.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/SizeF.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/StringAligment.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/StringDigitSubstitute.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/StringFormatFlags.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/StringTrimming.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/StringUnit.cs delete mode 100644 mcs/class/System.Drawing/System.Drawing/SystemColors.cs delete mode 100644 mcs/class/System.Drawing/Test/System.Drawing/ChangeLog delete mode 100644 mcs/class/System.Drawing/Test/System.Drawing/TestPoint.cs delete mode 100755 mcs/class/System.Drawing/list.unix delete mode 100644 mcs/class/System.Drawing/makefile.gnu delete mode 100644 mcs/class/System.EnterpriseServices/ChangeLog delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/ChangeLog delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Clerk.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Compensator.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/CompensatorOptions.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecord.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecordFlags.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/TransactionState.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices.build delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/AccessChecksLevelOption.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ActivationOption.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationAccessControlAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationActivationAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationIDAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationNameAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationQueuingAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/AuthenticationOption.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/AutoCompleteAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/BOID.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/BYOT.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/COMTIIntrinsicsAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ChangeLog delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ComponentAccessControlAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ConstructionEnabledAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ContextUtil.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/DescriptionAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventClassAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventTrackingEnabledAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ExceptionClassAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/IISIntrinsicsAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRegistrationHelper.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRemoteDispatch.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallContext.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallersColl.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityIdentityColl.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/IServicedComponentInfo.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedProperty.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedPropertyGroup.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ITransaction.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ImpersonationLevelOption.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/InstallationFlags.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/InterfaceQueuingAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/JustInTimeActivationAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/LoadBalancingSupportedAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/MustRunInClientContextAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ObjectPoolingAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/PrivateComponentAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyLockMode.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyReleaseMode.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationErrorInfo.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationException.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelper.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelperTx.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ResourcePool.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecureMethodAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallContext.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallers.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityIdentity.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityRoleAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponent.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponentException.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedProperty.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroup.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroupManager.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationOption.cs delete mode 100755 mcs/class/System.EnterpriseServices/System.EnterpriseServices/TODOAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionAttribute.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionIsolationLevel.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionOption.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionVote.cs delete mode 100644 mcs/class/System.EnterpriseServices/System.EnterpriseServices/XACTTRANSINFO.cs delete mode 100644 mcs/class/System.EnterpriseServices/list delete mode 100644 mcs/class/System.EnterpriseServices/makefile.gnu delete mode 100644 mcs/class/System.Runtime.Remoting/ChangeLog delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/ChangeLog delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/CommonTransportKeys.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.build delete mode 100644 mcs/class/System.Runtime.Remoting/System.Runtime.Remoting/TODOAttribute.cs delete mode 100644 mcs/class/System.Runtime.Remoting/makefile.gnu delete mode 100644 mcs/class/System.Runtime.Remoting/unix.args delete mode 100644 mcs/class/System.Runtime.Serialization.Formatters.Soap/ChangeLog delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/README delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/Sample.txt delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap.build delete mode 100644 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectDeserializer.cs delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectSerializer.cs delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs delete mode 100755 mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/TODOAttribute.cs delete mode 100644 mcs/class/System.Runtime.Serialization.Formatters.Soap/list delete mode 100644 mcs/class/System.Runtime.Serialization.Formatters.Soap/makefile.gnu delete mode 100755 mcs/class/System.Web.Services/.cvsignore delete mode 100644 mcs/class/System.Web.Services/ChangeLog delete mode 100755 mcs/class/System.Web.Services/Mono.System.Web.Services.csproj delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPointAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPrefixAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/BindingCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/DocumentableItem.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/FaultBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/FaultBindingCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/HttpAddressBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/HttpBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/HttpOperationBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlEncodedBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlReplacementBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/Import.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ImportCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/InputBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/Message.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MessageBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MessageCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MessagePart.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MessagePartCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimeContentBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimeMultipartRelatedBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimePart.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimePartCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatch.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatchCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/MimeXmlBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/Operation.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationBindingCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationFault.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationFaultCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationFlow.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationInput.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessage.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessageCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OperationOutput.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/OutputBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/PortCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/PortType.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/PortTypeCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolImporter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolReflector.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/Service.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionBaseCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtension.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtensionCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportStyle.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportWarnings.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImporter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionReflector.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapAddressBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingStyle.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingUse.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapBodyBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionImporter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionReflector.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapFaultBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderFaultBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapOperationBinding.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolReflector.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/SoapTransportImporter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Description/Types.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractSearchPattern.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientDocumentCollection.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientReferenceCollection.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResult.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResultCollection.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocument.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentLinksPattern.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentReference.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentSearchPattern.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryExceptionDictionary.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReference.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReferenceCollection.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryRequestHandler.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoverySearchPattern.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/DynamicDiscoveryDocument.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/ExcludePathInfo.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/SchemaReference.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/SoapBinding.cs delete mode 100755 mcs/class/System.Web.Services/System.Web.Services.Discovery/XmlSchemaSearchPattern.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/AnyReturnReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterWriter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpGetClientProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpMethodAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpPostClientProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleClientProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpWebClientProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodInfo.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodTypes.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/MatchAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeFormatter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterWriter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeReturnReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/NopReturnReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/PatternMatcher.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMessage.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMethod.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentMethodAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentServiceAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapException.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtension.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtensionAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderCollection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderDirection.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderException.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessage.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessageStage.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapParameterStyle.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcMethodAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcServiceAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerMessage.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServiceRoutingStyle.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapUnknownHeader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/TextReturnReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlEncodedParameterWriter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterWriter.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/ValueCollectionParameterReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientAsyncResult.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientProtocol.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.Protocols/XmlReturnReader.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services.build delete mode 100644 mcs/class/System.Web.Services/System.Web.Services/ChangeLog delete mode 100644 mcs/class/System.Web.Services/System.Web.Services/TODOAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services/WebMethodAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services/WebService.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services/WebServiceAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services/WebServiceBindingAttribute.cs delete mode 100644 mcs/class/System.Web.Services/System.Web.Services/WebServicesDescriptionAttribute.cs delete mode 100644 mcs/class/System.Web.Services/Test/AllTests.cs delete mode 100644 mcs/class/System.Web.Services/Test/ChangeLog delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/AllTests.cs delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/ChangeLog delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/XmlFormatExtensionAttributeTest.cs delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/AllTests.cs delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ChangeLog delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ContractReferenceTest.cs delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services/AllTests.cs delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services/ChangeLog delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services/WebMethodAttributeTest.cs delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services/WebServiceAttributeTest.cs delete mode 100644 mcs/class/System.Web.Services/Test/System.Web.Services_test.build delete mode 100644 mcs/class/System.Web.Services/list delete mode 100644 mcs/class/System.Web.Services/makefile.gnu delete mode 100644 mcs/class/System.Web/.cvsignore delete mode 100644 mcs/class/System.Web/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Caching/Cache.cs delete mode 100644 mcs/class/System.Web/System.Web.Caching/CacheDefinitions.cs delete mode 100644 mcs/class/System.Web/System.Web.Caching/CacheDependency.cs delete mode 100644 mcs/class/System.Web/System.Web.Caching/CacheEntry.cs delete mode 100644 mcs/class/System.Web/System.Web.Caching/CacheExpires.cs delete mode 100644 mcs/class/System.Web/System.Web.Caching/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Caching/ExpiresBuckets.cs delete mode 100644 mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs delete mode 100644 mcs/class/System.Web/System.Web.Compilation/AspElements.cs delete mode 100644 mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs delete mode 100644 mcs/class/System.Web/System.Web.Compilation/AspParser.cs delete mode 100644 mcs/class/System.Web/System.Web.Compilation/AspTokenizer.cs delete mode 100644 mcs/class/System.Web/System.Web.Compilation/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Compilation/PageCompiler.cs delete mode 100644 mcs/class/System.Web/System.Web.Compilation/TemplateFactory.cs delete mode 100755 mcs/class/System.Web/System.Web.Configuration/AuthenticationMode.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Configuration/ClientTargetSectionHandler.cs delete mode 100755 mcs/class/System.Web/System.Web.Configuration/FormsAuthPasswordFormat.cs delete mode 100755 mcs/class/System.Web/System.Web.Configuration/FormsProtectionEnum.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/GlobalizationConfiguration.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/HandlerFactoryConfiguration.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/HandlerFactoryProxy.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/HandlerItem.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/HttpCapabilitiesBase.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/ModuleItem.cs delete mode 100644 mcs/class/System.Web/System.Web.Configuration/ModulesConfiguration.cs delete mode 100644 mcs/class/System.Web/System.Web.Hosting/AppDomainFactory.cs delete mode 100644 mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs delete mode 100644 mcs/class/System.Web/System.Web.Hosting/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Hosting/IAppDomainFactory.cs delete mode 100644 mcs/class/System.Web/System.Web.Hosting/IISAPIRuntime.cs delete mode 100644 mcs/class/System.Web/System.Web.Hosting/ISAPIRuntime.cs delete mode 100644 mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs delete mode 100644 mcs/class/System.Web/System.Web.Mail/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Mail/MailAttachment.cs delete mode 100644 mcs/class/System.Web/System.Web.Mail/MailEncoding.cs delete mode 100644 mcs/class/System.Web/System.Web.Mail/MailFormat.cs delete mode 100644 mcs/class/System.Web/System.Web.Mail/MailMessage.cs delete mode 100644 mcs/class/System.Web/System.Web.Mail/MailPriority.cs delete mode 100644 mcs/class/System.Web/System.Web.Mail/SmtpMail.cs delete mode 100644 mcs/class/System.Web/System.Web.Security/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.SessionState/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.SessionState/HttpSessionState.cs delete mode 100644 mcs/class/System.Web/System.Web.SessionState/IReadOnlySessionState.cs delete mode 100644 mcs/class/System.Web/System.Web.SessionState/IRequiresSessionState.cs delete mode 100644 mcs/class/System.Web/System.Web.SessionState/SessionDictionary.cs delete mode 100644 mcs/class/System.Web/System.Web.SessionState/SessionStateMode.cs delete mode 100644 mcs/class/System.Web/System.Web.SessionState/SessionStateModule.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlAnchor.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlButton.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlContainerControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlGenericControl.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlImage.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputCheckBox.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputControl.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputFile.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputHidden.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputImage.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputRadioButton.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputText.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTable.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableCell.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableCellCollection.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRowCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/.cvsignore delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/AdCreatedEventArgs.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/AdCreatedEventHandler.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/AdRotator.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/BaseCompareValidator.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/BaseDataList.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/BaseValidator.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/BorderStyle.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/BoundColumn.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/Button.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumn.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ButtonColumnType.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/CalendarDay.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/CalendarSelectionMode.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/CheckBox.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/CommandEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/CommandEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/CompareValidator.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridColumn.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridColumnCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridCommandEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridCommandEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridItem.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridItemCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridItemEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridItemEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridPageChangedEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridPageChangedEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridPagerStyle.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridSortCommandEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataGridSortCommandEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataKeyCollection.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/DataList.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataListCommandEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataListCommandEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataListItem.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataListItemCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataListItemEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DataListItemEventHandler.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/DayNameFormat.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DayRenderEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DayRenderEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/DropDownList.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/EditCommandColumn.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/FirstDayOfWeek.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/FontInfo.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/FontNamesConverter.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/FontSize.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/FontUnit.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/FontUnitConverter.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/GridLines.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/HorizontalAlign.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/HyperLink.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/HyperLinkColumn.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/HyperLinkControlBuilder.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/IRepeatInfoUser.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Image.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ImageAlign.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ImageButton.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Label.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/LabelControlBuilder.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/LinkButton.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/LinkButtonControlBuilder.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/LinkButtonInternal.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ListBox.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ListControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ListItem.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ListItemCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ListItemControlBuilder.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ListItemType.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ListSelectionMode.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Literal.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/LiteralControlBuilder.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/MonthChangedEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/MonthChangedEventHandler.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/NextPrevFormat.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/PagedDataSource.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/PagerMode.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/PagerPosition.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Panel.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/PlaceHolder.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/PlaceHolderControlBuilder.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RadioButton.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RangeValidator.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RegularExpressionValidator.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/RepeatDirection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RepeatInfo.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/RepeatLayout.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Repeater.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RepeaterCommandEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RepeaterCommandEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RepeaterItem.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RepeaterItemCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RepeaterItemEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RepeaterItemEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/RequiredFieldValidator.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/SelectedDatesCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ServerValidateEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ServerValidateEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Style.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/TODO delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Table.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableCell.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableCellCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableCellControlBuilder.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableHeaderCell.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableItemStyle.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableRow.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableRowCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TargetConverter.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TemplateColumn.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/TextAlign.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TextBox.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/TextBoxControlBuilder.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/TextBoxMode.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/TitleFormat.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Unit.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/UnitConverter.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/UnitType.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ValidatedControlConverter.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ValidationCompareOperator.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ValidationDataType.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/ValidationSummary.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ValidationSummaryDisplayMode.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/ValidatorDisplay.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/VerticalAlign.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/WebColorConverter.cs delete mode 100755 mcs/class/System.Web/System.Web.UI.WebControls/WebControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI.WebControls/Xml.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/ApplicationFileParser.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/AttributeCollection.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/BaseParser.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/BuildMethod.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/BuildTemplateMethod.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.UI/CompiledTemplateBuilder.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/ConstructorNeedsTagAttribute.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/Control.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/ControlBuilder.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/ControlBuilderAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/ControlCollection.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/CssStyleCollection.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/DataBinder.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/DataBinding.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/DataBindingCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/DataBindingHandlerAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/DataBoundLiteralControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/DesignTimeParseData.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/HtmlTextWriterAttribute.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/HtmlTextWriterStyle.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/HtmlTextWriterTag.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/IAttributeAccessor.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/IDataBindingsAccessor.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/INamingContainer.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/IParserAccessor.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/IPostBackDataHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/IPostBackEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/IStateManager.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/ITagNameToTypeMapper.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/ITemplate.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/IValidator.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/ImageClickEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/ImageClickEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/LiteralControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/LosFormatter.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/OutputCacheLocation.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/Page.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/PageParser.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/Pair.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/ParseChildrenAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/PartialCachingAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/PersistChildrenAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/PersistenceMode.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/PersistenceModeAttribute.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/PropertyConverter.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/RenderMethod.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/StateBag.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/StateItem.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/TODO delete mode 100755 mcs/class/System.Web/System.Web.UI/TagPrefixAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/TemplateContainerAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/TemplateControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/TemplateControlParser.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/TemplateParser.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/ToolboxDataAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/Triplet.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/UserControl.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/Utils.cs delete mode 100644 mcs/class/System.Web/System.Web.UI/ValidationPropertyAttribute.cs delete mode 100755 mcs/class/System.Web/System.Web.UI/ValidatorCollection.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/.cvsignore delete mode 100644 mcs/class/System.Web/System.Web.Utils/ApacheVersionInfo.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web.Utils/DataSourceHelper.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/FileAction.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/FileChangeEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/FileChangedEventArgs.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/FileChangesMonitor.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/FilePathParser.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/IISVersionInfo.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/NativeFileChangeEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/UrlUtils.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/WebEqualComparer.cs delete mode 100644 mcs/class/System.Web/System.Web.Utils/WebHashCodeProvider.cs delete mode 100644 mcs/class/System.Web/System.Web.build delete mode 100644 mcs/class/System.Web/System.Web/.cvsignore delete mode 100644 mcs/class/System.Web/System.Web/BeginEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web/ChangeLog delete mode 100644 mcs/class/System.Web/System.Web/EndEventHandler.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpApplication.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpApplicationFactory.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpApplicationState.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpAsyncResult.cs delete mode 100755 mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCachePolicy.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCacheRevalidation.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCacheValidateHandler.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCacheVaryByHeaders.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCacheVaryByParams.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCacheability.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpClientCertificate.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCompileException.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpContext.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCookie.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpCookieCollection.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpException.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpFileCollection.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpHelper.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpModuleCollection.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpParseException.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpPostedFile.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpRequest.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpRequestStream.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpResponse.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpResponseHeader.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpResponseStream.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpResponseStreamProxy.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpRuntime.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpServerUtility.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpStaticObjectsCollection.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpUnhandledException.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpUtility.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpValidationStatus.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpValueCollection.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpWorkerRequest.cs delete mode 100644 mcs/class/System.Web/System.Web/HttpWriter.cs delete mode 100644 mcs/class/System.Web/System.Web/IHttpAsyncHandler.cs delete mode 100644 mcs/class/System.Web/System.Web/IHttpHandler.cs delete mode 100644 mcs/class/System.Web/System.Web/IHttpHandlerFactory.cs delete mode 100644 mcs/class/System.Web/System.Web/IHttpModule.cs delete mode 100644 mcs/class/System.Web/System.Web/NOTES delete mode 100644 mcs/class/System.Web/System.Web/ProcessInfo.cs delete mode 100644 mcs/class/System.Web/System.Web/ProcessModelInfo.cs delete mode 100644 mcs/class/System.Web/System.Web/ProcessShutdownReason.cs delete mode 100644 mcs/class/System.Web/System.Web/ProcessStatus.cs delete mode 100644 mcs/class/System.Web/System.Web/TODO delete mode 100644 mcs/class/System.Web/System.Web/TODOAttribute.cs delete mode 100644 mcs/class/System.Web/System.Web/TraceContext.cs delete mode 100644 mcs/class/System.Web/System.Web/TraceMode.cs delete mode 100644 mcs/class/System.Web/System.Web/WebCategoryAttribute.cs delete mode 100644 mcs/class/System.Web/System.Web/WebSysDescriptionAttribute.cs delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/AsyncHandler.cs delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/AsyncModule.cs delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/AsyncOperation.cs delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/README delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/SyncHandler.cs delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/SyncModule.cs delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/Test1.cs delete mode 100644 mcs/class/System.Web/Test/TestMonoWeb/TestMonoWeb.build delete mode 100644 mcs/class/System.Web/Test/test.aspx delete mode 100644 mcs/class/System.Web/Test/test2.aspx delete mode 100644 mcs/class/System.Web/Test/test3.aspx delete mode 100644 mcs/class/System.Web/Test/test4.aspx delete mode 100644 mcs/class/System.Web/Test/test5.aspx delete mode 100644 mcs/class/System.Web/Test/test6.aspx delete mode 100755 mcs/class/System.Web/list delete mode 100644 mcs/class/System.Web/makefile.gnu delete mode 100644 mcs/class/System.Windows.Forms/Gtk/AnchorStyles.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/Application.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/Button.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/ButtonBase.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/ContainerControl.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/Control.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/ControlEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/ControlEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/DialogResult.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/Form.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/HorizontalAlignment.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/IButtonControl.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/IContainerControl.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/Label.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/ProgressBar.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/ScrollBars.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/ScrollableControl.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/TextBox.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/TextBoxBase.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/changelog delete mode 100644 mcs/class/System.Windows.Forms/Gtk/demo.cs delete mode 100644 mcs/class/System.Windows.Forms/Gtk/makefile delete mode 100644 mcs/class/System.Windows.Forms/System.Resources/ResXResourceReader.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Resources/ResXResourceWriter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/AnchorEditor.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/AssemblyInfo.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/AxImporter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/ComponentDocumentDesigner.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/ComponentEditor.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/ComponentEditorForm.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/ComponentTray.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/ControlDesigner.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/DocumentDesigner.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/EventsTab.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/FileNameEditor.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/IMenuEditorService.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/IUIService.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/IWindowsformsEditorService.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/MenusCommands.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/ParentControlDesigner.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/PropertyTab.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/ScrollableControlDesigner.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/SelectionRules.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/System.Windows.Forms.Design.csproj delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/System.Windows.Forms.Design.csproj.user delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/TODOAttribute.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/UITypeEditor.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms.Design/changelog delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AccessibleEvents.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AccessibleNavigation.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AccessibleObject.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AccessibleRole.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AccessibleSelection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AccessibleStates.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AmbientProperties.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AnchorStyles.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Appearance.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Application.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ApplicationContext.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ArrangeDirection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ArrangeStartingPosition.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AssemblyInfo.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/AxHost.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BaseCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Binding.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BindingContext.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BindingManagerBase.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BindingMemberInfo.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BindingsCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BootMode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Border3DSide.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Border3DStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BorderStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/BoundsSpecified.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ButtonBorderStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ButtonState.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CaptionButton.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ChangeLog delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CharacterCasing.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CheckBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CheckState.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CheckedListBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Clipboard.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ColorDepth.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ColorDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ColumnClickEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ColumnClickEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ColumnHeader.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ColumnHeaderStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ComVisible.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ComboBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ComboBoxStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CommonDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ContainerControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ContentsResizedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ContentsResizedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ContextMenu.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Control.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ControlBindingsCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ControlEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ControlEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ControlPaint.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ControlStyles.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ConvertEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ConvertEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CreateParams.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CurrencyManager.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Cursor.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/CursorConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Cursors.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataFormats.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGrid.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridBoolColumn.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridCell.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridLineStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridParentRowsLabelStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridPreferredColumnWidthTypeConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridTableStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridTextBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DataObject.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DateBoldEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DateRangeEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DateRangeEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DateTimePicker.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DateTimePickerFormat.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DialogResult.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DockStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DomainUpDown.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DragAction.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DragDropEffects.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DragEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DragEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DrawItemEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DrawItemEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DrawItemState.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/DrawMode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ErrorBlinkStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ErrorIconAlignment.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ErrorProvider.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FeatureSupport.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FileDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FlatStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FontDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Form.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FormBorderStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FormStartPosition.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FormWindowState.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/FrameStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GiveFeedbackEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GiveFeedbackEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GridColumnStylesCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GridItem.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GridItemCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GridItemType.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GridTableStylesCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/GroupBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/HScrollBar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Help.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/HelpEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/HelpEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/HelpNavigator.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/HelpProvider.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/HorizontalAlignment.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IButtonControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ICommandExecutor.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IComponentEditorPageSite.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IContainerControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IDataGridColumnStyleEditingNotificationService.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IDataGridEditingService.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IDataObject.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IFeatureSupport.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IFileReaderService.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IMessageFilter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IWin32Window.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/IWindowTarget.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ImageIndexConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ImageList.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ImageListStreamer.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ImeMode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InputLanguage.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InputLanguageChangedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InputLanguageChangedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InputLanguageChangingEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InputLanguageChangingEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InputLanguageCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InvalidateEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/InvalidateEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemActivation.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemBoundsPortion.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemChangedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemChangedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemCheckEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemCheckEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemDragEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ItemDragEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/KeyEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/KeyEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/KeyPressEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/KeyPressEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Keys.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/KeysConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LabelEditEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LabelEditEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LayoutEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LayoutEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LeftRightAlignment.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkArea.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkBehavior.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkClickedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkClickedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkLabel.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkLabelLinkClickedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkLabelLinkClickedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/LinkState.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ListBindingConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ListBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ListControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ListView.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ListViewAlignment.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ListViewItem.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ListViewItemConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MainMenu.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MdiLayout.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MeasureItemEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MeasureItemEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Menu.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MenuGlyph.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MenuItem.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MenuMerge.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Message.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MessageBoxButtons.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MessageBoxDefaultButton.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MessageBoxIcon.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MessageBoxOptions.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MethodInvoker.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MonthCalendar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MouseButtons.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MouseEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/MouseEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/NativeWindow.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/NavigateEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/NavigateEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/NodeLabelEditEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/NodeLabelEditEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/NotifyIcon.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/NumericUpDown.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/OSFeature.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/OpacityConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/OpenFileDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Orientation.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PaintEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PaintEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Panel.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PictureBoxSizeMode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PrintControllerWithStatusDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PrintDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PrintPreviewControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PrintPreviewDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ProgressBar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PropertyGrid.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PropertyManager.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PropertySort.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PropertyTabChangedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PropertyTabChangedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PropertyValueChangedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/PropertyValueChangedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/QueryAccessibilityHelpEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/QueryAccessibilityHelpEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/QueryContinueDragEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/QueryContinueDragEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RadioButton.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RichTextBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RichTextBoxFinds.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RichTextBoxScrollBars.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RichTextBoxSelectionAttribute.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RichTextBoxSelectionTypes.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RichTextBoxStreamType.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RichTextBoxWordPunctuations.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/RightToLeft.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SaveFileDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Screen.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollBar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollBars.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollButton.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollEventType.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ScrollableControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SecurityIDType.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SelectedGridItemChangedEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SelectedGridItemChangedEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SelectionMode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SelectionRange.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SelectionRangeConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SendKeys.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Shortcut.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SizeGripStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SortOrder.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Splitter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SplitterEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SplitterEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarDrawItemEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarDrawItemEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarPanel.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarPanelAutoSize.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarPanelBorderStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarPanelClickEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarPanelClickEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarPanelCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StatusBarPanelStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/StructFormat.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/System.Windows.Forms.csproj delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/System.Windows.Forms.csproj.user delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/System.Windows.Forms.sln delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/SystemInformation.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TODOAttribute.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TabAlignment.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TabAppearance.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TabControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TabDrawMode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TabPage.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TabSizeMode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TextBox.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TextBoxBase.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ThreadExceptionDialog.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TickStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Timer.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ToolBar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ToolBarAppearance.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ToolBarButton.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ToolBarButtonClickEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ToolBarButtonClickEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ToolBarButtonStyle.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ToolBarTextAlign.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TrackBar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeNode.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeNodeCollection.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeNodeConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeView.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeViewAction.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeViewCancelEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeViewCancelEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeViewEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeViewEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/TreeViewImageIndexConverter.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/UICues.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/UICuesEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/UICuesEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/UpDownBase.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/UpDownEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/UpDownEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/UserControl.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/VScrollBar.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/View.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/Win32.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/day.cs delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/makefile delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/monostub.c delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/ochangelog delete mode 100644 mcs/class/System.Windows.Forms/System.Windows.Forms/tooltip.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/Application.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/ContainerControl.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/Control.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/DrawItemEventArgs.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/DrawItemEventHandler.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/Font.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/Form.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/FormTest.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/IAccessible.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/IContainerControl.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/MenuItem.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/NativeWindow.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/NativeWindowTest.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/ScrollableControl.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/Test.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/Win32.cs delete mode 100644 mcs/class/System.Windows.Forms/WINELib/build.sh delete mode 100644 mcs/class/System.Windows.Forms/WINELib/changelog delete mode 100644 mcs/class/System.Windows.Forms/WINELib/makefile delete mode 100644 mcs/class/System.Windows.Forms/WINELib/monostart.c delete mode 100644 mcs/class/System.Windows.Forms/WINELib/monostub.c delete mode 100644 mcs/class/System.Windows.Forms/WINELib/test.sh delete mode 100644 mcs/class/System.XML/.cvsignore delete mode 100644 mcs/class/System.XML/ChangeLog delete mode 100644 mcs/class/System.XML/Mono.System.XML.csproj delete mode 100644 mcs/class/System.XML/Mono.System.XML.sln delete mode 100755 mcs/class/System.XML/README delete mode 100644 mcs/class/System.XML/System.XML.build delete mode 100755 mcs/class/System.XML/System.Xml.Schema/BUGS-MS.txt delete mode 100755 mcs/class/System.XML/System.Xml.Schema/BUGS.txt delete mode 100755 mcs/class/System.XML/System.Xml.Schema/ChangeLog delete mode 100755 mcs/class/System.XML/System.Xml.Schema/ValidationEventArgs.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/ValidationHandler.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAll.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnnotated.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnnotation.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAny.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnyAttribute.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAppInfo.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttributeGroup.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttributeGroupRef.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaChoice.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaCollection.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaCollectionEnumerator.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContent.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentExtension.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaContent.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaContentModel.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaContentProcessing.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaContentType.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaDatatype.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaDerivationMethod.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaDocumentation.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaElement.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaEnumerationFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaException.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaExternal.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaForm.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaFractionDigitsFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaGroup.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaGroupBase.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaGroupRef.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaIdentityConstraint.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaImport.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaInclude.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaInfo.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaKey.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaKeyref.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaLengthFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaMaxExclusiveFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaMaxInclusiveFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaMaxLengthFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaMinExclusiveFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaMinInclusiveFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaMinLengthFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaNotation.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaNumericFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaObject.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaObjectCollection.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaObjectEnumerator.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaObjectTable.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaParticle.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaPatternFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaReader.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaRedefine.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSequence.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleContent.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleContentExtension.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleContentRestriction.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleType.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeContent.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeList.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeRestriction.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleTypeUnion.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaTotalDigitsFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaType.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaUnique.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaUse.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaUtil.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaWhiteSpaceFacet.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSchemaXPath.cs delete mode 100755 mcs/class/System.XML/System.Xml.Schema/XmlSeverityType.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/AssemblyInfo.cs delete mode 100755 mcs/class/System.XML/System.Xml.Serialization/ChangeLog delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/CodeIdentifier.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/CodeIdentifiers.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/IXmlSerializable.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapAttributeAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapAttributeOverrides.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapAttributes.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapCodeExporter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapElementAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapEnumAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapIgnoreAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapIncludeAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapReflectionImporter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapSchemaImporter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapSchemaMember.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/SoapTypeAttribute.cs delete mode 100755 mcs/class/System.XML/System.Xml.Serialization/TypeMember.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/UnreferencedObjectEventArgs.cs delete mode 100755 mcs/class/System.XML/System.Xml.Serialization/UnreferencedObjectEventHandler.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlAnyAttributeAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlAnyElementAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlAnyElementAttributes.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlArrayAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlArrayItemAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlArrayItemAttributes.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlAttributeAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlAttributeEventArgs.cs delete mode 100755 mcs/class/System.XML/System.Xml.Serialization/XmlAttributeEventHandler.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlAttributeOverrides.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlAttributes.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlChoiceIdentifierAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlCodeExporter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlElementAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlElementAttributes.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlElementEventArgs.cs delete mode 100755 mcs/class/System.XML/System.Xml.Serialization/XmlElementEventHandler.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlEnumAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlIgnoreAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlIncludeAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlMapping.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlMemberMapping.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlMembersMapping.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlNamespaceDeclarationsAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlNodeEventArgs.cs delete mode 100755 mcs/class/System.XML/System.Xml.Serialization/XmlNodeEventHandler.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlReflectionMember.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlRootAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSchemaExporter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSchemas.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializationCollectionFixupCallback.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializationFixupCallback.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReadCallback.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReader.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializationWriteCallback.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializationWriter.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlSerializerNamespaces.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlTextAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlTypeAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml.Serialization/XmlTypeMapping.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/ChangeLog delete mode 100644 mcs/class/System.XML/System.Xml.XPath/DefaultContext.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/Expression.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/IXPathNavigable.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/Iterator.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/Parser.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/Parser.jay delete mode 100644 mcs/class/System.XML/System.Xml.XPath/Tokenizer.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathDocument.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathException.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathExpression.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathNamespaceScope.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathNodeIterator.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathNodeType.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XPathResultType.cs delete mode 100755 mcs/class/System.XML/System.Xml.XPath/XmlCaseOrder.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XmlDataType.cs delete mode 100644 mcs/class/System.XML/System.Xml.XPath/XmlSortOrder.cs delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/ChangeLog delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/IXsltContextFunction.cs delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/IXsltContextVariable.cs delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/XslTransform.cs delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/XsltArgumentList.cs delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/XsltCompileException.cs delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/XsltContext.cs delete mode 100644 mcs/class/System.XML/System.Xml.Xsl/XsltException.cs delete mode 100644 mcs/class/System.XML/System.Xml/ChangeLog delete mode 100644 mcs/class/System.XML/System.Xml/Driver.cs delete mode 100755 mcs/class/System.XML/System.Xml/EntityHandling.cs delete mode 100755 mcs/class/System.XML/System.Xml/Formatting.cs delete mode 100755 mcs/class/System.XML/System.Xml/IHasXmlNode.cs delete mode 100644 mcs/class/System.XML/System.Xml/IXmlLineInfo.cs delete mode 100755 mcs/class/System.XML/System.Xml/NameTable.cs delete mode 100644 mcs/class/System.XML/System.Xml/Profile.cs delete mode 100644 mcs/class/System.XML/System.Xml/ReadState.cs delete mode 100644 mcs/class/System.XML/System.Xml/TODOAttribute.cs delete mode 100755 mcs/class/System.XML/System.Xml/ValidationType.cs delete mode 100644 mcs/class/System.XML/System.Xml/WhitespaceHandling.cs delete mode 100755 mcs/class/System.XML/System.Xml/WriteState.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlAttribute.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlCDataSection.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlChar.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlCharacterData.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlComment.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlConstructs.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlConvert.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlDeclaration.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlDocument.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlDocumentFragment.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlDocumentType.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlElement.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlEntity.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlEntityReference.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlException.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlImplementation.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlLinkedNode.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNameTable.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNamedNodeMap.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNamespaceManager.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNode.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNodeArrayList.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlNodeChangedAction.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNodeChangedEventArgs.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlNodeChangedEventHandler.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNodeList.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNodeListChildren.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlNodeOrder.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlNodeReader.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlNodeType.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlNotation.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlParserContext.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlProcessingInstruction.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlQualifiedName.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlReader.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlResolver.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlSignificantWhitespace.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlSpace.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlText.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlTextReader.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlTextWriter.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlTokenizedType.cs delete mode 100755 mcs/class/System.XML/System.Xml/XmlUrlResolver.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlWhitespace.cs delete mode 100644 mcs/class/System.XML/System.Xml/XmlWriter.cs delete mode 100644 mcs/class/System.XML/Test/.cvsignore delete mode 100644 mcs/class/System.XML/Test/AllTests.cs delete mode 100644 mcs/class/System.XML/Test/ChangeLog delete mode 100644 mcs/class/System.XML/Test/Microsoft.Test.csproj delete mode 100644 mcs/class/System.XML/Test/Mono.Test.csproj delete mode 100644 mcs/class/System.XML/Test/MonoMicro.Test.csproj delete mode 100755 mcs/class/System.XML/Test/NameTableTests.cs delete mode 100644 mcs/class/System.XML/Test/SelectNodesTests.cs delete mode 100644 mcs/class/System.XML/Test/System.XML_linux_test.args delete mode 100644 mcs/class/System.XML/Test/System.XML_test.build delete mode 100644 mcs/class/System.XML/Test/TheTests.cs delete mode 100644 mcs/class/System.XML/Test/XPathNavigatorMatchesTests.cs delete mode 100644 mcs/class/System.XML/Test/XPathNavigatorTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlAttributeTests.cs delete mode 100755 mcs/class/System.XML/Test/XmlCDataSectionTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlCharacterDataTests.cs delete mode 100755 mcs/class/System.XML/Test/XmlCommentTests.cs delete mode 100755 mcs/class/System.XML/Test/XmlDeclarationTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlDocumentTests.cs delete mode 100755 mcs/class/System.XML/Test/XmlDocumentTypeTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlElementTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlNamespaceManagerTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlNodeListTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlNodeTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlProcessingInstructionTests.cs delete mode 100755 mcs/class/System.XML/Test/XmlSignificantWhitespaceTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlTextReaderTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlTextTests.cs delete mode 100644 mcs/class/System.XML/Test/XmlTextWriterTests.cs delete mode 100755 mcs/class/System.XML/Test/XmlWhiteSpaceTests.cs delete mode 100644 mcs/class/System.XML/Test/makefile.gnu delete mode 100755 mcs/class/System.XML/list delete mode 100755 mcs/class/System.XML/list.unix delete mode 100644 mcs/class/System.XML/makefile.gnu delete mode 100644 mcs/class/System/.cvsignore delete mode 100644 mcs/class/System/ChangeLog delete mode 100644 mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs delete mode 100644 mcs/class/System/Microsoft.CSharp/CSharpCodeProvider.cs delete mode 100644 mcs/class/System/Microsoft.CSharp/ChangeLog delete mode 100755 mcs/class/System/README delete mode 100755 mcs/class/System/System.CodeDom.Compiler/ChangeLog delete mode 100644 mcs/class/System/System.CodeDom.Compiler/CodeDomProvider.cs delete mode 100755 mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/CodeGeneratorOptions.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/CompilerErrorCollection.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/CompilerOptions.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/CompilerParameters.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/CompilerResults.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/GeneratorSupport.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/ICodeCompiler.cs delete mode 100755 mcs/class/System/System.CodeDom.Compiler/ICodeGenerator.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/ICodeParser.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/IndentedTextWriter.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/LanguageOptions.cs delete mode 100644 mcs/class/System/System.CodeDom.Compiler/TempFileCollection.cs delete mode 100644 mcs/class/System/System.CodeDom/ChangeLog delete mode 100644 mcs/class/System/System.CodeDom/CodeArgumentReferenceExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeArrayCreateExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeArrayIndexerExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeAssignStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeAttachEventStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeAttributeArgument.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeAttributeArgumentCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeAttributeDeclaration.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeAttributeDeclarationCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeBaseReferenceExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeBinaryOperatorExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeBinaryOperatorType.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeCastExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeCatchClause.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeCatchClauseCollection.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeComment.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeCommentStatement.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeCommentStatementCollection.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeCompileUnit.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeConditionStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeConstructor.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeDelegateCreateExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeDelegateInvokeExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeDirectionExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeEntryPointMethod.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeEventReferenceExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeExpressionCollection.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeExpressionStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeFieldReferenceExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeGotoStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeIndexerExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeIterationStatement.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeLabeledStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeLinePragma.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeMemberEvent.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeMemberField.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeMemberMethod.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeMemberProperty.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeMethodInvokeExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeMethodReferenceExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeMethodReturnStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeNamespace.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeNamespaceCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeNamespaceImport.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeNamespaceImportCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeObject.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeObjectCreateExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeParameterDeclarationExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeParameterDeclarationExpressionCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodePrimitiveExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodePropertyReferenceExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodePropertySetValueReferenceExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeRemoveEventStatement.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeSnippetCompileUnit.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeSnippetExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeSnippetStatement.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeSnippetTypeMember.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeStatementCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeThisReferenceExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeThrowExceptionStatement.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeTryCatchFinallyStatement.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeTypeConstructor.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeTypeDeclaration.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeTypeDeclarationCollection.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeTypeDelegate.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeTypeMember.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeTypeMemberCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeTypeOfExpression.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeTypeReference.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeTypeReferenceCollection.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeTypeReferenceExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/CodeVariableDeclarationStatement.cs delete mode 100644 mcs/class/System/System.CodeDom/CodeVariableReferenceExpression.cs delete mode 100755 mcs/class/System/System.CodeDom/FieldDirection.cs delete mode 100755 mcs/class/System/System.CodeDom/MemberAttributes.cs delete mode 100644 mcs/class/System/System.Collections.Specialized/BitVector32.cs delete mode 100755 mcs/class/System/System.Collections.Specialized/ChangeLog delete mode 100644 mcs/class/System/System.Collections.Specialized/CollectionsUtil.cs delete mode 100644 mcs/class/System/System.Collections.Specialized/HybridDictionary.cs delete mode 100644 mcs/class/System/System.Collections.Specialized/ListDictionary.cs delete mode 100644 mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs delete mode 100644 mcs/class/System/System.Collections.Specialized/NameValueCollection.cs delete mode 100755 mcs/class/System/System.Collections.Specialized/StringCollection.cs delete mode 100644 mcs/class/System/System.Collections.Specialized/StringDictionary.cs delete mode 100644 mcs/class/System/System.Collections.Specialized/StringEnumerator.cs delete mode 100644 mcs/class/System/System.ComponentModel/AttributeCollection.cs delete mode 100755 mcs/class/System/System.ComponentModel/BindableAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/BindableSupport.cs delete mode 100755 mcs/class/System/System.ComponentModel/BrowsableAttribute.cs delete mode 100755 mcs/class/System/System.ComponentModel/CategoryAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/ChangeLog delete mode 100644 mcs/class/System/System.ComponentModel/CollectionChangeAction.cs delete mode 100644 mcs/class/System/System.ComponentModel/CollectionChangeEventArgs.cs delete mode 100644 mcs/class/System/System.ComponentModel/CollectionChangeEventHandler.cs delete mode 100644 mcs/class/System/System.ComponentModel/Component.cs delete mode 100644 mcs/class/System/System.ComponentModel/ComponentCollection.cs delete mode 100644 mcs/class/System/System.ComponentModel/Container.cs delete mode 100644 mcs/class/System/System.ComponentModel/DefaultEventAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/DefaultPropertyAttribute.cs delete mode 100755 mcs/class/System/System.ComponentModel/DefaultValueAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/DerivedPropertyDescriptor.cs delete mode 100755 mcs/class/System/System.ComponentModel/DescriptionAttribute.cs delete mode 100755 mcs/class/System/System.ComponentModel/DesignOnlyAttribute.cs delete mode 100755 mcs/class/System/System.ComponentModel/DesignerSerializationVisibility.cs delete mode 100755 mcs/class/System/System.ComponentModel/DesignerSerializationVisibilityAttribute.cs delete mode 100755 mcs/class/System/System.ComponentModel/EditorBrowsableAttribute.cs delete mode 100755 mcs/class/System/System.ComponentModel/EditorBrowsableState.cs delete mode 100644 mcs/class/System/System.ComponentModel/EnumConverter.cs delete mode 100644 mcs/class/System/System.ComponentModel/EventDescriptor.cs delete mode 100644 mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs delete mode 100644 mcs/class/System/System.ComponentModel/EventHandlerList.cs delete mode 100644 mcs/class/System/System.ComponentModel/ExpandableObjectConverter.cs delete mode 100644 mcs/class/System/System.ComponentModel/IBindingList.cs delete mode 100644 mcs/class/System/System.ComponentModel/IComponent.cs delete mode 100644 mcs/class/System/System.ComponentModel/IContainer.cs delete mode 100644 mcs/class/System/System.ComponentModel/ICustomTypeDescriptor.cs delete mode 100644 mcs/class/System/System.ComponentModel/IDataErrorInfo.cs delete mode 100644 mcs/class/System/System.ComponentModel/IEditableObject.cs delete mode 100644 mcs/class/System/System.ComponentModel/IListSource.cs delete mode 100644 mcs/class/System/System.ComponentModel/ISite.cs delete mode 100644 mcs/class/System/System.ComponentModel/ISupportInitialize.cs delete mode 100755 mcs/class/System/System.ComponentModel/ISynchronizeInvoke.cs delete mode 100644 mcs/class/System/System.ComponentModel/ITypeDescriptorContext.cs delete mode 100644 mcs/class/System/System.ComponentModel/ITypedList.cs delete mode 100755 mcs/class/System/System.ComponentModel/ListChangedEventArgs.cs delete mode 100755 mcs/class/System/System.ComponentModel/ListChangedEventHandler.cs delete mode 100755 mcs/class/System/System.ComponentModel/ListChangedType.cs delete mode 100644 mcs/class/System/System.ComponentModel/ListSortDirection.cs delete mode 100755 mcs/class/System/System.ComponentModel/LocalizableAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/MarshalByValueComponent.cs delete mode 100755 mcs/class/System/System.ComponentModel/MemberDescriptor.cs delete mode 100755 mcs/class/System/System.ComponentModel/NotifyParentPropertyAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/PropertyChangedEventArgs.cs delete mode 100755 mcs/class/System/System.ComponentModel/PropertyDescriptor.cs delete mode 100644 mcs/class/System/System.ComponentModel/PropertyDescriptorCollection.cs delete mode 100755 mcs/class/System/System.ComponentModel/ReadOnlyAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/RecommendedAsConfigurableAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/RefreshEventArgs.cs delete mode 100644 mcs/class/System/System.ComponentModel/RefreshEventHandler.cs delete mode 100644 mcs/class/System/System.ComponentModel/StringConverter.cs delete mode 100644 mcs/class/System/System.ComponentModel/ToolboxItemAttribute.cs delete mode 100755 mcs/class/System/System.ComponentModel/TypeConverter.cs delete mode 100644 mcs/class/System/System.ComponentModel/TypeConverterAttribute.cs delete mode 100644 mcs/class/System/System.ComponentModel/TypeDescriptor.cs delete mode 100755 mcs/class/System/System.ComponentModel/Win32Exception.cs delete mode 100644 mcs/class/System/System.Configuration/ChangeLog delete mode 100644 mcs/class/System/System.Configuration/ConfigurationException.cs delete mode 100644 mcs/class/System/System.Configuration/ConfigurationSettings.cs delete mode 100644 mcs/class/System/System.Configuration/DictionarySectionHandler.cs delete mode 100644 mcs/class/System/System.Configuration/IConfigurationSectionHandler.cs delete mode 100644 mcs/class/System/System.Configuration/IgnoreSectionHandler.cs delete mode 100644 mcs/class/System/System.Configuration/NameValueSectionHandler.cs delete mode 100644 mcs/class/System/System.Configuration/SingleTagSectionHandler.cs delete mode 100755 mcs/class/System/System.Diagnostics/BooleanSwitch.cs delete mode 100644 mcs/class/System/System.Diagnostics/ChangeLog delete mode 100644 mcs/class/System/System.Diagnostics/CounterCreationData.cs delete mode 100644 mcs/class/System/System.Diagnostics/CounterCreationDataCollection.cs delete mode 100644 mcs/class/System/System.Diagnostics/CounterSample.cs delete mode 100644 mcs/class/System/System.Diagnostics/CounterSampleCalculator.cs delete mode 100644 mcs/class/System/System.Diagnostics/Debug.cs delete mode 100644 mcs/class/System/System.Diagnostics/DefaultTraceListener.cs delete mode 100644 mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs delete mode 100644 mcs/class/System/System.Diagnostics/EntryWrittenEventArgs.cs delete mode 100644 mcs/class/System/System.Diagnostics/EntryWrittenEventHandler.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLog.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogEntry.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogEntryCollection.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogEntryType.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogInstaller.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogPermission.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogPermissionAccess.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogPermissionAttribute.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogPermissionEntry.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogPermissionEntryCollection.cs delete mode 100644 mcs/class/System/System.Diagnostics/EventLogTraceListener.cs delete mode 100755 mcs/class/System/System.Diagnostics/FileVersionInfo.cs delete mode 100644 mcs/class/System/System.Diagnostics/ICollectData.cs delete mode 100644 mcs/class/System/System.Diagnostics/InstanceData.cs delete mode 100644 mcs/class/System/System.Diagnostics/InstanceDataCollection.cs delete mode 100644 mcs/class/System/System.Diagnostics/InstanceDataCollectionCollection.cs delete mode 100644 mcs/class/System/System.Diagnostics/MonitoringDescriptionAttribute.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounter.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterInstaller.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterManager.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterPermission.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterPermissionAccess.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterPermissionAttribute.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterPermissionEntry.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterPermissionEntryCollection.cs delete mode 100644 mcs/class/System/System.Diagnostics/PerformanceCounterType.cs delete mode 100755 mcs/class/System/System.Diagnostics/Process.cs delete mode 100755 mcs/class/System/System.Diagnostics/ProcessModule.cs delete mode 100755 mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs delete mode 100755 mcs/class/System/System.Diagnostics/ProcessPriorityClass.cs delete mode 100755 mcs/class/System/System.Diagnostics/ProcessStartInfo.cs delete mode 100755 mcs/class/System/System.Diagnostics/ProcessThread.cs delete mode 100755 mcs/class/System/System.Diagnostics/ProcessThreadCollection.cs delete mode 100755 mcs/class/System/System.Diagnostics/ProcessWindowStyle.cs delete mode 100755 mcs/class/System/System.Diagnostics/Switch.cs delete mode 100644 mcs/class/System/System.Diagnostics/TextWriterTraceListener.cs delete mode 100755 mcs/class/System/System.Diagnostics/ThreadPriorityLevel.cs delete mode 100755 mcs/class/System/System.Diagnostics/ThreadState.cs delete mode 100755 mcs/class/System/System.Diagnostics/ThreadWaitReason.cs delete mode 100644 mcs/class/System/System.Diagnostics/Trace.cs delete mode 100644 mcs/class/System/System.Diagnostics/TraceImpl.cs delete mode 100755 mcs/class/System/System.Diagnostics/TraceLevel.cs delete mode 100644 mcs/class/System/System.Diagnostics/TraceListener.cs delete mode 100644 mcs/class/System/System.Diagnostics/TraceListenerCollection.cs delete mode 100755 mcs/class/System/System.Diagnostics/TraceSwitch.cs delete mode 100755 mcs/class/System/System.Globalization/Locale.cs delete mode 100755 mcs/class/System/System.IO/ChangeLog delete mode 100644 mcs/class/System/System.IO/ErrorEventArgs.cs delete mode 100644 mcs/class/System/System.IO/ErrorEventHandler.cs delete mode 100644 mcs/class/System/System.IO/FileSystemEventArgs.cs delete mode 100644 mcs/class/System/System.IO/FileSystemEventHandler.cs delete mode 100644 mcs/class/System/System.IO/FileSystemWatcher.cs delete mode 100644 mcs/class/System/System.IO/IODescriptionAttribute.cs delete mode 100644 mcs/class/System/System.IO/InternalBufferOverflowException.cs delete mode 100755 mcs/class/System/System.IO/MonoIO.cs delete mode 100644 mcs/class/System/System.IO/NotifyFilters.cs delete mode 100644 mcs/class/System/System.IO/RenamedEventArgs.cs delete mode 100644 mcs/class/System/System.IO/RenamedEventHandler.cs delete mode 100644 mcs/class/System/System.IO/WaitForChangedResult.cs delete mode 100644 mcs/class/System/System.IO/WatcherChangeTypes.cs delete mode 100644 mcs/class/System/System.Net.Sockets/AddressFamily.cs delete mode 100644 mcs/class/System/System.Net.Sockets/ChangeLog delete mode 100644 mcs/class/System/System.Net.Sockets/LingerOption.cs delete mode 100644 mcs/class/System/System.Net.Sockets/MulticastOption.cs delete mode 100644 mcs/class/System/System.Net.Sockets/NetworkStream.cs delete mode 100644 mcs/class/System/System.Net.Sockets/ProtocolFamily.cs delete mode 100644 mcs/class/System/System.Net.Sockets/ProtocolType.cs delete mode 100644 mcs/class/System/System.Net.Sockets/SelectMode.cs delete mode 100644 mcs/class/System/System.Net.Sockets/Socket.cs delete mode 100644 mcs/class/System/System.Net.Sockets/SocketException.cs delete mode 100644 mcs/class/System/System.Net.Sockets/SocketFlags.cs delete mode 100644 mcs/class/System/System.Net.Sockets/SocketOptionLevel.cs delete mode 100644 mcs/class/System/System.Net.Sockets/SocketOptionName.cs delete mode 100644 mcs/class/System/System.Net.Sockets/SocketShutdown.cs delete mode 100644 mcs/class/System/System.Net.Sockets/SocketType.cs delete mode 100755 mcs/class/System/System.Net.Sockets/TcpClient.cs delete mode 100755 mcs/class/System/System.Net.Sockets/TcpListener.cs delete mode 100644 mcs/class/System/System.Net.Sockets/UdpClient.cs delete mode 100755 mcs/class/System/System.Net/AuthenticationManager.cs delete mode 100755 mcs/class/System/System.Net/Authorization.cs delete mode 100644 mcs/class/System/System.Net/ChangeLog delete mode 100755 mcs/class/System/System.Net/ConnectionModes.cs delete mode 100644 mcs/class/System/System.Net/Cookie.cs delete mode 100644 mcs/class/System/System.Net/CookieCollection.cs delete mode 100644 mcs/class/System/System.Net/CookieContainer.cs delete mode 100644 mcs/class/System/System.Net/CookieException.cs delete mode 100644 mcs/class/System/System.Net/CredentialCache.cs delete mode 100644 mcs/class/System/System.Net/Dns.cs delete mode 100644 mcs/class/System/System.Net/DnsPermission.cs delete mode 100644 mcs/class/System/System.Net/DnsPermissionAttribute.cs delete mode 100755 mcs/class/System/System.Net/EndPoint.cs delete mode 100644 mcs/class/System/System.Net/EndpointPermission.cs delete mode 100644 mcs/class/System/System.Net/FileWebRequest.cs delete mode 100644 mcs/class/System/System.Net/FileWebResponse.cs delete mode 100644 mcs/class/System/System.Net/GlobalProxySelection.cs delete mode 100644 mcs/class/System/System.Net/HttpContinueDelegate.cs delete mode 100755 mcs/class/System/System.Net/HttpStatusCode.cs delete mode 100644 mcs/class/System/System.Net/HttpVersion.cs delete mode 100644 mcs/class/System/System.Net/HttpWebRequest.cs delete mode 100644 mcs/class/System/System.Net/HttpWebResponse.cs delete mode 100755 mcs/class/System/System.Net/IAuthenticationModule.cs delete mode 100644 mcs/class/System/System.Net/ICertificatePolicy.cs delete mode 100755 mcs/class/System/System.Net/ICredentialLookup.cs delete mode 100755 mcs/class/System/System.Net/IPAddress.cs delete mode 100755 mcs/class/System/System.Net/IPEndPoint.cs delete mode 100644 mcs/class/System/System.Net/IPHostEntry.cs delete mode 100644 mcs/class/System/System.Net/IPv6Address.cs delete mode 100644 mcs/class/System/System.Net/IWebProxy.cs delete mode 100644 mcs/class/System/System.Net/IWebRequestCreate.cs delete mode 100644 mcs/class/System/System.Net/MonoHttpDate.cs delete mode 100755 mcs/class/System/System.Net/NetworkAccess.cs delete mode 100755 mcs/class/System/System.Net/NetworkCredential.cs delete mode 100644 mcs/class/System/System.Net/ProtocolViolationException.cs delete mode 100755 mcs/class/System/System.Net/ProxyUseType.cs delete mode 100644 mcs/class/System/System.Net/ServicePoint.cs delete mode 100644 mcs/class/System/System.Net/ServicePointManager.cs delete mode 100755 mcs/class/System/System.Net/SocketAddress.cs delete mode 100644 mcs/class/System/System.Net/SocketPermission.cs delete mode 100644 mcs/class/System/System.Net/SocketPermissionAttribute.cs delete mode 100755 mcs/class/System/System.Net/TransportType.cs delete mode 100644 mcs/class/System/System.Net/WebClient.cs delete mode 100644 mcs/class/System/System.Net/WebException.cs delete mode 100755 mcs/class/System/System.Net/WebExceptionStatus.cs delete mode 100644 mcs/class/System/System.Net/WebHeaderCollection.cs delete mode 100644 mcs/class/System/System.Net/WebProxy.cs delete mode 100644 mcs/class/System/System.Net/WebRequest.cs delete mode 100644 mcs/class/System/System.Net/WebResponse.cs delete mode 100755 mcs/class/System/System.Net/WebStatus.cs delete mode 100644 mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog delete mode 100644 mcs/class/System/System.Security.Cryptography.X509Certificates/X509CertificateCollection.cs delete mode 100755 mcs/class/System/System.Security.Permissions/ResourcePermissionBase.cs delete mode 100755 mcs/class/System/System.Security.Permissions/ResourcePermissionBaseEntry.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/ChangeLog delete mode 100644 mcs/class/System/System.Text.RegularExpressions/RegexRunner.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/RegexRunnerFactory.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/arch.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/cache.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/category.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/collections.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/compiler.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/debug.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/interpreter.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/interval.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/match.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/notes.txt delete mode 100644 mcs/class/System/System.Text.RegularExpressions/parser.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/quicksearch.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/regex.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/replace.cs delete mode 100644 mcs/class/System/System.Text.RegularExpressions/syntax.cs delete mode 100755 mcs/class/System/System.Threading/ChangeLog delete mode 100755 mcs/class/System/System.Threading/ThreadExceptionEventArgs.cs delete mode 100755 mcs/class/System/System.Threading/ThreadExceptionEventHandler.cs delete mode 100644 mcs/class/System/System.build delete mode 100644 mcs/class/System/System/ChangeLog delete mode 100644 mcs/class/System/System/TODOAttribute.cs delete mode 100755 mcs/class/System/System/Uri.cs delete mode 100644 mcs/class/System/System/UriBuilder.cs delete mode 100755 mcs/class/System/System/UriFormatException.cs delete mode 100755 mcs/class/System/System/UriHostNameType.cs delete mode 100755 mcs/class/System/System/UriPartial.cs delete mode 100644 mcs/class/System/Test/.cvsignore delete mode 100644 mcs/class/System/Test/AllTests.cs delete mode 100755 mcs/class/System/Test/BasicOperationsTest.cs delete mode 100644 mcs/class/System/Test/ChangeLog delete mode 100644 mcs/class/System/Test/System.Collections.Specialized/AllTests.cs delete mode 100644 mcs/class/System/Test/System.Collections.Specialized/BitVector32Test.cs delete mode 100644 mcs/class/System/Test/System.Collections.Specialized/ChangeLog delete mode 100644 mcs/class/System/Test/System.Collections.Specialized/HybridDictionaryTest.cs delete mode 100644 mcs/class/System/Test/System.Collections.Specialized/NameValueCollectionTest.cs delete mode 100644 mcs/class/System/Test/System.Collections.Specialized/StringCollectionTest.cs delete mode 100644 mcs/class/System/Test/System.Diagnostics/AllTests.cs delete mode 100644 mcs/class/System/Test/System.Diagnostics/ChangeLog delete mode 100644 mcs/class/System/Test/System.Diagnostics/TraceTest.cs delete mode 100644 mcs/class/System/Test/System.Net.Sockets/AllTests.cs delete mode 100644 mcs/class/System/Test/System.Net.Sockets/ChangeLog delete mode 100755 mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs delete mode 100755 mcs/class/System/Test/System.Net.Sockets/TcpListenerTest.cs delete mode 100644 mcs/class/System/Test/System.Net/AllTests.cs delete mode 100644 mcs/class/System/Test/System.Net/ChangeLog delete mode 100644 mcs/class/System/Test/System.Net/CookieCollectionTest.cs delete mode 100644 mcs/class/System/Test/System.Net/CookieTest.cs delete mode 100644 mcs/class/System/Test/System.Net/CredentialCacheTest.cs delete mode 100644 mcs/class/System/Test/System.Net/DnsTest.cs delete mode 100644 mcs/class/System/Test/System.Net/FileWebRequestTest.cs delete mode 100644 mcs/class/System/Test/System.Net/HttpWebRequestTest.cs delete mode 100644 mcs/class/System/Test/System.Net/IPAddressTest.cs delete mode 100644 mcs/class/System/Test/System.Net/IPEndPointTest.cs delete mode 100644 mcs/class/System/Test/System.Net/ServicePointManagerTest.cs delete mode 100644 mcs/class/System/Test/System.Net/ServicePointTest.cs delete mode 100644 mcs/class/System/Test/System.Net/SocketPermissionTest.cs delete mode 100644 mcs/class/System/Test/System.Net/WebHeaderCollectionTest.cs delete mode 100644 mcs/class/System/Test/System.Net/WebProxyTest.cs delete mode 100644 mcs/class/System/Test/System.Net/WebRequestTest.cs delete mode 100644 mcs/class/System/Test/System.Text.RegularExpressions/AllTests.cs delete mode 100644 mcs/class/System/Test/System.Text.RegularExpressions/PerlTest.cs delete mode 100644 mcs/class/System/Test/System.Text.RegularExpressions/PerlTrials.cs delete mode 100644 mcs/class/System/Test/System.Text.RegularExpressions/RegexTrial.cs delete mode 100644 mcs/class/System/Test/System/AllTests.cs delete mode 100644 mcs/class/System/Test/System/ChangeLog delete mode 100644 mcs/class/System/Test/System/UriBuilderTest.cs delete mode 100644 mcs/class/System/Test/System/UriTest.cs delete mode 100644 mcs/class/System/Test/System_test.build delete mode 100644 mcs/class/System/Test/TheTests.cs delete mode 100755 mcs/class/System/list delete mode 100755 mcs/class/System/list.unix delete mode 100644 mcs/class/System/makefile.gnu delete mode 100644 mcs/class/corlib/.cvsignore delete mode 100644 mcs/class/corlib/ChangeLog delete mode 100644 mcs/class/corlib/Linux/ChangeLog delete mode 100644 mcs/class/corlib/Linux/Linux.cs delete mode 100644 mcs/class/corlib/System.Collections/ArrayList.cs delete mode 100644 mcs/class/corlib/System.Collections/BitArray.cs delete mode 100644 mcs/class/corlib/System.Collections/CaseInsensitiveComparer.cs delete mode 100644 mcs/class/corlib/System.Collections/CaseInsensitiveHashCodeProvider.cs delete mode 100644 mcs/class/corlib/System.Collections/ChangeLog delete mode 100644 mcs/class/corlib/System.Collections/CollectionBase.cs delete mode 100644 mcs/class/corlib/System.Collections/Comparer.cs delete mode 100755 mcs/class/corlib/System.Collections/DictionaryBase.cs delete mode 100644 mcs/class/corlib/System.Collections/DictionaryEntry.cs delete mode 100644 mcs/class/corlib/System.Collections/Hashtable.cs delete mode 100644 mcs/class/corlib/System.Collections/ICollection.cs delete mode 100644 mcs/class/corlib/System.Collections/IComparer.cs delete mode 100644 mcs/class/corlib/System.Collections/IDictionary.cs delete mode 100644 mcs/class/corlib/System.Collections/IDictionaryEnumerator.cs delete mode 100644 mcs/class/corlib/System.Collections/IEnumerable.cs delete mode 100644 mcs/class/corlib/System.Collections/IEnumerator.cs delete mode 100644 mcs/class/corlib/System.Collections/IHashCodeProvider.cs delete mode 100644 mcs/class/corlib/System.Collections/IList.cs delete mode 100644 mcs/class/corlib/System.Collections/Queue.cs delete mode 100644 mcs/class/corlib/System.Collections/ReadOnlyCollectionBase.cs delete mode 100644 mcs/class/corlib/System.Collections/SortedList.cs delete mode 100644 mcs/class/corlib/System.Collections/Stack.cs delete mode 100644 mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs delete mode 100644 mcs/class/corlib/System.Configuration.Assemblies/AssemblyHashAlgorithm.cs delete mode 100644 mcs/class/corlib/System.Configuration.Assemblies/AssemblyVersionCompatibility.cs delete mode 100644 mcs/class/corlib/System.Configuration.Assemblies/ChangeLog delete mode 100755 mcs/class/corlib/System.Configuration.Assemblies/ProcessorID.cs delete mode 100644 mcs/class/corlib/System.Diagnostics.SymbolStore/ChangeLog delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolBinder.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolDocument.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolDocumentWriter.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolMethod.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolNamespace.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolReader.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolScope.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolVariable.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/ISymbolWriter.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/SymAddressKind.cs delete mode 100644 mcs/class/corlib/System.Diagnostics.SymbolStore/SymDocumentType.cs delete mode 100644 mcs/class/corlib/System.Diagnostics.SymbolStore/SymLanguageType.cs delete mode 100644 mcs/class/corlib/System.Diagnostics.SymbolStore/SymLanguageVendor.cs delete mode 100755 mcs/class/corlib/System.Diagnostics.SymbolStore/SymbolToken.cs delete mode 100644 mcs/class/corlib/System.Diagnostics/ChangeLog delete mode 100644 mcs/class/corlib/System.Diagnostics/ConditionalAttribute.cs delete mode 100644 mcs/class/corlib/System.Diagnostics/DebuggableAttribute.cs delete mode 100644 mcs/class/corlib/System.Diagnostics/Debugger.cs delete mode 100644 mcs/class/corlib/System.Diagnostics/DebuggerHiddenAttribute.cs delete mode 100644 mcs/class/corlib/System.Diagnostics/DebuggerStepThroughAttribute.cs delete mode 100644 mcs/class/corlib/System.Diagnostics/StackFrame.cs delete mode 100644 mcs/class/corlib/System.Diagnostics/StackTrace.cs delete mode 100644 mcs/class/corlib/System.Globalization/Calendar.cs delete mode 100644 mcs/class/corlib/System.Globalization/CalendarWeekRule.cs delete mode 100644 mcs/class/corlib/System.Globalization/CalendricalCalculations.cs delete mode 100644 mcs/class/corlib/System.Globalization/ChangeLog delete mode 100644 mcs/class/corlib/System.Globalization/CompareInfo.cs delete mode 100755 mcs/class/corlib/System.Globalization/CompareOptions.cs delete mode 100644 mcs/class/corlib/System.Globalization/CultureInfo.cs delete mode 100755 mcs/class/corlib/System.Globalization/CultureTypes.cs delete mode 100644 mcs/class/corlib/System.Globalization/DateTimeFormatInfo.cs delete mode 100644 mcs/class/corlib/System.Globalization/DateTimeStyles.cs delete mode 100755 mcs/class/corlib/System.Globalization/DaylightTime.cs delete mode 100644 mcs/class/corlib/System.Globalization/GregorianCalendar.cs delete mode 100755 mcs/class/corlib/System.Globalization/GregorianCalendarTypes.cs delete mode 100644 mcs/class/corlib/System.Globalization/HebrewCalendar.cs delete mode 100644 mcs/class/corlib/System.Globalization/HijriCalendar.cs delete mode 100644 mcs/class/corlib/System.Globalization/JapaneseCalendar.cs delete mode 100644 mcs/class/corlib/System.Globalization/JulianCalendar.cs delete mode 100644 mcs/class/corlib/System.Globalization/KoreanCalendar.cs delete mode 100755 mcs/class/corlib/System.Globalization/Locale.cs delete mode 100644 mcs/class/corlib/System.Globalization/NumberFormatInfo.cs delete mode 100644 mcs/class/corlib/System.Globalization/NumberStyles.cs delete mode 100644 mcs/class/corlib/System.Globalization/RegionInfo.cs delete mode 100644 mcs/class/corlib/System.Globalization/TaiwanCalendar.cs delete mode 100755 mcs/class/corlib/System.Globalization/TextInfo.cs delete mode 100644 mcs/class/corlib/System.Globalization/ThaiBuddhistCalendar.cs delete mode 100644 mcs/class/corlib/System.Globalization/UnicodeCategory.cs delete mode 100644 mcs/class/corlib/System.IO.IsolatedStorage/ChangeLog delete mode 100644 mcs/class/corlib/System.IO.IsolatedStorage/INormalizeForIsolatedStorage.cs delete mode 100644 mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs delete mode 100644 mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs delete mode 100644 mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFileStream.cs delete mode 100755 mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageScope.cs delete mode 100644 mcs/class/corlib/System.IO/BinaryReader.cs delete mode 100755 mcs/class/corlib/System.IO/BinaryWriter.cs delete mode 100644 mcs/class/corlib/System.IO/BufferedStream.cs delete mode 100644 mcs/class/corlib/System.IO/ChangeLog delete mode 100644 mcs/class/corlib/System.IO/CheckArgument.cs delete mode 100644 mcs/class/corlib/System.IO/CheckPermission.cs delete mode 100644 mcs/class/corlib/System.IO/Directory.cs delete mode 100644 mcs/class/corlib/System.IO/DirectoryInfo.cs delete mode 100755 mcs/class/corlib/System.IO/DirectoryNotFoundException.cs delete mode 100644 mcs/class/corlib/System.IO/EndOfStreamException.cs delete mode 100644 mcs/class/corlib/System.IO/File.cs delete mode 100644 mcs/class/corlib/System.IO/FileAccess.cs delete mode 100644 mcs/class/corlib/System.IO/FileAttributes.cs delete mode 100644 mcs/class/corlib/System.IO/FileInfo.cs delete mode 100755 mcs/class/corlib/System.IO/FileLoadException.cs delete mode 100644 mcs/class/corlib/System.IO/FileMode.cs delete mode 100755 mcs/class/corlib/System.IO/FileNotFoundException.cs delete mode 100644 mcs/class/corlib/System.IO/FileShare.cs delete mode 100644 mcs/class/corlib/System.IO/FileStream.cs delete mode 100644 mcs/class/corlib/System.IO/FileSystemInfo.cs delete mode 100644 mcs/class/corlib/System.IO/IOException.cs delete mode 100644 mcs/class/corlib/System.IO/MemoryStream.cs delete mode 100644 mcs/class/corlib/System.IO/MonoIO.cs delete mode 100644 mcs/class/corlib/System.IO/MonoIOError.cs delete mode 100644 mcs/class/corlib/System.IO/MonoIOStat.cs delete mode 100644 mcs/class/corlib/System.IO/Path.cs delete mode 100644 mcs/class/corlib/System.IO/PathTooLongException.cs delete mode 100644 mcs/class/corlib/System.IO/SearchPattern.cs delete mode 100644 mcs/class/corlib/System.IO/SeekOrigin.cs delete mode 100755 mcs/class/corlib/System.IO/Stream.cs delete mode 100644 mcs/class/corlib/System.IO/StreamReader.cs delete mode 100644 mcs/class/corlib/System.IO/StreamWriter.cs delete mode 100644 mcs/class/corlib/System.IO/StringReader.cs delete mode 100644 mcs/class/corlib/System.IO/StringWriter.cs delete mode 100644 mcs/class/corlib/System.IO/TextReader.cs delete mode 100644 mcs/class/corlib/System.IO/TextWriter.cs delete mode 100644 mcs/class/corlib/System.PAL/IOperatingSystem.cs delete mode 100644 mcs/class/corlib/System.PAL/Platform.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/ChangeLog delete mode 100644 mcs/class/corlib/System.Reflection.Emit/ConstructorBuilder.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/CustomAttributeBuilder.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/EnumBuilder.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/EventBuilder.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/EventToken.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/FieldBuilder.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/FieldToken.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/FlowControl.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/Label.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/LocalBuilder.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/MethodBuilder.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/MethodToken.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/MonoArrayMethod.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/OpCode.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/OpCodeType.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/OpCodes.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/OperandType.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/PEFileKinds.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/PackingSize.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/ParameterBuilder.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/ParameterToken.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/PropertyBuilder.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/PropertyToken.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/SignatureHelper.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/StackBehaviour.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/StringToken.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs delete mode 100644 mcs/class/corlib/System.Reflection.Emit/TypeToken.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/UnmanagedMarshal.cs delete mode 100755 mcs/class/corlib/System.Reflection.Emit/common.src delete mode 100755 mcs/class/corlib/System.Reflection/AmbiguousMatchException.cs delete mode 100644 mcs/class/corlib/System.Reflection/Assembly.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyAlgorithmIdAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyCompanyAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyConfigurationAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyCopyrightAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyCultureAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyDefaultAliasAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyDelaySignAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyDescriptionAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyFileVersionAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyFlagsAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyInformationalVersionAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyKeyFileAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyKeyNameAttribute.cs delete mode 100755 mcs/class/corlib/System.Reflection/AssemblyName.cs delete mode 100755 mcs/class/corlib/System.Reflection/AssemblyNameFlags.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyNameProxy.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyProductAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyTitleAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyTradeMarkAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/AssemblyVersionAttribute.cs delete mode 100644 mcs/class/corlib/System.Reflection/Binder.cs delete mode 100644 mcs/class/corlib/System.Reflection/BindingFlags.cs delete mode 100755 mcs/class/corlib/System.Reflection/CallingConventions.cs delete mode 100644 mcs/class/corlib/System.Reflection/ChangeLog delete mode 100644 mcs/class/corlib/System.Reflection/ConstructorInfo.cs delete mode 100644 mcs/class/corlib/System.Reflection/CustomAttributeFormatException.cs delete mode 100644 mcs/class/corlib/System.Reflection/DefaultMemberAttribute.cs delete mode 100755 mcs/class/corlib/System.Reflection/EventAttributes.cs delete mode 100755 mcs/class/corlib/System.Reflection/EventInfo.cs delete mode 100755 mcs/class/corlib/System.Reflection/FieldAttributes.cs delete mode 100755 mcs/class/corlib/System.Reflection/FieldInfo.cs delete mode 100755 mcs/class/corlib/System.Reflection/ICustomAttributeProvider.cs delete mode 100755 mcs/class/corlib/System.Reflection/IReflect.cs delete mode 100755 mcs/class/corlib/System.Reflection/InterfaceMapping.cs delete mode 100644 mcs/class/corlib/System.Reflection/InvalidFilterCriteriaException.cs delete mode 100644 mcs/class/corlib/System.Reflection/ManifestResourceInfo.cs delete mode 100644 mcs/class/corlib/System.Reflection/MemberFilter.cs delete mode 100755 mcs/class/corlib/System.Reflection/MemberInfo.cs delete mode 100755 mcs/class/corlib/System.Reflection/MemberTypes.cs delete mode 100755 mcs/class/corlib/System.Reflection/MethodAttributes.cs delete mode 100644 mcs/class/corlib/System.Reflection/MethodBase.cs delete mode 100755 mcs/class/corlib/System.Reflection/MethodImplAttributes.cs delete mode 100644 mcs/class/corlib/System.Reflection/MethodInfo.cs delete mode 100644 mcs/class/corlib/System.Reflection/Missing.cs delete mode 100644 mcs/class/corlib/System.Reflection/Module.cs delete mode 100755 mcs/class/corlib/System.Reflection/MonoEvent.cs delete mode 100755 mcs/class/corlib/System.Reflection/MonoField.cs delete mode 100755 mcs/class/corlib/System.Reflection/MonoMethod.cs delete mode 100755 mcs/class/corlib/System.Reflection/MonoProperty.cs delete mode 100755 mcs/class/corlib/System.Reflection/ParameterAttributes.cs delete mode 100644 mcs/class/corlib/System.Reflection/ParameterInfo.cs delete mode 100755 mcs/class/corlib/System.Reflection/ParameterModifier.cs delete mode 100755 mcs/class/corlib/System.Reflection/PropertyAttributes.cs delete mode 100755 mcs/class/corlib/System.Reflection/PropertyInfo.cs delete mode 100644 mcs/class/corlib/System.Reflection/ReflectionTypeLoadException.cs delete mode 100755 mcs/class/corlib/System.Reflection/ResourceAttributes.cs delete mode 100755 mcs/class/corlib/System.Reflection/ResourceLocation.cs delete mode 100755 mcs/class/corlib/System.Reflection/StrongNameKeyPair.cs delete mode 100644 mcs/class/corlib/System.Reflection/TargetException.cs delete mode 100644 mcs/class/corlib/System.Reflection/TargetInvocationException.cs delete mode 100644 mcs/class/corlib/System.Reflection/TargetParameterCountException.cs delete mode 100755 mcs/class/corlib/System.Reflection/TypeAttributes.cs delete mode 100755 mcs/class/corlib/System.Reflection/TypeDelegator.cs delete mode 100644 mcs/class/corlib/System.Reflection/TypeFilter.cs delete mode 100644 mcs/class/corlib/System.Reflection/common.src delete mode 100644 mcs/class/corlib/System.Resources/ChangeLog delete mode 100644 mcs/class/corlib/System.Resources/IResourceReader.cs delete mode 100644 mcs/class/corlib/System.Resources/IResourceWriter.cs delete mode 100644 mcs/class/corlib/System.Resources/MissingManifestResourceException.cs delete mode 100755 mcs/class/corlib/System.Resources/NeutralResourcesLanguageAttribute.cs delete mode 100644 mcs/class/corlib/System.Resources/ResourceManager.cs delete mode 100644 mcs/class/corlib/System.Resources/ResourceReader.cs delete mode 100644 mcs/class/corlib/System.Resources/ResourceSet.cs delete mode 100644 mcs/class/corlib/System.Resources/ResourceWriter.cs delete mode 100644 mcs/class/corlib/System.Resources/SatelliteContractVersionAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/AccessedThroughPropertyAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/CompilationRelaxationsAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/CompilerGlobalScopeAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/CustomConstantAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/DateTimeConstantAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/DecimalConstantAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/DiscardableAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/IDispatchConstantAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/IUnknownConstantAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.CompilerServices/IndexerNameAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/IsVolatile.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/MethodCodeType.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/MethodImplAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/MethodImplOptions.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/RequiredAttributeAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/AssemblyRegistrationFlags.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/AutomationProxyAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/BINDPTR.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/CallingConvention.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/CharSet.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceType.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/CoClassAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComAliasNameAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComConversionLossAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComEventInterfaceAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComImportAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComInterfaceType.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComMemberType.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComRegisterFunctionAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/ComVisible.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/DESCKIND.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/DISPPARAMS.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/DispIdAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/DllImportAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/EXCEPINFO.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/ExporterEventKind.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/FieldOffsetAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/GCHandleType.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/GuidAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ICustomAdapter.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ICustomFactory.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ICustomMarshaler.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/INVOKEKIND.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/IRegistrationServices.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/ITypeLibConverter.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ITypeLibExporterNameProvider.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/ITypeLibExporterNotifySink.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ITypeLibImporterNotifySink.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ImportedFromTypeLibAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ImporterEventKind.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/InAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/InterfaceTypeAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/LCIDConversionAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/LayoutKind.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/MarshalAsAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/OptionalAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.InteropServices/OutAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/PInvokeMap.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/PreserveSigAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/PrimaryInteropAssemblyAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/ProgIdAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/StructLayoutAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TYPEKIND.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TypeLibExporterFlags.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TypeLibFuncAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TypeLibFuncFlags.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TypeLibTypeAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TypeLibTypeFlags.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TypeLibVarAttribute.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/TypeLibVarFlags.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/UCOMTypeComp.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/UCOMTypeInfo.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/UCOMTypeLib.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/UnmanagedType.cs delete mode 100755 mcs/class/corlib/System.Runtime.InteropServices/VarEnum.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Activation/ActivatorLevel.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Activation/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Activation/IActivator.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Activation/IConstructionCallMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Activation/IConstructionReturnMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Activation/UrlAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/BaseChannelObjectWithProperties.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/BaseChannelSinkWithProperties.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/BaseChannelWithProperties.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/ChannelDataStore.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/ChannelServices.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/ClientChannelSinkStack.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IChannel.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IChannelDataStore.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IChannelReceiver.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IChannelReceiverHook.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IChannelSender.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IChannelSinkBase.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IClientChannelSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IClientChannelSinkProvider.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IClientChannelSinkStack.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IClientFormatterSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IClientFormatterSinkProvider.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IClientResponseChannelSinkStack.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IServerChannelSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IServerChannelSinkProvider.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IServerChannelSinkStack.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IServerFormatterSinkProvider.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/IServerResponseChannelSinkStack.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/ITransportHeaders.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/ServerChannelSinkStack.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/ServerProcessing.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/SinkProviderData.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Channels/TransportHeaders.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/Context.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/ContextAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/ContextProperty.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/CrossContextDelegate.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContextAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContextProperty.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContextPropertyActivator.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContributeClientContextSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContributeDynamicSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContributeEnvoySink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContributeObjectSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IContributeServerContextSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IDynamicMessageSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Contexts/IDynamicProperty.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Lifetime/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Lifetime/ClientSponsor.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Lifetime/ILease.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Lifetime/ISponsor.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Lifetime/LeaseState.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Lifetime/LifetimeServices.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/AsyncResult.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/Header.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/HeaderHandler.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/IMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/IMessageCtrl.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/IMessageSink.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/IMethodCallMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/IMethodMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/IMethodReturnMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/IRemotingFormatter.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/InternalMessageWrapper.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/LogicalCallContext.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/MessageSurrogateFilter.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodCall.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodCallMessageWrapper.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodResponse.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodReturnMessageWrapper.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/MonoMethodMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/OneWayAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/RemotingSurrogateSelector.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Messaging/ReturnMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/SoapAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/SoapFieldAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/SoapMethodAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/SoapOption.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/SoapParameterAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/SoapTypeAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Metadata/XmlFieldOrderOption.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Proxies/ProxyAttribute.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Proxies/RemotingProxy.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Services/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting.Services/ITrackingHandler.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/ActivatedClientTypeEntry.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/ActivatedServiceTypeEntry.cs delete mode 100755 mcs/class/corlib/System.Runtime.Remoting/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/IChannelInfo.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/IEnvoyInfo.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/IObjectHandle.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/IRemotingTypeInfo.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/ObjRef.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/ObjectHandle.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/RemotingException.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/RemotingTimeoutException.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/ServerException.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/TypeEntry.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/WellKnownClientTypeEntry.cs delete mode 100755 mcs/class/corlib/System.Runtime.Remoting/WellKnownObjectMode.cs delete mode 100644 mcs/class/corlib/System.Runtime.Remoting/WellKnownServiceTypeEntry.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryArrayTypeEnum.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ChangeLog delete mode 100644 mcs/class/corlib/System.Runtime.Serialization.Formatters/ChangeLog delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/FormatterAssemblyStyle.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/FormatterTopObjectStyle.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/FormatterTypeStyle.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization.Formatters/IFieldInfo.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization.Formatters/ISoapMessage.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalArrayTypeE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalElementTypeE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalMemberTypeE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalMemberValueE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalNameSpaceE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalObjectPositionE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalObjectTypeE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalParseStateE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalParseTypeE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalPrimitiveTypeE.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalSerializerTypeE.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization.Formatters/ServerFault.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapFault.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapMessage.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/ChangeLog delete mode 100755 mcs/class/corlib/System.Runtime.Serialization/Formatter.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization/FormatterConverter.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/FormatterServices.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/IDeserializationCallback.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/IFormatter.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/IFormatterConverter.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/IObjectReference.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/ISerializable.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/ISerializationSurrogate.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/ISurrogateSelector.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization/ObjectIDGenerator.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/SerializationBinder.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/SerializationEntry.cs delete mode 100755 mcs/class/corlib/System.Runtime.Serialization/SerializationException.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/SerializationInfo.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/SerializationInfoEnumerator.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/StreamingContext.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/StreamingContextStates.cs delete mode 100644 mcs/class/corlib/System.Runtime.Serialization/SurrogateSelector.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/AsymmetricAlgorithm.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/AsymmetricKeyExchangeFormatter.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureFormatter.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/ChangeLog delete mode 100644 mcs/class/corlib/System.Security.Cryptography/CipherMode.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/CryptoAPITransform.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/CryptoStream.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/CryptoStreamMode.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/CryptographicException.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/CryptographicUnexpectedOperationExcpetion.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/CspParameters.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/CspProviderFlags.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/DES.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/DESCryptoServiceProvider.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/DSA.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/DSACryptoServiceProvider.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/DSAParameters.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/DSASignatureDeformatter.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/DSASignatureFormatter.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/DeriveBytes.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/FromBase64Transform.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/HashAlgorithm.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/ICryptoTransform.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/KeySizes.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/MD5.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/MD5CryptoServiceProvider.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/PaddingMode.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/RNGCryptoServiceProvider.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/RSA.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/RSAParameters.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/RandomNumberGenerator.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/Rijndael.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/RijndaelManaged.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA1.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA1CryptoServiceProvider.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA256.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA256Managed.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA384.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA384Managed.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA512.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/SHA512Managed.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/SignatureDescription.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/SymmetricAlgorithm.cs delete mode 100644 mcs/class/corlib/System.Security.Cryptography/ToBase64Transform.cs delete mode 100755 mcs/class/corlib/System.Security.Cryptography/X509Certificates.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/ChangeLog delete mode 100644 mcs/class/corlib/System.Security.Permissions/CodeAccessSecurityAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/EnvironmentPermission.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/EnvironmentPermissionAccess.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/EnvironmentPermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/FileDialogPermissionAccess.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/FileDialogPermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/FileIOPermission.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/FileIOPermissionAccess.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/FileIOPermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/IUnrestrictedPermission.cs delete mode 100755 mcs/class/corlib/System.Security.Permissions/IsolatedStorageContainment.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/IsolatedStorageFilePermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermission.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/PermissionSetAttribute.cs delete mode 100755 mcs/class/corlib/System.Security.Permissions/PermissionState.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/PrincipalPermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/ReflectionPermission.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/ReflectionPermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/ReflectionPermissionFlag.cs delete mode 100755 mcs/class/corlib/System.Security.Permissions/RegistryPermissionAccess.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/RegistryPermissionAttribute.cs delete mode 100755 mcs/class/corlib/System.Security.Permissions/SecurityAction.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/SecurityAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/SecurityPermission.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/SecurityPermissionAttribute.cs delete mode 100755 mcs/class/corlib/System.Security.Permissions/SecurityPermissionFlag.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/SiteIdentityPermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/StrongNamePermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/UIPermissionAttribute.cs delete mode 100755 mcs/class/corlib/System.Security.Permissions/UIPermissionClipboard.cs delete mode 100755 mcs/class/corlib/System.Security.Permissions/UIPermissionWindow.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/UrlIdentityPermissionAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/ZoneIdentityPermission.cs delete mode 100644 mcs/class/corlib/System.Security.Permissions/ZoneIdentityPermissionAttribute.cs delete mode 100755 mcs/class/corlib/System.Security.Policy/AllMembershipCondition.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/ApplicationDirectoryMembershipCondition.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/ChangeLog delete mode 100644 mcs/class/corlib/System.Security.Policy/CodeGroup.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/Evidence.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/FileCodeGroup.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/IBuiltInEvidence.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/IIdentityPermissionFactory.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/IMembershipCondition.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/PolicyException.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/PolicyLevel.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/PolicyStatement.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/PolicyStatementAttribute.cs delete mode 100644 mcs/class/corlib/System.Security.Policy/Zone.cs delete mode 100644 mcs/class/corlib/System.Security.Principal/ChangeLog delete mode 100644 mcs/class/corlib/System.Security.Principal/GenericIdentity.cs delete mode 100644 mcs/class/corlib/System.Security.Principal/GenericPrincipal.cs delete mode 100644 mcs/class/corlib/System.Security.Principal/IIdentity.cs delete mode 100644 mcs/class/corlib/System.Security.Principal/IPrincipal.cs delete mode 100644 mcs/class/corlib/System.Security.Principal/PrincipalPolicy.cs delete mode 100644 mcs/class/corlib/System.Security.Principal/WindowsAccountType.cs delete mode 100644 mcs/class/corlib/System.Security.Principal/WindowsBuiltInRole.cs delete mode 100755 mcs/class/corlib/System.Security/ChangeLog delete mode 100755 mcs/class/corlib/System.Security/CodeAccessPermission.cs delete mode 100644 mcs/class/corlib/System.Security/IEvidenceFactory.cs delete mode 100755 mcs/class/corlib/System.Security/IPermission.cs delete mode 100755 mcs/class/corlib/System.Security/ISecurityEncodable.cs delete mode 100644 mcs/class/corlib/System.Security/ISecurityPolicyEncodable.cs delete mode 100755 mcs/class/corlib/System.Security/IStackWalk.cs delete mode 100644 mcs/class/corlib/System.Security/NamedPermissionSet.cs delete mode 100644 mcs/class/corlib/System.Security/PermissionSet.cs delete mode 100644 mcs/class/corlib/System.Security/PolicyLevelType.cs delete mode 100755 mcs/class/corlib/System.Security/SecurityElement.cs delete mode 100644 mcs/class/corlib/System.Security/SecurityException.cs delete mode 100644 mcs/class/corlib/System.Security/SecurityManager.cs delete mode 100644 mcs/class/corlib/System.Security/SecurityZone.cs delete mode 100644 mcs/class/corlib/System.Security/SuppressUnmanagedCodeSecurityAttribute.cs delete mode 100644 mcs/class/corlib/System.Security/UnverifiableCodeAttribute.cs delete mode 100644 mcs/class/corlib/System.Security/VerificationException.cs delete mode 100644 mcs/class/corlib/System.Security/XmlSyntaxException.cs delete mode 100755 mcs/class/corlib/System.Text/ASCIIEncoding.cs delete mode 100755 mcs/class/corlib/System.Text/ChangeLog delete mode 100644 mcs/class/corlib/System.Text/Decoder.cs delete mode 100644 mcs/class/corlib/System.Text/Encoder.cs delete mode 100755 mcs/class/corlib/System.Text/Encoding.cs delete mode 100644 mcs/class/corlib/System.Text/StringBuilder.cs delete mode 100755 mcs/class/corlib/System.Text/UTF7Encoding.cs delete mode 100755 mcs/class/corlib/System.Text/UTF8Encoding.cs delete mode 100755 mcs/class/corlib/System.Text/UnicodeEncoding.cs delete mode 100755 mcs/class/corlib/System.Threading/ApartmentState.cs delete mode 100755 mcs/class/corlib/System.Threading/AutoResetEvent.cs delete mode 100644 mcs/class/corlib/System.Threading/ChangeLog delete mode 100755 mcs/class/corlib/System.Threading/IOCompletionCallback.cs delete mode 100755 mcs/class/corlib/System.Threading/Interlocked.cs delete mode 100755 mcs/class/corlib/System.Threading/LockCookie.cs delete mode 100755 mcs/class/corlib/System.Threading/ManualResetEvent.cs delete mode 100755 mcs/class/corlib/System.Threading/Monitor.cs delete mode 100755 mcs/class/corlib/System.Threading/Mutex.cs delete mode 100755 mcs/class/corlib/System.Threading/NativeEventCalls.cs delete mode 100755 mcs/class/corlib/System.Threading/NativeOverlapped.cs delete mode 100755 mcs/class/corlib/System.Threading/Overlapped.cs delete mode 100755 mcs/class/corlib/System.Threading/ReaderWriterLock.cs delete mode 100755 mcs/class/corlib/System.Threading/RegisteredWaitHandle.cs delete mode 100755 mcs/class/corlib/System.Threading/SynchronizationLockException.cs delete mode 100755 mcs/class/corlib/System.Threading/Thread.cs delete mode 100755 mcs/class/corlib/System.Threading/ThreadAbortException.cs delete mode 100755 mcs/class/corlib/System.Threading/ThreadInterruptedException.cs delete mode 100755 mcs/class/corlib/System.Threading/ThreadPool.cs delete mode 100644 mcs/class/corlib/System.Threading/ThreadPriority.cs delete mode 100755 mcs/class/corlib/System.Threading/ThreadStart.cs delete mode 100644 mcs/class/corlib/System.Threading/ThreadState.cs delete mode 100755 mcs/class/corlib/System.Threading/ThreadStateException.cs delete mode 100755 mcs/class/corlib/System.Threading/Timeout.cs delete mode 100755 mcs/class/corlib/System.Threading/Timer.cs delete mode 100755 mcs/class/corlib/System.Threading/TimerCallback.cs delete mode 100755 mcs/class/corlib/System.Threading/WaitCallback.cs delete mode 100755 mcs/class/corlib/System.Threading/WaitHandle.cs delete mode 100755 mcs/class/corlib/System.Threading/WaitOrTimerCallback.cs delete mode 100644 mcs/class/corlib/System/Activator.cs delete mode 100755 mcs/class/corlib/System/AppDomain.cs delete mode 100755 mcs/class/corlib/System/AppDomainSetup.cs delete mode 100644 mcs/class/corlib/System/AppDomainUnloadedException.cs delete mode 100644 mcs/class/corlib/System/ApplicationException.cs delete mode 100644 mcs/class/corlib/System/ArgumentException.cs delete mode 100644 mcs/class/corlib/System/ArgumentNullException.cs delete mode 100644 mcs/class/corlib/System/ArgumentOutOfRangeException.cs delete mode 100644 mcs/class/corlib/System/ArithmeticException.cs delete mode 100644 mcs/class/corlib/System/Array.cs delete mode 100644 mcs/class/corlib/System/ArrayTypeMismatchException.cs delete mode 100755 mcs/class/corlib/System/AssemblyLoadEventArgs.cs delete mode 100755 mcs/class/corlib/System/AssemblyLoadEventHandler.cs delete mode 100644 mcs/class/corlib/System/AsyncCallback.cs delete mode 100644 mcs/class/corlib/System/Attribute.cs delete mode 100644 mcs/class/corlib/System/AttributeTargets.cs delete mode 100644 mcs/class/corlib/System/AttributeUsage.cs delete mode 100644 mcs/class/corlib/System/BadImageFormatException.cs delete mode 100755 mcs/class/corlib/System/BitConverter.cs delete mode 100644 mcs/class/corlib/System/Boolean.cs delete mode 100755 mcs/class/corlib/System/Buffer.cs delete mode 100644 mcs/class/corlib/System/Byte.cs delete mode 100755 mcs/class/corlib/System/CLSCompliantAttribute.cs delete mode 100644 mcs/class/corlib/System/CannotUnloadAppDomainException.cs delete mode 100644 mcs/class/corlib/System/ChangeLog delete mode 100644 mcs/class/corlib/System/Char.cs delete mode 100644 mcs/class/corlib/System/CharEnumerator.cs delete mode 100644 mcs/class/corlib/System/Console.cs delete mode 100644 mcs/class/corlib/System/ContextBoundObject.cs delete mode 100644 mcs/class/corlib/System/ContextMarshalException.cs delete mode 100755 mcs/class/corlib/System/ContextStaticAttribute.cs delete mode 100644 mcs/class/corlib/System/Convert.cs delete mode 100755 mcs/class/corlib/System/CrossAppDomainDelegate.cs delete mode 100644 mcs/class/corlib/System/DBNull.cs delete mode 100644 mcs/class/corlib/System/DateTime.cs delete mode 100644 mcs/class/corlib/System/Decimal.cs delete mode 100644 mcs/class/corlib/System/DecimalFormatter.cs delete mode 100644 mcs/class/corlib/System/Delegate.cs delete mode 100644 mcs/class/corlib/System/DivideByZeroException.cs delete mode 100644 mcs/class/corlib/System/DllNotFoundException.cs delete mode 100644 mcs/class/corlib/System/Double.cs delete mode 100644 mcs/class/corlib/System/DuplicateWaitObjectException.cs delete mode 100644 mcs/class/corlib/System/EntryPointNotFoundException.cs delete mode 100644 mcs/class/corlib/System/Enum.cs delete mode 100644 mcs/class/corlib/System/Environment.cs delete mode 100644 mcs/class/corlib/System/EventArgs.cs delete mode 100644 mcs/class/corlib/System/EventHandler.cs delete mode 100644 mcs/class/corlib/System/Exception.cs delete mode 100644 mcs/class/corlib/System/ExecutionEngineException.cs delete mode 100644 mcs/class/corlib/System/FieldAccessException.cs delete mode 100755 mcs/class/corlib/System/FlagsAttribute.cs delete mode 100644 mcs/class/corlib/System/FormatException.cs delete mode 100755 mcs/class/corlib/System/GC.cs delete mode 100755 mcs/class/corlib/System/Guid.cs delete mode 100644 mcs/class/corlib/System/IAppDomainSetup.cs delete mode 100644 mcs/class/corlib/System/IAsyncResult.cs delete mode 100644 mcs/class/corlib/System/ICloneable.cs delete mode 100644 mcs/class/corlib/System/IComparable.cs delete mode 100644 mcs/class/corlib/System/IConvertible.cs delete mode 100644 mcs/class/corlib/System/ICustomFormatter.cs delete mode 100644 mcs/class/corlib/System/IDisposable.cs delete mode 100644 mcs/class/corlib/System/IFormatProvider.cs delete mode 100644 mcs/class/corlib/System/IFormattable.cs delete mode 100644 mcs/class/corlib/System/IServiceProvider.cs delete mode 100644 mcs/class/corlib/System/IndexOutOfRangeException.cs delete mode 100644 mcs/class/corlib/System/Int16.cs delete mode 100644 mcs/class/corlib/System/Int32.cs delete mode 100644 mcs/class/corlib/System/Int64.cs delete mode 100644 mcs/class/corlib/System/IntPtr.cs delete mode 100644 mcs/class/corlib/System/IntegerFormatter.cs delete mode 100644 mcs/class/corlib/System/InvalidCastException.cs delete mode 100644 mcs/class/corlib/System/InvalidOperationException.cs delete mode 100644 mcs/class/corlib/System/InvalidProgramException.cs delete mode 100644 mcs/class/corlib/System/LoaderOptimization.cs delete mode 100644 mcs/class/corlib/System/LoaderOptimizationAttribute.cs delete mode 100755 mcs/class/corlib/System/LocalDataStoreSlot.cs delete mode 100644 mcs/class/corlib/System/MTAThreadAttribute.cs delete mode 100644 mcs/class/corlib/System/MarshalByRefObject.cs delete mode 100644 mcs/class/corlib/System/Math.cs delete mode 100644 mcs/class/corlib/System/MemberAccessException.cs delete mode 100644 mcs/class/corlib/System/MethodAccessException.cs delete mode 100644 mcs/class/corlib/System/MissingFieldException.cs delete mode 100644 mcs/class/corlib/System/MissingMemberException.cs delete mode 100644 mcs/class/corlib/System/MissingMethodException.cs delete mode 100755 mcs/class/corlib/System/MonoCustomAttrs.cs delete mode 100644 mcs/class/corlib/System/MonoDummy.cs delete mode 100644 mcs/class/corlib/System/MonoType.cs delete mode 100644 mcs/class/corlib/System/MulticastDelegate.cs delete mode 100644 mcs/class/corlib/System/MulticastNotSupportedException.cs delete mode 100755 mcs/class/corlib/System/NonSerializedAttribute.cs delete mode 100644 mcs/class/corlib/System/NotFiniteNumberException.cs delete mode 100755 mcs/class/corlib/System/NotImplementedException.cs delete mode 100644 mcs/class/corlib/System/NotSupportedException.cs delete mode 100644 mcs/class/corlib/System/NullReferenceException.cs delete mode 100644 mcs/class/corlib/System/Object.cs delete mode 100755 mcs/class/corlib/System/ObjectDisposedException.cs delete mode 100644 mcs/class/corlib/System/ObsoleteAttribute.cs delete mode 100644 mcs/class/corlib/System/OperatingSystem.cs delete mode 100644 mcs/class/corlib/System/OutOfMemoryException.cs delete mode 100644 mcs/class/corlib/System/OverflowException.cs delete mode 100644 mcs/class/corlib/System/ParamArrayAttribute.cs delete mode 100644 mcs/class/corlib/System/PlatformID.cs delete mode 100644 mcs/class/corlib/System/PlatformNotSupportedException.cs delete mode 100644 mcs/class/corlib/System/Random.cs delete mode 100644 mcs/class/corlib/System/RankException.cs delete mode 100644 mcs/class/corlib/System/ResolveEventArgs.cs delete mode 100644 mcs/class/corlib/System/ResolveEventHandler.cs delete mode 100644 mcs/class/corlib/System/RuntimeArgumentHandle.cs delete mode 100755 mcs/class/corlib/System/RuntimeFieldHandle.cs delete mode 100755 mcs/class/corlib/System/RuntimeMethodHandle.cs delete mode 100644 mcs/class/corlib/System/RuntimeTypeHandle.cs delete mode 100644 mcs/class/corlib/System/SByte.cs delete mode 100644 mcs/class/corlib/System/STAThreadAttribute.cs delete mode 100755 mcs/class/corlib/System/SerializableAttribute.cs delete mode 100644 mcs/class/corlib/System/Single.cs delete mode 100644 mcs/class/corlib/System/StackOverflowException.cs delete mode 100644 mcs/class/corlib/System/String.cs delete mode 100644 mcs/class/corlib/System/SystemException.cs delete mode 100644 mcs/class/corlib/System/TODO delete mode 100644 mcs/class/corlib/System/TODOAttribute.cs delete mode 100644 mcs/class/corlib/System/ThreadStaticAttribute.cs delete mode 100644 mcs/class/corlib/System/TimeSpan.cs delete mode 100644 mcs/class/corlib/System/TimeZone.cs delete mode 100644 mcs/class/corlib/System/Type.cs delete mode 100644 mcs/class/corlib/System/TypeCode.cs delete mode 100644 mcs/class/corlib/System/TypeInitializationException.cs delete mode 100644 mcs/class/corlib/System/TypeLoadException.cs delete mode 100644 mcs/class/corlib/System/TypeUnloadedException.cs delete mode 100644 mcs/class/corlib/System/UInt16.cs delete mode 100644 mcs/class/corlib/System/UInt32.cs delete mode 100644 mcs/class/corlib/System/UInt64.cs delete mode 100644 mcs/class/corlib/System/UIntPtr.cs delete mode 100755 mcs/class/corlib/System/UnauthorizedAccessException.cs delete mode 100755 mcs/class/corlib/System/UnhandledExceptionEventArgs.cs delete mode 100755 mcs/class/corlib/System/UnhandledExceptionEventHandler.cs delete mode 100644 mcs/class/corlib/System/ValueType.cs delete mode 100644 mcs/class/corlib/System/Version.cs delete mode 100644 mcs/class/corlib/System/Void.cs delete mode 100755 mcs/class/corlib/System/WeakReference.cs delete mode 100755 mcs/class/corlib/System/_AppDomain.cs delete mode 100644 mcs/class/corlib/Test/.cvsignore delete mode 100644 mcs/class/corlib/Test/AllTests.cs delete mode 100644 mcs/class/corlib/Test/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Collections/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/ArrayListTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/BitArrayTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/CaseInsensitiveComparerTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/CaseInsensitiveHashCodeProviderTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Collections/CollectionBaseTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/ComparerTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/HashtableTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/QueueTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/ReadOnlyCollectionBaseTest.cs delete mode 100755 mcs/class/corlib/Test/System.Collections/SortedListTest.cs delete mode 100644 mcs/class/corlib/Test/System.Collections/StackTest.cs delete mode 100644 mcs/class/corlib/Test/System.Diagnostics/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Diagnostics/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Diagnostics/DebugTest.cs delete mode 100644 mcs/class/corlib/Test/System.Diagnostics/StackFrameTest.cs delete mode 100644 mcs/class/corlib/Test/System.Diagnostics/StackTraceTest.cs delete mode 100644 mcs/class/corlib/Test/System.Diagnostics/TextWriterTraceListenerTest.cs delete mode 100644 mcs/class/corlib/Test/System.Globalization/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Globalization/CalendarTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.IO/BinaryReaderTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.IO/FileTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/MemoryStreamTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/PathTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/StreamReaderTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/StreamWriterTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/StringReaderTest.cs delete mode 100644 mcs/class/corlib/Test/System.IO/StringWriterTest.cs delete mode 100644 mcs/class/corlib/Test/System.Resources/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Resources/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Resources/ResourceReaderTest.cs delete mode 100644 mcs/class/corlib/Test/System.Runtime.Serialization/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Runtime.Serialization/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Runtime.Serialization/FormatterServicesTests.cs delete mode 100755 mcs/class/corlib/Test/System.Runtime.Serialization/ObjectIDGeneratorTests.cs delete mode 100644 mcs/class/corlib/Test/System.Security.Cryptography/AllTests.cs delete mode 100755 mcs/class/corlib/Test/System.Security.Cryptography/AsymmetricAlgorithmTest.cs delete mode 100755 mcs/class/corlib/Test/System.Security.Cryptography/FromBase64Transform.cs delete mode 100644 mcs/class/corlib/Test/System.Security.Cryptography/RNGCryptoServiceProviderTest.cs delete mode 100755 mcs/class/corlib/Test/System.Security.Cryptography/SymmetricAlgorithmTest.cs delete mode 100644 mcs/class/corlib/Test/System.Security.Permissions/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Security.Permissions/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Security.Permissions/FileIOPermissionTest.cs delete mode 100644 mcs/class/corlib/Test/System.Security.Policy/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Security.Policy/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Security.Policy/CodeGroupTest.cs delete mode 100644 mcs/class/corlib/Test/System.Security/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Security/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Security/SecurityElementTest.cs delete mode 100755 mcs/class/corlib/Test/System.Text/ASCIIEncodingTest.cs delete mode 100644 mcs/class/corlib/Test/System.Text/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System.Text/ChangeLog delete mode 100644 mcs/class/corlib/Test/System.Text/StringBuilderTest.cs delete mode 100644 mcs/class/corlib/Test/System/AllTests.cs delete mode 100644 mcs/class/corlib/Test/System/ArrayTest.cs delete mode 100755 mcs/class/corlib/Test/System/AttributeTest.cs delete mode 100755 mcs/class/corlib/Test/System/BitConverterTest.cs delete mode 100644 mcs/class/corlib/Test/System/BooleanTest.cs delete mode 100644 mcs/class/corlib/Test/System/BufferTest.cs delete mode 100644 mcs/class/corlib/Test/System/ByteTest.cs delete mode 100644 mcs/class/corlib/Test/System/ChangeLog delete mode 100755 mcs/class/corlib/Test/System/CharEnumeratorTest.cs delete mode 100644 mcs/class/corlib/Test/System/CharTest.cs delete mode 100644 mcs/class/corlib/Test/System/ConsoleTest.cs delete mode 100755 mcs/class/corlib/Test/System/ConvertTest.cs delete mode 100755 mcs/class/corlib/Test/System/DateTimeTest.cs delete mode 100644 mcs/class/corlib/Test/System/DecimalTest.cs delete mode 100644 mcs/class/corlib/Test/System/DecimalTest2.cs delete mode 100644 mcs/class/corlib/Test/System/DoubleTest.cs delete mode 100644 mcs/class/corlib/Test/System/EnumTest.cs delete mode 100644 mcs/class/corlib/Test/System/ExceptionTest.cs delete mode 100755 mcs/class/corlib/Test/System/GuidTest.cs delete mode 100644 mcs/class/corlib/Test/System/Int16Test.cs delete mode 100644 mcs/class/corlib/Test/System/Int32Test.cs delete mode 100644 mcs/class/corlib/Test/System/Int64Test.cs delete mode 100644 mcs/class/corlib/Test/System/IntegerFormatterTest.cs delete mode 100755 mcs/class/corlib/Test/System/MathTest.cs delete mode 100644 mcs/class/corlib/Test/System/MulticastDelegate.cs delete mode 100644 mcs/class/corlib/Test/System/ObjectTest.cs delete mode 100644 mcs/class/corlib/Test/System/RandomTest.cs delete mode 100644 mcs/class/corlib/Test/System/ResolveEventArgsTest.cs delete mode 100644 mcs/class/corlib/Test/System/SByteTest.cs delete mode 100644 mcs/class/corlib/Test/System/StringTest.cs delete mode 100755 mcs/class/corlib/Test/System/TimeSpanTest.cs delete mode 100644 mcs/class/corlib/Test/System/TimeZoneTest.cs delete mode 100644 mcs/class/corlib/Test/System/UInt16Test.cs delete mode 100644 mcs/class/corlib/Test/System/UInt32Test.cs delete mode 100644 mcs/class/corlib/Test/System/UInt64Test.cs delete mode 100644 mcs/class/corlib/Test/System/VersionTest.cs delete mode 100644 mcs/class/corlib/Test/corlib_linux_test.args delete mode 100644 mcs/class/corlib/Test/corlib_test.build delete mode 100644 mcs/class/corlib/Test/makefile.gnu delete mode 100644 mcs/class/corlib/Test/resources/AFile.txt delete mode 100644 mcs/class/corlib/Test/resources/Empty.resources delete mode 100644 mcs/class/corlib/Test/resources/MyResources.resources delete mode 100755 mcs/class/corlib/Unix/Errno.cs delete mode 100644 mcs/class/corlib/Unix/Wrapper.cs delete mode 100644 mcs/class/corlib/Unix/common.src delete mode 100644 mcs/class/corlib/Unix/mono.src delete mode 100644 mcs/class/corlib/Unix/windows.src delete mode 100644 mcs/class/corlib/Windows/Windows.cs delete mode 100644 mcs/class/corlib/corlib.build delete mode 100644 mcs/class/corlib/makefile.gnu delete mode 100755 mcs/class/corlib/unix.args delete mode 100644 mcs/class/executable.make delete mode 100644 mcs/class/lib/.cvsignore delete mode 100644 mcs/class/library.build delete mode 100644 mcs/class/library.make delete mode 100644 mcs/class/makefile delete mode 100644 mcs/class/makefile.gnu delete mode 100644 mcs/class/notes/BitVecto32.txt delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom.Compiler/CodeGenerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom.Compiler/ICodeGenerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeArrayCreateExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeAssignStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeAttachEventStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeAttributeArgument.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeAttributeArgumentCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeAttributeBlock.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeAttributeDeclaration.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeAttributeDeclarationCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeBaseReferenceExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeBinaryOperatorExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeBinaryOperatorType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeCastExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeCatchClause.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeCatchClauseCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeClass.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeClassCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeClassConstructor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeClassDelegate.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeClassMember.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeClassMemberCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeCommentStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeConstructor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeDelegateCreateExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeDelegateInvokeExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeDelegateInvokeStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeDetachEventStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeExpressionCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeFieldReferenceExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeForLoopStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeIfStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeIndexerExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeLinePragma.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeLiteralClassMember.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeLiteralExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeLiteralNamespace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeLiteralStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeMemberEvent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeMemberField.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeMemberMethod.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeMemberProperty.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeMethodInvokeExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeMethodInvokeStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeMethodReturnStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeNamespace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeNamespaceImport.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeNamespaceImportCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeObject.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeObjectCreateExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeParameterDeclarationExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeParameterDeclarationExpressionCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodePrimitiveExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodePropertyReferenceExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeStatementCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeThisReferenceExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeThrowExceptionStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeTryCatchFinallyStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeTypeDeclaration.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeTypeMember.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeTypeOfExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeTypeReferenceExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/CodeVariableDeclarationStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/FieldDirection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.CodeDom/MemberAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/BitVector32.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/KeysCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/ListDictionary.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/NameObjectCollectionBase.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/NameValueCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/Section.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/StringCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/StringDictionary.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections.Specialized/StringEnumerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/ArrayList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/BitArray.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/CaseInsensitiveComparer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/CaseInsensitiveHashCodeProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/CollectionBase.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/Comparer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/DictionaryBase.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/DictionaryEntry.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/EnumeratorMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/Hashtable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/ICollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/IComparer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/IDictionary.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/IDictionaryEnumerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/IEnumerable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/IEnumerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/IHashCodeProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/IList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/Queue.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/ReadOnlyCollectionBase.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/SortedList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Collections/Stack.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/BrowsableAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/CategoryAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/Component.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/ComponentCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/Container.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/DescriptionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/DesignOnlyAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/DesignerSerializationVisibility.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/DesignerSerializationVisibilityAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/EventHandlerList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/IComponent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/IContainer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/ISite.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/LocalizableAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/MemberDescriptor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/PropertyDescriptor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/TypeConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.ComponentModel/Win32Exception.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration.Assemblies/AssemblyHash.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration.Assemblies/AssemblyHashAlgorithm.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration.Assemblies/AssemblyVersionCompatibility.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration.Assemblies/ProcessorID.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration/ConfigurationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration/ConfigurationSettings.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration/DictionarySectionHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration/IConfigurationSectionHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration/IgnoreSectionHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration/NameValueSectionHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Configuration/SingleTagSectionHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/AcceptRejectRule.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/CommandBehavior.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/CommandType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/ConnectionState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataColumnChangeEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataColumnChangeEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataColumnCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataRowAction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataRowChangeEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataRowState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataRowVersion.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DataViewRowState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/DbType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/FillErrorEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IColumnMapping.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IColumnMappingCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDBCommand.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDBConnection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDataAdapter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDataParameter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDataParameterCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDataReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDataRecord.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDbDataAdapter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDbDataParameter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IDbTransaction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/ITableMapping.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/ITableMappingCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/IsolationLevel.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/MappingType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/MergeFailedEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/MissingMappingAction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/MissingSchemaAction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/ParameterDirection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/PropertyAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/Rule.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/SchemaType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/SqlDbType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/StateChangeEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/StatementType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/UpdateRowSource.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/UpdateStatus.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/XmlReadMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Data/XmlWriteMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolBinder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolDocument.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolDocumentWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolMethod.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolNamespace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolScope.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolVariable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/ISymbolWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/SymAddressKind.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/SymDocumentType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/SymLanguageType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/SymLanguageVendor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics.SymbolStore/SymbolToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/BooleanSwitch.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/ChangeLog delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/ConditionalAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/Debug.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/DebuggableAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/Debugger.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/DebuggerHiddenAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/DebuggerStepThroughAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/DefaultTraceListener.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/DiagnosticsConfigurationHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/FileVersionInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/Process.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/ProcessModule.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/ProcessPriorityClass.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/StackFrame.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/StackTrace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/Switch.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/TextWriterTraceListener.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/Trace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/TraceLevel.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/TraceListener.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/TraceListenerCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Diagnostics/TraceSwitch.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/CCGregorianEraHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/CCHijriCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/Calendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/CalendarWeekRule.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/CompareOptions.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/CultureInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/CultureTypes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/DateTimeFormatInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/DateTimeStyles.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/DaylightTime.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/GregorianCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/GregorianCalendarTypes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/HebrewCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/HijriCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/JapaneseCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/JulianCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/KoreanCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/Month.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/NumberFormatInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/NumberStyles.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/RegionInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/TaiwanCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/ThaiBuddhistCalendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Globalization/UnicodeCategory.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO.IsolatedStorage/INormalizeForIsolatedStorage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO.IsolatedStorage/IsolatedStorage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO.IsolatedStorage/IsolatedStorageException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO.IsolatedStorage/IsolatedStorageFileStream.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO.IsolatedStorage/IsolatedStorageScope.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/BinaryReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/BinaryWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/BufferedStream.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/Directory.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/DirectoryInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/DirectoryNotFoundException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/EndOfStreamException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/File.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileAccess.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileLoadException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileNotFoundException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileShare.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileStream.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/FileSystemInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/IOException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/MemoryStream.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/Path.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/PathTooLongException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/SeekOrigin.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/Stream.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/StreamReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/StreamWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/StringReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/StringWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/TextReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.IO/TextWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/AddressFamily.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/LingerOption.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/MulticastOption.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/NetworkStream.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/ProtocolFamily.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/ProtocolType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/SelectMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/Socket.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/SocketException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/SocketFlags.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/SocketOptionLevel.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/SocketOptionName.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/SocketShutdown.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/SocketType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/TcpClient.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net.Sockets/TcpListener.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/Authorization.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/ConnectionModes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/Dns.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/EndPoint.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/HttpStatusCode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/ICredentials.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/IPAddress.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/IPEndPoint.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/IPHostEntry.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/NetworkAccess.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/NetworkCredential.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/ProxyUseType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/SocketAddress.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/TransportType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/WebExceptionStatus.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Net/WebStatus.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/AssemblyBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/AssemblyBuilderAccess.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/ConstructorBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/CustomAttributeBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/EnumBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/EventBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/EventToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/FieldBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/FieldToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/FlowControl.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/ILGenerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/Label.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/LocalBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/MethodBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/MethodToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/ModuleBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/OpCode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/OpCodeType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/OpCodes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/OperandType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/PEFileKinds.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/PackingSize.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/ParameterBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/ParameterToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/PropertyBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/PropertyToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/SignatureHelper.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/SignatureToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/StackBehaviour.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/StringToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/TypeBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/TypeToken.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection.Emit/UnmanagedMarshal.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AmbiguousMatchException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/Assembly.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyAlgorithmIdAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyCompanyAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyConfigurationAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyCopyrightAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyCultureAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyDefaultAliasAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyDelaySignAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyDescriptionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyFileVersionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyFlagsAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyInformationalVersionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyKeyFileAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyKeyNameAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyName.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyNameFlags.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyNameProxy.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyProductAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyTitleAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyTrademarkAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/AssemblyVersionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/Binder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/BindingFlags.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/CallingConventions.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ConstructorInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/CustomAttributeFormatException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/DefaultMemberAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/EventAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/EventInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/FieldAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/FieldInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ICustomAttributeProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/IReflect.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/InterfaceMapping.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/InvalidFilterCriteriaException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ManifestResourceInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MemberFilter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MemberInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MemberTypes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MethodAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MethodBase.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MethodImplAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MethodInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/Missing.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/Module.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/MonoEvent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ParameterAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ParameterInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ParameterModifier.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/PropertyAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/PropertyInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ReflectionTypeLoadException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ResourceAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/ResourceLocation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/StrongNameKeyPair.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/TargetException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/TargetInvocationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/TargetParameterCountException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/TypeAttributes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/TypeDelegator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Reflection/TypeFilter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/IResourceReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/IResourceWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/MissingManifestResourceException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/NeutralResourcesLanguageAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/ResourceManager.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/ResourceReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/ResourceSet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/ResourceWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Resources/SatelliteContractVersionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.CompilerServices/IndexerNameAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.CompilerServices/MethodCodeType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.CompilerServices/MethodImplAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.CompilerServices/MethodImplOptions.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.CompilerServices/RuntimeHelpers.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/AssemblyRegistrationFlags.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/CallingConvention.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/CharSet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ClassInterfaceAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ClassInterfaceType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ComInterfaceType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/DllImportAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ExporterEventKind.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ExternalException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/FieldOffsetAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/GCHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/GCHandleType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/GuidAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ICustomAdapter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ICustomFactory.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ICustomMarshaler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/IRegistrationServices.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ITypeLibConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ITypeLibExporterNameProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ITypeLibExporterNotifySink.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ITypeLibImporterNotifySink.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/ImporterEventKind.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/InAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/InterfaceTypeAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/LayoutKind.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/MarshalAsAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/OptionalAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/OutAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/PInvokeMap.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/StructLayoutAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/TypeLibExporterFlags.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/UnmanagedType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.InteropServices/VarEnum.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Activation/ActivatorLevel.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Activation/IActivator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Activation/IConstructionCallMessage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Activation/IConstructionReturnMessage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Contexts/Context.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Contexts/ContextAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Contexts/IContextAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Contexts/IContextProperty.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Contexts/IDynamicMessageSink.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Contexts/IDynamicProperty.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Contexts/SynchronizationAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/AsyncResult.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/Header.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/IMessage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/IMessageCtrl.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/IMessageSink.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/IMethodCallMessage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/IMethodMessage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/IMethodReturnMessage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Messaging/LogicalCallContext.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting.Proxies/RealProxy.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting/LeaseState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting/ObjRef.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting/ObjectHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting/RemotingServices.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting/SoapMethodOption.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting/SoapOption.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Remoting/WellKnownObjectMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters.Binary/BinaryArrayTypeEnum.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/FormatterAssemblyStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/FormatterTopObjectStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/FormatterTypeStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/IFieldInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/ISoapMessage.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalArrayTypeE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalElementTypeE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalMemberTypeE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalMemberValueE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalNameSpaceE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalObjectPositionE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalObjectTypeE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalParseStateE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalParseTypeE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalPrimitiveTypeE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization.Formatters/InternalSerializerTypeE.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/IDeserializationCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/IFormatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/IFormatterConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/IObjectReference.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/ISerializable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/ISerializationSurrogate.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/ISurrogateSelector.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/ObjectIDGenerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/SerializationBinder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/SerializationEntry.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/SerializationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/SerializationInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/SerializationInfoEnumerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/StreamingContext.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/StreamingContextStates.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Runtime.Serialization/SurrogateSelector.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography.X509Certificates/X509Certificate.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/AsymmetricAlgorithm.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/AsymmetricKeyExchangeFormatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/AsymmetricSignatureDeformatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/AsymmetricSignatureFormatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CipherMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CryptoAPITransform.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CryptoStream.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CryptoStreamMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CryptographicException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CryptographicUnexpectedOperationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CspParameters.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/CspProviderFlags.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DES.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DESCryptoServiceProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DSA.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DSACryptoServiceProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DSAParameters.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DSASignatureDeformatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DSASignatureFormatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/DeriveBytes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/FromBase64Transform.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/FromBase64TransformMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/HashAlgorithm.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/ICryptoTransform.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/KeySizes.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/MD5.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/MD5CryptoServiceProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/PaddingMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/RNGCryptoServiceProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/RSA.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/RSAParameters.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/RandomNumberGenerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/Rijndael.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/RijndaelManaged.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA1.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA1CryptoServiceProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA256.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA256Managed.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA384.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA384Managed.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA512.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SHA512Managed.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SignatureDescription.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/SymmetricAlgorithm.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Cryptography/ToBase64Transform.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/CodeAccessSecurityAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/EnvironmentPermissionAccess.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/EnvironmentPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/FileDialogPermissionAccess.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/FileDialogPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/FileIOPermission.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/FileIOPermissionAccess.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/FileIOPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/IUnrestrictedPermission.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/IsolatedStorageContainment.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/IsolatedStorageFilePermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/IsolatedStoragePermission.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/IsolatedStoragePermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/PermissionSetAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/PermissionState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/PrinciplePermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/ReflectionPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/ReflectionPermissionFlag.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/RegistryPermissionAccess.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/RegistryPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/SecurityAction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/SecurityAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/SecurityPermission.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/SecurityPermissionFlag.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/SiteIdentityPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/StrongNameIdentityPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/UIPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/UIPermissionClipboard.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/UIPermissionWindow.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/UrlIdentityPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Permissions/ZoneIdentityPermissionAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/AllMembershipCondition.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/ApplicationDirectoryMembershipCondition.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/CodeGroup.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/Evidence.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/FileCodeGroup.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/IIdentityPermissionFactory.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/IMembershipCondition.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/PolicyException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/PolicyLevel.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/PolicyStatement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Policy/PolicyStatementAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Principal/GenericIdentity.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Principal/GenericPrincipal.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Principal/IIdentity.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Principal/IPrincipal.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security.Principal/PrincipalPolicy.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/CodeAccessPermission.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/IEvidenceFactory.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/IPermission.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/ISecurityEncodable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/ISecurityPolicyEncodable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/IStackWalk.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/NamedPermissionSet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/PermissionSet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/PolicyLevelType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/SecurityElement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/SecurityException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/SecurityManager.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/SecurityZone.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/SuppressUnmanagedCodeSecurityAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/UnverifiableCodeAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/VerificationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Security/XmlSyntaxException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/Capture.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/CaptureCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/CostDelegate.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/Group.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/GroupCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/Match.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/MatchCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/MatchEvaluator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/Regex.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/RegexCollectionBase.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/RegexCompilationInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text.RegularExpressions/RegexOptions.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/ASCIIEncoding.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/Decoder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/Encoder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/Encoding.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/StringBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/UTF7Encoding.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/UTF8Encoding.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Text/UnicodeEncoding.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ApartmentState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/AutoResetEvent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/IOCompletionCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/Interlocked.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/LockCookie.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ManualResetEvent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/Monitor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/Mutex.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/NativeOverlapped.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/Overlapped.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ReaderWriterLock.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/RegisteredWaitHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/SynchronizationLockException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/Thread.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadAbortException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadExceptionEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadExceptionEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadInterruptedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadPool.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadPriority.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadStart.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/ThreadStateException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/Timeout.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/Timer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/TimerCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/WaitCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/WaitHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Threading/WaitOrTimerCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/Cache.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheDependency.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheDependencyCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheEntry.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheExpires.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheItemPriority.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheItemPriorityDecay.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheItemRemovedCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/CacheItemRemovedReason.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/ExpiresBucket.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/ExpiresEntry.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Caching/Flags.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Configuration/AuthenticationMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Configuration/ClientTargetSectionHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Configuration/FormsAuthPasswordFormat.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Configuration/FormsProtectionEnum.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/AdCreatedEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/AdCreatedEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/AdRotator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/BaseCompareValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/BaseDataList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/BaseValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/BorderStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/BoundColumn.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Button.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ButtonColumn.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ButtonColumnType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Calendar.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CalendarDay.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CalendarSelectionMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CheckBox.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CheckBoxList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CommandEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CommandEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CompareValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/CustomValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGrid.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridColumn.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridColumnCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridCommandEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridCommandEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridItem.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridItemCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridItemEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridItemEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridPageChangedEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridPageChangedEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridPagerStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridSortCommandEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataGridSortCommandEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataKeyCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataListCommandEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataListCommandEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataListItem.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataListItemCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataListItemEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DataListItemEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DayNameFormat.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DayRenderEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DayRenderEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/DropDownList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/EditCommandColumn.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/FirstDayOfWeek.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/FontInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/FontNamesConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/FontSize.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/FontUnit.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/FontUnitConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/GridLines.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/HorizontalAlign.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/HyperLink.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/HyperLinkColumn.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/HyperLinkControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/IRepeatInfoUser.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Image.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ImageAlign.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ImageButton.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Label.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/LabelControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/LinkButton.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/LinkButtonControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ListBox.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ListControl.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ListItem.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ListItemCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ListItemControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ListItemType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ListSelectionMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Literal.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/LiteralControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/MonthChangedEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/MonthChangedEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/NextPrevFormat.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/PagedDataSource.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/PagerMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/PagerPosition.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Panel.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/PlaceHolder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/PlaceHolderControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RadioButton.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RadioButtonList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RangeValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RegularExpressionValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeatDirection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeatInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeatLayout.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Repeater.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeaterCommandEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeaterCommandEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeaterItem.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeaterItemCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeaterItemEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RepeaterItemEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/RequiredFieldValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/SelectedDatesCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ServerValidateEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ServerValidateEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Style.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Table.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableCell.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableCellCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableCellControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableHeaderCell.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableItemStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableRow.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableRowCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TableStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TargetConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TemplateColumn.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TextAlign.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TextBox.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TextBoxControlBuilder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TextBoxMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/TitleFormat.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Unit.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/UnitConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/UnitType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ValidatedControlConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ValidationCompareOperator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ValidationDataType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ValidationSummary.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ValidationSummaryDisplayMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/ValidatorDisplay.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/VerticalAlign.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/WebColorConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/WebControl.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI.WebControls/Xml.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/BuildMethod.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/BuildTemplateMethod.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/Control.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/DataBindingHandlerAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/DesignTimeParseData.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/HtmlTextWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/HtmlTextWriterAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/HtmlTextWriterStyle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/HtmlTextWriterTag.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/IAttributeAccessor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/IDataBindingsAccessor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/INamingContainer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/IParserAccessor.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/IPostBackDataHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/IPostBackEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/IStateManager.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/ITagNameToTypeMapper.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/ITemplate.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/IValidator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/ImageClickEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/LiteralControl.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/OutputCacheLocation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/Pair.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/PersistenceMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/PropertyConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/StateBag.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/StateItem.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.UI/ToolboxDataAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Utils/FileAction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Utils/FileChangeEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Utils/NativeFileChangeEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Utils/WebEqualComparer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web.Utils/WebHashCodeProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/BeginEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/EndEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/EndOfSendNotification.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpCacheRevalidation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpCacheability.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpCookie.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpCookieCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpRuntime.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpServerUtility.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpValidationStatus.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/HttpWorkerRequest.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/ProcessShutdownReason.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/ProcessStatus.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Web/TraceMode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/ValidationEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/ValidationEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchema.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAll.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAnnotated.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAnnotation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAny.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAnyAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAppInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAttributeGroup.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaAttributeGroupRef.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaChoice.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaCollectionEnumerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaComplexContent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaComplexContentExtension.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaComplexContentRestriction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaComplexType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaContent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaContentModel.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaContentProcessing.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaContentType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaDatatype.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaDerivationMethod.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaDocumentation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaElement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaEnumerationFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaExternal.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaForm.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaFractionDigitsFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaGroup.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaGroupBase.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaGroupRef.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaIdentityConstraint.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaImport.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaInclude.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaKey.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaKeyref.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaLengthFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaMaxExclusiveFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaMaxInclusiveFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaMaxLengthFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaMinExclusiveFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaMinInclusiveFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaMinLengthFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaNotation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaNumericFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaObject.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaObjectCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaObjectEnumerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaObjectTable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaParticle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaPatternFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaRedefine.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSequence.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleContent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleContentExtension.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleContentRestriction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleTypeContent.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleTypeList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleTypeRestriction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaSimpleTypeUnion.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaTotalDigitsFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaUnique.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaUse.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaWhiteSpaceFacet.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSchemaXPath.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.Schema/XmlSeverityType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/IXPathNavigable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathExpression.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathNamespaceScope.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathNavigator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathNodeIterator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathNodeType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathResultType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathScanner.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XPathTokenType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XmlDataType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml.XPath/XmlSortOrder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/EntityHandling.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/Formatting.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/IHasXmlNode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/IXmlLineInfo.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/NameTable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/ReadState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/ValidationType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/WhitespaceHandling.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/WriteState.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlAttributeCollection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlCDataSection.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlCaseOrder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlCharacterData.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlComment.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlDeclaration.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlDocument.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlDocumentFragment.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlDocumentType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlElement.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlEntity.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlEntityReference.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlImplementation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlLinkedNode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNameTable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNamedNodeMap.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNamespaceManager.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNodeChangedAction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNodeChangedEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNodeChangedEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNodeList.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNodeOrder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNodeType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlNotation.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlParserContext.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlProcessingInstruction.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlQualifiedName.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlResolver.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlSignificantWhitespace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlSpace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlText.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlTextReader.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlTextWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlTokenizedType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlUrlResolver.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlWhitespace.xml delete mode 100644 mcs/docs/apidocs/xml/en/System.Xml/XmlWriter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AppDomain.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AppDomainSetup.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AppDomainUnloadedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ApplicationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ArgumentException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ArgumentNullException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ArgumentOutOfRangeException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ArithmeticException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Array.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ArrayTypeMismatchException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AssemblyLoadEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AssemblyLoadEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AsyncCallback.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Attribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AttributeTargets.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/AttributeUsageAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/BadImageFormatException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/BitConverter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Boolean.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Buffer.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Byte.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/CLSCompliantAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/CannotUnloadAppDomainException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Char.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/CharEnumerator.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Console.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ContextBoundObject.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ContextMarshalException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ContextStaticAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Convert.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/CrossAppDomainDelegate.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/DBNull.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/DateTime.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/DayOfWeek.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Decimal.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/DivideByZeroException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/DllNotFoundException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Double.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/DuplicateWaitObjectException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/EntryPointNotFoundException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Environment.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/EventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/EventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ExecutionEngineException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/FieldAccessException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/FlagsAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/FormatException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/GC.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Guid.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IAppDomainSetup.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IAsyncResult.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ICloneable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IComparable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IConvertible.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IDisposable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IFormatProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IFormattable.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IServiceProvider.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IndexOutOfRangeException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Int16.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Int32.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Int64.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IntPtr.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/IntegerFormatter.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/InvalidCastException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/InvalidOperationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/InvalidProgramException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/LoaderOptimization.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/LoaderOptimizationAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/LocalDataStoreSlot.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MTAThreadAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MarshalByRefObject.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Math.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MemberAccessException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MethodAccessException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MissingFieldException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MissingMemberException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MissingMethodException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MonoDummy.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MonoTODOAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/MulticastNotSupportedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/NonSerializedAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/NotFiniteNumberException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/NotImplementedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/NotSupportedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/NullReferenceException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ObjectDisposedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ObsoleteAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/OperatingSystem.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/OutOfMemoryException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/OverflowException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ParamArrayAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/PlatformID.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/PlatformNotSupportedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Random.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/RankException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ResolveEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ResolveEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/RuntimeArgumentHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/RuntimeFieldHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/RuntimeMethodHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/RuntimeTypeHandle.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/SByte.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/STAThreadAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/SerializableAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Single.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/SpecialFolder.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/StackOverflowException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/String.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/SystemException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/ThreadStaticAttribute.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/TimeSpan.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/TimeZone.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Type.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/TypeCode.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/TypeInitializationException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/TypeLoadException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/TypeUnloadedException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UInt16.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UInt32.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UInt64.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UIntPtr.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UnauthorizedAccessException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UnhandledExceptionEventArgs.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UnhandledExceptionEventHandler.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Uri.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UriFormatException.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UriHostNameType.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/UriPartial.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Version.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/Void.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/WeakReference.xml delete mode 100644 mcs/docs/apidocs/xml/en/System/_AppDomain.xml delete mode 100755 mcs/docs/clr-abi.txt delete mode 100755 mcs/docs/compiler delete mode 100644 mcs/docs/control-flow-analysis.txt delete mode 100755 mcs/docs/order.txt delete mode 100644 mcs/doctools/.cvsignore delete mode 100644 mcs/doctools/ChangeLog delete mode 100644 mcs/doctools/README.build delete mode 100644 mcs/doctools/doctools.build delete mode 100644 mcs/doctools/etc/gui/AboutMonodoc.png delete mode 100644 mcs/doctools/etc/gui/AssemblyBrowser.png delete mode 100644 mcs/doctools/etc/gui/ErrorExplosion.png delete mode 100644 mcs/doctools/etc/gui/ImageResources.resx delete mode 100644 mcs/doctools/etc/gui/TextResources.resx delete mode 100644 mcs/doctools/etc/gui/readme.txt delete mode 100644 mcs/doctools/etc/monodoc.dtd delete mode 100755 mcs/doctools/makefile delete mode 100644 mcs/doctools/src/Console/docstub.cs delete mode 100644 mcs/doctools/src/Console/docval.cs delete mode 100644 mcs/doctools/src/Core/.cvsignore delete mode 100644 mcs/doctools/src/Core/AbstractClassStructDoc.cs delete mode 100644 mcs/doctools/src/Core/AbstractDoc.cs delete mode 100644 mcs/doctools/src/Core/AbstractMethodOperatorDoc.cs delete mode 100644 mcs/doctools/src/Core/AbstractTypeDoc.cs delete mode 100644 mcs/doctools/src/Core/AssemblyInfo.cs delete mode 100644 mcs/doctools/src/Core/AssemblyLoader.cs delete mode 100644 mcs/doctools/src/Core/ClassDoc.cs delete mode 100644 mcs/doctools/src/Core/ConstructorDoc.cs delete mode 100644 mcs/doctools/src/Core/Core.csproj delete mode 100644 mcs/doctools/src/Core/DelegateDoc.cs delete mode 100644 mcs/doctools/src/Core/DocProject.cs delete mode 100644 mcs/doctools/src/Core/EnumDoc.cs delete mode 100644 mcs/doctools/src/Core/EventDoc.cs delete mode 100644 mcs/doctools/src/Core/ExceptionDoc.cs delete mode 100644 mcs/doctools/src/Core/FieldDoc.cs delete mode 100644 mcs/doctools/src/Core/InterfaceDoc.cs delete mode 100644 mcs/doctools/src/Core/MethodDoc.cs delete mode 100644 mcs/doctools/src/Core/MonodocException.cs delete mode 100644 mcs/doctools/src/Core/MonodocFile.cs delete mode 100644 mcs/doctools/src/Core/NamingFlags.cs delete mode 100644 mcs/doctools/src/Core/NotifyArrayList.cs delete mode 100644 mcs/doctools/src/Core/NotifyCollection.cs delete mode 100644 mcs/doctools/src/Core/NotifyHashtable.cs delete mode 100644 mcs/doctools/src/Core/OperatorDoc.cs delete mode 100644 mcs/doctools/src/Core/ParameterDoc.cs delete mode 100644 mcs/doctools/src/Core/PropertyDoc.cs delete mode 100644 mcs/doctools/src/Core/RecursiveFileList.cs delete mode 100644 mcs/doctools/src/Core/SortedStringValues.cs delete mode 100644 mcs/doctools/src/Core/StructDoc.cs delete mode 100644 mcs/doctools/src/Core/TypeNameHelper.cs delete mode 100644 mcs/doctools/src/Core/ValueConstrainedArrayList.cs delete mode 100644 mcs/doctools/src/Gui/.cvsignore delete mode 100644 mcs/doctools/src/Gui/AboutForm.cs delete mode 100644 mcs/doctools/src/Gui/AssemblyTreeImages.cs delete mode 100644 mcs/doctools/src/Gui/AssemblyTreeLoader.cs delete mode 100644 mcs/doctools/src/Gui/DirectorySelectorForm.cs delete mode 100644 mcs/doctools/src/Gui/EditPropertyForm.cs delete mode 100644 mcs/doctools/src/Gui/ExampleCodeEditorForm.cs delete mode 100644 mcs/doctools/src/Gui/GenericEditorForm.cs delete mode 100644 mcs/doctools/src/Gui/Gui.csproj delete mode 100644 mcs/doctools/src/Gui/GuiDriver.cs delete mode 100644 mcs/doctools/src/Gui/GuiResources.cs delete mode 100644 mcs/doctools/src/Gui/MainForm.cs delete mode 100644 mcs/doctools/src/Gui/MdiToolBar.cs delete mode 100644 mcs/doctools/src/Gui/ProjectOptionsForm.cs delete mode 100644 mcs/doctools/src/Gui/TypeEditorForm.cs delete mode 100644 mcs/doctools/src/Gui/UnexpectedErrorForm.cs delete mode 100644 mcs/doctools/src/doctools.sln delete mode 100644 mcs/doctools/src/xmltest/Driver.cs delete mode 100644 mcs/doctools/src/xmltest/xmltest.csproj delete mode 100755 mcs/errors/1529.cs delete mode 100644 mcs/errors/ChangeLog delete mode 100644 mcs/errors/README.tests delete mode 100755 mcs/errors/bug1.cs delete mode 100644 mcs/errors/bug10.cs delete mode 100755 mcs/errors/bug11.cs delete mode 100755 mcs/errors/bug12.cs delete mode 100755 mcs/errors/bug13.cs delete mode 100755 mcs/errors/bug14.cs delete mode 100755 mcs/errors/bug15.cs delete mode 100644 mcs/errors/bug16.cs delete mode 100755 mcs/errors/bug17.cs delete mode 100755 mcs/errors/bug18.cs delete mode 100755 mcs/errors/bug19.cs delete mode 100755 mcs/errors/bug2.cs delete mode 100755 mcs/errors/bug3.cs delete mode 100755 mcs/errors/bug4.cs delete mode 100755 mcs/errors/bug5.cs delete mode 100755 mcs/errors/bug6.cs delete mode 100755 mcs/errors/bug7.cs delete mode 100755 mcs/errors/bug8.cs delete mode 100755 mcs/errors/bug9.cs delete mode 100644 mcs/errors/cs-11.cs delete mode 100755 mcs/errors/cs-12.cs delete mode 100755 mcs/errors/cs0017.cs delete mode 100755 mcs/errors/cs0019-2.cs delete mode 100755 mcs/errors/cs0019-3.cs delete mode 100755 mcs/errors/cs0019-4.cs delete mode 100755 mcs/errors/cs0019-5.cs delete mode 100644 mcs/errors/cs0019.cs delete mode 100755 mcs/errors/cs0020.cs delete mode 100644 mcs/errors/cs0023.cs delete mode 100755 mcs/errors/cs0026-2.cs delete mode 100755 mcs/errors/cs0026.cs delete mode 100755 mcs/errors/cs0028.cs delete mode 100755 mcs/errors/cs0029.cs delete mode 100644 mcs/errors/cs0030.cs delete mode 100644 mcs/errors/cs0031.cs delete mode 100755 mcs/errors/cs0034.cs delete mode 100755 mcs/errors/cs0039.cs delete mode 100755 mcs/errors/cs0051.cs delete mode 100755 mcs/errors/cs0060.cs delete mode 100644 mcs/errors/cs0066.cs delete mode 100644 mcs/errors/cs0070.cs delete mode 100755 mcs/errors/cs0106.cs delete mode 100755 mcs/errors/cs0107.cs delete mode 100755 mcs/errors/cs0108.cs delete mode 100755 mcs/errors/cs0110.cs delete mode 100644 mcs/errors/cs0111.cs delete mode 100755 mcs/errors/cs0113.cs delete mode 100755 mcs/errors/cs0114.cs delete mode 100755 mcs/errors/cs0115.cs delete mode 100755 mcs/errors/cs0117.cs delete mode 100755 mcs/errors/cs0118.cs delete mode 100755 mcs/errors/cs0120-2.cs delete mode 100755 mcs/errors/cs0120.cs delete mode 100755 mcs/errors/cs0121.cs delete mode 100755 mcs/errors/cs0122.cs delete mode 100644 mcs/errors/cs0126.cs delete mode 100755 mcs/errors/cs0127.cs delete mode 100755 mcs/errors/cs0128.cs delete mode 100755 mcs/errors/cs0131.cs delete mode 100755 mcs/errors/cs0132.cs delete mode 100755 mcs/errors/cs0133.cs delete mode 100755 mcs/errors/cs0136-2.cs delete mode 100755 mcs/errors/cs0136.cs delete mode 100644 mcs/errors/cs0139.cs delete mode 100755 mcs/errors/cs0144-2.cs delete mode 100755 mcs/errors/cs0144.cs delete mode 100644 mcs/errors/cs0146.cs delete mode 100644 mcs/errors/cs0150.cs delete mode 100755 mcs/errors/cs0151.cs delete mode 100755 mcs/errors/cs0152.cs delete mode 100755 mcs/errors/cs0153.cs delete mode 100644 mcs/errors/cs0155-2.cs delete mode 100644 mcs/errors/cs0155.cs delete mode 100755 mcs/errors/cs0157.cs delete mode 100755 mcs/errors/cs0159-2.cs delete mode 100755 mcs/errors/cs0159.cs delete mode 100755 mcs/errors/cs0164.cs delete mode 100755 mcs/errors/cs0165-2.cs delete mode 100755 mcs/errors/cs0165.cs delete mode 100755 mcs/errors/cs0169.cs delete mode 100755 mcs/errors/cs0171.cs delete mode 100755 mcs/errors/cs0172.cs delete mode 100755 mcs/errors/cs0176.cs delete mode 100644 mcs/errors/cs0178.cs delete mode 100755 mcs/errors/cs0179.cs delete mode 100755 mcs/errors/cs0180.cs delete mode 100755 mcs/errors/cs0183.cs delete mode 100755 mcs/errors/cs0184.cs delete mode 100755 mcs/errors/cs0185.cs delete mode 100755 mcs/errors/cs0187.cs delete mode 100755 mcs/errors/cs0191.cs delete mode 100755 mcs/errors/cs0193.cs delete mode 100755 mcs/errors/cs0196.cs delete mode 100755 mcs/errors/cs0198.cs delete mode 100755 mcs/errors/cs0200.cs delete mode 100755 mcs/errors/cs0206.cs delete mode 100755 mcs/errors/cs0214-2.cs delete mode 100755 mcs/errors/cs0214-3.cs delete mode 100644 mcs/errors/cs0214.cs delete mode 100644 mcs/errors/cs0215.cs delete mode 100644 mcs/errors/cs0216.cs delete mode 100755 mcs/errors/cs0234.cs delete mode 100644 mcs/errors/cs0236.cs delete mode 100644 mcs/errors/cs0239.cs delete mode 100755 mcs/errors/cs0242.cs delete mode 100644 mcs/errors/cs0246.cs delete mode 100755 mcs/errors/cs0255.cs delete mode 100755 mcs/errors/cs0284.cs delete mode 100755 mcs/errors/cs0500.cs delete mode 100755 mcs/errors/cs0501.cs delete mode 100755 mcs/errors/cs0503.cs delete mode 100644 mcs/errors/cs0509.cs delete mode 100755 mcs/errors/cs0513.cs delete mode 100755 mcs/errors/cs0515.cs delete mode 100755 mcs/errors/cs0523.cs delete mode 100644 mcs/errors/cs0527-2.cs delete mode 100644 mcs/errors/cs0527.cs delete mode 100755 mcs/errors/cs0528.cs delete mode 100644 mcs/errors/cs0529.cs delete mode 100755 mcs/errors/cs0534.cs delete mode 100755 mcs/errors/cs0539.cs delete mode 100755 mcs/errors/cs0540.cs delete mode 100755 mcs/errors/cs0542.cs delete mode 100644 mcs/errors/cs0543.cs delete mode 100755 mcs/errors/cs0552.cs delete mode 100644 mcs/errors/cs0555.cs delete mode 100644 mcs/errors/cs0556.cs delete mode 100644 mcs/errors/cs0563.cs delete mode 100755 mcs/errors/cs0574.cs delete mode 100755 mcs/errors/cs0575.cs delete mode 100644 mcs/errors/cs0592.cs delete mode 100755 mcs/errors/cs0594-2.cs delete mode 100755 mcs/errors/cs0594-3.cs delete mode 100755 mcs/errors/cs0594.cs delete mode 100644 mcs/errors/cs0601.cs delete mode 100755 mcs/errors/cs0616.cs delete mode 100644 mcs/errors/cs0617.cs delete mode 100755 mcs/errors/cs0621.cs delete mode 100755 mcs/errors/cs0642.cs delete mode 100755 mcs/errors/cs0644.cs delete mode 100755 mcs/errors/cs0645.cs delete mode 100644 mcs/errors/cs0646.cs delete mode 100755 mcs/errors/cs0649.cs delete mode 100755 mcs/errors/cs0654.cs delete mode 100644 mcs/errors/cs0658.cs delete mode 100755 mcs/errors/cs0664.cs delete mode 100755 mcs/errors/cs0668.cs delete mode 100755 mcs/errors/cs0677.cs delete mode 100755 mcs/errors/cs1001.cs delete mode 100755 mcs/errors/cs1002.cs delete mode 100644 mcs/errors/cs1008.cs delete mode 100644 mcs/errors/cs1010.cs delete mode 100755 mcs/errors/cs1011.cs delete mode 100755 mcs/errors/cs1012.cs delete mode 100644 mcs/errors/cs1019.cs delete mode 100755 mcs/errors/cs102.cs delete mode 100644 mcs/errors/cs1020.cs delete mode 100755 mcs/errors/cs1021-2.cs delete mode 100755 mcs/errors/cs1021.cs delete mode 100755 mcs/errors/cs1032.cs delete mode 100644 mcs/errors/cs1033.cs delete mode 100644 mcs/errors/cs1039.cs delete mode 100755 mcs/errors/cs1501-2.cs delete mode 100644 mcs/errors/cs1501-3.cs delete mode 100755 mcs/errors/cs1501.cs delete mode 100755 mcs/errors/cs1510.cs delete mode 100755 mcs/errors/cs1511.cs delete mode 100755 mcs/errors/cs1513.cs delete mode 100755 mcs/errors/cs1518.cs delete mode 100755 mcs/errors/cs1520.cs delete mode 100755 mcs/errors/cs1523.cs delete mode 100755 mcs/errors/cs1524.cs delete mode 100755 mcs/errors/cs1525.cs delete mode 100755 mcs/errors/cs1526.cs delete mode 100755 mcs/errors/cs1527.cs delete mode 100755 mcs/errors/cs1528.cs delete mode 100755 mcs/errors/cs1529.cs delete mode 100755 mcs/errors/cs1530.cs delete mode 100644 mcs/errors/cs1540.cs delete mode 100755 mcs/errors/cs1552.cs delete mode 100755 mcs/errors/cs1579.cs delete mode 100644 mcs/errors/cs1593.cs delete mode 100644 mcs/errors/cs1594.cs delete mode 100755 mcs/errors/cs1604.cs delete mode 100755 mcs/errors/cs5001.cs delete mode 100644 mcs/errors/error-1.cs delete mode 100644 mcs/errors/error-2.cs delete mode 100644 mcs/errors/error-3.cs delete mode 100644 mcs/errors/error-4.cs delete mode 100644 mcs/errors/error-5.cs delete mode 100755 mcs/errors/errors.txt delete mode 100755 mcs/errors/fail delete mode 100755 mcs/errors/makefile delete mode 100755 mcs/errors/runtest.pl delete mode 100755 mcs/jay/.cvsignore delete mode 100644 mcs/jay/ACKNOWLEDGEMENTS delete mode 100755 mcs/jay/ChangeLog delete mode 100644 mcs/jay/NEW_FEATURES delete mode 100644 mcs/jay/NOTES delete mode 100644 mcs/jay/README delete mode 100644 mcs/jay/README.jay delete mode 100644 mcs/jay/closure.c delete mode 100644 mcs/jay/defs.h delete mode 100644 mcs/jay/depend delete mode 100644 mcs/jay/error.c delete mode 100644 mcs/jay/jay.1 delete mode 100644 mcs/jay/lalr.c delete mode 100644 mcs/jay/lr0.c delete mode 100644 mcs/jay/main.c delete mode 100644 mcs/jay/makefile delete mode 100644 mcs/jay/makefile.gnu delete mode 100644 mcs/jay/mkpar.c delete mode 100644 mcs/jay/output.c delete mode 100644 mcs/jay/reader.c delete mode 100644 mcs/jay/skeleton delete mode 100644 mcs/jay/skeleton.cs delete mode 100644 mcs/jay/symtab.c delete mode 100644 mcs/jay/verbose.c delete mode 100644 mcs/jay/warshall.c delete mode 100755 mcs/makefile delete mode 100644 mcs/makefile.gnu delete mode 100644 mcs/mbas/.cvsignore delete mode 100644 mcs/mbas/AssemblyInfo.cs delete mode 100644 mcs/mbas/ChangeLog delete mode 100644 mcs/mbas/assign.cs delete mode 100644 mcs/mbas/attribute.cs delete mode 100644 mcs/mbas/cfold.cs delete mode 100644 mcs/mbas/class.cs delete mode 100644 mcs/mbas/codegen.cs delete mode 100644 mcs/mbas/const.cs delete mode 100644 mcs/mbas/constant.cs delete mode 100644 mcs/mbas/decl.cs delete mode 100644 mcs/mbas/delegate.cs delete mode 100644 mcs/mbas/driver.cs delete mode 100644 mcs/mbas/ecore.cs delete mode 100644 mcs/mbas/enum.cs delete mode 100644 mcs/mbas/expression.cs delete mode 100644 mcs/mbas/genericparser.cs delete mode 100644 mcs/mbas/interface.cs delete mode 100644 mcs/mbas/literal.cs delete mode 100644 mcs/mbas/location.cs delete mode 100644 mcs/mbas/makefile delete mode 100644 mcs/mbas/mb-parser.jay delete mode 100644 mcs/mbas/mb-tokenizer.cs delete mode 100644 mcs/mbas/mbas.csproj delete mode 100644 mcs/mbas/mbas.ico delete mode 100644 mcs/mbas/mbas.sln delete mode 100644 mcs/mbas/modifiers.cs delete mode 100644 mcs/mbas/module.cs delete mode 100644 mcs/mbas/namespace.cs delete mode 100644 mcs/mbas/parameter.cs delete mode 100644 mcs/mbas/pending.cs delete mode 100644 mcs/mbas/report.cs delete mode 100644 mcs/mbas/rootcontext.cs delete mode 100644 mcs/mbas/statement.cs delete mode 100644 mcs/mbas/statementCollection.cs delete mode 100644 mcs/mbas/support.cs delete mode 100644 mcs/mbas/testmbas/.cvsignore delete mode 100644 mcs/mbas/testmbas/AssemblyInfo.vb delete mode 100644 mcs/mbas/testmbas/WriteOK.vb delete mode 100644 mcs/mbas/tree.cs delete mode 100644 mcs/mbas/typemanager.cs delete mode 100644 mcs/mcs/.cvsignore delete mode 100755 mcs/mcs/ChangeLog delete mode 100644 mcs/mcs/TODO delete mode 100755 mcs/mcs/assign.cs delete mode 100644 mcs/mcs/attribute.cs delete mode 100755 mcs/mcs/cfold.cs delete mode 100755 mcs/mcs/class.cs delete mode 100755 mcs/mcs/codegen.cs delete mode 100755 mcs/mcs/compiler.csproj delete mode 100755 mcs/mcs/compiler.csproj.user delete mode 100644 mcs/mcs/compiler.doc delete mode 100755 mcs/mcs/compiler.sln delete mode 100755 mcs/mcs/const.cs delete mode 100755 mcs/mcs/constant.cs delete mode 100755 mcs/mcs/cs-parser.jay delete mode 100755 mcs/mcs/cs-tokenizer.cs delete mode 100755 mcs/mcs/decl.cs delete mode 100644 mcs/mcs/delegate.cs delete mode 100755 mcs/mcs/driver.cs delete mode 100755 mcs/mcs/ecore.cs delete mode 100755 mcs/mcs/enum.cs delete mode 100755 mcs/mcs/errors.cs delete mode 100755 mcs/mcs/expression.cs delete mode 100755 mcs/mcs/gen-il.cs delete mode 100755 mcs/mcs/gen-treedump.cs delete mode 100644 mcs/mcs/genericparser.cs delete mode 100755 mcs/mcs/interface.cs delete mode 100755 mcs/mcs/literal.cs delete mode 100644 mcs/mcs/location.cs delete mode 100755 mcs/mcs/makefile delete mode 100644 mcs/mcs/makefile.gnu delete mode 100644 mcs/mcs/mcs.exe.config delete mode 100755 mcs/mcs/modifiers.cs delete mode 100755 mcs/mcs/namespace.cs delete mode 100755 mcs/mcs/old-code.cs delete mode 100755 mcs/mcs/parameter.cs delete mode 100755 mcs/mcs/parameterCollection.cs delete mode 100755 mcs/mcs/parser.cs delete mode 100755 mcs/mcs/pending.cs delete mode 100644 mcs/mcs/report.cs delete mode 100755 mcs/mcs/rootcontext.cs delete mode 100755 mcs/mcs/statement.cs delete mode 100755 mcs/mcs/statementCollection.cs delete mode 100755 mcs/mcs/support.cs delete mode 100755 mcs/mcs/tree.cs delete mode 100755 mcs/mcs/typemanager.cs delete mode 100755 mcs/monoresgen/ChangeLog delete mode 100755 mcs/monoresgen/makefile.gnu delete mode 100755 mcs/monoresgen/monoresgen.cs delete mode 100755 mcs/nant/.cvsignore delete mode 100644 mcs/nant/ChangeLog delete mode 100755 mcs/nant/README-nant.txt delete mode 100755 mcs/nant/doc/arrow.gif delete mode 100755 mcs/nant/doc/authors.html delete mode 100755 mcs/nant/doc/changelog.html delete mode 100755 mcs/nant/doc/index.html delete mode 100755 mcs/nant/doc/license.html delete mode 100755 mcs/nant/doc/style.css delete mode 100755 mcs/nant/doc/todo.html delete mode 100755 mcs/nant/makefile delete mode 100755 mcs/nant/readme.txt delete mode 100755 mcs/nant/src/AssemblyInfo.cs delete mode 100755 mcs/nant/src/Attributes/BooleanValidatorAttribute.cs delete mode 100755 mcs/nant/src/Attributes/Int32ValidatorAttribute.cs delete mode 100755 mcs/nant/src/Attributes/TaskAttributeAttribute.cs delete mode 100755 mcs/nant/src/Attributes/TaskFileSetAttribute.cs delete mode 100755 mcs/nant/src/Attributes/TaskNameAttribute.cs delete mode 100755 mcs/nant/src/Attributes/ValidatorAttribute.cs delete mode 100755 mcs/nant/src/BuildException.cs delete mode 100755 mcs/nant/src/DirectoryScanner.cs delete mode 100755 mcs/nant/src/FileSet.cs delete mode 100755 mcs/nant/src/Location.cs delete mode 100755 mcs/nant/src/NAnt.cs delete mode 100755 mcs/nant/src/NAnt.exe delete mode 100755 mcs/nant/src/Project.cs delete mode 100755 mcs/nant/src/PropertyDictionary.cs delete mode 100755 mcs/nant/src/Target.cs delete mode 100755 mcs/nant/src/TargetCollection.cs delete mode 100755 mcs/nant/src/Task.cs delete mode 100755 mcs/nant/src/TaskBuilder.cs delete mode 100755 mcs/nant/src/TaskBuilderCollection.cs delete mode 100755 mcs/nant/src/TaskCollection.cs delete mode 100755 mcs/nant/src/TaskFactory.cs delete mode 100755 mcs/nant/src/Tasks/CallTask.cs delete mode 100644 mcs/nant/src/Tasks/ChangeLog delete mode 100755 mcs/nant/src/Tasks/CompilerBase.cs delete mode 100755 mcs/nant/src/Tasks/CopyTask.cs delete mode 100755 mcs/nant/src/Tasks/CscTask.cs delete mode 100755 mcs/nant/src/Tasks/DeleteTask.cs delete mode 100755 mcs/nant/src/Tasks/EchoTask.cs delete mode 100755 mcs/nant/src/Tasks/ExecTask.cs delete mode 100755 mcs/nant/src/Tasks/ExternalProgramBase.cs delete mode 100755 mcs/nant/src/Tasks/FailTask.cs delete mode 100755 mcs/nant/src/Tasks/IncludeTask.cs delete mode 100755 mcs/nant/src/Tasks/JscTask.cs delete mode 100644 mcs/nant/src/Tasks/McsTask.cs delete mode 100755 mcs/nant/src/Tasks/MkDirTask.cs delete mode 100755 mcs/nant/src/Tasks/MoveTask.cs delete mode 100755 mcs/nant/src/Tasks/NantTask.cs delete mode 100755 mcs/nant/src/Tasks/PropertyTask.cs delete mode 100755 mcs/nant/src/Tasks/SleepTask.cs delete mode 100755 mcs/nant/src/Tasks/StyleTask.cs delete mode 100755 mcs/nant/src/Tasks/TStampTask.cs delete mode 100755 mcs/nant/src/Tasks/TaskDefTask.cs delete mode 100755 mcs/nant/src/Tasks/VbcTask.cs delete mode 100755 mcs/nant/src/Util/Log.cs delete mode 100755 mcs/nant/src/Util/XmlNodeTextPositionMap.cs delete mode 100644 mcs/nunit/.cvsignore delete mode 100644 mcs/nunit/ChangeLog delete mode 100755 mcs/nunit/RunTests.cs delete mode 100644 mcs/nunit/list.unix delete mode 100644 mcs/nunit/makefile delete mode 100644 mcs/nunit/makefile.gnu delete mode 100755 mcs/nunit/nunit.build delete mode 100644 mcs/nunit/src/NUnitConsole/.cvsignore delete mode 100644 mcs/nunit/src/NUnitConsole/AssemblyInfo.cs delete mode 100755 mcs/nunit/src/NUnitConsole/NUnitConsole.csproj delete mode 100644 mcs/nunit/src/NUnitConsole/NUnitConsole.xml delete mode 100644 mcs/nunit/src/NUnitConsole/NUnitConsoleMain.cs delete mode 100644 mcs/nunit/src/NUnitConsole/TestRunner.cs delete mode 100644 mcs/nunit/src/NUnitConsole/list.unix delete mode 100644 mcs/nunit/src/NUnitConsole/makefile.gnu delete mode 100644 mcs/nunit/src/NUnitCore/ActiveTestSuite.cs delete mode 100644 mcs/nunit/src/NUnitCore/AssemblyInfo.cs delete mode 100755 mcs/nunit/src/NUnitCore/AssemblyTestCollector.cs delete mode 100644 mcs/nunit/src/NUnitCore/Assertion.cs delete mode 100644 mcs/nunit/src/NUnitCore/AssertionFailedError.cs delete mode 100644 mcs/nunit/src/NUnitCore/BaseTestRunner.cs delete mode 100644 mcs/nunit/src/NUnitCore/ClassPathTestCollector.cs delete mode 100644 mcs/nunit/src/NUnitCore/ExceptionTestCase.cs delete mode 100644 mcs/nunit/src/NUnitCore/ExpectExceptionAttribute.cs delete mode 100644 mcs/nunit/src/NUnitCore/IFailureDetailView.cs delete mode 100644 mcs/nunit/src/NUnitCore/IProtectable.cs delete mode 100644 mcs/nunit/src/NUnitCore/ITest.cs delete mode 100644 mcs/nunit/src/NUnitCore/ITestCollector.cs delete mode 100644 mcs/nunit/src/NUnitCore/ITestListener.cs delete mode 100755 mcs/nunit/src/NUnitCore/ITestLoader.cs delete mode 100644 mcs/nunit/src/NUnitCore/ITestSuiteLoader.cs delete mode 100644 mcs/nunit/src/NUnitCore/LoadingTestCollector.cs delete mode 100755 mcs/nunit/src/NUnitCore/NUnitCore.csproj delete mode 100644 mcs/nunit/src/NUnitCore/NUnitException.cs delete mode 100644 mcs/nunit/src/NUnitCore/ReflectionUtils.cs delete mode 100644 mcs/nunit/src/NUnitCore/ReloadingTestSuiteLoader.cs delete mode 100644 mcs/nunit/src/NUnitCore/RepeatedTest.cs delete mode 100644 mcs/nunit/src/NUnitCore/SimpleTestCollector.cs delete mode 100755 mcs/nunit/src/NUnitCore/StandardLoader.cs delete mode 100644 mcs/nunit/src/NUnitCore/StandardTestSuiteLoader.cs delete mode 100644 mcs/nunit/src/NUnitCore/TestCase.cs delete mode 100644 mcs/nunit/src/NUnitCore/TestCaseClassLoader.cs delete mode 100644 mcs/nunit/src/NUnitCore/TestDecorator.cs delete mode 100644 mcs/nunit/src/NUnitCore/TestFailure.cs delete mode 100644 mcs/nunit/src/NUnitCore/TestResult.cs delete mode 100644 mcs/nunit/src/NUnitCore/TestSetup.cs delete mode 100644 mcs/nunit/src/NUnitCore/TestSuite.cs delete mode 100644 mcs/nunit/src/NUnitCore/Version.cs delete mode 100755 mcs/tests/ChangeLog delete mode 100644 mcs/tests/README.tests delete mode 100755 mcs/tests/c1.cs delete mode 100755 mcs/tests/c2.cs delete mode 100755 mcs/tests/casts.cs delete mode 100755 mcs/tests/co1.cs delete mode 100755 mcs/tests/cs1.cs delete mode 100755 mcs/tests/csc-casts.out delete mode 100755 mcs/tests/gen-cast-test.cs delete mode 100755 mcs/tests/gen-check.cs delete mode 100644 mcs/tests/i-recursive.cs delete mode 100755 mcs/tests/i-three.cs delete mode 100644 mcs/tests/i-undefined.cs delete mode 100755 mcs/tests/i1.cs delete mode 100755 mcs/tests/i2.cs delete mode 100755 mcs/tests/i3.cs delete mode 100755 mcs/tests/i4.cs delete mode 100755 mcs/tests/i5.cs delete mode 100755 mcs/tests/i6.cs delete mode 100755 mcs/tests/interfaces.cs delete mode 100755 mcs/tests/ix1.cs delete mode 100755 mcs/tests/ix2.cs delete mode 100755 mcs/tests/makefile delete mode 100755 mcs/tests/n1.cs delete mode 100755 mcs/tests/n2.cs delete mode 100755 mcs/tests/s1.cs delete mode 100755 mcs/tests/test-1.cs delete mode 100644 mcs/tests/test-10.cs delete mode 100755 mcs/tests/test-100.cs delete mode 100644 mcs/tests/test-101.cs delete mode 100644 mcs/tests/test-102.cs delete mode 100755 mcs/tests/test-103.cs delete mode 100644 mcs/tests/test-104.cs delete mode 100644 mcs/tests/test-105.cs delete mode 100644 mcs/tests/test-106.cs delete mode 100644 mcs/tests/test-107.cs delete mode 100755 mcs/tests/test-108.cs delete mode 100755 mcs/tests/test-109.cs delete mode 100644 mcs/tests/test-11.cs delete mode 100755 mcs/tests/test-110.cs delete mode 100755 mcs/tests/test-111.cs delete mode 100755 mcs/tests/test-112.cs delete mode 100644 mcs/tests/test-113.cs delete mode 100644 mcs/tests/test-114.cs delete mode 100755 mcs/tests/test-115.cs delete mode 100755 mcs/tests/test-116.cs delete mode 100644 mcs/tests/test-117.cs delete mode 100755 mcs/tests/test-118.cs delete mode 100644 mcs/tests/test-119.cs delete mode 100644 mcs/tests/test-12.cs delete mode 100755 mcs/tests/test-120.cs delete mode 100755 mcs/tests/test-121.cs delete mode 100755 mcs/tests/test-122.cs delete mode 100755 mcs/tests/test-123.cs delete mode 100644 mcs/tests/test-124.cs delete mode 100644 mcs/tests/test-125.cs delete mode 100755 mcs/tests/test-126.cs delete mode 100755 mcs/tests/test-127.cs delete mode 100644 mcs/tests/test-128.cs delete mode 100755 mcs/tests/test-129.cs delete mode 100644 mcs/tests/test-13.cs delete mode 100755 mcs/tests/test-130.cs delete mode 100644 mcs/tests/test-131.cs delete mode 100755 mcs/tests/test-132.cs delete mode 100755 mcs/tests/test-133.cs delete mode 100755 mcs/tests/test-134.cs delete mode 100755 mcs/tests/test-135.cs delete mode 100755 mcs/tests/test-136.cs delete mode 100755 mcs/tests/test-137.cs delete mode 100755 mcs/tests/test-138.cs delete mode 100755 mcs/tests/test-139.cs delete mode 100644 mcs/tests/test-14.cs delete mode 100755 mcs/tests/test-140.cs delete mode 100755 mcs/tests/test-141.cs delete mode 100644 mcs/tests/test-142.cs delete mode 100755 mcs/tests/test-143.cs delete mode 100644 mcs/tests/test-144.cs delete mode 100644 mcs/tests/test-145.cs delete mode 100644 mcs/tests/test-146.cs delete mode 100644 mcs/tests/test-147.cs delete mode 100644 mcs/tests/test-148.cs delete mode 100644 mcs/tests/test-149.cs delete mode 100755 mcs/tests/test-15.cs delete mode 100644 mcs/tests/test-150.cs delete mode 100644 mcs/tests/test-151.cs delete mode 100644 mcs/tests/test-152.cs delete mode 100644 mcs/tests/test-153.cs delete mode 100644 mcs/tests/test-154.cs delete mode 100644 mcs/tests/test-155.cs delete mode 100644 mcs/tests/test-156.cs delete mode 100644 mcs/tests/test-157.cs delete mode 100644 mcs/tests/test-158.cs delete mode 100644 mcs/tests/test-159.cs delete mode 100644 mcs/tests/test-16.cs delete mode 100644 mcs/tests/test-160.cs delete mode 100644 mcs/tests/test-161.cs delete mode 100644 mcs/tests/test-162.cs delete mode 100755 mcs/tests/test-17.cs delete mode 100644 mcs/tests/test-18.cs delete mode 100755 mcs/tests/test-19.cs delete mode 100755 mcs/tests/test-2.cs delete mode 100755 mcs/tests/test-20.cs delete mode 100644 mcs/tests/test-21.cs delete mode 100644 mcs/tests/test-22.cs delete mode 100644 mcs/tests/test-23.cs delete mode 100644 mcs/tests/test-24.cs delete mode 100644 mcs/tests/test-25.cs delete mode 100644 mcs/tests/test-26.cs delete mode 100644 mcs/tests/test-27.cs delete mode 100644 mcs/tests/test-28.cs delete mode 100644 mcs/tests/test-29.cs delete mode 100755 mcs/tests/test-3.cs delete mode 100644 mcs/tests/test-30.cs delete mode 100644 mcs/tests/test-31.cs delete mode 100644 mcs/tests/test-32.cs delete mode 100644 mcs/tests/test-33.cs delete mode 100644 mcs/tests/test-34.cs delete mode 100755 mcs/tests/test-35.cs delete mode 100755 mcs/tests/test-36.cs delete mode 100755 mcs/tests/test-37.cs delete mode 100755 mcs/tests/test-38.cs delete mode 100644 mcs/tests/test-39.cs delete mode 100755 mcs/tests/test-4.cs delete mode 100644 mcs/tests/test-40.cs delete mode 100644 mcs/tests/test-41.cs delete mode 100755 mcs/tests/test-42.cs delete mode 100755 mcs/tests/test-43.cs delete mode 100755 mcs/tests/test-44.cs delete mode 100644 mcs/tests/test-45.cs delete mode 100755 mcs/tests/test-46.cs delete mode 100755 mcs/tests/test-47.cs delete mode 100644 mcs/tests/test-48.cs delete mode 100755 mcs/tests/test-49.cs delete mode 100755 mcs/tests/test-5.cs delete mode 100644 mcs/tests/test-50.cs delete mode 100755 mcs/tests/test-51.cs delete mode 100755 mcs/tests/test-52.cs delete mode 100755 mcs/tests/test-53.cs delete mode 100755 mcs/tests/test-54.cs delete mode 100755 mcs/tests/test-55.cs delete mode 100755 mcs/tests/test-56.cs delete mode 100644 mcs/tests/test-57.cs delete mode 100755 mcs/tests/test-58.cs delete mode 100755 mcs/tests/test-59.cs delete mode 100755 mcs/tests/test-6.cs delete mode 100755 mcs/tests/test-60.cs delete mode 100755 mcs/tests/test-61.cs delete mode 100755 mcs/tests/test-62.cs delete mode 100755 mcs/tests/test-63.cs delete mode 100755 mcs/tests/test-64.cs delete mode 100755 mcs/tests/test-65.cs delete mode 100755 mcs/tests/test-66.cs delete mode 100644 mcs/tests/test-67.cs delete mode 100755 mcs/tests/test-68.cs delete mode 100644 mcs/tests/test-69.cs delete mode 100644 mcs/tests/test-7.cs delete mode 100755 mcs/tests/test-70.cs delete mode 100755 mcs/tests/test-71.cs delete mode 100755 mcs/tests/test-72.cs delete mode 100755 mcs/tests/test-73.cs delete mode 100755 mcs/tests/test-74.cs delete mode 100755 mcs/tests/test-75.cs delete mode 100755 mcs/tests/test-76.cs delete mode 100755 mcs/tests/test-77.cs delete mode 100755 mcs/tests/test-78.cs delete mode 100755 mcs/tests/test-79.cs delete mode 100644 mcs/tests/test-8.cs delete mode 100755 mcs/tests/test-80.cs delete mode 100644 mcs/tests/test-81.cs delete mode 100644 mcs/tests/test-82.cs delete mode 100755 mcs/tests/test-83.cs delete mode 100755 mcs/tests/test-84.cs delete mode 100755 mcs/tests/test-85.cs delete mode 100644 mcs/tests/test-86.cs delete mode 100755 mcs/tests/test-87.cs delete mode 100755 mcs/tests/test-88.cs delete mode 100755 mcs/tests/test-89.cs delete mode 100755 mcs/tests/test-9.cs delete mode 100755 mcs/tests/test-90.cs delete mode 100755 mcs/tests/test-91.cs delete mode 100755 mcs/tests/test-92.cs delete mode 100755 mcs/tests/test-93.cs delete mode 100755 mcs/tests/test-94.cs delete mode 100755 mcs/tests/test-95.cs delete mode 100755 mcs/tests/test-96.cs delete mode 100755 mcs/tests/test-97.cs delete mode 100755 mcs/tests/test-98.cs delete mode 100755 mcs/tests/test-99.cs delete mode 100755 mcs/tests/try.cs delete mode 100755 mcs/tests/unsafe-1.cs delete mode 100755 mcs/tests/unsafe-2.cs delete mode 100644 mcs/tests/unsafe-3.cs delete mode 100755 mcs/tests/unsafe-4.cs delete mode 100644 mcs/tests/verify-1.cs delete mode 100644 mcs/tests/verify-2.cs delete mode 100644 mcs/tests/verify-3.cs delete mode 100644 mcs/tools/.cvsignore delete mode 100644 mcs/tools/ChangeLog delete mode 100755 mcs/tools/DumpCultureInfo.cs delete mode 100644 mcs/tools/EnumCheck.cs delete mode 100644 mcs/tools/EnumCheckAssemblyCollection.cs delete mode 100644 mcs/tools/GenerateDelegate.cs delete mode 100644 mcs/tools/IFaceDisco.cs delete mode 100644 mcs/tools/SqlSharp/SqlSharpCli.cs delete mode 100644 mcs/tools/XMLUtil.cs delete mode 100644 mcs/tools/assemblies.xml delete mode 100644 mcs/tools/corcompare/.cvsignore delete mode 100644 mcs/tools/corcompare/ChangeLog delete mode 100644 mcs/tools/corcompare/CompletionInfo.cs delete mode 100644 mcs/tools/corcompare/CorCompare.cs delete mode 100644 mcs/tools/corcompare/Makefile delete mode 100644 mcs/tools/corcompare/MissingAttribute.cs delete mode 100644 mcs/tools/corcompare/MissingBase.cs delete mode 100644 mcs/tools/corcompare/MissingConstructor.cs delete mode 100644 mcs/tools/corcompare/MissingEvent.cs delete mode 100644 mcs/tools/corcompare/MissingField.cs delete mode 100644 mcs/tools/corcompare/MissingInterface.cs delete mode 100644 mcs/tools/corcompare/MissingMember.cs delete mode 100644 mcs/tools/corcompare/MissingMethod.cs delete mode 100644 mcs/tools/corcompare/MissingNameSpace.cs delete mode 100644 mcs/tools/corcompare/MissingNestedType.cs delete mode 100644 mcs/tools/corcompare/MissingProperty.cs delete mode 100644 mcs/tools/corcompare/MissingType.cs delete mode 100644 mcs/tools/corcompare/TODO delete mode 100644 mcs/tools/corcompare/ToDoAssembly.cs delete mode 100644 mcs/tools/corcompare/corcompare.build delete mode 100644 mcs/tools/corcompare/cormissing.xsl delete mode 100644 mcs/tools/corcompare/transform.js delete mode 100644 mcs/tools/ictool/Makefile delete mode 100644 mcs/tools/ictool/depgraph.cs delete mode 100644 mcs/tools/ictool/ictool-config.xml delete mode 100644 mcs/tools/ictool/ictool.cs delete mode 100644 mcs/tools/ictool/peer.cs delete mode 100644 mcs/tools/makefile delete mode 100644 mcs/tools/monostyle.cs delete mode 100755 mcs/tools/sample_cast_const.cs delete mode 100755 mcs/tools/scan-tests.pl delete mode 100755 mcs/tools/serialize.cs delete mode 100644 mcs/tools/verifier.cs diff --git a/mcs/AUTHORS b/mcs/AUTHORS deleted file mode 100755 index bce371f17b540..0000000000000 --- a/mcs/AUTHORS +++ /dev/null @@ -1,16 +0,0 @@ -C# Compiler: - Miguel de Icaza (miguel@ximian.com) - Ravi Pratap (ravi@ximian.com) - -Class Libraries: - Patrik Torstensson - Gaurav Vaish - Jeff Stedfast (fejj@ximian.com) - Joe Shaw (joe@ximian.com) - Miguel de Icaza (miguel@ximian.com) - Sean MacIsaac (macisaac@ximian.com) - Vladimir Vukicevic (vladimir@ximian.com) - Garrett Rooney (rooneg@electricjellyfish.net) - Bob Smith (bob@thestuff.net) - John Barnette (jbarn@httcb.net) - Daniel Morgan diff --git a/mcs/ChangeLog b/mcs/ChangeLog deleted file mode 100644 index a1491fb65f1b9..0000000000000 --- a/mcs/ChangeLog +++ /dev/null @@ -1,96 +0,0 @@ -2002-08-13 Piers Haken - - * class/library.make: merge back original makefile.gnu behavior - * */makefile.gnu: merge back original makefile.gnu behavior - -2002-08-12 Piers Haken - - * class/library.make: use 'find' to specify source files, instead of static files - * */makefile.gnu: specify include/exclude patterns for source files - -2002-08-07 Peter Williams - - * class/library.make (.makefrag): Fix this rule a bit; was using - $^ instead of $< - -2002-07-29 Peter Williams - - * makefile.gnu: 'make install' wasn't actually working due to $@, - fix it. - -2002-07-29 Martin Baulig - - * makefile.gnu: Don't force people to install. The default must also - be `all' and not `install'. - -2002-07-26 Alp Toker - - * INSTALL: Wrote a guide to mcs installation. - * README: Updated to reflect the new INSTALL guide. - -2002-07-23 Alp Toker - - * makefile.gnu: Added an install target (which sets permissions and - respects prefix) and a dist target which produces a tarball. Also - fixed a few other makefile issues. - -2002-07-22 Peter Williams - - * class/library.make: Oops, the deps weren't right -- touching a .cs - file didn't cause the libraries to be rebuilt. - (clean): Robustify this rule a bit. - -2002-07-20 Martin Baulig - - * class/makefile.gnu: Added System.Data. - -2002-07-20 Martin Baulig - - * class/library.make: Put $(MONO_PATH_PREFIX) in front of the MONO_PATH. - - * class/*/makefile.gnu: Set MONO_PATH_PREFIX=../lib: - -2002-07-19 Martin Baulig - - * makefile.gnu (DIRS): Added nunit. - -2002-07-19 Martin Baulig - - Added the super-cool set of makefiles from Peter Williams which run on - GNU/Linux without NAnt. I named them `makefile.gnu' and not `GNUmakefile' - since this won't break the windows build. - - To compile stuff on GNU/Linux, just do a `make -f makefile.gnu'. - - * mcs-tool, */makefile.gnu, class/library.make: New files. - -2002-07-19 Martin Baulig - - * */makefile (NANT): Use a variable `NANT' so the user can override it with - `make NANT=/usr/local/bin/NAnt.exe'. - -2002-05-09 Daniel Morgan - - * AUTHORS: add me to class libraries list - -2002-03-26 Dick Porter - - * makefile (linux): Abandon the build if any of the subdir makes fail - -2002-03-07 Nick Drochak - - * makefile: Change order of build so corlib is built before nunit since - Nunit needs corlib now. - -2002-02-14 Nick Drochak - - * makefile: Build mcs/doctools too when one does 'make' - -2002-01-20 Nick Drochak - - * on the 'test' target, make sure NUnit is built first before building - and running tests - -2002-01-20 Nick Drochak - - * add nunit directory to the list of dirs to build in diff --git a/mcs/INSTALL b/mcs/INSTALL deleted file mode 100644 index 83f0273df0550..0000000000000 --- a/mcs/INSTALL +++ /dev/null @@ -1,53 +0,0 @@ -Basic Installation -================== - -The Mono project has developed mono, an x86-specific CL JIT compiler and -mint, a portable CLI interpreter. The build process of each of these -depends on nothing more than a C compiler, glib2 and libgc. - -However, to provide a working runtime environment, these programs must -be supplemented by corlib, a CLR assembly to which they are closely -tied. This package provides the C# sources for corlib as well as some -additional assemblies and mcs, the Mono C# compiler. - -To build this package, you must already have a C# compiler installed. -Build instructions for *NIX and Microsoft Windows follow. - -Building mcs on *NIX -==================== - -mcs provides a set of makefiles which make it easy to build and install -mcs on *NIX systems like Linux or FreeBSD where mcs is already -installed. - -To build the compiler and class libraries, run: - - make -f makefile.gnu - -The libraries will be placed in the directory class/lib/ and the mcs -compiler executable in mcs/. - -To install them, run the following, where prefix identifies where you -want the files installed: - - make -f makefile.gnu install prefix=/usr/local - -If you are tracking Mono's development, you may sometimes need to share -the compiled libraries with others. If you want to produce an easily -distributable tarball, run: - - make -f makefile.gnu dist - -Building mcs on Windows -======================= - -It is also possible to build mcs on Windows using the Microsoft .NET -framework. This may be convenient if you do not have access to a working -mcs setup. To build the compiler and class libraries, run: - - make - -The libraries will be placed in the directory class/lib/ and the mcs -compiler executable in mcs/. They can then be copied to /usr/lib and -/usr/bin or wherever desired on the target system. - diff --git a/mcs/INSTALL.txt b/mcs/INSTALL.txt deleted file mode 100644 index 83f0273df0550..0000000000000 --- a/mcs/INSTALL.txt +++ /dev/null @@ -1,53 +0,0 @@ -Basic Installation -================== - -The Mono project has developed mono, an x86-specific CL JIT compiler and -mint, a portable CLI interpreter. The build process of each of these -depends on nothing more than a C compiler, glib2 and libgc. - -However, to provide a working runtime environment, these programs must -be supplemented by corlib, a CLR assembly to which they are closely -tied. This package provides the C# sources for corlib as well as some -additional assemblies and mcs, the Mono C# compiler. - -To build this package, you must already have a C# compiler installed. -Build instructions for *NIX and Microsoft Windows follow. - -Building mcs on *NIX -==================== - -mcs provides a set of makefiles which make it easy to build and install -mcs on *NIX systems like Linux or FreeBSD where mcs is already -installed. - -To build the compiler and class libraries, run: - - make -f makefile.gnu - -The libraries will be placed in the directory class/lib/ and the mcs -compiler executable in mcs/. - -To install them, run the following, where prefix identifies where you -want the files installed: - - make -f makefile.gnu install prefix=/usr/local - -If you are tracking Mono's development, you may sometimes need to share -the compiled libraries with others. If you want to produce an easily -distributable tarball, run: - - make -f makefile.gnu dist - -Building mcs on Windows -======================= - -It is also possible to build mcs on Windows using the Microsoft .NET -framework. This may be convenient if you do not have access to a working -mcs setup. To build the compiler and class libraries, run: - - make - -The libraries will be placed in the directory class/lib/ and the mcs -compiler executable in mcs/. They can then be copied to /usr/lib and -/usr/bin or wherever desired on the target system. - diff --git a/mcs/MonoIcon.png b/mcs/MonoIcon.png deleted file mode 100644 index c670edb501103a5cc0a358cd40138732cdff85d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 448 zcmV;x0YCnUP)pGa!Eu%RCt`-*IAN-Fbo9HK6)RmZ>IS$$O|&wCY7q_i*n+Ju)F~5 z4lRXu!+k+41zSLC{Q)(=VgfmZ8(8fRd>){WlcWVe5{p63$Rt2BGg2+^G&(@gu^`4k zbmxBrDj^2m`%eIa49W=`1CR2p0t?U30p{z_1Hw6!V+;(0sVbB^mghbJ44z&h*{{Ml zq^kcqaOHUh9A|J0*!O{xGMd@jTKFuG=jd(*`Ha~FbT85EF*pWH*Gk_9(s6fEM&J-I zg3~jR;rTqjp$Gtijj`d5? z09=PoZO1@#|4xK}=7IKIc{zdhZT;o>UlXV^;A})+EW5D_004240W6i$0g@s~lWztj zNlV+=qZI}#0X+tpeyOn4GbsQ90O`Hbr;74#WorPWEl)-V%mEo4us)!l0(|Uc1yHm$ qKspLUGF94qW!N<{)U>w1Zu|kpAzft)JGL4C0000 - * list: - * makefile.gnu: - Added files to allow build on linux. - -2002-05-12 Rafael Teixeira - - * Microsoft.VisualBasic.Strings: Strings.cs - Merged all method implementations provided - by Martin Adoue, with method signatures (specially attributes) provided - by Chris J. Breisch. Some tweaking for the Mid member (two overloads versus third optional parameter). - - - -2002-05-18 Chris J Breisch - - * Microsoft.VisualBasic: *.cs/Test/*.cs - Cleaned up code, added - implementations for Collection.cs, Conversion.cs and NUnit Tests - for both - - - diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic.build b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic.build deleted file mode 100644 index bc0ddd3e96169..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic.build +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/AppWinStyle.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/AppWinStyle.cs deleted file mode 100644 index 210ee7d8e4a1b..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/AppWinStyle.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// AppWinStyle.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum AppWinStyle : short { - Hide = 0, - NormalFocus = 1, - MinimizedFocus = 2, - MaximizedFocus = 3, - NormalNoFocus = 4, - MinimizedNoFocus = 6 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CallType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CallType.cs deleted file mode 100644 index d726be5260676..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CallType.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// CallType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum CallType : int { - Method = 1, - Get = 2, - Let = 4, - Set = 8 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog deleted file mode 100644 index 9aa67f57abc92..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog +++ /dev/null @@ -1,6 +0,0 @@ -2002-08-15 Tim Coleman - * ChangeLog: - Added a ChangeLog - * Constants.cs: - Make these actual constants so mcs will compile them. - diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Collection.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Collection.cs deleted file mode 100644 index 29e171b0b386b..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Collection.cs +++ /dev/null @@ -1,314 +0,0 @@ -// -// Collection.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -using System; -using System.Runtime.InteropServices; -using System.Collections; -using System.ComponentModel; - - -namespace Microsoft.VisualBasic { - sealed public class Collection : ICollection, IList { - // - // - // Collection : The BASIC Collection Object - // - // - // - // - // Declarations - private Hashtable m_Hashtable = new Hashtable(); - private ArrayList m_HashIndexers = new ArrayList(); - internal bool Modified = false; - - private class ColEnumerator: IEnumerator - // - // - // ColEnumerator : This internal class is used - // for enumerating through our Collection - // - // - // - // - { - private int Index; - private Collection Col; - private object Item; - - public ColEnumerator(Collection coll) - { - Col = coll; - Index = 0; - Col.Modified = false; - } - - public void Reset() - { - if (Col.Modified) - { - // FIXME : spec says throw exception, MS doesn't - // throw new InvalidOperationException(); - } - Index = 0; - } - - public bool MoveNext() - { - if (Col.Modified) - { - // FIXME : spec says throw exception, MS doesn't - // throw new InvalidOperationException(); - } - Index++; - try { - Item = Col[Index]; - } - catch { - // do nothing - } - - return Index <= Col.Count; - } - - public object Current { - get { - if (Index == 0) { - // FIXME : spec says throw InvalidOperation, - // but MS throws IndexOutOfRange - throw new IndexOutOfRangeException(); - // throw new InvalidOperationException(); - } - else { - return Item; - } - } - } - - // The current property on the IEnumerator interface: - object IEnumerator.Current { - get { - return(Current); - } - } - } - // Constructors - // Properties - System.Boolean IList.IsReadOnly { - get {return false;} - } - - System.Boolean ICollection.IsSynchronized { - get {return m_Hashtable.IsSynchronized;} - } - - System.Object ICollection.SyncRoot { - get {return m_Hashtable.SyncRoot;} - } - - System.Boolean IList.IsFixedSize { - get {return false;} - } - - public System.Int32 Count { - get {return m_HashIndexers.Count;} - } - - [ReadOnly(true)] - [System.Runtime.CompilerServices.IndexerName("Item")] - public System.Object this [System.Int32 Index] { - get { - try { - // Collections are 1-based - return m_Hashtable[m_HashIndexers[Index-1]]; - } - catch { - throw new IndexOutOfRangeException(); - } - } - set {throw new NotImplementedException();} - } - - [System.Runtime.CompilerServices.IndexerName("Item")] - public System.Object this [System.Object Index] - { - get { - if (Index is string) { - if (m_HashIndexers.IndexOf(Index) < 0) { - // throw new IndexOutOfRangeException(); - // FIXME : Spec Says IndexOutOfRange...MS throws Argument - throw new ArgumentException(); - } - return m_Hashtable[Index]; - } - else { - throw new ArgumentException(); - } - } - } - - // Methods - System.Int32 IList.IndexOf (System.Object value) - { - int LastPos = 0; - bool Found = false; - - while (!Found) { - LastPos = m_HashIndexers.IndexOf(value.GetHashCode(), LastPos); - if (LastPos == -1) { - Found = true; - } else if (m_Hashtable[m_HashIndexers[LastPos]] == value) { - Found = true; - } - } - return LastPos; - } - - System.Boolean IList.Contains (System.Object value) - { - return m_Hashtable.ContainsValue(value); - } - - void IList.Clear () - { - m_Hashtable.Clear(); - m_HashIndexers.Clear(); - } - - public void Remove (System.String Key) - { - int Index; - - try { - Index = m_HashIndexers.IndexOf(Key) + 1; - Remove(Index); - } - catch { - throw new ArgumentException(); - } - } - - public void Remove (System.Int32 Index) - { - try { - // Collections are 1-based - m_Hashtable.Remove(m_HashIndexers[Index-1]); - m_HashIndexers.RemoveAt(Index-1); - Modified = true; - } - catch { - throw new IndexOutOfRangeException(); - } - } - - void IList.Remove (System.Object value) - { - if (!(value is string)) { - throw new ArgumentException(); - } - Remove((string)value); - } - - void IList.RemoveAt (System.Int32 index) - { - Remove(index); - } - - void IList.Insert (System.Int32 index, System.Object value) - { - Insert(index, value, value.GetHashCode().ToString()); - } - - void Insert(System.Int32 index, System.Object value, string Key) - { - m_HashIndexers.Insert(index -1, Key); - m_Hashtable.Add(Key, value); - Modified = true; - } - - System.Int32 IList.Add (System.Object Item) - { - return Add(Item, Item.GetHashCode().ToString()); - } - - System.Int32 Add(System.Object Item, string Key) - { - m_Hashtable.Add(Key, Item); - Modified = true; - - return m_HashIndexers.Add(Key); - } - - private int GetIndexPosition(System.Object Item) - { - int Position = int.MinValue; - - if (Item is string) { - Position = m_HashIndexers.IndexOf(Item) + 1; - } - else if (Item is int) { - Position = Convert.ToInt32(Item); - } - else { - throw new InvalidCastException(); - } - if (Position < 0) { - throw new ArgumentException(); - } - return Position; - } - - public void Add (System.Object Item, - [Optional] [DefaultValue(null)] String Key, - [Optional] [DefaultValue(null)] System.Object Before, - [Optional] [DefaultValue(null)] System.Object After) - { - int Position = int.MinValue; - - // check for valid args - if (Before != null && After != null) { - throw new ArgumentException(); - } - if (Key != null && m_HashIndexers.IndexOf(Key) != -1) { - throw new ArgumentException(); - } - if (Before != null) { - Position = GetIndexPosition(Before); - } - if (After != null) { - Position = GetIndexPosition(After) + 1; - } - if (Key == null) { - Key = Item.GetHashCode().ToString(); - } - - if (Position > (m_HashIndexers.Count+1) || Position == int.MinValue) { - Add(Item, Key); - } - else { - Insert(Position, Item, Key); - } - } - - void ICollection.CopyTo (System.Array array, System.Int32 index) - { - System.Array NewArray = - Array.CreateInstance(typeof(System.Object), - m_HashIndexers.Count - index); - - // Collections are 1-based - for (int i = index -1; i < m_HashIndexers.Count; i++) { - NewArray.SetValue(m_Hashtable[m_HashIndexers[i]], i - index); - } - } - - public IEnumerator GetEnumerator () - { - return new ColEnumerator(this); - } - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ComClassAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ComClassAttribute.cs deleted file mode 100644 index efd694246b4dc..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ComClassAttribute.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -// ComClassAttribute.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic { - [System.AttributeUsageAttribute(System.AttributeTargets.Class)] - sealed public class ComClassAttribute : System.Attribute { - // Declarations - // Constructors - [MonoTODO] - ComClassAttribute(System.String _ClassID) { throw new NotImplementedException (); } - [MonoTODO] - ComClassAttribute(System.String _ClassID, System.String _InterfaceID) { throw new NotImplementedException (); } - [MonoTODO] - ComClassAttribute(System.String _ClassID, System.String _InterfaceID, System.String _EventId) { throw new NotImplementedException (); } - // Properties - [MonoTODO] - public System.String EventID { get { throw new NotImplementedException (); } } - [MonoTODO] - public System.Boolean InterfaceShadows { get { throw new NotImplementedException (); } } - [MonoTODO] - public System.String ClassID { get { throw new NotImplementedException (); } } - [MonoTODO] - public System.String InterfaceID { get { throw new NotImplementedException (); } } - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CompareMethod.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CompareMethod.cs deleted file mode 100644 index 5b93a2351ef58..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CompareMethod.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// CompareMethod.cs -// -// Author: -// Martin Adoue (martin@cwanet.com) -// -// (C) 2002 Martin Adoue -// -namespace Microsoft.VisualBasic { - - /// - /// The CompareMethod enumeration contains constants used to determine the - /// way strings are compared when using functions such as InStr and StrComp. - /// These constants can be used anywhere in your code. - /// - public enum CompareMethod : int { - /// - /// Performs a binary comparison - /// - Binary = 0, - /// - /// Performs a textual comparison - /// - Text = 1 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Constants.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Constants.cs deleted file mode 100644 index 7ffb8f73bb891..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Constants.cs +++ /dev/null @@ -1,136 +0,0 @@ -// -// Constants.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic { - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class Constants { - // Declarations - public const System.Int32 vbObjectError = (System.Int32)(-2147221504); - public const System.String vbCrLf = "\n\r"; - public const System.String vbNewLine = "\n\r"; - public const System.String vbCr = "\n"; - public const System.String vbLf = "\r"; - public const System.String vbBack = "\b"; - public const System.String vbFormFeed = "\f"; - public const System.String vbTab = "\t"; - public const System.String vbVerticalTab = "\v"; - public const System.String vbNullChar = "\0"; - public const System.String vbNullString = ""; - - public const AppWinStyle vbHide = AppWinStyle.Hide; - public const AppWinStyle vbNormalFocus = AppWinStyle.NormalFocus; - public const AppWinStyle vbMinimizedFocus = AppWinStyle.MinimizedFocus; - public const AppWinStyle vbMaximizedFocus = AppWinStyle.MaximizedFocus; - public const AppWinStyle vbNormalNoFocus = AppWinStyle.NormalNoFocus; - public const AppWinStyle vbMinimizedNoFocus = AppWinStyle.MinimizedNoFocus; - - public const CallType vbMethod = CallType.Method; - public const CallType vbGet = CallType.Get; - public const CallType vbLet = CallType.Let; - public const CallType vbSet = CallType.Set; - - public const CompareMethod vbBinaryCompare = CompareMethod.Binary; - public const CompareMethod vbTextCompare = CompareMethod.Text; - - public const DateFormat vbGeneralDate = DateFormat.GeneralDate; - public const DateFormat vbLongDate = DateFormat.LongDate; - public const DateFormat vbShortDate = DateFormat.ShortDate; - public const DateFormat vbLongTime = DateFormat.LongTime; - public const DateFormat vbShortTime = DateFormat.ShortTime; - - public const FirstDayOfWeek vbUseSystemDayOfWeek = FirstDayOfWeek.System; - public const FirstDayOfWeek vbSunday = FirstDayOfWeek.Sunday; - public const FirstDayOfWeek vbMonday = FirstDayOfWeek.Monday; - public const FirstDayOfWeek vbTuesday = FirstDayOfWeek.Tuesday; - public const FirstDayOfWeek vbWednesday = FirstDayOfWeek.Wednesday; - public const FirstDayOfWeek vbThursday = FirstDayOfWeek.Thursday; - public const FirstDayOfWeek vbFriday = FirstDayOfWeek.Friday; - public const FirstDayOfWeek vbSaturday = FirstDayOfWeek.Saturday; - - public const FileAttribute vbNormal = FileAttribute.Normal; - public const FileAttribute vbReadOnly = FileAttribute.ReadOnly; - public const FileAttribute vbHidden = FileAttribute.Hidden; - public const FileAttribute vbSystem = FileAttribute.System; - public const FileAttribute vbVolume = FileAttribute.Volume; - public const FileAttribute vbDirectory = FileAttribute.Directory; - public const FileAttribute vbArchive = FileAttribute.Archive; - - public const FirstWeekOfYear vbUseSystem = FirstWeekOfYear.System; - public const FirstWeekOfYear vbFirstJan1 = FirstWeekOfYear.Jan1; - public const FirstWeekOfYear vbFirstFourDays = FirstWeekOfYear.FirstFourDays; - public const FirstWeekOfYear vbFirstFullWeek = FirstWeekOfYear.FirstFullWeek; - - public const VbStrConv vbUpperCase = VbStrConv.UpperCase; - public const VbStrConv vbLowerCase = VbStrConv.LowerCase; - public const VbStrConv vbProperCase = VbStrConv.ProperCase; - public const VbStrConv vbWide = VbStrConv.Wide; - public const VbStrConv vbNarrow = VbStrConv.Narrow; - public const VbStrConv vbKatakana = VbStrConv.Katakana; - public const VbStrConv vbHiragana = VbStrConv.Hiragana; - public const VbStrConv vbSimplifiedChinese = VbStrConv.SimplifiedChinese; - public const VbStrConv vbTraditionalChinese = VbStrConv.TraditionalChinese; - public const VbStrConv vbLinguisticCasing = VbStrConv.LinguisticCasing; - - public const TriState vbUseDefault = TriState.UseDefault; - public const TriState vbTrue = TriState.True; - public const TriState vbFalse = TriState.False; - - public const VariantType vbEmpty = VariantType.Empty; - public const VariantType vbNull = VariantType.Null; - public const VariantType vbInteger = VariantType.Integer; - public const VariantType vbLong = VariantType.Long; - public const VariantType vbSingle = VariantType.Single; - public const VariantType vbDouble = VariantType.Double; - public const VariantType vbCurrency = VariantType.Currency; - public const VariantType vbDate = VariantType.Date; - public const VariantType vbString = VariantType.String; - public const VariantType vbObject = VariantType.Object; - public const VariantType vbBoolean = VariantType.Boolean; - public const VariantType vbVariant = VariantType.Variant; - public const VariantType vbDecimal = VariantType.Decimal; - public const VariantType vbByte = VariantType.Byte; - public const VariantType vbUserDefinedType = VariantType.UserDefinedType; - public const VariantType vbArray = VariantType.Array; - - public const MsgBoxResult vbOK = MsgBoxResult.OK; - public const MsgBoxResult vbCancel = MsgBoxResult.Cancel; - public const MsgBoxResult vbAbort = MsgBoxResult.Abort; - public const MsgBoxResult vbRetry = MsgBoxResult.Retry; - public const MsgBoxResult vbIgnore = MsgBoxResult.Ignore; - public const MsgBoxResult vbYes = MsgBoxResult.Yes; - public const MsgBoxResult vbNo = MsgBoxResult.No; - - public const MsgBoxStyle vbOKOnly = MsgBoxStyle.OKOnly; - public const MsgBoxStyle vbOKCancel = MsgBoxStyle.OKCancel; - public const MsgBoxStyle vbAbortRetryIgnore = MsgBoxStyle.AbortRetryIgnore; - public const MsgBoxStyle vbYesNoCancel = MsgBoxStyle.YesNoCancel; - public const MsgBoxStyle vbYesNo = MsgBoxStyle.YesNo; - public const MsgBoxStyle vbRetryCancel = MsgBoxStyle.RetryCancel; - public const MsgBoxStyle vbCritical = MsgBoxStyle.Critical; - public const MsgBoxStyle vbQuestion = MsgBoxStyle.Question; - public const MsgBoxStyle vbExclamation = MsgBoxStyle.Exclamation; - public const MsgBoxStyle vbInformation = MsgBoxStyle.Information; - public const MsgBoxStyle vbDefaultButton1 = MsgBoxStyle.DefaultButton1; - public const MsgBoxStyle vbDefaultButton2 = MsgBoxStyle.DefaultButton2; - public const MsgBoxStyle vbDefaultButton3 = MsgBoxStyle.DefaultButton3; - public const MsgBoxStyle vbApplicationModal = MsgBoxStyle.ApplicationModal; - public const MsgBoxStyle vbSystemModal = MsgBoxStyle.SystemModal; - public const MsgBoxStyle vbMsgBoxHelp = MsgBoxStyle.MsgBoxHelp; - public const MsgBoxStyle vbMsgBoxRight = MsgBoxStyle.MsgBoxRight; - public const MsgBoxStyle vbMsgBoxRtlReading = MsgBoxStyle.MsgBoxRtlReading; - public const MsgBoxStyle vbMsgBoxSetForeground = MsgBoxStyle.MsgBoxSetForeground; - - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ControlChars.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ControlChars.cs deleted file mode 100644 index 480e4be1b2563..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ControlChars.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// ControlChars.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - sealed public class ControlChars { - // Declarations - public const System.String CrLf = "\n\r"; - public const System.String NewLine = "\n\r"; - public const System.Char Cr = '\n'; - public const System.Char Lf = '\r'; - public const System.Char Back = '\b'; - public const System.Char FormFeed = '\f'; - public const System.Char Tab = '\t'; - public const System.Char VerticalTab = '\v'; - public const System.Char NullChar = '\0'; - public const System.Char Quote = '"'; - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Conversion.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Conversion.cs deleted file mode 100644 index 38308a6160545..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Conversion.cs +++ /dev/null @@ -1,616 +0,0 @@ -// -// Conversion.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; -using System.Text.RegularExpressions; - -namespace Microsoft.VisualBasic { - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class Conversion { - // - // - // Collection : The BASIC Collection Object - // - // - // - // - // Declarations - private static readonly char[] _HexDigits = { - '0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' - }; - private static readonly char[] _OctDigits = { - '0', '1', '2', '3', '4', '5', '6', '7' - }; - private static readonly long[] _Maxes = { - 32767, 2147483647, 9223372036854775807 - }; - private enum SizeIndexes { - Int16 = 0, - Int32 = 1, - Int64 = 2 - }; - - // Constructors - // Properties - // Methods - [MonoTODO] - public static string ErrorToString () { - throw new NotImplementedException (); - } - [MonoTODO] - public static string ErrorToString ( - System.Int32 ErrorNumber) { - throw new NotImplementedException (); - } - - // Return whether d is +/- Could do this with a macro, - // but this is cleaner - private static int Sign(double d) { return d > 0 ? 1 : -1;} - - // try to cast an Object to a string...used in several places - private static string CastToString (System.Object Expression) { - try { - return (string)Expression; - } - catch { - throw new InvalidCastException(); - } - } - - // Fix on Integer types doesn't do anything - public static short Fix (short Number) { return Number; } - public static int Fix (int Number) { return Number; } - public static long Fix (long Number) { return Number; } - - // Fix on other numberic types = Sign(Number) * Int(Abs(Number)) - public static double Fix (double Number) { - return Sign(Number) * Int (Math.Abs (Number)); - } - public static float Fix (float Number) { - return Sign(Number) * Int (Math.Abs (Number)); - } - public static decimal Fix (decimal Number) { - return Sign((double)Number) * Int (Math.Abs (Number)); - } - - // Fix on an Object type is trickier - // first we have to cast it to the right type - public static System.Object Fix (System.Object Number) - { - // always start out by throwing an exception - // if Number is null - if (Number == null) { - throw new ArgumentNullException ("Number", - "Value cannot be null"); - } - - TypeCode TC = Type.GetTypeCode (Number.GetType ()); - - // switch on TypeCode and call appropriate Fix method - switch (TC) { - case TypeCode.Decimal: - return Fix (Convert.ToDecimal (Number)); - case TypeCode.Double: - return Fix (Convert.ToDouble (Number)); - case TypeCode.Single: - return Fix (Convert.ToSingle (Number)); - case TypeCode.String: - return Fix (Double.Parse ( - CastToString (Number))); - - // for integer types, don't need to do anything - case TypeCode.Byte: - case TypeCode.Int16: - case TypeCode.Int32: - case TypeCode.Int64: - case TypeCode.SByte: - case TypeCode.UInt16: - case TypeCode.UInt32: - case TypeCode.UInt64: - return Number; - - // spec defines Empty as returning 0 - case TypeCode.Empty: - return 0; - - // we can't convert these types - case TypeCode.Boolean: - case TypeCode.Char: - case TypeCode.DateTime: - case TypeCode.DBNull: - case TypeCode.Object: - default: - throw new ArgumentException ( - "Type of argument 'Number' is '" - + Number.GetType().FullName + - "', which is not numeric."); - } - } - - // Int on Integer types doesn't do anything - public static short Int (short Number) { return Number; } - public static int Int (int Number) { return Number; } - public static long Int (long Number) { return Number; } - - // Int on other numberic types is same thing as "Floor" - public static double Int (double Number) { - return (double) Math.Floor(Number); - } - public static float Int (float Number) { - return (float) Math.Floor(Number); - } - public static decimal Int (decimal Number) { - return Decimal.Floor(Number); - } - - // doing an Int on an Object is trickier - // first we have to cast to the correct type - public static System.Object Int (System.Object Number) { - // always start out by throwing an exception - // if Number is null - if (Number == null) { - throw new ArgumentNullException("Number", - "Value cannot be null"); - } - - TypeCode TC = Type.GetTypeCode (Number.GetType ()); - - // switch on TypeCode and call appropriate Int method - switch (TC) { - case TypeCode.Decimal: - return Int (Convert.ToDecimal (Number)); - case TypeCode.Double: - return Int (Convert.ToDouble (Number)); - case TypeCode.Single: - return Int (Convert.ToSingle (Number)); - case TypeCode.String: - return Int (Double.Parse ( - CastToString(Number))); - - // Int on integer types does nothing - case TypeCode.Byte: - case TypeCode.Int16: - case TypeCode.Int32: - case TypeCode.Int64: - case TypeCode.SByte: - case TypeCode.UInt16: - case TypeCode.UInt32: - case TypeCode.UInt64: - return Number; - - // Spec defines Empty as returning 0 - case TypeCode.Empty: - return 0; - - // otherwise, it's we can't cast to a numeric - case TypeCode.Boolean: - case TypeCode.Char: - case TypeCode.DateTime: - case TypeCode.DBNull: - case TypeCode.Object: - default: - throw new ArgumentException ( - "Type of argument 'Number' is '" + - Number.GetType().FullName + - "', which is not numeric."); - } - } - - // we use this internally to get a string - // representation of a number in a specific base - private static string ToBase (ulong Number, int Length, - char[] BaseDigits, uint Base) { - int i; - ulong r; - // we use a char array here for performance - char [] c = new Char[Length]; - string s = null; - - - for (i = Length - 1; i >= 0; i--) { - r = Number % Base; - Number = Number / Base; - c[i] = BaseDigits[r]; - if (Number == 0) { - s = new string (c, i, Length - i); - break; - } - } - if (s == null) { - return new string (c); - } - else { - return s; - } - } - - - // convert a number to Hex - // a little bit of magic goes on here with negative #'s - private static string ToHex(long Number, int Digits, - SizeIndexes Size) { - ulong UNumber; - - if (Number < 0) { - // we add maxint of the Number's type - // twice and then 2 more...this has the - // effect of turning it into a ulong - // that has the same hex representation - UNumber = (ulong)((Number + 2) + - _Maxes[(int)Size]) + - (ulong)_Maxes[(int)Size]; - } - else { - UNumber = (ulong)Number; - } - return ToBase(UNumber, Digits, _HexDigits, 16); - } - - // call our private function, - // passing it the size of the item to convert - public static string Hex (short Number) { - return ToHex(Number, 4, SizeIndexes.Int16); - } - public static string Hex (byte Number) { - return ToHex(Number, 2, SizeIndexes.Int16); - } - public static string Hex (int Number) { - return ToHex(Number, 8, SizeIndexes.Int32); - } - public static string Hex (long Number) { - return ToHex(Number, 16, SizeIndexes.Int64); - } - - // Objects are trickier - // first we have to cast to appropriate type - public static System.String Hex (System.Object Number) { - // always start out by throwing an exception - // if Number is null - if (Number == null) { - throw new ArgumentNullException ("Number", - "Value cannot be null"); - } - - TypeCode TC = Type.GetTypeCode (Number.GetType ()); - - switch (TC) { - // try to parse the string as an Int32, - // then an Int64, if that fails - case TypeCode.String: - try { - return Hex ( - Int32.Parse ( - CastToString (Number))); - } - catch { - return Hex ( - Int64.Parse ( - CastToString (Number))); - } - - // for the int types, - // just call the normal "Hex" for that type - case TypeCode.Byte: - return Hex ((byte)Number); - case TypeCode.Int16: - return Hex ((short)Number); - case TypeCode.Int32: - return Hex ((int)Number); - case TypeCode.Int64: - return Hex ((long)Number); - - // empty is defined as returning 0 - case TypeCode.Empty: - return "0"; - - // we can't do any of these types - case TypeCode.Boolean: - case TypeCode.Char: - case TypeCode.DBNull: - case TypeCode.DateTime: - case TypeCode.Decimal: - case TypeCode.Double: - case TypeCode.Object: - case TypeCode.SByte: - case TypeCode.Single: - case TypeCode.UInt16: - case TypeCode.UInt32: - case TypeCode.UInt64: - default: - throw new ArgumentException ( - "Type of argument 'Number' is '" + - Number.GetType().FullName + - "', which is not numeric."); - } - } - - // ToOct works just like ToHex, only in Octal. - private static string ToOct(long Number, int Digits, - SizeIndexes Size) { - ulong UNumber; - - if (Number < 0) { - // for neg numbers add the maxint of - // the appropriate size twice, and then two more - // this has the effect of turning it - // into a ulong with the same oct representation - UNumber = (ulong)((Number + 2) + - _Maxes[(int)Size]) + - (ulong)(_Maxes[(int)Size]); - } - else { - UNumber = (ulong)Number; - } - return ToBase (UNumber, Digits, _OctDigits, 8); - } - - // call ToOct with appropriate information - public static string Oct (short Number) { - return ToOct(Number, 6, SizeIndexes.Int16); - } - public static string Oct (byte Number) { - return ToOct(Number, 3, SizeIndexes.Int16); - } - public static string Oct (int Number) { - return ToOct(Number, 11, SizeIndexes.Int32); - } - public static string Oct (long Number) { - return ToOct(Number, 22, SizeIndexes.Int64); - } - - // Objects are always trickier - // first need to cast to appropriate type - public static string Oct (System.Object Number) { - // first, always throw an exception if Number is null - if (Number == null) { - throw new ArgumentNullException("Number", - "Value cannot be null"); - } - - TypeCode TC = Type.GetTypeCode (Number.GetType ()); - - switch (TC) { - // try to parse a string as an Int32 - // and then an Int64 - case TypeCode.String: - try { - return Oct ( - Int32.Parse ( - CastToString (Number))); - } - catch { - return Oct ( - Int64.Parse ( - CastToString (Number))); - } - - // integer types just call the appropriate "Oct" - case TypeCode.Byte: - return Oct ((byte)Number); - case TypeCode.Int16: - return Oct ((short)Number); - case TypeCode.Int32: - return Oct ((int)Number); - case TypeCode.Int64: - return Oct ((long)Number); - - // Empty is defined as returning 0 - case TypeCode.Empty: - return "0"; - - // We can't convert these to Octal - case TypeCode.Boolean: - case TypeCode.Char: - case TypeCode.DBNull: - case TypeCode.DateTime: - case TypeCode.Decimal: - case TypeCode.Double: - case TypeCode.Object: - case TypeCode.SByte: - case TypeCode.Single: - case TypeCode.UInt16: - case TypeCode.UInt32: - case TypeCode.UInt64: - default: - throw new ArgumentException ( - "Type of argument 'Number' is '" + - Number.GetType().FullName + - "', which is not numeric."); - } - } - - // Str is pretty easy now that we have a language - // with a ToString method() - public static string Str (System.Object Number) { - - // check for null as always and throw an exception - if (Number == null) { - throw new ArgumentNullException("Number"); - } - - switch (Type.GetTypeCode (Number.GetType ())) { - // for unsigned types, just call ToString - case TypeCode.Byte: - case TypeCode.UInt16: - case TypeCode.UInt32: - case TypeCode.UInt64: - return Number.ToString(); - - // for signed types, we have to leave a - // space for the missing + sign - case TypeCode.Decimal: - return ((decimal)Number > 0 ? " " : "") - + Number.ToString(); - case TypeCode.Double: - return ((double)Number > 0 ? " " : "") - + Number.ToString(); - case TypeCode.Int16: - return ((short)Number > 0 ? " " : "") - + Number.ToString(); - case TypeCode.Int32: - return ((int)Number > 0 ? " " : "") - + Number.ToString(); - case TypeCode.Int64: - return ((long)Number > 0 ? " " : "") - + Number.ToString(); - case TypeCode.SByte: - return ((sbyte)Number > 0 ? " " : "") - + Number.ToString(); - case TypeCode.Single: - return ((float)Number > 0 ? " " : "") - + Number.ToString(); - - // can't cast anything else to a Number - default: - throw new InvalidCastException( - "Argument 'Number' cannot be converted to a numeric value."); - } - } - - // The Val function is pretty bizarre - // Val ("&HFF") = 255 - // Val ("&O377") = 255 - // Val ("1234 Any Street") = 1234 - // Val (" 12 45 . 90 7 E + 0 0 2 ") = 1245.907e+002 = 124590.7 - public static double Val (string InputStr) { - int i; - int Base; - int NumChars = 0; - char c; - int Length = InputStr.Length; - char[] Number = new char[Length]; - bool FoundRadixPrefix = false; - Regex NumberReg; - Match NumberMatch; - - Base = 10; - Number[0] = '\0'; - - // go through string - for (i = 0; i < Length; i++) { - c = InputStr[i]; - - // look for Radix prefix "&" - if (i == 0 && c == '&') { - FoundRadixPrefix = true; - } - - // look for an H or O following the prefix - else if (FoundRadixPrefix && i == 1 && - (char.ToLower(c) == 'h' || - char.ToLower(c) == 'o')) { - if (c == 'H') { - Base = 16; - } - else { - Base = 8; - } - } - - // if we didn't find a radix prefix, - // ignore whitespace - else if (char.IsWhiteSpace(c) && (Base == 10)) { - continue; - } - - // mash what's left together - else { - Number[NumChars++] = c; - } - } - - // now we have a string to parse - switch (Base) { - // FIXME : for Octal and Hex, - // Regex is probably overkill - // Even for base 10, it might be faster - // to write our own parser - case 8: - NumberReg = new Regex ("^[0-7]*"); - NumberMatch = NumberReg.Match ( - new string(Number, 0, NumChars)); - break; - case 16: - NumberReg = new Regex ("^[0-9a-f]*", - RegexOptions.IgnoreCase); - NumberMatch = NumberReg.Match ( - new string(Number, 0, NumChars)); - break; - case 10: - default: - NumberReg = new Regex ( - "^[+-]?\\d*\\.?\\d*(e?[+-]?\\d*)", - RegexOptions.IgnoreCase); - NumberMatch = NumberReg.Match ( - new string(Number, 0, NumChars)); - break; - - - } - - // we found a match, try to convert it - if (NumberMatch.Success) { - try { - switch (Base) { - case 10: - return - Convert.ToDouble ( - NumberMatch.Value); - case 8: - case 16: - return (double) - Convert.ToInt64 ( - NumberMatch.Value, - Base); - default: - return (double)0; - } - } - catch { - throw new OverflowException(); - } - } - else { - return (double)0; - } - } - - // Val on a char type is pretty simple '9' = 9, 'a' = exception - public static int Val (char Expression) { - if (char.IsDigit(Expression)) { - return Expression - '0'; - } - else { - throw new ArgumentException(); - } - } - - // if it's an object, and we can't convert - // it to a string, it's an exception - public static double Val (System.Object Expression) { - // always check for null first - if (Expression == null) { - throw new ArgumentNullException ("Expression", - "Value cannot be null"); - } - - try { - return Val (CastToString (Expression)); - } - catch { - throw new ArgumentException( - "Type of argument 'Expression' is '" + - Expression.GetType().FullName + - "', which can nt be converted to numeric."); - } - } - // Events - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateAndTime.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateAndTime.cs deleted file mode 100644 index 6d809db49238a..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateAndTime.cs +++ /dev/null @@ -1,478 +0,0 @@ -// -// DateAndTime.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; -using System.Runtime.InteropServices; -using System.ComponentModel; -using System.Globalization; - -namespace Microsoft.VisualBasic -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class DateAndTime { - public static string DateString { - get { - return DateTime.Today.ToString("MM-dd-yyyy"); - } - - set { - string [] formats = { "M-d-yyyy", "M-d-y", "M/d/yyyy", "M/d/y" }; - - try { - DateTime dtToday = DateTime.ParseExact(value, formats, - DateTimeFormatInfo.CurrentInfo, - DateTimeStyles.None); - - Today = dtToday; - } - catch { - throw new InvalidCastException(); - } - } - } - - public static System.DateTime Today { - get { return DateTime.Today; } - set { - // FIXME: This needs to use some OS specific code - // I've already written it for Windows - // and Unix won't be hard, but need an - // OS object from the compiler - // OS specific code needs to check permissions - // too, and throw an ArgumentOutOfRangeException - // if no permissions -// DateTime dtNow = DateTime.Now; -// -// SysTime.LocalTime = new DateTime(value.Year, -// value.Month, value.Day, dtNow.Hour, -// dtNow.Minute, dtNow.Second, dtNow.Millisecond); - throw new NotImplementedException(); - } - } - - public static double Timer { - get { - DateTime DTNow = DateTime.Now; - - return DTNow.Hour * 3600 + DTNow.Minute * 60 + - DTNow.Second + DTNow.Millisecond / - 1000D; - } - } - - public static System.DateTime Now { - get { return DateTime.Now; } - } - - public static System.DateTime TimeOfDay { - get { - TimeSpan TSpan = DateTime.Now.TimeOfDay; - - return new DateTime(1, 1, 1, TSpan.Hours, - TSpan.Minutes, TSpan.Seconds, - TSpan.Milliseconds); - } - set { - // FIXME: This needs to use some OS specific code - // I've already written it for Windows - // and Unix won't be hard, but need an - // OS object from the compiler - // OS specific code needs to check permissions - // too, and throw an ArgumentOutOfRangeException - // if no permissions -// DateTime dtToday = DateTime.Today; -// -// SysTime.LocalTime = new DateTime(dtToday.Year, -// dtToday.Month, dtToday.Day, value.Hour, -// value.Minute, value.Second, value.Millisecond); - throw new NotImplementedException(); - } - } - - public static string TimeString { - get { return DateTime.Now.ToString("HH:mm:ss"); } - set { - string format = "HH:mm:ss"; - - try { - DateTime dtToday = DateTime.ParseExact(value, format, - DateTimeFormatInfo.CurrentInfo, - DateTimeStyles.None); - - TimeOfDay = dtToday; - } - catch { - throw new InvalidCastException(); - } - } - } - - // Methods - public static System.DateTime DateAdd (DateInterval Interval, - double Number, System.DateTime DateValue) { - - switch (Interval) { - case DateInterval.Year: - return DateValue.AddYears((int)Number); - case DateInterval.Quarter: - return DateValue.AddMonths((int)Number * 3); - case DateInterval.Month: - return DateValue.AddMonths((int)Number); - case DateInterval.WeekOfYear: - return DateValue.AddDays(Number * 7); - case DateInterval.Day: - case DateInterval.DayOfYear: - case DateInterval.Weekday: - return DateValue.AddDays(Number); - case DateInterval.Hour: - return DateValue.AddHours(Number); - case DateInterval.Minute: - return DateValue.AddMinutes(Number); - case DateInterval.Second: - return DateValue.AddSeconds(Number); - default: - throw new ArgumentException(); - } - } - - private static DayOfWeek GetDayRule(FirstDayOfWeek StartOfWeek, DayOfWeek DayRule) - { - switch (StartOfWeek) { - case FirstDayOfWeek.System: - return DayRule; - case FirstDayOfWeek.Sunday: - return DayOfWeek.Sunday; - case FirstDayOfWeek.Monday: - return DayOfWeek.Monday; - case FirstDayOfWeek.Tuesday: - return DayOfWeek.Tuesday; - case FirstDayOfWeek.Wednesday: - return DayOfWeek.Wednesday; - case FirstDayOfWeek.Thursday: - return DayOfWeek.Thursday; - case FirstDayOfWeek.Friday: - return DayOfWeek.Friday; - case FirstDayOfWeek.Saturday: - return DayOfWeek.Saturday; - default: - throw new ArgumentException(); - } - } - - private static CalendarWeekRule GetWeekRule(FirstWeekOfYear StartOfYear, CalendarWeekRule WeekRule) - { - switch (StartOfYear) { - case FirstWeekOfYear.System: - return WeekRule; - case FirstWeekOfYear.FirstFourDays: - return CalendarWeekRule.FirstFourDayWeek; - case FirstWeekOfYear.FirstFullWeek: - return CalendarWeekRule.FirstFullWeek; - case FirstWeekOfYear.Jan1: - return CalendarWeekRule.FirstDay; - default: - throw new ArgumentException(); - } - } - - public static long DateDiff (DateInterval Interval, - System.DateTime Date1, System.DateTime Date2, - [Optional] [DefaultValue(FirstDayOfWeek.Sunday)] - FirstDayOfWeek StartOfWeek, - [Optional] [DefaultValue(FirstWeekOfYear.Jan1)] - FirstWeekOfYear StartOfYear) - { - - int YearMonths; - int YearQuarters; - int YearWeeks; - CalendarWeekRule WeekRule = CalendarWeekRule.FirstDay; - DayOfWeek DayRule = DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek; - Calendar CurCalendar = CultureInfo.CurrentCulture.Calendar; - - switch (Interval) { - case DateInterval.Year: - return Date2.Year - Date1.Year; - case DateInterval.Quarter: - YearQuarters = (Date2.Year - Date1.Year) * 4; - return Date2.Month / 4 - Date1.Month / 4 + YearQuarters; - case DateInterval.Month: - YearMonths = (Date2.Year - Date1.Year) * 12; - return Date2.Month - Date1.Month + YearMonths; - case DateInterval.WeekOfYear: - YearWeeks = (Date2.Year - Date1.Year) * 53; - DayRule = GetDayRule(StartOfWeek, DayRule); - WeekRule = GetWeekRule(StartOfYear, WeekRule); - return CurCalendar.GetWeekOfYear(Date2, WeekRule, DayRule) - - CurCalendar.GetWeekOfYear(Date1,WeekRule, DayRule) + - YearWeeks; - case DateInterval.Weekday: - return ((TimeSpan)(Date2.Subtract(Date1))).Days / 7; - case DateInterval.DayOfYear: - case DateInterval.Day: - return ((TimeSpan)(Date2.Subtract(Date1))).Days; - case DateInterval.Hour: - return ((TimeSpan)(Date2.Subtract(Date1))).Hours; - case DateInterval.Minute: - return ((TimeSpan)(Date2.Subtract(Date1))).Minutes; - case DateInterval.Second: - return ((TimeSpan)(Date2.Subtract(Date1))).Seconds; - default: - throw new ArgumentException(); - } - } - - private static int ConvertWeekDay(DayOfWeek Day, int Offset) - { - - int Weekday = (int)Day + Offset; - - if (Weekday > 7) { - Weekday -= 7; - } - - switch((DayOfWeek)Weekday) { - case DayOfWeek.Sunday: - return (int)FirstDayOfWeek.Sunday; - case DayOfWeek.Monday: - return (int)FirstDayOfWeek.Monday; - case DayOfWeek.Tuesday: - return (int)FirstDayOfWeek.Tuesday; - case DayOfWeek.Wednesday: - return (int)FirstDayOfWeek.Wednesday; - case DayOfWeek.Thursday: - return (int)FirstDayOfWeek.Thursday; - case DayOfWeek.Friday: - return (int)FirstDayOfWeek.Friday; - case DayOfWeek.Saturday: - return (int)FirstDayOfWeek.Saturday; - default: - throw new ArgumentException(); - } - - } - - public static int DatePart - ( - Microsoft.VisualBasic.DateInterval Interval, - System.DateTime DateValue, - [Optional] [DefaultValue(FirstDayOfWeek.Sunday)] - FirstDayOfWeek StartOfWeek, - [Optional] [DefaultValue(FirstWeekOfYear.Jan1)] - FirstWeekOfYear StartOfYear) { - - CalendarWeekRule WeekRule = CalendarWeekRule.FirstDay; - DayOfWeek DayRule = DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek; - Calendar CurCalendar = CultureInfo.CurrentCulture.Calendar; - - switch (Interval) { - case DateInterval.Year: - return DateValue.Year; - case DateInterval.Quarter: - return DateValue.Month / 4 + 1; - case DateInterval.Month: - return DateValue.Month; - case DateInterval.WeekOfYear: - DayRule = GetDayRule(StartOfWeek, DayRule); - WeekRule = GetWeekRule(StartOfYear, WeekRule); - return CurCalendar.GetWeekOfYear(DateValue, WeekRule, DayRule); - case DateInterval.Weekday: - return ConvertWeekDay(DateValue.DayOfWeek, (int)DayRule); - case DateInterval.DayOfYear: - return DateValue.DayOfYear; - case DateInterval.Day: - return DateValue.Day; - case DateInterval.Hour: - return DateValue.Hour; - case DateInterval.Minute: - return DateValue.Minute; - case DateInterval.Second: - return DateValue.Second; - default: - throw new ArgumentException(); - } - } - - private static DateInterval DateIntervalFromString(string Interval) - { - switch (Interval) { - case "yyyy": - return DateInterval.Year; - case "q": - return DateInterval.Quarter; - case "m": - return DateInterval.Month; - case "ww": - return DateInterval.WeekOfYear; - case "w": - return DateInterval.Weekday; - case "d": - return DateInterval.Day; - case "y": - return DateInterval.DayOfYear; - case "h": - return DateInterval.Hour; - case "n": - return DateInterval.Minute; - case "s": - return DateInterval.Second; - default: - throw new ArgumentException(); - } - } - - public static System.DateTime DateAdd (string Interval, - double Number, System.Object DateValue) - { - if (DateValue == null) { - throw new ArgumentNullException("DateValue", "Value can not be null."); - } - if (!(DateValue is DateTime)) { - throw new InvalidCastException(); - } - - return DateAdd(DateIntervalFromString(Interval), Number, (DateTime)DateValue); - } - - public static System.Int64 DateDiff (string Interval, - System.Object Date1, System.Object Date2, - [Optional] [DefaultValue(FirstDayOfWeek.Sunday)] - FirstDayOfWeek StartOfWeek, - [Optional] [DefaultValue(FirstWeekOfYear.Jan1)] - FirstWeekOfYear StartOfYear) - { - if (Date1 == null) { - throw new ArgumentNullException("Date1", "Value can not be null."); - } - if (Date2 == null) { - throw new ArgumentNullException("Date2", "Value can not be null."); - } - if (!(Date1 is DateTime)) { - throw new InvalidCastException(); - } - if (!(Date2 is DateTime)) { - throw new InvalidCastException(); - } - - return DateDiff(DateIntervalFromString(Interval), (DateTime)Date1, - (DateTime)Date2, StartOfWeek, StartOfYear); - - } - - public static System.Int32 DatePart (string Interval, - System.Object DateValue, - [Optional] [DefaultValue(FirstDayOfWeek.Sunday)] - FirstDayOfWeek StartOfWeek, - [Optional] [DefaultValue(FirstWeekOfYear.Jan1)] - FirstWeekOfYear StartOfYear) - { - if (DateValue == null) { - throw new ArgumentNullException("DateValue", "Value can not be null."); - } - if (!(DateValue is DateTime)) { - throw new InvalidCastException(); - } - - - return DatePart(DateIntervalFromString(Interval), - (DateTime)DateValue, StartOfWeek, StartOfYear); - } - - public static System.DateTime DateSerial (int Year, int Month, int Day) - { - return new DateTime(Year, Month, Day); - } - - public static System.DateTime TimeSerial (int Hour, int Minute, int Second) - { - return new DateTime(1, 1, 1, Hour, Minute, Second); - } - - public static System.DateTime DateValue (string StringDate) - { - return DateTime.Parse(StringDate); - } - - public static System.DateTime TimeValue (string StringTime) - { - return DateTime.Parse(StringTime); - } - - public static int Year (System.DateTime DateValue) - { - return DateValue.Year; - } - - public static int Month (System.DateTime DateValue) - { - return DateValue.Month; - } - - public static int Day (System.DateTime DateValue) - { - return DateValue.Day; - } - - public static int Hour (System.DateTime TimeValue) - { - return TimeValue.Hour; - } - - public static int Minute (System.DateTime TimeValue) - { - return TimeValue.Minute; - } - - public static int Second (System.DateTime TimeValue) - { - return TimeValue.Second; - } - - public static int Weekday (System.DateTime DateValue, - [Optional] [DefaultValue(FirstDayOfWeek.Sunday)] - FirstDayOfWeek StartOfWeek) - { - return DatePart(DateInterval.Weekday, DateValue, StartOfWeek, FirstWeekOfYear.System); - } - - public static System.String MonthName (int Month, - [Optional] [DefaultValue(false)] bool Abbreviate) - { - if (Month < 1 || Month > 13) { - throw new ArgumentException(); - } - if (Abbreviate) { - return CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(Month); - } - else { - return CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(Month); - } - } - - public static System.String WeekdayName (int Weekday, - [Optional] [DefaultValue(false)] System.Boolean Abbreviate, - [Optional] [DefaultValue(FirstDayOfWeek.System)] - FirstDayOfWeek FirstDayOfWeekValue) - { - if (Weekday < 1 || Weekday > 7) { - throw new ArgumentException(); - } - Weekday += (int)FirstDayOfWeekValue; - if (Weekday > 7) { - Weekday -= 7; - } - if (Abbreviate) { - return CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedDayName((DayOfWeek)Weekday); - } - else { - return CultureInfo.CurrentCulture.DateTimeFormat.GetDayName((DayOfWeek)Weekday); - } - } - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateFormat.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateFormat.cs deleted file mode 100644 index 9ffcd7ebf1043..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateFormat.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// DateFormat.cs -// -// Author: -// Martin Adoue (martin@cwanet.com) -// -// (C) 2002 Martin Adoue -// -namespace Microsoft.VisualBasic { - - /// - /// When you call the DateValue function, you can use the following - /// enumeration members in your code in place of the actual values. - /// - public enum DateFormat : int { - /// - /// For real numbers, displays a date and time. If the number has no fractional part, displays only a date. If the number has no integer part, displays time only. Date and time display is determined by your computer's regional settings. - /// - GeneralDate = 0, - /// - /// Displays a date using the long-date format specified in your computer's regional settings. - /// - LongDate = 1, - /// - /// Displays a date using the short-date format specified in your computer's regional settings. - /// - ShortDate = 2, - /// - /// Displays a time using the long-time format specified in your computer's regional settings. - /// - LongTime = 3, - /// - /// Displays a time using the short-time format specified in your computer's regional settings. - /// - ShortTime = 4 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateInterval.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateInterval.cs deleted file mode 100644 index 2c86a14733ecc..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateInterval.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// DateInterval.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum DateInterval : int { - Year = 0, - Quarter = 1, - Month = 2, - DayOfYear = 3, - Day = 4, - WeekOfYear = 5, - Weekday = 6, - Hour = 7, - Minute = 8, - Second = 9 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DueDate.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DueDate.cs deleted file mode 100644 index 82bc60f988e01..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DueDate.cs +++ /dev/null @@ -1,14 +0,0 @@ -// -// DueDate.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum DueDate : int { - EndOfPeriod = 0, - BegOfPeriod = 1 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ErrObject.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ErrObject.cs deleted file mode 100644 index 8883f93883356..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ErrObject.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// ErrObject.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic -{ - sealed public class ErrObject { - // Declarations - // Constructors - // Properties - [MonoTODO] - public System.Int32 HelpContext { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } } - [MonoTODO] - public System.Int32 LastDllError { get { throw new NotImplementedException (); } } - [MonoTODO] - public System.Int32 Number { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } } - [MonoTODO] - public System.Int32 Erl { get { throw new NotImplementedException (); } } - [MonoTODO] - public System.String Source { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } } - [MonoTODO] - public System.String HelpFile { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } } - [MonoTODO] - public System.String Description { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } } - // Methods - [MonoTODO] - public System.Exception GetException () { throw new NotImplementedException (); } - [MonoTODO] - public void Clear () { throw new NotImplementedException (); } - [MonoTODO] - public void Raise (System.Int32 Number, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Source, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Description, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpFile, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpContext) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileAttribute.cs deleted file mode 100644 index 96dc29a3f4ead..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// FileAttribute.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - [System.FlagsAttribute] - public enum FileAttribute : int { - Normal = 0, - ReadOnly = 1, - Hidden = 2, - System = 4, - Volume = 8, - Directory = 16, - Archive = 32 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileSystem.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileSystem.cs deleted file mode 100644 index 80cc1a297d86f..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileSystem.cs +++ /dev/null @@ -1,189 +0,0 @@ -// -// FileSystem.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class FileSystem { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static void ChDir (System.String Path) { throw new NotImplementedException (); } - [MonoTODO] - public static void ChDrive (System.Char Drive) { throw new NotImplementedException (); } - [MonoTODO] - public static void ChDrive (System.String Drive) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String CurDir () { throw new NotImplementedException (); } - [MonoTODO] - public static System.String CurDir (System.Char Drive) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String Dir () { throw new NotImplementedException (); } - [MonoTODO] - public static System.String Dir (System.String Pathname, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); } - [MonoTODO] - public static void MkDir (System.String Path) { throw new NotImplementedException (); } - [MonoTODO] - public static void RmDir (System.String Path) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileCopy (System.String Source, System.String Destination) { throw new NotImplementedException (); } - [MonoTODO] - public static System.DateTime FileDateTime (System.String PathName) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int64 FileLen (System.String PathName) { throw new NotImplementedException (); } - [MonoTODO] - public static Microsoft.VisualBasic.FileAttribute GetAttr (System.String PathName) { throw new NotImplementedException (); } - [MonoTODO] - public static void Kill (System.String PathName) { throw new NotImplementedException (); } - [MonoTODO] - public static void SetAttr (System.String PathName, Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileOpen (System.Int32 FileNumber, System.String FileName, Microsoft.VisualBasic.OpenMode Mode, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenAccess Access, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenShare Share, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 RecordLength) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileClose (params System.Int32[] FileNumbers) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGetObject (System.Int32 FileNumber, ref System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileGet (System.Int32 FileNumber, ref System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePutObject (System.Int32 FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - [System.ObsoleteAttribute("Use FilePutObject to write Object types, or coerce FileNumber and RecordNumber to Integer for writing non-Object types", false)] - public static void FilePut (System.Object FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Object RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); } - [MonoTODO] - public static void FilePut (System.Int32 FileNumber, System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void Print (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); } - [MonoTODO] - public static void PrintLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Object Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Boolean Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Byte Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Int16 Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Int32 Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Int64 Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Char Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Single Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Double Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.Decimal Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.String Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Input (System.Int32 FileNumber, ref System.DateTime Value) { throw new NotImplementedException (); } - [MonoTODO] - public static void Write (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); } - [MonoTODO] - public static void WriteLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String InputString (System.Int32 FileNumber, System.Int32 CharCount) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String LineInput (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void Lock (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void Lock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); } - [MonoTODO] - public static void Lock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); } - [MonoTODO] - public static void Unlock (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void Unlock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); } - [MonoTODO] - public static void Unlock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); } - [MonoTODO] - public static void FileWidth (System.Int32 FileNumber, System.Int32 RecordWidth) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int32 FreeFile () { throw new NotImplementedException (); } - [MonoTODO] - public static void Seek (System.Int32 FileNumber, System.Int64 Position) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int64 Seek (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean EOF (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int64 Loc (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int64 LOF (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static Microsoft.VisualBasic.TabInfo TAB () { throw new NotImplementedException (); } - [MonoTODO] - public static Microsoft.VisualBasic.TabInfo TAB (System.Int16 Column) { throw new NotImplementedException (); } - [MonoTODO] - public static Microsoft.VisualBasic.SpcInfo SPC (System.Int16 Count) { throw new NotImplementedException (); } - [MonoTODO] - public static Microsoft.VisualBasic.OpenMode FileAttr (System.Int32 FileNumber) { throw new NotImplementedException (); } - [MonoTODO] - public static void Reset () { throw new NotImplementedException (); } - [MonoTODO] - public static void Rename (System.String OldPath, System.String NewPath) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs deleted file mode 100644 index 613c49ea71661..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Financial.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class Financial { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.Double DDB (System.Double Cost, System.Double Salvage, System.Double Life, System.Double Period, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(2)] System.Double Factor) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double FV (System.Double Rate, System.Double NPer, System.Double Pmt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double IPmt (System.Double Rate, System.Double Per, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double IRR (ref System.Double[] ValueArray, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] ref System.Double Guess) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double MIRR (ref System.Double[] ValueArray, ref System.Double FinanceRate, ref System.Double ReinvestRate) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double NPer (System.Double Rate, System.Double Pmt, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double NPV (System.Double Rate, ref System.Double[] ValueArray) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double Pmt (System.Double Rate, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double PPmt (System.Double Rate, System.Double Per, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double PV (System.Double Rate, System.Double NPer, System.Double Pmt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double Rate (System.Double NPer, System.Double Pmt, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] System.Double Guess) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double SLN (System.Double Cost, System.Double Salvage, System.Double Life) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double SYD (System.Double Cost, System.Double Salvage, System.Double Life, System.Double Period) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstDayOfWeek.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstDayOfWeek.cs deleted file mode 100644 index 05cf55c0c35d2..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstDayOfWeek.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// FirstDayOfWeek.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum FirstDayOfWeek : int { - System = 0, - Sunday = 1, - Monday = 2, - Tuesday = 3, - Wednesday = 4, - Thursday = 5, - Friday = 6, - Saturday = 7 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstWeekOfYear.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstWeekOfYear.cs deleted file mode 100644 index 035e5bd5feb12..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstWeekOfYear.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// FirstWeekOfYear.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum FirstWeekOfYear : int { - System = 0, - Jan1 = 1, - FirstFourDays = 2, - FirstFullWeek = 3 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Globals.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Globals.cs deleted file mode 100644 index 2c89b994d4ec5..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Globals.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -// Globals.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class Globals { - // Declarations - // Constructors - // Properties - [MonoTODO] - public static System.String ScriptEngine { get { throw new NotImplementedException (); } } - [MonoTODO] - public static System.Int32 ScriptEngineMajorVersion { get { throw new NotImplementedException (); } } - [MonoTODO] - public static System.Int32 ScriptEngineMinorVersion { get { throw new NotImplementedException (); } } - [MonoTODO] - public static System.Int32 ScriptEngineBuildVersion { get { throw new NotImplementedException (); } } - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Information.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Information.cs deleted file mode 100644 index 165fbad52e0d8..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Information.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// Information.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class Information { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static Microsoft.VisualBasic.ErrObject Err () { throw new NotImplementedException (); } - [MonoTODO] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static System.Int32 Erl () { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean IsArray (System.Object VarName) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean IsDate (System.Object Expression) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean IsDBNull (System.Object Expression) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean IsNothing (System.Object Expression) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean IsError (System.Object Expression) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean IsReference (System.Object Expression) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean IsNumeric (System.Object Expression) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int32 LBound (System.Array Array, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(1)] System.Int32 Rank) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int32 UBound (System.Array Array, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(1)] System.Int32 Rank) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String TypeName (System.Object VarName) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String SystemTypeName (System.String VbName) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String VbTypeName (System.String UrtName) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int32 QBColor (System.Int32 Color) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int32 RGB (System.Int32 Red, System.Int32 Green, System.Int32 Blue) { throw new NotImplementedException (); } - [MonoTODO] - public static Microsoft.VisualBasic.VariantType VarType (System.Object VarName) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Interaction.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Interaction.cs deleted file mode 100644 index ad17f86ceefec..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Interaction.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -// Interaction.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)] - sealed public class Interaction { - // Declarations - // Constructors - // Properties - // Methods - public static System.Int32 Shell (System.String Pathname, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(2)] Microsoft.VisualBasic.AppWinStyle Style, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean Wait, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 Timeout) { return 0;} - public static void AppActivate (System.Int32 ProcessId) { } - public static void AppActivate (System.String Title) { } - public static System.String Command () { return "";} - public static System.String Environ (System.Int32 Expression) { return "";} - public static System.String Environ (System.String Expression) { return "";} - public static void Beep () { } - public static System.String InputBox (System.String Prompt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String Title, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String DefaultResponse, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 XPos, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 YPos) { return "";} - public static Microsoft.VisualBasic.MsgBoxResult MsgBox (System.Object Prompt, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.MsgBoxStyle Buttons, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Title) { return 0;} - public static System.Object CallByName (System.Object ObjectRef, System.String ProcName, Microsoft.VisualBasic.CallType UseCallType, params System.Object[] Args) { return null;} - public static System.Object Choose (System.Double Index, params System.Object[] Choice) { return null;} - public static System.Object IIf (System.Boolean Expression, System.Object TruePart, System.Object FalsePart) { return null;} - public static System.String Partition (System.Int64 Number, System.Int64 Start, System.Int64 Stop, System.Int64 Interval) { return "";} - public static System.Object Switch (params System.Object[] VarExpr) { return null;} - public static void DeleteSetting (System.String AppName, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String Section, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String Key) { } - public static System.String[,] GetAllSettings (System.String AppName, System.String Section) { return null;} - public static System.String GetSetting (System.String AppName, System.String Section, System.String Key, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String Default) { return "";} - public static void SaveSetting (System.String AppName, System.String Section, System.String Key, System.String Setting) { } - public static System.Object CreateObject (System.String ProgId, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue("")] System.String ServerName) { return null;} - public static System.Object GetObject ([System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String PathName, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.String Class) { return null;} - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.cs deleted file mode 100644 index d64b642912fbd..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// BooleanType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class BooleanType { - // Declarations - // Constructors - // Properties - // Methods - public static System.Boolean FromString (System.String Value) { return System.Boolean.Parse(Value); } - [MonoTODO] - public static System.Boolean FromObject (System.Object Value) { throw new NotImplementedException(); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.cs deleted file mode 100644 index 631a19665c2fe..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// ByteType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class ByteType { - // Declarations - // Constructors - // Properties - // Methods - public static System.Byte FromString (System.String Value) { return System.Byte.Parse(Value); } - [MonoTODO] - public static System.Byte FromObject (System.Object Value) { throw new NotImplementedException(); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.cs deleted file mode 100644 index 0ff4c50c3b507..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// CharArrayType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class CharArrayType { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.Char[] FromString (System.String Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Char[] FromObject (System.Object Value) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.cs deleted file mode 100644 index a493a84f45cdf..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// CharType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class CharType { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.Char FromString (System.String Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Char FromObject (System.Object Value) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.cs deleted file mode 100644 index 4acff1409e9c1..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -// DateType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class DateType { - // Declarations - // Constructors - // Properties - // Methods - public static System.DateTime FromString (System.String Value) { return System.DateTime.Parse(Value); } - [MonoTODO] - public static System.DateTime FromString (System.String Value, System.Globalization.CultureInfo culture) { throw new NotImplementedException (); } - [MonoTODO] - public static System.DateTime FromObject (System.Object Value) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.cs deleted file mode 100644 index 670f406f42bd5..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// DecimalType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class DecimalType { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.Decimal FromBoolean (System.Boolean Value) { throw new NotImplementedException (); } - public static System.Decimal FromString (System.String Value) { return System.Decimal.Parse(Value); } - [MonoTODO] - public static System.Decimal FromString (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Decimal FromObject (System.Object Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Decimal FromObject (System.Object Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Decimal Parse (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.cs deleted file mode 100644 index 1d0e2b99fa3bd..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// DoubleType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class DoubleType { - // Declarations - // Constructors - // Properties - // Methods - public static System.Double FromString (System.String Value) { return System.Double.Parse(Value); } - [MonoTODO] - public static System.Double FromString (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double FromObject (System.Object Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Double FromObject (System.Object Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - public static System.Double Parse (System.String Value) { return System.Double.Parse(Value); } - [MonoTODO] - public static System.Double Parse (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.cs deleted file mode 100644 index 03442b7382f43..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// ExceptionUtils.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic.CompilerServices { - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)] - sealed public class ExceptionUtils { - // Declarations - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.cs deleted file mode 100644 index 50f5ff3b23f7f..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// FlowControl.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class FlowControl { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.Boolean ForNextCheckR4 (System.Single count, System.Single limit, System.Single StepValue) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean ForNextCheckR8 (System.Double count, System.Double limit, System.Double StepValue) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean ForNextCheckDec (System.Decimal count, System.Decimal limit, System.Decimal StepValue) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean ForLoopInitObj (System.Object Counter, System.Object Start, System.Object Limit, System.Object StepValue, ref System.Object LoopForResult, ref System.Object CounterResult) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean ForNextCheckObj (System.Object Counter, System.Object LoopObj, ref System.Object CounterResult) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Collections.IEnumerator ForEachInArr (System.Array ary) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Collections.IEnumerator ForEachInObj (System.Object obj) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean ForEachNextObj (ref System.Object obj, ref System.Collections.IEnumerator enumerator) { throw new NotImplementedException (); } - [MonoTODO] - public static void CheckForSyncLockOnValueType (System.Object obj) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.cs deleted file mode 100644 index 49145ede7e9df..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// HostServices.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class HostServices { - // Declarations - // Constructors - // Properties - [MonoTODO] - public static Microsoft.VisualBasic.CompilerServices.IVbHost VBHost { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } } - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.cs deleted file mode 100644 index abff24de804b0..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// IVbHost.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic.CompilerServices { - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public interface IVbHost { - // Declarations - // Constructors - // Properties - // Methods - System.String GetWindowTitle (); - // System.Windows.Forms.IWin32Window GetParentWindow (); - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.cs deleted file mode 100644 index e22ac728bc172..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// IncompleteInitialization.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic.CompilerServices { - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [MonoTODO] - sealed public class IncompleteInitialization : System.Exception, System.Runtime.Serialization.ISerializable { - // Declarations - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.cs deleted file mode 100644 index 14330f9a3681e..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// IntegerType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class IntegerType { - // Declarations - // Constructors - // Properties - // Methods - public static System.Int32 FromString (System.String Value) { return System.Int32.Parse(Value); } - [MonoTODO] - public static System.Int32 FromObject (System.Object Value) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.cs deleted file mode 100644 index 22ce2f3faf32b..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// LateBinding.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class LateBinding { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - [System.Diagnostics.DebuggerHiddenAttribute] - [System.Diagnostics.DebuggerStepThroughAttribute] - public static System.Object LateGet (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames, System.Boolean[] CopyBack) { throw new NotImplementedException (); } - [MonoTODO] - [System.Diagnostics.DebuggerStepThroughAttribute] - [System.Diagnostics.DebuggerHiddenAttribute] - public static void LateSetComplex (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames, System.Boolean OptimisticSet, System.Boolean RValueBase) { throw new NotImplementedException (); } - [MonoTODO] - [System.Diagnostics.DebuggerStepThroughAttribute] - [System.Diagnostics.DebuggerHiddenAttribute] - public static void LateSet (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); } - [MonoTODO] - [System.Diagnostics.DebuggerStepThroughAttribute] - [System.Diagnostics.DebuggerHiddenAttribute] - public static System.Object LateIndexGet (System.Object o, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); } - [MonoTODO] - [System.Diagnostics.DebuggerHiddenAttribute] - [System.Diagnostics.DebuggerStepThroughAttribute] - public static void LateIndexSetComplex (System.Object o, System.Object[] args, System.String[] paramnames, System.Boolean OptimisticSet, System.Boolean RValueBase) { throw new NotImplementedException (); } - [MonoTODO] - [System.Diagnostics.DebuggerStepThroughAttribute] - [System.Diagnostics.DebuggerHiddenAttribute] - public static void LateIndexSet (System.Object o, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); } - [MonoTODO] - [System.Diagnostics.DebuggerStepThroughAttribute] - [System.Diagnostics.DebuggerHiddenAttribute] - public static void LateCall (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames, System.Boolean[] CopyBack) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.cs deleted file mode 100644 index e90edd154c6c3..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// LongType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class LongType { - // Declarations - // Constructors - // Properties - // Methods - public static System.Int64 FromString (System.String Value) { return System.Int64.Parse(Value); } - [MonoTODO] - public static System.Int64 FromObject (System.Object Value) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.cs deleted file mode 100644 index c709c80f44eb5..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// ObjectType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class ObjectType { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.Int32 ObjTst (System.Object o1, System.Object o2, System.Boolean TextCompare) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object PlusObj (System.Object obj) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object NegObj (System.Object obj) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object NotObj (System.Object obj) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object BitAndObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object BitOrObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object BitXorObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object AddObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object SubObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object MulObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object DivObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object PowObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object ModObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object IDivObj (System.Object o1, System.Object o2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object XorObj (System.Object obj1, System.Object obj2) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean LikeObj (System.Object vLeft, System.Object vRight, Microsoft.VisualBasic.CompareMethod CompareOption) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object StrCatObj (System.Object vLeft, System.Object vRight) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object GetObjectValuePrimitive (System.Object o) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionCompareAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionCompareAttribute.cs deleted file mode 100644 index ab0fbca18cbb1..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionCompareAttribute.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// OptionCompareAttribute.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// Martin Adoue (martin@cwanet.com) -// -// (C) 2002 Ximian Inc. -// -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; - -namespace Microsoft.VisualBasic.CompilerServices { - [MonoTODO] - [EditorBrowsable(EditorBrowsableState.Never)] - [AttributeUsage(AttributeTargets.Parameter)] - [StructLayoutAttribute(LayoutKind.Auto)] - sealed public class OptionCompareAttribute : Attribute { - // Declarations - // Constructors - // Properties - // Methods - // Events - public OptionCompareAttribute() - { - //FIXME: should this do something? - throw new NotImplementedException(); - } - }; - -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.cs deleted file mode 100644 index 97ac0cc262fdc..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// OptionTextAttribute.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic.CompilerServices { - [System.AttributeUsageAttribute(System.AttributeTargets.Class)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [MonoTODO] - sealed public class OptionTextAttribute : System.Attribute { - // Declarations - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.cs deleted file mode 100644 index d56bbabf58333..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// ProjectData.cs -// -// Authors: -// Martin Adoue (martin@cwanet.com) -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Ximian Inc. -// - -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; - -namespace Microsoft.VisualBasic.CompilerServices -{ - /// - /// FIXME: Summary description for ProjectData. - /// - - [MonoTODO] - [EditorBrowsable(EditorBrowsableState.Never)] - [StructLayout(LayoutKind.Auto)] - public class ProjectData{ - - private static System.Exception projectError; - private static int erl; - - /// - /// FIXME: Summary description for ClearProjectError - /// - public static void ClearProjectError() - { - projectError = null; - erl = 0; - } - - /// - /// FIXME: Summary description for SetProjectError - /// - /// FIXME: Required. Summary description for ex - [MonoTODO] - public static void SetProjectError(System.Exception ex) - { - SetProjectError(ex, 0); - } - - /// - /// FIXME: Summary description for SetProjectError - /// - /// FIXME: Required. Summary description for ex - /// FIXME: Required. Summary description for lErl - [MonoTODO] - public static void SetProjectError(System.Exception ex, int lErl) - { - projectError = ex; - erl = lErl; - - } - - /* - [MonoTODO] - public static void EndApp() - { - //FIXME - } - */ - - /* - [MonoTODO] - protected static void Finalize() - { - //FIXME - } - */ - - - - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.cs deleted file mode 100644 index a06e424af7c96..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// ShortType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - sealed public class ShortType { - // Declarations - // Constructors - // Properties - // Methods - public static System.Int16 FromString (System.String Value) { return System.Int16.Parse(Value); } - [MonoTODO] - public static System.Int16 FromObject (System.Object Value) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.cs deleted file mode 100644 index 134db71e4d41c..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -// SingleType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class SingleType { - // Declarations - // Constructors - // Properties - // Methods - public static System.Single FromString (System.String Value) { return System.Single.Parse(Value); } - [MonoTODO] - public static System.Single FromString (System.String Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Single FromObject (System.Object Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Single FromObject (System.Object Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.cs deleted file mode 100644 index 0da5cc2b1450d..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// StandardModuleAttribute.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic.CompilerServices { - [System.AttributeUsageAttribute(System.AttributeTargets.Class)] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)] - sealed public class StandardModuleAttribute : System.Attribute { - // Declarations - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.cs deleted file mode 100644 index 42fa6300a6854..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// StaticLocalInitFlag.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic.CompilerServices { - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Auto)] - sealed public class StaticLocalInitFlag { - // Declarations - public System.Int16 State = (System.Int16)(0); - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.cs deleted file mode 100644 index e4148aba2587d..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// StringType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class StringType { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.String FromBoolean (System.Boolean Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromByte (System.Byte Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromChar (System.Char Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromShort (System.Int16 Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromInteger (System.Int32 Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromLong (System.Int64 Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromSingle (System.Single Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromDouble (System.Double Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromSingle (System.Single Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromDouble (System.Double Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromDate (System.DateTime Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromDecimal (System.Decimal Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromDecimal (System.Decimal Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String FromObject (System.Object Value) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Int32 StrCmp (System.String sLeft, System.String sRight, System.Boolean TextCompare) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean StrLike (System.String Source, System.String Pattern, Microsoft.VisualBasic.CompareMethod CompareOption) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean StrLikeBinary (System.String Source, System.String Pattern) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Boolean StrLikeText (System.String Source, System.String Pattern) { throw new NotImplementedException (); } - [MonoTODO] - public static void MidStmtStr (ref System.String sDest, ref System.Int32 StartPosition, ref System.Int32 MaxInsertLength, ref System.String sInsert) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/TODOAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/TODOAttribute.cs deleted file mode 100644 index fe572f886c773..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/TODOAttribute.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All, AllowMultiple=true)] - public class MonoTODOAttribute : Attribute { - - private string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - - public string Comment - { - get { return comment; } - } - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.cs deleted file mode 100644 index 6d13fa195a2fe..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// Utils.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic.CompilerServices -{ - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class Utils { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static void ThrowException (System.Int32 hr) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Object SetCultureInfo (System.Globalization.CultureInfo Culture) { throw new NotImplementedException (); } - [MonoTODO] - public static System.Array CopyArray (System.Array arySrc, System.Array aryDest) { throw new NotImplementedException (); } - [MonoTODO] - public static System.String MethodToString (System.Reflection.MethodBase Method) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxResult.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxResult.cs deleted file mode 100644 index 2f2094c748b9a..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxResult.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// MsgBoxResult.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum MsgBoxResult : int { - OK = 1, - Cancel = 2, - Abort = 3, - Retry = 4, - Ignore = 5, - Yes = 6, - No = 7 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxStyle.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxStyle.cs deleted file mode 100644 index 91042bcdb9302..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxStyle.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// MsgBoxStyle.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - [System.FlagsAttribute] - public enum MsgBoxStyle : int { - ApplicationModal = 0, - DefaultButton1 = 0, - OKOnly = 0, - OKCancel = 1, - AbortRetryIgnore = 2, - YesNoCancel = 3, - YesNo = 4, - RetryCancel = 5, - Critical = 16, - Question = 32, - Exclamation = 48, - Information = 64, - DefaultButton2 = 256, - DefaultButton3 = 512, - SystemModal = 4096, - MsgBoxHelp = 16384, - MsgBoxSetForeground = 65536, - MsgBoxRight = 524288, - MsgBoxRtlReading = 1048576 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenAccess.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenAccess.cs deleted file mode 100644 index 0db6fd0ccaef7..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenAccess.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// OpenAccess.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum OpenAccess : int { - Read = 1, - Write = 2, - ReadWrite = 3, - Default = -1 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenMode.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenMode.cs deleted file mode 100644 index 4374a0bccdcb8..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenMode.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// OpenMode.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum OpenMode : int { - Input = 1, - Output = 2, - Random = 4, - Append = 8, - Binary = 32 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenShare.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenShare.cs deleted file mode 100644 index 02d828f818876..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenShare.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// OpenShare.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum OpenShare : int { - LockReadWrite = 0, - LockWrite = 1, - LockRead = 2, - Shared = 3, - Default = -1 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/SpcInfo.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/SpcInfo.cs deleted file mode 100644 index 65b3d2bba5cba..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/SpcInfo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// SpcInfo.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [MonoTODO] - public struct SpcInfo { - // Declarations - public System.Int16 Count; - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.cs deleted file mode 100644 index 838089f467361..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.cs +++ /dev/null @@ -1,1110 +0,0 @@ -// -// Strings.cs -// -// Authors: -// Martin Adoue (martin@cwanet.com) -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Ximian Inc. -// - -using System; -using System.Text; -using System.ComponentModel; - -using System.Runtime.InteropServices; -using Microsoft.VisualBasic.CompilerServices; - -namespace Microsoft.VisualBasic -{ - /// - /// The Strings module contains procedures used to perform string operations. - /// - - [StandardModule] - [StructLayout(LayoutKind.Auto)] - public class Strings - { - private Strings() - { - //Do nothing. Nobody should be creating this. - } - - - /// - /// Returns an Integer value representing the character code corresponding to a character. - /// - /// Required. Any valid Char or String expression. If String is a String expression, only the first character of the string is used for input. If String is Nothing or contains no characters, an ArgumentException error occurs. - [MonoTODO] - public static int Asc(char String) - { - //FIXME: Check the docs, it says something about Locales, DBCS, etc. - throw new NotImplementedException(); - } - - - - /// - /// Returns an Integer value representing the character code corresponding to a character. - /// - /// Required. Any valid Char or String expression. If String is a String expression, only the first character of the string is used for input. If String is Nothing or contains no characters, an ArgumentException error occurs. - [MonoTODO] - public static int Asc(string String) - { - if ((String == null) || (String.Length != 1)) - throw new ArgumentException("Length of argument 'String' must be one.", "String"); - - //FIXME: Check the docs, it says something about Locales, DBCS, etc. - return (int) String.ToCharArray(0, 1)[0]; - //why? check http://bugzilla.ximian.com/show_bug.cgi?id=23540 - } - - - /// - /// Returns an Integer value representing the character code corresponding to a character. - /// - /// Required. Any valid Char or String expression. If String is a String expression, only the first character of the string is used for input. If String is Nothing or contains no characters, an ArgumentException error occurs. - [MonoTODO("Needs testing")] - public static int AscW(char String) - { - /* - * AscW returns the Unicode code point for the input character. - * This can be 0 through 65535. The returned value is independent - * of the culture and code page settings for the current thread. - */ - - return (int) String; - } - - /// - /// Returns an Integer value representing the character code corresponding to a character. - /// - /// Required. Any valid Char or String expression. If String is a String expression, only the first character of the string is used for input. If String is Nothing or contains no characters, an ArgumentException error occurs. - [MonoTODO("Needs testing")] - public static int AscW(string String) - { - /* - * AscW returns the Unicode code point for the input character. - * This can be 0 through 65535. The returned value is independent - * of the culture and code page settings for the current thread. - */ - if ((String == null) || (String.Length == 0)) - throw new ArgumentException("Length of argument 'String' must be at leasr one.", "String"); - return (int) String.ToCharArray(0, 1)[0]; - - } - - /// - /// Returns the character associated with the specified character code. - /// - /// Required. An Integer expression representing the code point, or character code, for the character. If CharCode is outside the range -32768 through 65535, an ArgumentException error occurs. - [MonoTODO] - public static char Chr(int CharCode) - { - - // According to docs (ms-help://MS.VSCC/MS.MSDNVS/vblr7/html/vafctchr.htm) - // Chr and ChrW should throw ArgumentException if ((CharCode < -32768) || (CharCode > 65535)) - // Instead, VB.net throws an OverflowException. I'm following the implementation - // instead of the docs. - - if ((CharCode < -32768) || (CharCode > 65535)) - throw new OverflowException("Value was either too large or too small for a character."); - - //FIXME: Check the docs, it says something about Locales, DBCS, etc. - return System.Convert.ToChar(CharCode); - } - - /// - /// Returns the character associated with the specified character code. - /// - /// Required. An Integer expression representing the code point, or character code, for the character. If CharCode is outside the range -32768 through 65535, an ArgumentException error occurs. - [MonoTODO("Needs testing")] - public static char ChrW(int CharCode ) - { - /* - * According to docs () - * Chr and ChrW should throw ArgumentException if ((CharCode < -32768) || (CharCode > 65535)) - * Instead, VB.net throws an OverflowException. I'm following the implementation - * instead of the docs - */ - if ((CharCode < -32768) || (CharCode > 65535)) - throw new OverflowException("Value was either too large or too small for a character."); - - /* - * ChrW takes CharCode as a Unicode code point. The range is independent of the - * culture and code page settings for the current thread. Values from -32768 through - * -1 are treated the same as values in the range +32768 through +65535. - */ - if (CharCode < 0) - CharCode += 0x10000; - - return System.Convert.ToChar(CharCode); - } - - /// - /// Returns a zero-based array containing a subset of a String array based on specified filter criteria. - /// - /// Required. One-dimensional array of strings to be searched. - /// Required. String to search for. - /// Optional. Boolean value indicating whether to return substrings that include or exclude Match. If Include is True, the Filter function returns the subset of the array that contains Match as a substring. If Include is False, the Filter function returns the subset of the array that does not contain Match as a substring. - /// Optional. Numeric value indicating the kind of string comparison to use. See Settings for values. - [MonoTODO("Needs testing")] - public static string[] Filter(object[] Source, - string Match, - [Optional] - [DefaultValue(true)] - bool Include, - [OptionCompare] [Optional] - [DefaultValue(CompareMethod.Binary)] - CompareMethod Compare) - { - - if (Source == null) - throw new ArgumentException("Argument 'Source' can not be null.", "Source"); - if (Source.Rank > 1) - throw new ArgumentException("Argument 'Source' can have only one dimension.", "Source"); - - string[] strings; - strings = new string[Source.Length]; - - Source.CopyTo(strings, 0); - return Filter(strings, Match, Include, Compare); - - } - - /// - /// Returns a zero-based array containing a subset of a String array based on specified filter criteria. - /// - /// Required. One-dimensional array of strings to be searched. - /// Required. String to search for. - /// Optional. Boolean value indicating whether to return substrings that include or exclude Match. If Include is True, the Filter function returns the subset of the array that contains Match as a substring. If Include is False, the Filter function returns the subset of the array that does not contain Match as a substring. - /// Optional. Numeric value indicating the kind of string comparison to use. See Settings for values. - public static string[] Filter(string[] Source, - string Match, - [Optional] - [DefaultValue(true)] - bool Include, - [Optional] - [DefaultValue(CompareMethod.Binary)] - CompareMethod Compare) - { - - if (Source == null) - throw new ArgumentException("Argument 'Source' can not be null.", "Source"); - if (Source.Rank > 1) - throw new ArgumentException("Argument 'Source' can have only one dimension.", "Source"); - - /* - * Well, I don't like it either. But I figured that two iterations - * on the array would be better than many aloocations. Besides, this - * way I can isolate the special cases. - * I'd love to hear from a different approach. - */ - - int count = Source.Length; - bool[] matches = new bool[count]; - int matchesCount = 0; - - for (int i = 0; i < count; i++) - { - if (InStr(1, Match, Source[i], Compare) != 0) - { - //found one more - matches[i] = true; - matchesCount ++; - } - else - { - matches[i] = false; - } - } - - if (matchesCount == 0) - { - if (Include) - return new string[0]; - else - return Source; - } - else - { - if (matchesCount == count) - { - if (Include) - return Source; - else - return new string[0]; - } - else - { - string[] ret; - int j = 0; - if (Include) - ret = new string [matchesCount]; - else - ret = new string [count - matchesCount]; - - for (int i=0; i < count; i++) - { - if ((matches[i] && Include) || !(matches[i] || Include)) - { - ret[j] = Source[i]; - j++; - } - } - return ret; - } - } - } - - /// - /// Returns a string formatted according to instructions contained in a format String expression. - /// - /// Required. Any valid expression. - /// Optional. A valid named or user-defined format String expression. - [MonoTODO] - public static string Format(object Expression, - [Optional] - [DefaultValue("")] - string Style) - { - //FIXME - throw new NotImplementedException(); - } - - - /// - /// Returns an expression formatted as a currency value using the currency symbol defined in the system control panel. - /// - /// Required. Expression to be formatted. - /// Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is –1, which indicates that the computer's regional settings are used. - /// Optional. Tristate enumeration that indicates whether or not a leading zero is displayed for fractional values. See Settings for values. - /// Optional. Tristate enumeration that indicates whether or not to place negative values within parentheses. See Settings for values. - /// Optional. Tristate enumeration that indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings. See Settings for values. - [MonoTODO] - public static string FormatCurrency(object Expression, - [Optional] - [DefaultValue(-1)] - int NumDigitsAfterDecimal, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState IncludeLeadingDigit, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState UseParensForNegativeNumbers, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState GroupDigits) - { - //FIXME - throw new NotImplementedException(); - //throws InvalidCastException - //throws ArgumentException - } - - /// - /// Returns an expression formatted as a date or time. - /// - /// Required. Date expression to be formatted. - /// Optional. Numeric value that indicates the date or time format used. If omitted, GeneralDate is used. - [MonoTODO] - public static string FormatDateTime(DateTime Expression, - [Optional] - [DefaultValue(DateFormat.GeneralDate)] - DateFormat NamedFormat) - { - switch(NamedFormat) - { - case DateFormat.GeneralDate: - //FIXME: WTF should I do with it? - throw new NotImplementedException(); - case DateFormat.LongDate: - return Expression.ToLongDateString(); - case DateFormat.ShortDate: - return Expression.ToShortDateString(); - case DateFormat.LongTime: - return Expression.ToLongTimeString(); - case DateFormat.ShortTime: - return Expression.ToShortTimeString(); - default: - throw new ArgumentException("Argument 'NamedFormat' must be a member of DateFormat", "NamedFormat"); - } - } - - /// - /// Returns an expression formatted as a number. - /// - /// Required. Expression to be formatted. - /// Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is –1, which indicates that the computer's regional settings are used. - /// Optional. Tristate enumeration that indicates whether or not a leading zero is displayed for fractional values. See Settings for values. - /// Optional. Tristate enumeration that indicates whether or not to place negative values within parentheses. See Settings for values. - /// Optional. Tristate enumeration that indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings. See Settings for values. - [MonoTODO] - public static string FormatNumber(object Expression, - [Optional] - [DefaultValue(-1)] - int NumDigitsAfterDecimal, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState IncludeLeadingDigit, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState UseParensForNegativeNumbers, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState GroupDigits) - { - //FIXME - throw new NotImplementedException(); - //throws InvalidCastException - } - - /// - /// Returns an expression formatted as a percentage (that is, multiplied by 100) with a trailing % character. - /// - /// Required. Expression to be formatted. - /// Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is –1, which indicates that the computer's regional settings are used. - /// Optional. Tristate enumeration that indicates whether or not a leading zero is displayed for fractional values. See Settings for values. - /// Optional. Tristate enumeration that indicates whether or not to place negative values within parentheses. See Settings for values. - /// Optional. Tristate enumeration that indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings. See Settings for values. - [MonoTODO] - public static string FormatPercent(object Expression, - [Optional] - [DefaultValue(-1)] - int NumDigitsAfterDecimal, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState IncludeLeadingDigit, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState UseParensForNegativeNumbers, - [Optional] - [DefaultValue(TriState.UseDefault)] - TriState GroupDigits) - { - //FIXME - throw new NotImplementedException(); - //throws InvalidCastException - } - - /// - /// Returns a Char value representing the character from the specified index in the supplied string. - /// - /// Required. Any valid String expression. - /// Required. Integer expression. The (1-based) index of the character in Str to be returned. - [MonoTODO("Needs testing")] - public static char GetChar(string Str, - int Index) - { - - if ((Str == null) || (Str.Length == 0)) - throw new ArgumentException("Length of argument 'Str' must be greater than zero.", "Sre"); - if (Index < 1) - throw new ArgumentException("Argument 'Index' must be greater than or equal to 1.", "Index"); - if (Index > Str.Length) - throw new ArgumentException("Argument 'Index' must be less than or equal to the length of argument 'String'.", "Index"); - - return Str.ToCharArray(Index -1, 1)[0]; - } - - - /// - /// Returns an integer specifying the start position of the first occurrence of one string within another. - /// - /// Required. Numeric expression that sets the starting position for each search. If omitted, search begins at the first character position. The start index is 1 based. - /// Required. String expression being searched. - /// Required. String expression sought. - /// Optional. Specifies the type of string comparison. If Compare is omitted, the Option Compare setting determines the type of comparison. Specify a valid LCID (LocaleID) to use locale-specific rules in the comparison. - [MonoTODO("Needs testing")] - public static int InStr(int Start, - string String1, - string String2, - [OptionCompare] - [Optional] - [DefaultValue(CompareMethod.Binary)] - CompareMethod Compare) - { - if (Start < 1) - throw new ArgumentException("Argument 'Start' must be non-negative.", "Start"); - - /* - * FIXME: ms-help://MS.VSCC/MS.MSDNVS/vblr7/html/vafctinstr.htm - * If Compare is omitted, the Option Compare setting determines the type of comparison. Specify - * a valid LCID (LocaleID) to use locale-specific rules in the comparison. - * How do I do this? - */ - - /* - * If InStr returns - * - * String1 is zero length or Nothing 0 - * String2 is zero length or Nothing start - * String2 is not found 0 - * String2 is found within String1 Position where match begins - * Start > String2 0 - */ - - //FIXME: someone with a non US setup should test this. - - switch (Compare) - { - case CompareMethod.Text: - return System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(String2, String1, Start - 1) + 1; - - case CompareMethod.Binary: - return String2.IndexOf(String1, Start - 1) + 1; - default: - throw new System.ArgumentException("Argument 'Compare' must be CompareMethod.Binary or CompareMethod.Text.", "Compare"); - } - - - } - - /// - /// Returns the position of the first occurrence of one string within another, starting from the right side of the string. - /// - /// Required. String expression being searched. - /// Required. String expression being searched for. - /// Optional. Numeric expression that sets the one-based starting position for each search, starting from the left side of the string. If Start is omitted, –1 is used, which means that the search begins at the last character position. Search then proceeds from right to left. - /// Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. If omitted, a binary comparison is performed. See Settings for values. - [MonoTODO] - public static int InStrRev(string StringCheck, - string StringMatch, - string String2, - [Optional] - [DefaultValue(-1)] - int Start, - [OptionCompare] - [Optional] - [DefaultValue(CompareMethod.Binary)] - CompareMethod Compare) - { - if ((Start == 0) || (Start < -1)) - throw new ArgumentException("Argument 'Start' must be greater than 0 or equal to -1", "Start"); - - //FIXME: Use LastIndexOf() - throw new NotImplementedException(); - } - - /// - /// Returns a string created by joining a number of substrings contained in an array. - /// - /// Required. One-dimensional array containing substrings to be joined. - /// Optional. String used to separate the substrings in the returned string. If omitted, the space character (" ") is used. If Delimiter is a zero-length string (""), all items in the list are concatenated with no delimiters. - [MonoTODO("Needs testing")] - public static string Join(string[] SourceArray, - [Optional] - [DefaultValue(" ")] - string Delimiter) - { - if (SourceArray == null) - throw new ArgumentException("Argument 'SourceArray' can not be null.", "SourceArray"); - if (SourceArray.Rank > 1) - throw new ArgumentException("Argument 'SourceArray' can have only one dimension.", "SourceArray"); - - return string.Join(Delimiter, SourceArray); - } - /// - /// Returns a string created by joining a number of substrings contained in an array. - /// - /// Required. One-dimensional array containing substrings to be joined. - /// Optional. String used to separate the substrings in the returned string. If omitted, the space character (" ") is used. If Delimiter is a zero-length string (""), all items in the list are concatenated with no delimiters. - [MonoTODO("Needs testing")] - public static string Join(object[] SourceArray, - [Optional] - [DefaultValue(" ")] - string Delimiter) - { - - if (SourceArray == null) - throw new ArgumentException("Argument 'SourceArray' can not be null.", "SourceArray"); - if (SourceArray.Rank > 1) - throw new ArgumentException("Argument 'SourceArray' can have only one dimension.", "SourceArray"); - - string[] dest; - dest = new string[SourceArray.Length]; - - SourceArray.CopyTo(dest, 0); - return string.Join(Delimiter, dest); - } - - /// - /// Returns a string or character converted to lowercase. - /// - /// Required. Any valid String or Char expression. - [MonoTODO("Needs testing")] - public static char LCase(char Value) - { - return char.ToLower(Value); - } - - /// - /// Returns a string or character converted to lowercase. - /// - /// Required. Any valid String or Char expression. - [MonoTODO("Needs testing")] - public static string LCase(string Value) - { - if ((Value == null) || (Value.Length == 0)) - return String.Empty; // VB.net does this. - - return Value.ToLower(); - } - - - /// - /// Returns a string containing a specified number of characters from the left side of a string. - /// - /// Required. String expression from which the leftmost characters are returned. - /// Required. Integer expression. Numeric expression indicating how many characters to return. If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str, the entire string is returned. - [MonoTODO] - public static string Left(string Str, - int Length) - { - if (Length < 0) - throw new ArgumentException("Argument 'Length' must be non-negative.", "Length"); - if ((Str == null) || (Str.Length == 0)) - return String.Empty; // VB.net does this. - - return Str.Substring(0, Length); - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(bool Expression) - { - return 2; //sizeof(bool) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(byte Expression) - { - return 1; //sizeof(byte) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(char Expression) - { - return 2; //sizeof(char) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(double Expression) - { - return 8; //sizeof(double) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(int Expression) - { - return 4; //sizeof(int) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(long Expression) - { - return 8; //sizeof(long) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO] - public static int Len(object Expression) - { - // FIXME: - // With user-defined types and Object variables, the Len function returns the size as it will - // be written to the file. If an Object contains a String, it will return the length of the string. - // If an Object contains any other type, it will return the size of the object as it will be written - // to the file. - throw new NotImplementedException(); - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(short Expression) - { - return 2; //sizeof(short) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(Single Expression) - { - return 4; //sizeof(Single) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(string Expression) - { - return Expression.Length; //length of the string - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(DateTime Expression) - { - return 8; //sizeof(DateTime) - } - - /// - /// Returns an integer containing either the number of characters in a string or the number of bytes required to store a variable. - /// - /// Any valid String expression or variable name. If Expression is of type Object, the Len function returns the size as it will be written to the file. - [MonoTODO("Needs testing")] - public static int Len(decimal Expression) - { - return 16; //sizeof(decimal) - } - - /// - /// Returns a left-aligned string containing the specified string adjusted to the specified length. - /// - /// Required. String expression. Name of string variable. - /// Required. Integer expression. Length of returned string. - [MonoTODO("Needs testing")] - public static string LSet(string Source, - int Length) - { - if (Length < 0) - throw new ArgumentOutOfRangeException("Length", "Length must be must be non-negative."); - if (Source == null) - Source = String.Empty; - - return Source.PadRight(Length); - } - - /// - /// Returns a string containing a copy of a specified string with no leading spaces. - /// - /// Required. Any valid String expression. - [MonoTODO("Needs testing")] - public static string LTrim(string Str) - { - if ((Str == null) || (Str.Length == 0)) - return String.Empty; // VB.net does this. - - Str.TrimStart(null); - return Str; - } - - /// - /// Returns a string containing a copy of a specified string with no trailing spaces. - /// - /// Required. Any valid String expression. - [MonoTODO("Needs testing")] - public static string RTrim(string Str) - { - if ((Str == null) || (Str.Length == 0)) - return String.Empty; // VB.net does this. - - Str.TrimEnd(null); - return Str; - } - - /// - /// Returns a string containing a copy of a specified string with no leading or trailing spaces. - /// - /// Required. Any valid String expression. - [MonoTODO("Needs testing")] - public static string Trim(string Str) - { - if ((Str == null) || (Str.Length == 0)) - return String.Empty; // VB.net does this. - - Str.Trim(); - return Str; - } - - /// - /// Returns a string containing a specified number of characters from a string. - /// - /// Required. String expression from which characters are returned. - /// Required. Integer expression. Character position in Str at which the part to be taken starts. If Start is greater than the number of characters in Str, the Mid function returns a zero-length string (""). Start is one based. - /// Required Integer expression. Number of characters to return. If there are fewer than Length characters in the text (including the character at position Start), all characters from the start position to the end of the string are returned. - [MonoTODO("Verify if this is the correct behaviour for Length==0...[Rafael]")] - public static string Mid(string Str, - int Start, - int Length) - { - - if (Length < 0) - throw new System.ArgumentException("Argument 'Length' must be greater or equal to zero.", "Length"); - if (Start <= 0) - throw new System.ArgumentException("Argument 'Start' must be greater than zero.", "Start"); - if ((Str == null) || (Str.Length == 0)) - return String.Empty; // VB.net does this. - - if ((Length == 0) || (Start > Str.Length)) - return String.Empty; - - if (Length > (Str.Length - Start)) - Length = (Str.Length - Start) + 1; - - return Str.Substring(Start - 1, Length); - - } - - /// - /// Returns a string containing all characters from a string beyond an start point. - /// - /// Required. String expression from which characters are returned. - /// Required. Integer expression. Character position in Str at which the part to be taken starts. If Start is greater than the number of characters in Str, the Mid function returns a zero-length string (""). Start is one based. - [MonoTODO("Needs testing")] - public static string Mid (string Str, int Start) - { - if (Start <= 0) - throw new System.ArgumentException("Argument 'Start' must be greater than zero.", "Start"); - if ((Str == null) || (Str.Length == 0)) - return String.Empty; // VB.net does this. - - if (Start > Str.Length) - return String.Empty; - - return Str.Substring(Start - 1); - } - - /// - /// Returns a string in which a specified substring has been replaced with another substring a specified number of times. - /// - /// Required. String expression containing substring to replace. - /// Required. Substring being searched for. - /// Required. Replacement substring. - /// Optional. Position within Expression where substring search is to begin. If omitted, 1 is assumed. - /// Optional. Number of substring substitutions to perform. If omitted, the default value is –1, which means make all possible substitutions. - /// Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. See Settings for values. - [MonoTODO("Needs testing")] - public static string Replace(string Expression, - string Find, - string Replacement, - [Optional] - [DefaultValue(1)] - int Start, - [Optional] - [DefaultValue(-1)] - int Count, - [OptionCompare] - [Optional] - [DefaultValue(CompareMethod.Binary)] - CompareMethod Compare) - { - - if (Count < -1) - throw new ArgumentException("Argument 'Count' must be greater than or equal to -1.", "Count"); - if (Start <= 0) - throw new ArgumentException("Argument 'Start' must be greater than zero.", "Start"); - - if ((Expression == null) || (Expression.Length == 0)) - return String.Empty; // VB.net does this. - if ((Find == null) || (Find.Length == 0)) - return Expression; // VB.net does this. - if (Replacement == null) - Replacement = String.Empty; // VB.net does this. - - return Expression.Replace(Find, Replacement); - } - - /// - /// Returns a string containing a specified number of characters from the right side of a string. - /// - /// Required. String expression from which the rightmost characters are returned. - /// Required. Integer. Numeric expression indicating how many characters to return. If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str, the entire string is returned. - [MonoTODO("Needs testing")] - public static string Right(string Str, - int Length) - { - if (Length < 0) - throw new ArgumentException("Argument 'Length' must be greater or equal to zero.", "Length"); - - //FIXME - throw new NotImplementedException(); - } - - /// - /// Returns a right-aligned string containing the specified string adjusted to the specified length. - /// - /// Required. String expression. Name of string variable. - /// Required. Integer expression. Length of returned string. - [MonoTODO("Needs testing")] - public static string RSet(string Source, - int Length) - { - - if (Source == null) - Source = String.Empty; - if (Length < 0) - throw new ArgumentOutOfRangeException("Length", "Length must be non-negative."); - - return Source.PadLeft(Length); - } - - /// - /// Returns a string consisting of the specified number of spaces. - /// - /// Required. Integer expression. The number of spaces you want in the string. - [MonoTODO("Needs testing")] - public static string Space(int Number) - { - if (Number < 0) - throw new ArgumentException("Argument 'Number' must be greater or equal to zero.", "Number"); - - return new string((char) ' ', Number); - } - - /// - /// Returns a zero-based, one-dimensional array containing a specified number of substrings. - /// - /// Required. String expression containing substrings and delimiters. If Expression is a zero-length string (""), the Split function returns an array with no elements and no data. - /// Optional. Single character used to identify substring limits. If Delimiter is omitted, the space character (" ") is assumed to be the delimiter. If Delimiter is a zero-length string, a single-element array containing the entire Expression string is returned. - /// Optional. Number of substrings to be returned; the default, –1, indicates that all substrings are returned. - /// Optional. Numeric value indicating the comparison to use when evaluating substrings. See Settings for values. - [MonoTODO] - public static string[] Split(string Expression, - [Optional] - [DefaultValue(" ")] - string Delimiter, - [Optional] - [DefaultValue(-1)] - int Limit, - [OptionCompare] - [Optional] - [DefaultValue(CompareMethod.Binary)] - CompareMethod Compare) - { - - - if (Expression == null) - return new string[0]; - if ((Delimiter == null) || (Delimiter.Length == 0)) - { - string [] ret = new string[0]; - ret[0] = Expression; - return ret; - } - if (Limit == 0) - Limit = 1; // VB.net does this. I call it a bug. - - /* - * FIXME: VB.net does NOT do this. It simply fails with AritmethicException. - * What should I do? - */ - if (Limit < -1) - throw new ArgumentOutOfRangeException("Limit", "Argument 'Limit' must be -1 or greater than zero."); - - switch (Compare) - { - case CompareMethod.Binary: - return Expression.Split(Delimiter.ToCharArray(0, 1), Limit); - case CompareMethod.Text: - //FIXME - throw new NotImplementedException(); - default: - throw new System.ArgumentException("Argument 'Compare' must be CompareMethod.Binary or CompareMethod.Text.", "Compare"); - } - - - } - - /// - /// Returns -1, 0, or 1, based on the result of a string comparison. - /// - /// Required. Any valid String expression. - /// Required. Any valid String expression. - /// Optional. Specifies the type of string comparison. If compare is omitted, the Option Compare setting determines the type of comparison. - [MonoTODO("Needs testing")] - public static int StrComp(string String1, - string String2, - [OptionCompare] - [Optional] - [DefaultValue(CompareMethod.Binary)] - CompareMethod Compare) - { - - switch (Compare) - { - case CompareMethod.Binary: - return string.Compare(String1, String2, true); - case CompareMethod.Text: - //FIXME: someone with a non US setup should test this. - return System.Globalization.CultureInfo.CurrentCulture.CompareInfo.Compare(String1, String2); - default: - throw new System.ArgumentException("Argument 'Compare' must be CompareMethod.Binary or CompareMethod.Text", "Compare"); - } - - } - - /// - /// Returns a string converted as specified. - /// - /// Required. String expression to be converted. - /// Required. VbStrConv member. The enumeration value specifying the type of conversion to perform. - /// Optional. The LocaleID value, if different from the system LocaleID value. (The system LocaleID value is the default.) - [MonoTODO("Not impemented")] - public static string StrConv (string str, - VbStrConv Conversion, - [Optional] - [DefaultValue(0)] - int LocaleID) - { - //FIXME - throw new NotImplementedException(); - //throws ArgumentException - } - - /// - /// Returns a string or object consisting of the specified character repeated the specified number of times. - /// - /// Required. Integer expression. The length to the string to be returned. - /// Required. Any valid Char, String, or Object expression. Only the first character of the expression will be used. If Character is of type Object, it must contain either a Char or a String value. - [MonoTODO("Needs testing")] - public static string StrDup(int Number, - char Character) - { - if (Number < 0) - throw new ArgumentException("Argument 'Number' must be non-negative.", "Number"); - - return new string(Character, Number); - } - /// - /// Returns a string or object consisting of the specified character repeated the specified number of times. - /// - /// Required. Integer expression. The length to the string to be returned. - /// Required. Any valid Char, String, or Object expression. Only the first character of the expression will be used. If Character is of type Object, it must contain either a Char or a String value. - [MonoTODO("Needs testing")] - public static string StrDup(int Number, - string Character) - { - if (Number < 0) - throw new ArgumentException("Argument 'Number' must be greater or equal to zero.", "Number"); - if ((Character == null) || (Character.Length == 0)) - throw new ArgumentNullException("Character", "Length of argument 'Character' must be greater than zero."); - - return new string(Character.ToCharArray()[0], Number); - } - - /// - /// Returns a string or object consisting of the specified character repeated the specified number of times. - /// - /// Required. Integer expression. The length to the string to be returned. - /// Required. Any valid Char, String, or Object expression. Only the first character of the expression will be used. If Character is of type Object, it must contain either a Char or a String value. - [MonoTODO("Needs testing")] - public static object StrDup(int Number, - object Character) - { - if (Number < 0) - throw new ArgumentException("Argument 'Number' must be non-negative.", "Number"); - - if (Character is string) - { - string sCharacter = (string) Character; - if ((sCharacter == null) || (sCharacter.Length == 0)) - throw new ArgumentNullException("Character", "Length of argument 'Character' must be greater than zero."); - - return StrDup(Number, sCharacter); - } - else - { - if (Character is char) - { - return StrDup(Number, (char) Character); - } - else - { - // "If Character is of type Object, it must contain either a Char or a String value." - throw new ArgumentException("Argument 'Character' is not a valid value.", "Character"); - } - } - } - - /// - /// Returns a string in which the character order of a specified string is reversed. - /// - /// Required. String expression whose characters are to be reversed. If Expression is a zero-length string (""), a zero-length string is returned. - public static string StrReverse(string Expression) - { - - if (Expression == null) - return String.Empty; // "If Expression is a zero-length string (""), a zero-length string is returned." - - int count = Expression.Length; - - if (count == 0) - return String.Empty; // "If Expression is a zero-length string (""), a zero-length string is returned." - - /* - * This would be much faster if I had access to the internal array. - * I'd just reverse the array. Maybe as strings are inmutable in .net (is this true in Mono?) - * it'll be the same. Comments? - */ - char[] chars = new char[count - 1]; - chars = Expression.ToCharArray(); - - System.Array.Reverse (chars); - - return new string(chars); - - } - - /// - /// Returns a string or character containing the specified string converted to uppercase. - /// - /// Required. Any valid String or Char expression. - public static char UCase(char Value) - { - return char.ToUpper(Value); - } - - /// - /// Returns a string or character containing the specified string converted to uppercase. - /// - /// Required. Any valid String or Char expression. - public static string UCase(string Value) - { - if ((Value == null) || (Value.Length == 0)) - return String.Empty; // VB.net does this. - - return Value.ToUpper(); - } - - - - } - -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TODOAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TODOAttribute.cs deleted file mode 100644 index a38969af21204..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TODOAttribute.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -using System; - -namespace Microsoft.VisualBasic { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All, AllowMultiple=true)] - public class MonoTODOAttribute : Attribute { - - private string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - - public string Comment - { - get { return comment; } - } - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TabInfo.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TabInfo.cs deleted file mode 100644 index d14dd2f0b0342..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TabInfo.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -// TabInfo.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -using System.Runtime.InteropServices; -using System.ComponentModel; - -namespace Microsoft.VisualBasic { - [EditorBrowsable(EditorBrowsableState.Never)] - [MonoTODO] - public struct TabInfo { - // Declarations - public System.Int16 Column; - // Constructors - // Properties - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TriState.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TriState.cs deleted file mode 100644 index 9773ea3552ec6..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TriState.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// TriState.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - /// - /// When you call number-formatting functions, you can use the following enumeration - /// members in your code in place of the actual values. - /// - public enum TriState : int { - False = 0, - UseDefault = -2, - True = -1 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedArrayAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedArrayAttribute.cs deleted file mode 100644 index dbc879b4e2eff..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedArrayAttribute.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -// VBFixedArrayAttribute.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic -{ - [System.AttributeUsageAttribute(System.AttributeTargets.Field)] - sealed public class VBFixedArrayAttribute : System.Attribute { - // Declarations - // Constructors - [MonoTODO] - VBFixedArrayAttribute(System.Int32 UpperBound1) { throw new NotImplementedException (); } - [MonoTODO] - VBFixedArrayAttribute(System.Int32 UpperBound1, System.Int32 UpperBound2) { throw new NotImplementedException (); } - // Properties - [MonoTODO] - public System.Int32 Length { get { throw new NotImplementedException (); } } - [MonoTODO] - public System.Int32[] Bounds { get { throw new NotImplementedException (); } } - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedStringAttribute.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedStringAttribute.cs deleted file mode 100644 index c4de1009ebdee..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedStringAttribute.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// VBFixedStringAttribute.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic -{ - [System.AttributeUsageAttribute(System.AttributeTargets.Field)] - sealed public class VBFixedStringAttribute : System.Attribute { - // Declarations - // Constructors - [MonoTODO] - VBFixedStringAttribute(System.Int32 Length) { throw new NotImplementedException (); } - // Properties - [MonoTODO] - public System.Int32 Length { get { throw new NotImplementedException (); } } - // Methods - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBMath.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBMath.cs deleted file mode 100644 index 49be95781b92d..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBMath.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -// VBMath.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// - -using System; - -namespace Microsoft.VisualBasic { - [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] - sealed public class VBMath { - // Declarations - // Constructors - // Properties - // Methods - [MonoTODO] - public static System.Single Rnd () { throw new NotImplementedException (); } - [MonoTODO] - public static System.Single Rnd (System.Single Number) { throw new NotImplementedException (); } - [MonoTODO] - public static void Randomize () { throw new NotImplementedException (); } - [MonoTODO] - public static void Randomize (System.Double Number) { throw new NotImplementedException (); } - // Events - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VariantType.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VariantType.cs deleted file mode 100644 index 7eab4e4c86a5c..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VariantType.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// VariantType.cs -// -// Author: -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Chris J Breisch -// -namespace Microsoft.VisualBasic { - public enum VariantType : int { - Empty = 0, - Null = 1, - Short = 2, - Integer = 3, - Single = 4, - Double = 5, - Currency = 6, - Date = 7, - String = 8, - Object = 9, - Error = 10, - Boolean = 11, - Variant = 12, - DataObject = 13, - Decimal = 14, - Byte = 17, - Char = 18, - Long = 20, - UserDefinedType = 36, - Array = 8192 - }; -} diff --git a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VbStrConv.cs b/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VbStrConv.cs deleted file mode 100644 index a61d2db79da76..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VbStrConv.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// VbStrConv.cs -// -// Authors: -// Martin Adoue (martin@cwanet.com) -// Chris J Breisch (cjbreisch@altavista.net) -// -// (C) 2002 Ximian Inc. -// - -using System; - -namespace Microsoft.VisualBasic -{ - /// - /// When you call the StrConv function, you can use the following enumeration - /// members in your code in place of the actual values. - /// - [System.FlagsAttribute] - public enum VbStrConv : int { - /// - /// Performs no conversion - /// - None = 0, - /// - /// Uses linguistic rules for casing, rather than File System (default). Valid with UpperCase and LowerCase only. - /// - LinguisticCasing = 1024, - /// - /// Converts the string to uppercase characters. - /// - UpperCase = 1, - /// - /// Converts the string to lowercase characters. - /// - LowerCase = 2, - /// - /// Converts the first letter of every word in string to uppercase. - /// - ProperCase = 3, - /// - /// Converts narrow (half-width) characters in the string to wide (full-width) characters. (Applies to Asian locales.) - /// - Wide = 4, //* - /// - /// Converts wide (full-width) characters in the string to narrow (half-width) characters. (Applies to Asian locales.) - /// - Narrow = 8, //* - /// - /// Converts Hiragana characters in the string to Katakana characters. (Applies to Japan only.) - /// - Katakana = 16, //** - /// - /// Converts Katakana characters in the string to Hiragana characters. (Applies to Japan only.) - /// - Hiragana = 32, //** - /// - /// Converts Traditional Chinese characters to Simplified Chinese. (Applies to Asian locales.) - /// - SimplifiedChinese =256, //* - /// - /// Converts Simplified Chinese characters to Traditional Chinese. (Applies to Asian locales.) - /// - TraditionalChinese = 512 //* - /* - - * Applies to Asian locales. - ** Applies to Japan only. - - */ - } - -} diff --git a/mcs/class/Microsoft.VisualBasic/Test/.cvsignore b/mcs/class/Microsoft.VisualBasic/Test/.cvsignore deleted file mode 100644 index 6a7461313bbfe..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Test/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -*.dll diff --git a/mcs/class/Microsoft.VisualBasic/Test/AllTests.cs b/mcs/class/Microsoft.VisualBasic/Test/AllTests.cs deleted file mode 100644 index ba8e35d1604c0..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Test/AllTests.cs +++ /dev/null @@ -1,33 +0,0 @@ -// MonoTests.AllTests, Microsoft.VisualBasic.dll -// -// Author: -// Mario Martinez (mariom925@home.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -using NUnit.Framework; - -namespace MonoTests -{ - /// - /// Combines all unit tests for the Microsoft.VisualBasic.dll assembly - /// into one test suite. - /// - public class AllTests : TestCase - { - public AllTests(string name) : base(name) {} - public AllTests() : base("Microsoft.VisualBasic.AllTests") {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite(); - suite.AddTest (Microsoft.VisualBasic.CollectionTest.Suite); - suite.AddTest (Microsoft.VisualBasic.ConversionTest.Suite); - suite.AddTest (Microsoft.VisualBasic.DateAndTimeTest.Suite); - - return suite; - } - } - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Test/CollectionTest.cs b/mcs/class/Microsoft.VisualBasic/Test/CollectionTest.cs deleted file mode 100644 index 457bc821b7547..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Test/CollectionTest.cs +++ /dev/null @@ -1,535 +0,0 @@ -// Collection.cs - NUnit Test Cases for Microsoft.VisualBasic.Collection -// -// Author: -// Chris J. Breisch (cjbreisch@altavista.net) -// -// (C) Chris J. Breisch -// - -using NUnit.Framework; -using System; -using Microsoft.VisualBasic; -using System.Collections; - -namespace MonoTests.Microsoft.VisualBasic -{ - - public class CollectionTest : TestCase - { - - public CollectionTest() : base ("Microsoft.VisualBasic.Collection") {} - public CollectionTest(string name) : base(name) {} - - protected override void SetUp() {} - protected override void TearDown() {} - - public static ITest Suite { - get { - return new TestSuite(typeof(CollectionTest)); - } - } - - // Test Constructor - public void TestNew () - { - Collection c; - - c = new Collection(); - - AssertNotNull("#N01", c); - AssertEquals("#N02", 0, c.Count); - } - - // Test Add method with Key == null - public void TestAddNoKey () - { - Collection c; - - c = new Collection(); - - c.Add(typeof(int), null, null, null); - c.Add(typeof(double), null, null, null); - c.Add(typeof(string), null, null, null); - - AssertEquals("#ANK01", 3, c.Count); - - // Collection class is 1-based - AssertEquals("#ANK02", typeof(string), c[3]); - - } - - // Test Add method with Key specified - public void TestAddKey () - { - Collection c; - - c = new Collection(); - - c.Add("Baseball", "Base", null, null); - c.Add("Football", "Foot", null, null); - c.Add("Basketball", "Basket", null, null); - c.Add("Volleyball", "Volley", null, null); - - AssertEquals("#AK01", 4, c.Count); - - // Collection class is 1-based - AssertEquals("#AK02", "Baseball", c[1]); - AssertEquals("#AK03", "Volleyball", c["Volley"]); - - } - - // Test Add method with Before specified and Key == null - public void TestAddBeforeNoKey () - { - Collection c; - - c = new Collection(); - - c.Add(typeof(int), null, null, null); - c.Add(typeof(double), null, 1, null); - c.Add(typeof(string), null, 2, null); - c.Add(typeof(object), null, 2, null); - - AssertEquals("#ABNK01", 4, c.Count); - - // Collection class is 1-based - AssertEquals("#ABNK02", typeof(int), c[4]); - AssertEquals("#ABNK03", typeof(double), c[1]); - AssertEquals("#ABNK04", typeof(object), c[2]); - - } - - // Test Add method with Before and Key - public void TestAddBeforeKey () - { - Collection c; - - c = new Collection(); - - c.Add("Baseball", "Base", null, null); - c.Add("Football", "Foot", 1, null); - c.Add("Basketball", "Basket", 1, null); - c.Add("Volleyball", "Volley", 3, null); - - AssertEquals("#ABK01", 4, c.Count); - AssertEquals("#ABK02", "Basketball", c[1]); - AssertEquals("#ABK03", "Baseball", c[4]); - AssertEquals("#ABK04", "Volleyball", c["Volley"]); - AssertEquals("#ABK05", "Football", c["Foot"]); - - } - - // Test Add method with After specified and Key == null - public void TestAddAfterNoKey () - { - Collection c; - - c = new Collection(); - - c.Add(typeof(int), null, null, 0); - c.Add(typeof(double), null, null, 1); - c.Add(typeof(string), null, null, 1); - c.Add(typeof(object), null, null, 3); - - AssertEquals("#AANK01", 4, c.Count); - - // Collection class is 1-based - AssertEquals("#AANK02", typeof(object), c[4]); - AssertEquals("#AANK03", typeof(int), c[1]); - AssertEquals("#AANK04", typeof(string), c[2]); - - } - - // Test Add method with After and Key - public void TestAddAfterKey () - { - Collection c; - - c = new Collection(); - - c.Add("Baseball", "Base", null, 0); - c.Add("Football", "Foot", null, 1); - c.Add("Basketball", "Basket", null, 1); - c.Add("Volleyball", "Volley", null, 2); - - AssertEquals("#AAK01", 4, c.Count); - - // Collection class is 1-based - AssertEquals("#AAK02", "Baseball", c[1]); - AssertEquals("#AAK03", "Football", c[4]); - AssertEquals("#AAK04", "Basketball", c["Basket"]); - AssertEquals("#AAK05", "Volleyball", c["Volley"]); - } - - // Test GetEnumerator method - public void TestGetEnumerator () - { - Collection c; - IEnumerator e; - object[] o = new object[4] {typeof(int), - typeof(double), typeof(string), typeof(object)}; - int i = 0; - - c = new Collection(); - - c.Add(typeof(int), null, null, null); - c.Add(typeof(double), null, null, null); - c.Add(typeof(string), null, null, null); - c.Add(typeof(object), null, null, null); - - e = c.GetEnumerator(); - - AssertNotNull("#GE01", e); - - while (e.MoveNext()) { - AssertEquals("#GE02." + i.ToString(), o[i], e.Current); - i++; - } - - e.Reset(); - e.MoveNext(); - - AssertEquals("#GE03", o[0], e.Current); - - } - - // Test GetEnumerator method again, this time using foreach - public void Testforeach () - { - Collection c; - object[] o = new object[4] {typeof(int), - typeof(double), typeof(string), typeof(object)}; - int i = 0; - - c = new Collection(); - - c.Add(typeof(int), null, null, null); - c.Add(typeof(double), null, null, null); - c.Add(typeof(string), null, null, null); - c.Add(typeof(object), null, null, null); - - - foreach (object item in c) { - AssertEquals("#fe01." + i.ToString(), o[i], item); - i++; - } - - } - - // Test Remove method with Index - public void TestRemoveNoKey () - { - Collection c; - - c = new Collection(); - - c.Add(typeof(int), null, null, null); - c.Add(typeof(double), null, null, null); - c.Add(typeof(string), null, null, null); - c.Add(typeof(object), null, null, null); - - AssertEquals("#RNK01", 4, c.Count); - - c.Remove(3); - - AssertEquals("#RNK02", 3, c.Count); - - // Collection class is 1-based - AssertEquals("#RNK03", typeof(object), c[3]); - - c.Remove(1); - - AssertEquals("#RNK04", 2, c.Count); - AssertEquals("#RNK05", typeof(double), c[1]); - AssertEquals("#RNK06", typeof(object), c[2]); - - c.Remove(2); - - AssertEquals("#RNK07", 1, c.Count); - AssertEquals("#RNK08", typeof(double), c[1]); - - c.Remove(1); - - AssertEquals("#RNK09", 0, c.Count); - - } - - // Test Remove method with Key - public void TestRemoveKey () - { - Collection c; - - c = new Collection(); - - c.Add("Baseball", "Base", null, null); - c.Add("Football", "Foot", null, null); - c.Add("Basketball", "Basket", null, null); - c.Add("Volleyball", "Volley", null, null); - - AssertEquals("#RK01", 4, c.Count); - - c.Remove("Foot"); - - AssertEquals("#RK02", 3, c.Count); - AssertEquals("#RK03", "Basketball", c["Basket"]); - - // Collection class is 1-based - AssertEquals("#RK04", "Volleyball", c[3]); - - c.Remove("Base"); - - AssertEquals("#RK05", 2, c.Count); - AssertEquals("#RK06", "Basketball", c[1]); - AssertEquals("#RK07", "Volleyball", c["Volley"]); - - c.Remove(2); - - AssertEquals("#RK08", 1, c.Count); - AssertEquals("#RK09", "Basketball", c[1]); - AssertEquals("#RK10", "Basketball", c["Basket"]); - - c.Remove(1); - - AssertEquals("#RK11", 0, c.Count); - } - - // Test all the Exceptions we're supposed to throw - public void TestException () - { - Collection c; - bool caughtException = false; - - c = new Collection(); - - try { - // nothing in Collection yet - object o = c[0]; - } - catch (Exception e) { - AssertEquals("#E01", typeof(IndexOutOfRangeException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E02", true, caughtException); - - c.Add("Baseball", "Base", null, null); - c.Add("Football", "Foot", null, null); - c.Add("Basketball", "Basket", null, null); - c.Add("Volleyball", "Volley", null, null); - - caughtException = false; - - try { - // only 4 elements - object o = c[5]; - } - catch (Exception e) { - AssertEquals("#E03", typeof(IndexOutOfRangeException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E04", true, caughtException); - - caughtException = false; - - try { - // Collection class is 1-based - object o = c[0]; - } - catch (Exception e) { - AssertEquals("#E05", typeof(IndexOutOfRangeException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E06", true, caughtException); - - caughtException = false; - - try { - // no member with Key == "Kick" - object o = c["Kick"]; - } - catch (Exception e) { - // FIXME - // VB Language Reference says IndexOutOfRangeException - // here, but MS throws ArgumentException - // AssertEquals("#E07", typeof(IndexOutOfRangeException), e.GetType()); - AssertEquals("#E07", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E08", true, caughtException); - - caughtException = false; - - try { - // Even though Indexer is an object, really it's a string - object o = c[typeof(int)]; - } - catch (Exception e) { - AssertEquals("#E09", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E10", true, caughtException); - - caughtException = false; - - try { - // can't specify both Before and After - c.Add("Kickball", "Kick", "Volley", "Foot"); - } - catch (Exception e) { - AssertEquals("#E11", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E12", true, caughtException); - - caughtException = false; - - try { - // Key "Foot" already exists - c.Add("Kickball", "Foot", null, null); - } - catch (Exception e) { - AssertEquals("#E13", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E14", true, caughtException); - - caughtException = false; - - try { - // Even though Before is object, it's really a string - c.Add("Dodgeball", "Dodge", typeof(int), null); - } - catch (Exception e) { - AssertEquals("#E15", typeof(InvalidCastException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E16", true, caughtException); - - caughtException = false; - - try { - // Even though After is object, it's really a string - c.Add("Wallyball", "Wally", null, typeof(int)); - } - catch (Exception e) { - AssertEquals("#E17", typeof(InvalidCastException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E18", true, caughtException); - - caughtException = false; - - try { - // have to pass a legitimate value to remove - c.Remove(null); - } - catch (Exception e) { - AssertEquals("#E19", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E20", true, caughtException); - - caughtException = false; - - try { - // no Key "Golf" exists - c.Remove("Golf"); - } - catch (Exception e) { - AssertEquals("#E21", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E22", true, caughtException); - - caughtException = false; - - try { - // no Index 10 exists - c.Remove(10); - } - catch (Exception e) { - AssertEquals("#E23", typeof(IndexOutOfRangeException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E24", true, caughtException); - - caughtException = false; - - try { - IEnumerator e = c.GetEnumerator(); - - // Must MoveNext before Current - object item = e.Current; - } - catch (Exception e) { - // FIXME - // On-line help says InvalidOperationException here, - // but MS throws IndexOutOfRangeException - // AssertEquals("#E25", typeof(InvalidOperationException), e.GetType()); - AssertEquals("#E25", typeof(IndexOutOfRangeException), e.GetType()); - caughtException = true; - } - - AssertEquals("#E26", true, caughtException); - - caughtException = false; - - try { - IEnumerator e = c.GetEnumerator(); - e.MoveNext(); - - c.Add("Paintball", "Paint", null, null); - - // Can't MoveNext if Collection has been modified - e.MoveNext(); - } - catch (Exception e) { - // FIXME - // On-line help says this should throw an error. MS doesn't. - AssertEquals("#E27", typeof(InvalidOperationException), e.GetType()); - caughtException = true; - } - - // FIXME - // What to do about this? MS doesn't throw an error - // AssertEquals("#E28", true, caughtException); - AssertEquals("#E28", false, caughtException); - - caughtException = false; - - try { - IEnumerator e = c.GetEnumerator(); - e.MoveNext(); - - c.Add("Racketball", "Racket", null, null); - - // Can't Reset if Collection has been modified - e.Reset(); - } - catch (Exception e) { - // FIXME - // On-line help says this should throw an error. MS doesn't. - AssertEquals("#E29", typeof(InvalidOperationException), e.GetType()); - caughtException = true; - } - - // FIXME - // What to do about this? MS doesn't throw an error - // AssertEquals("#E30", true, caughtException); - AssertEquals("#E30", false, caughtException); - - caughtException = false; - } - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Test/ConversionTest.cs b/mcs/class/Microsoft.VisualBasic/Test/ConversionTest.cs deleted file mode 100644 index 991e6e82f6116..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Test/ConversionTest.cs +++ /dev/null @@ -1,674 +0,0 @@ -// Collection.cs - NUnit Test Cases for Microsoft.VisualBasic.Collection -// -// Author: -// Chris J. Breisch (cjbreisch@altavista.net) -// -// (C) Chris J. Breisch -// - -using NUnit.Framework; -using System; -using Microsoft.VisualBasic; - -namespace MonoTests.Microsoft.VisualBasic -{ - - public class ConversionTest : TestCase - { - - public ConversionTest() : base ("Microsoft.VisualBasic.Conversion") {} - public ConversionTest(string name) : base(name) {} - - protected override void SetUp() {} - protected override void TearDown() {} - - public static ITest Suite { - get { - return new TestSuite(typeof(ConversionTest)); - } - } - - public void TestErrorToStringEmpty() { - // FIXME : Do something here, but write the ErrorToString code first :-) - } - - public void TestErrorToStringNumber() { - // FIXME : Do something here, but write the ErrorToString code first :-) - } - - // Test the Fix function - public void TestFix() { - System.Single Sng; - System.Double Dbl; - System.Decimal Dec; - System.String S; - System.Object O; - - AssertEquals("#F01", System.Int16.MaxValue, Conversion.Fix(System.Int16.MaxValue)); - AssertEquals("#F02", System.Int16.MinValue, Conversion.Fix(System.Int16.MinValue)); - AssertEquals("#F03", System.Int32.MaxValue, Conversion.Fix(System.Int32.MaxValue)); - AssertEquals("#F04", System.Int32.MinValue, Conversion.Fix(System.Int32.MinValue)); - AssertEquals("#F05", System.Int64.MaxValue, Conversion.Fix(System.Int64.MaxValue)); - AssertEquals("#F06", System.Int64.MinValue, Conversion.Fix(System.Int64.MinValue)); - AssertEquals("#F07", (System.Single)Math.Floor(System.Single.MaxValue), Conversion.Fix(System.Single.MaxValue)); - AssertEquals("#F08", -1 * (System.Single)Math.Floor(-1 * System.Single.MinValue), Conversion.Fix(System.Single.MinValue)); - AssertEquals("#F09", Math.Floor(System.Double.MaxValue), Conversion.Fix(System.Double.MaxValue)); - AssertEquals("#F10", -1 * Math.Floor(-1 * System.Double.MinValue), Conversion.Fix(System.Double.MinValue)); - AssertEquals("#F11", Decimal.Floor(System.Decimal.MaxValue), Conversion.Fix(System.Decimal.MaxValue)); - AssertEquals("#F12", -1 * Decimal.Floor(-1 * System.Decimal.MinValue), Conversion.Fix(System.Decimal.MinValue)); - - Sng = 99.1F; - - AssertEquals("#F13", 99F, Conversion.Fix(Sng)); - - Sng = 99.6F; - - AssertEquals("#F14", 99F, Conversion.Fix(Sng)); - - Sng = -99.1F; - - AssertEquals("#F15", -99F, Conversion.Fix(Sng)); - - Sng = -99.6F; - - AssertEquals("#F16", -99F, Conversion.Fix(Sng)); - - Dbl = 99.1; - - AssertEquals("#F17", 99D, Conversion.Fix(Dbl)); - - Dbl = 99.6; - - AssertEquals("#F18", 99D, Conversion.Fix(Dbl)); - - Dbl = -99.1; - - AssertEquals("#F19", -99D, Conversion.Fix(Dbl)); - - Dbl = -99.6; - - AssertEquals("#F20", -99D, Conversion.Fix(Dbl)); - - Dec = 99.1M; - - AssertEquals("#F21", 99M, Conversion.Fix(Dec)); - - Dec = 99.6M; - - AssertEquals("#F22", 99M, Conversion.Fix(Dec)); - - Dec = -99.1M; - - AssertEquals("#F23", -99M, Conversion.Fix(Dec)); - - Dec = -99.6M; - - AssertEquals("#F24", -99M, Conversion.Fix(Dec)); - - Dbl = 99.1; - S = Dbl.ToString(); - - AssertEquals("#F25", 99D, Conversion.Fix(S)); - - Dbl = 99.6; - S = Dbl.ToString(); - - AssertEquals("#F26", 99D, Conversion.Fix(S)); - - Dbl = -99.1; - S = Dbl.ToString(); - - AssertEquals("#F27", -99D, Conversion.Fix(S)); - - Dbl = -99.6; - S = Dbl.ToString(); - - AssertEquals("#F28", -99D, Conversion.Fix(S)); - - Dbl = 99.1; - O = Dbl; - - AssertEquals("#F29", 99D, Conversion.Fix(O)); - - Sng = 99.6F; - O = Sng; - - AssertEquals("#F30", (System.Object)99F, Conversion.Fix(O)); - - Dbl = -99.1; - O = Dbl; - - AssertEquals("#F31", -99D, Conversion.Fix(O)); - - Dec = -99.6M; - O = Dec; - - AssertEquals("#F32", (System.Object)(-99M), Conversion.Fix(O)); - - O = typeof(int); - - // test for Exceptions - bool caughtException = false; - try { - Conversion.Fix(O); - } - catch (Exception e) { - AssertEquals("#F33", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#F34", true, caughtException); - - caughtException = false; - try { - Conversion.Fix(null); - } - catch (Exception e) { - AssertEquals("#F35", typeof(ArgumentNullException), e.GetType()); - caughtException = true; - } - - AssertEquals("#F36", true, caughtException); - - } - - // Test the Int function - public void TestInt() { - System.Single Sng; - System.Double Dbl; - System.Decimal Dec; - System.String S; - System.Object O; - - AssertEquals("#I01", System.Int16.MaxValue, Conversion.Int(System.Int16.MaxValue)); - AssertEquals("#I02", System.Int16.MinValue, Conversion.Int(System.Int16.MinValue)); - AssertEquals("#I03", System.Int32.MaxValue, Conversion.Int(System.Int32.MaxValue)); - AssertEquals("#I04", System.Int32.MinValue, Conversion.Int(System.Int32.MinValue)); - AssertEquals("#I05", System.Int64.MaxValue, Conversion.Int(System.Int64.MaxValue)); - AssertEquals("#I06", System.Int64.MinValue, Conversion.Int(System.Int64.MinValue)); - AssertEquals("#I07", (System.Single)Math.Floor(System.Single.MaxValue), Conversion.Int(System.Single.MaxValue)); - AssertEquals("#I08", (System.Single)Math.Floor(System.Single.MinValue), Conversion.Int(System.Single.MinValue)); - AssertEquals("#I09", Math.Floor(System.Double.MaxValue), Conversion.Int(System.Double.MaxValue)); - AssertEquals("#I10", Math.Floor(System.Double.MinValue), Conversion.Int(System.Double.MinValue)); - AssertEquals("#I11", Decimal.Floor(System.Decimal.MaxValue), Conversion.Int(System.Decimal.MaxValue)); - AssertEquals("#I12", Decimal.Floor(System.Decimal.MinValue), Conversion.Int(System.Decimal.MinValue)); - - Sng = 99.1F; - - AssertEquals("#I13", 99F, Conversion.Int(Sng)); - - Sng = 99.6F; - - AssertEquals("#I14", 99F, Conversion.Int(Sng)); - - Sng = -99.1F; - - AssertEquals("#I15", -100F, Conversion.Int(Sng)); - - Sng = -99.6F; - - AssertEquals("#I16", -100F, Conversion.Int(Sng)); - - Dbl = 99.1; - - AssertEquals("#I17", 99D, Conversion.Int(Dbl)); - - Dbl = 99.6; - - AssertEquals("#I18", 99D, Conversion.Int(Dbl)); - - Dbl = -99.1; - - AssertEquals("#I19", -100D, Conversion.Int(Dbl)); - - Dbl = -99.6; - - AssertEquals("#I20", -100D, Conversion.Int(Dbl)); - - Dec = 99.1M; - - AssertEquals("#I21", 99M, Conversion.Int(Dec)); - - Dec = 99.6M; - - AssertEquals("#I22", 99M, Conversion.Int(Dec)); - - Dec = -99.1M; - - AssertEquals("#I23", -100M, Conversion.Int(Dec)); - - Dec = -99.6M; - - AssertEquals("#I24", -100M, Conversion.Int(Dec)); - - Dbl = 99.1; - S = Dbl.ToString(); - - AssertEquals("#I25", 99D, Conversion.Int(S)); - - Dbl = 99.6; - S = Dbl.ToString(); - - AssertEquals("#I26", 99D, Conversion.Int(S)); - - Dbl = -99.1; - S = Dbl.ToString(); - - AssertEquals("#I27", -100D, Conversion.Int(S)); - - Dbl = -99.6; - S = Dbl.ToString(); - - AssertEquals("#I28", -100D, Conversion.Int(S)); - - Dbl = 99.1; - O = Dbl; - - AssertEquals("#I29", 99D, Conversion.Int(O)); - - Sng = 99.6F; - O = Sng; - - AssertEquals("#I30", 99F, Conversion.Int(O)); - - Dbl = -99.1; - O = Dbl; - - AssertEquals("#I31", -100D, Conversion.Int(O)); - - Dec = -99.6M; - O = Dec; - - AssertEquals("#I32", -100M, Conversion.Int(O)); - - // test the exceptions it's supposed to throw - - O = typeof(int); - bool caughtException = false; - - try { - Conversion.Fix(O); - } - catch (Exception e) { - AssertEquals("#I33", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#I34", true, caughtException); - - caughtException = false; - try { - Conversion.Int(null); - } - catch (Exception e) { - AssertEquals("#I35", typeof(ArgumentNullException), e.GetType()); - caughtException = true; - } - - AssertEquals("#I36", true, caughtException); - - - } - - // test the Hex function - public void TestHex() { - AssertEquals("#H01", "FF", Conversion.Hex(System.Byte.MaxValue)); - AssertEquals("#H02", "0", Conversion.Hex(System.Byte.MinValue)); - AssertEquals("#H03", "7FFF", Conversion.Hex(System.Int16.MaxValue)); - AssertEquals("#H04", "8000", Conversion.Hex(System.Int16.MinValue)); - AssertEquals("#H05", "7FFFFFFF", Conversion.Hex(System.Int32.MaxValue)); - AssertEquals("#H06", "80000000", Conversion.Hex(System.Int32.MinValue)); - AssertEquals("#H07", "7FFFFFFFFFFFFFFF", Conversion.Hex(System.Int64.MaxValue)); - AssertEquals("#H08", "8000000000000000", Conversion.Hex(System.Int64.MinValue)); - - System.Byte UI8; - System.Int16 I16; - System.Int32 I32; - System.Int64 I64; - System.Object O; - System.String S; - - UI8 = 15; - AssertEquals("#H09", "F", Conversion.Hex(UI8)); - - I16 = System.Byte.MaxValue; - AssertEquals("#H10", "FF", Conversion.Hex(I16)); - - I16 = (System.Int16)((I16 + 1) * -1); - AssertEquals("#H11", "FF00", Conversion.Hex(I16)); - - I16 = -2; - AssertEquals("#H12", "FFFE", Conversion.Hex(I16)); - - I32 = System.UInt16.MaxValue; - AssertEquals("#H13", "FFFF", Conversion.Hex(I32)); - - I32 = (I32 + 1) * -1; - AssertEquals("#H14", "FFFF0000", Conversion.Hex(I32)); - - I32 = -2; - AssertEquals("#H15", "FFFFFFFE", Conversion.Hex(I32)); - - I64 = System.UInt32.MaxValue; - AssertEquals("#H16", "FFFFFFFF", Conversion.Hex(I64)); - - I64 = (I64 + 1) * -1; - AssertEquals("#H17", "FFFFFFFF00000000", Conversion.Hex(I64)); - - I64 = -2; - AssertEquals("#H18", "FFFFFFFFFFFFFFFE", Conversion.Hex(I64)); - - I16 = System.Byte.MaxValue; - S = I16.ToString(); - AssertEquals("#H19", "FF", Conversion.Hex(S)); - - I16 = (System.Int16)((I16 + 1) * -1); - S = I16.ToString(); - AssertEquals("#H20", "FFFFFF00", Conversion.Hex(S)); - - I16 = -1; - S = I16.ToString(); - AssertEquals("#H21", "FFFFFFFF", Conversion.Hex(S)); - - I32 = System.UInt16.MaxValue; - S = I32.ToString(); - AssertEquals("#H22", "FFFF", Conversion.Hex(S)); - - I32 = (I32 + 1) * -1; - S = I32.ToString(); - AssertEquals("#H23", "FFFF0000", Conversion.Hex(S)); - - I32 = -2; - S = I32.ToString(); - AssertEquals("#H24", "FFFFFFFE", Conversion.Hex(S)); - - I64 = System.UInt32.MaxValue; - S = I64.ToString(); - AssertEquals("#H25", "FFFFFFFF", Conversion.Hex(S)); - - I64 = (I64 + 1) * -1; - S = I64.ToString(); - AssertEquals("#H26", "FFFFFFFF00000000", Conversion.Hex(S)); - - UI8 = System.Byte.MaxValue; - O = UI8; - AssertEquals("#H27", "FF", Conversion.Hex(O)); - - I16 = System.Byte.MaxValue; - O = I16; - AssertEquals("#H28", "FF", Conversion.Hex(O)); - - I16 = (System.Int16)((I16 + 1) * -1); - O = I16; - AssertEquals("#H29", "FF00", Conversion.Hex(O)); - - I16 = -2; - O = I16; - AssertEquals("#H30", "FFFE", Conversion.Hex(O)); - - I32 = System.UInt16.MaxValue; - O = I32; - AssertEquals("#H31", "FFFF", Conversion.Hex(O)); - - I32 = (I32 + 1) * -1; - O = I32; - AssertEquals("#H32", "FFFF0000", Conversion.Hex(O)); - - I32 = -2; - O = I32; - AssertEquals("#H33", "FFFFFFFE", Conversion.Hex(O)); - - I64 = System.UInt32.MaxValue; - O = I64; - AssertEquals("#H34", "FFFFFFFF", Conversion.Hex(O)); - - I64 = (I64 + 1) * -1; - O = I64; - AssertEquals("#H35", "FFFFFFFF00000000", Conversion.Hex(O)); - - I64 = -2; - O = I64; - // FIXME : MS doesn't pass this test - //AssertEquals("#H35", "FFFFFFFFFFFFFFFE", Conversion.Hex(O)); - - O = typeof(int); - - bool caughtException = false; - try { - Conversion.Hex(O); - } - catch (Exception e) { - AssertEquals("#H36", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#H37", true, caughtException); - - caughtException = false; - - try { - Conversion.Hex(null); - } - catch (Exception e) { - AssertEquals("#H38", typeof(ArgumentNullException), e.GetType()); - caughtException = true; - } - - AssertEquals("#H39", true, caughtException); - } - - // test the Oct function - public void TestOct() { - AssertEquals("#O01", "377", Conversion.Oct(System.Byte.MaxValue)); - AssertEquals("#O02", "0", Conversion.Oct(System.Byte.MinValue)); - AssertEquals("#O03", "77777", Conversion.Oct(System.Int16.MaxValue)); - AssertEquals("#O04", "100000", Conversion.Oct(System.Int16.MinValue)); - AssertEquals("#O05", "17777777777", Conversion.Oct(System.Int32.MaxValue)); - AssertEquals("#O06", "20000000000", Conversion.Oct(System.Int32.MinValue)); - AssertEquals("#O07", "777777777777777777777", Conversion.Oct(System.Int64.MaxValue)); - //AssertEquals("#O08", "1000000000000000000000", Conversion.Oct(System.Int64.MinValue)); - - System.Byte UI8; - System.Int16 I16; - System.Int32 I32; - System.Int64 I64; - System.Object O; - System.String S; - - UI8 = 15; - AssertEquals("#O09", "17", Conversion.Oct(UI8)); - - I16 = System.Byte.MaxValue; - AssertEquals("#O10", "377", Conversion.Oct(I16)); - - I16 = (System.Int16)((I16 + 1) * -1); - AssertEquals("#O11", "177400", Conversion.Oct(I16)); - - I16 = -2; - AssertEquals("#O12", "177776", Conversion.Oct(I16)); - - I32 = System.UInt16.MaxValue; - AssertEquals("#O13", "177777", Conversion.Oct(I32)); - - I32 = (I32 + 1) * -1; - AssertEquals("#O14", "37777600000", Conversion.Oct(I32)); - - I32 = -2; - AssertEquals("#O15", "37777777776", Conversion.Oct(I32)); - - I64 = System.UInt32.MaxValue; - AssertEquals("#O16", "37777777777", Conversion.Oct(I64)); - - I64 = (I64 + 1) * -1; - AssertEquals("#O17", "1777777777740000000000", Conversion.Oct(I64)); - - I64 = -2; - AssertEquals("#O18", "1777777777777777777776", Conversion.Oct(I64)); - - I16 = System.Byte.MaxValue; - S = I16.ToString(); - AssertEquals("#O19", "377", Conversion.Oct(S)); - - I16 = (System.Int16)((I16 + 1) * -1); - S = I16.ToString(); - AssertEquals("#O20", "37777777400", Conversion.Oct(S)); - - I16 = -2; - S = I16.ToString(); - AssertEquals("#O21", "37777777776", Conversion.Oct(S)); - - I32 = System.UInt16.MaxValue; - S = I32.ToString(); - AssertEquals("#O22", "177777", Conversion.Oct(S)); - - I32 = (I32 + 1) * -1; - S = I32.ToString(); - AssertEquals("#O23", "37777600000", Conversion.Oct(S)); - - I32 = -2; - S = I32.ToString(); - AssertEquals("#O24", "37777777776", Conversion.Oct(S)); - - I64 = System.UInt32.MaxValue; - S = I64.ToString(); - AssertEquals("#O25", "37777777777", Conversion.Oct(S)); - - I64 = (I64 + 1) * -1; - S = I64.ToString(); - AssertEquals("#O26", "1777777777740000000000", Conversion.Oct(S)); - - UI8 = System.Byte.MaxValue; - O = UI8; - AssertEquals("#O27", "377", Conversion.Oct(O)); - - I16 = System.Byte.MaxValue; - O = I16; - AssertEquals("#O28", "377", Conversion.Oct(O)); - - I16 = (System.Int16)((I16 + 1) * -1); - O = I16; - AssertEquals("#O29", "177400", Conversion.Oct(O)); - - I16 = -2; - O = I16; - AssertEquals("#O29", "177776", Conversion.Oct(O)); - - I32 = System.UInt16.MaxValue; - O = I32; - AssertEquals("#O30", "177777", Conversion.Oct(O)); - - I32 = (I32 + 1) * -1; - O = I32; - AssertEquals("#O31", "37777600000", Conversion.Oct(O)); - - I32 = -2; - O = I32; - AssertEquals("#O32", "37777777776", Conversion.Oct(O)); - - I64 = System.UInt32.MaxValue; - O = I64; - AssertEquals("#O33", "37777777777", Conversion.Oct(O)); - - I64 = (I64 + 1) * -1; - O = I64; - AssertEquals("#O34", "1777777777740000000000", Conversion.Oct(O)); - - I64 = -2; - O = I64; - - // FIXME: MS doesn't pass this test - // AssertEquals("#O35", "1777777777777777777776", Conversion.Oct(O)); - - O = typeof(int); - - bool caughtException = false; - try { - Conversion.Oct(O); - } - catch (Exception e) { - AssertEquals("#O36", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - - AssertEquals("#O37", true, caughtException); - - caughtException = false; - - try { - Conversion.Oct(null); - } - catch (Exception e) { - AssertEquals("#O38", typeof(ArgumentNullException), e.GetType()); - caughtException = true; - } - - AssertEquals("#O39", true, caughtException); - } - - // test the Str function - public void TestStr() { - AssertEquals("#S01", "-1", Conversion.Str(-1)); - AssertEquals("#S02", " 1", Conversion.Str(1)); - - bool caughtException = false; - Object O = typeof(int); - - try { - Conversion.Str(O); - } - catch (Exception e) { - AssertEquals("#S03", typeof(InvalidCastException), e.GetType()); - caughtException = true; - } - - AssertEquals("#S04", true, caughtException); - - caughtException = false; - - try { - Conversion.Str(null); - } - catch (Exception e) { - AssertEquals("#S05", typeof(ArgumentNullException), e.GetType()); - caughtException = true; - } - } - - // Test the Val function - public void TestVal() { - AssertEquals("#V01", 4, Conversion.Val('4')); - AssertEquals("#V02", -3542.76, Conversion.Val(" - 3 5 .4 2 7 6E+ 0 0 2 ")); - AssertEquals("#V03", 255D, Conversion.Val("&HFF")); - AssertEquals("#V04", 255D, Conversion.Val("&o377")); - - System.Object O = " - 3 5 .4 7 6E+ 0 0 3"; - - AssertEquals("#V05", -35476D, Conversion.Val(O)); - - bool caughtException; - - caughtException = false; - - try { - Conversion.Val("3E+9999999"); - } - catch (Exception e) { - AssertEquals("#V06", typeof(OverflowException), e.GetType()); - caughtException = true; - } - - AssertEquals("#V07", true, caughtException); - - caughtException = false; - - try { - Conversion.Val(typeof(int)); - } - catch (Exception e) { - AssertEquals("#V08", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - AssertEquals("#V09", true, caughtException); - } - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs b/mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs deleted file mode 100644 index 63dc4162884eb..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs +++ /dev/null @@ -1,380 +0,0 @@ -// Collection.cs - NUnit Test Cases for Microsoft.VisualBasic.Collection -// -// Author: -// Chris J. Breisch (cjbreisch@altavista.net) -// -// (C) Chris J. Breisch -// - -using NUnit.Framework; -using System; -using System.Globalization; -using Microsoft.VisualBasic; - -namespace MonoTests.Microsoft.VisualBasic -{ - - public class DateAndTimeTest : TestCase { - - public DateAndTimeTest() : base ("Microsoft.VisualBasic.DateAndTime") {} - public DateAndTimeTest(string name) : base(name) {} - - protected override void SetUp() {} - protected override void TearDown() {} - - public static ITest Suite { - get { - return new TestSuite(typeof(DateAndTimeTest)); - } - } - - public void TestDateString() { - string s = DateAndTime.DateString; - DateTime dtNow = DateTime.Today; - AssertEquals("#DS01", dtNow.ToShortDateString(), DateTime.Parse(s).ToShortDateString()); - - // TODO: Add a test for setting the date string too - } - - public void TestToday() { - AssertEquals("#TO01", DateTime.Today, DateAndTime.Today); - - // TODO: Add a test for setting Today - } - - public void TestTimer() { - double secTimer = DateAndTime.Timer; - DateTime dtNow = DateTime.Now; - double secNow = dtNow.Hour * 3600 + dtNow.Minute * 60 + dtNow.Second + (dtNow.Millisecond + 1) / 1000D; - double secTimer2 = DateAndTime.Timer + .001; - - // waste a little time - for (int i = 0; i < int.MaxValue; i++); - - // get another timer - double secTimer3 = DateAndTime.Timer; - - // should be same time within a reasonable tolerance - Assert("#TI01", secNow >= secTimer); - Assert("#TI02", secTimer2 >= secNow); - - // third timer should be greater than the first - Assert("#TI03", secTimer3 > secTimer); - } - - public void TestNow() { - DateTime dtNow = DateTime.Now; - DateTime dtTest = DateAndTime.Now; - DateTime dtNow2 = DateTime.Now; - - Assert("#N01", dtTest >= dtNow); - Assert("#N02", dtNow2 >= dtTest); - } - - public void TestTimeOfDay() { - DateTime dtNow = DateTime.Now; - TimeSpan tsNow = new TimeSpan(dtNow.Hour, dtNow.Minute, dtNow.Second); - DateTime dtTest = DateAndTime.TimeOfDay; - TimeSpan tsTest = new TimeSpan(dtTest.Hour, dtTest.Minute, dtTest.Second); - DateTime dtNow2 = DateTime.Now; - TimeSpan tsNow2 = new TimeSpan(dtNow2.Hour, dtNow2.Minute, dtNow2.Second); - - Assert("#TOD01", tsTest.Ticks >= tsNow.Ticks); - Assert("#TOD02", tsNow2.Ticks >= tsTest.Ticks); - - // TODO: add a test case for setting time of day - } - - public void TestTimeString() { - DateTime dtNow = DateTime.Now; - TimeSpan tsNow = new TimeSpan(dtNow.Hour, dtNow.Minute, dtNow.Second); - string s = DateAndTime.TimeString; - DateTime dtTest = DateTime.Parse(s); - TimeSpan tsTest = new TimeSpan(dtTest.Hour, dtTest.Minute, dtTest.Second); - DateTime dtNow2 = DateTime.Now; - TimeSpan tsNow2 = new TimeSpan(dtNow2.Hour, dtNow2.Minute, dtNow2.Second); - - Assert("#TS01", tsTest.Ticks >= tsNow.Ticks); - Assert("#TS02", tsNow2.Ticks >= tsTest.Ticks); - - // TODO: add a test case for setting TimeString - } - - public void TestDateAdd() { - DateTime dtNow = DateTime.Now; - - AssertEquals("#DA01", dtNow.AddYears(1), DateAndTime.DateAdd(DateInterval.Year, 1, dtNow)); - AssertEquals("#DA02", dtNow.AddYears(-1), DateAndTime.DateAdd("yyyy", -1, dtNow)); - - - bool caughtException = false; - - try { - DateAndTime.DateAdd("foo", 1, dtNow); - } - catch (Exception e) { - AssertEquals("#DA03", e.GetType(), typeof(ArgumentException)); - caughtException = true; - } - - AssertEquals("#DA04", caughtException, true); - - AssertEquals("#DA05", dtNow.AddMonths(6), DateAndTime.DateAdd(DateInterval.Quarter, 2, dtNow)); - AssertEquals("#DA06", dtNow.AddMonths(-6), DateAndTime.DateAdd("q", -2, dtNow)); - - AssertEquals("#DA07", dtNow.AddMonths(3), DateAndTime.DateAdd(DateInterval.Month, 3, dtNow)); - AssertEquals("#DA08", dtNow.AddMonths(-3), DateAndTime.DateAdd("m", -3, dtNow)); - - AssertEquals("#DA09", dtNow.AddDays(28), DateAndTime.DateAdd(DateInterval.WeekOfYear, 4, dtNow)); - AssertEquals("#DA10", dtNow.AddDays(-28), DateAndTime.DateAdd("ww", -4, dtNow)); - - AssertEquals("#DA11", dtNow.AddDays(5), DateAndTime.DateAdd(DateInterval.Weekday, 5, dtNow)); - AssertEquals("#DA12", dtNow.AddDays(-5), DateAndTime.DateAdd("w", -5, dtNow)); - - AssertEquals("#DA13", dtNow.AddDays(6), DateAndTime.DateAdd(DateInterval.DayOfYear, 6, dtNow)); - AssertEquals("#DA14", dtNow.AddDays(-6), DateAndTime.DateAdd("y", -6, dtNow)); - - AssertEquals("#DA15", dtNow.AddDays(7), DateAndTime.DateAdd(DateInterval.Day, 7, dtNow)); - AssertEquals("#DA16", dtNow.AddDays(-7), DateAndTime.DateAdd("d", -7, dtNow)); - - AssertEquals("#DA17", dtNow.AddHours(8), DateAndTime.DateAdd(DateInterval.Hour, 8, dtNow)); - AssertEquals("#DA18", dtNow.AddHours(-8), DateAndTime.DateAdd(DateInterval.Hour, -8, dtNow)); - - AssertEquals("#DA19", dtNow.AddMinutes(9), DateAndTime.DateAdd(DateInterval.Minute, 9, dtNow)); - AssertEquals("#DA20", dtNow.AddMinutes(-9), DateAndTime.DateAdd("n", -9, dtNow)); - - AssertEquals("#DA21", dtNow.AddSeconds(10), DateAndTime.DateAdd(DateInterval.Second, 10, dtNow)); - AssertEquals("#DA22", dtNow.AddSeconds(-10), DateAndTime.DateAdd("s", -10, dtNow)); - - caughtException = false; - - try { - DateAndTime.DateAdd(DateInterval.Year, int.MinValue, dtNow); - } - catch (Exception e) { - caughtException = true; - AssertEquals("#DA23", e.GetType(), typeof(Exception)); - } - - // AssertEquals("#DA24", caughtException, true); - } - - public void TestDateDiff () { - DateTime dtNow = DateTime.Now; - DateTime dtOld = dtNow.AddYears(-1); - - // TODO: Test this better - long diff = DateAndTime.DateDiff(DateInterval.Year, dtOld, dtNow, FirstDayOfWeek.System, FirstWeekOfYear.System); - - AssertEquals("#DD01", dtNow, dtOld.AddYears((int)diff)); - - DateTime dtJan1 = new DateTime(2002, 1, 1); - DateTime dtDec31 = new DateTime(2001, 12, 31); - - diff = DateAndTime.DateDiff(DateInterval.Year, dtDec31, dtJan1, FirstDayOfWeek.System, FirstWeekOfYear.System); - - AssertEquals("#DD02", 1L, diff); - - diff = DateAndTime.DateDiff(DateInterval.Quarter, dtDec31, dtJan1, FirstDayOfWeek.System, FirstWeekOfYear.System); - - AssertEquals("#DD03", 1L, diff); - - diff = DateAndTime.DateDiff(DateInterval.Month, dtDec31, dtJan1, FirstDayOfWeek.System, FirstWeekOfYear.System); - - AssertEquals("#DD04", 1L, diff); - - DateTime dtJan4 = new DateTime(2001, 1, 4); // This is a Thursday - DateTime dtJan9 = new DateTime(2001, 1, 9); // This is the next Tuesday - - - long WD = DateAndTime.DateDiff(DateInterval.Weekday, dtJan4, dtJan9, FirstDayOfWeek.System, FirstWeekOfYear.System); - - AssertEquals ("#DD05", 0L, WD); - - long WY = DateAndTime.DateDiff(DateInterval.WeekOfYear, dtJan4, dtJan9, FirstDayOfWeek.System, FirstWeekOfYear.System); - - AssertEquals ("#DD06", 1L, WY); - } - - public void TestDatePart () { - DateTime dtJan4 = new DateTime(2001, 1, 4); - - // TODO: Test this better - - AssertEquals("#DP01", 2001, DateAndTime.DatePart(DateInterval.Year, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System)); - AssertEquals("#DP02", 1, DateAndTime.DatePart(DateInterval.Quarter, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System)); - AssertEquals("#DP03", 1, DateAndTime.DatePart(DateInterval.Month, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System)); - AssertEquals("#DP04", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP05", 53, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFullWeek)); - AssertEquals("#DP06", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.Jan1)); - AssertEquals("#DP07", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System)); - AssertEquals("#DP08", 7, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Friday, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP09", 6, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Saturday, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP10", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Sunday, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP11", 4, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP12", 3, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Tuesday, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP13", 2, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Wednesday, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP14", 1, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Thursday, FirstWeekOfYear.FirstFourDays)); - AssertEquals("#DP15", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFourDays)); - - - } - - public void TestDateSerial () { - DateTime dtJan4 = new DateTime(2001, 1, 4); - DateTime dtSerial = DateAndTime.DateSerial(2001, 1, 4); - - AssertEquals("#DS01", dtJan4, dtSerial); - } - - public void TestTimeSerial () { - bool caughtException = false; - - try { - DateAndTime.TimeSerial(0, -1440, -1); - } - catch (Exception e) { - AssertEquals("#TS01", e.GetType(), typeof(ArgumentOutOfRangeException)); - caughtException = true; - } - AssertEquals("#TS02", true, caughtException); - - AssertEquals("#TS03", new DateTime(1, 1, 1, 1, 1, 1), DateAndTime.TimeSerial(1, 1, 1)); - - } - - public void TestDateValue () { - bool caughtException = false; - - try { - DateAndTime.DateValue("This is not a date."); - } - catch (Exception e) { - AssertEquals ("#DV01", e.GetType(), typeof(InvalidCastException)); - caughtException = true; - } - AssertEquals("#DV02", true, caughtException); - - AssertEquals("#DV03", new DateTime(1969, 2, 12), DateAndTime.DateValue("February 12, 1969")); - } - - public void TestTimeValue () { - bool caughtException = false; - - try { - DateAndTime.TimeValue("This is not a time."); - } - catch (Exception e) { - AssertEquals ("#TV01", e.GetType(), typeof(InvalidCastException)); - caughtException = true; - } - AssertEquals("#TV02", true, caughtException); - - AssertEquals("#TV03", new DateTime(1, 1, 1, 16, 35, 17), DateAndTime.TimeValue("4:35:17 PM")); - } - - public void TestYear () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#Y01", jan1.Year, DateAndTime.Year(jan1)); - } - - public void TestMonth () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#MO01", jan1.Month, DateAndTime.Month(jan1)); - } - - public void TestDay () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#D01", jan1.Day, DateAndTime.Day(jan1)); - } - - public void TestHour () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#H01", jan1.Hour, DateAndTime.Hour(jan1)); - } - - public void TestMinute () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#MI01", jan1.Minute, DateAndTime.Minute(jan1)); - } - - public void TestSecond () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#S01", jan1.Second, DateAndTime.Second(jan1)); - } - - public void TestWeekday () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#W01", (int)jan1.DayOfWeek + 1, DateAndTime.Weekday(jan1, FirstDayOfWeek.System)); - } - - public void TestMonthName () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#MN01", CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(jan1.Month), - DateAndTime.MonthName(jan1.Month, true)); - AssertEquals("#MN02", CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(jan1.Month), - DateAndTime.MonthName(jan1.Month, false)); - - bool caughtException = false; - - try { - DateAndTime.MonthName(0, false); - } - catch (Exception e) { - AssertEquals("#MN03", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - AssertEquals("#MN04", true, caughtException); - - caughtException = false; - - try { - DateAndTime.MonthName(14, false); - } - catch (Exception e) { - AssertEquals("#MN05", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - AssertEquals("#MN06", true, caughtException); - - //AssertEquals("#MN07", "", DateAndTime.MonthName(13, false)); - } - - public void TestWeekdayName () { - DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1); - AssertEquals("#WN01", CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedDayName(jan1.DayOfWeek), - DateAndTime.WeekdayName((int)jan1.DayOfWeek + 1, true, FirstDayOfWeek.System)); - AssertEquals("#WN02", CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(jan1.DayOfWeek), - DateAndTime.WeekdayName((int)jan1.DayOfWeek + 1, false, FirstDayOfWeek.System)); - - bool caughtException = false; - - try { - DateAndTime.WeekdayName(0, false, FirstDayOfWeek.System); - } - catch (Exception e) { - AssertEquals("#WN03", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - AssertEquals("#WN04", true, caughtException); - - caughtException = false; - - try { - DateAndTime.WeekdayName(8, false, FirstDayOfWeek.System); - } - catch (Exception e) { - AssertEquals("#WN05", typeof(ArgumentException), e.GetType()); - caughtException = true; - } - AssertEquals("#WN06", true, caughtException); - - AssertEquals("#WN07", "Monday", DateAndTime.WeekdayName((int)jan1.DayOfWeek + 1, false, FirstDayOfWeek.System)); - } - - - - - - } -} diff --git a/mcs/class/Microsoft.VisualBasic/Test/Microsoft.VisualBasic_test.build b/mcs/class/Microsoft.VisualBasic/Test/Microsoft.VisualBasic_test.build deleted file mode 100644 index 3e205b08b8f1b..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/Test/Microsoft.VisualBasic_test.build +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/Microsoft.VisualBasic/list b/mcs/class/Microsoft.VisualBasic/list deleted file mode 100644 index a6c1c5261f448..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/list +++ /dev/null @@ -1,62 +0,0 @@ -Microsoft.VisualBasic/AppWinStyle.cs -Microsoft.VisualBasic/CallType.cs -Microsoft.VisualBasic/Collection.cs -Microsoft.VisualBasic/ComClassAttribute.cs -Microsoft.VisualBasic/CompareMethod.cs -Microsoft.VisualBasic/Constants.cs -Microsoft.VisualBasic/ControlChars.cs -Microsoft.VisualBasic/Conversion.cs -Microsoft.VisualBasic/DateAndTime.cs -Microsoft.VisualBasic/DateFormat.cs -Microsoft.VisualBasic/DateInterval.cs -Microsoft.VisualBasic/DueDate.cs -Microsoft.VisualBasic/ErrObject.cs -Microsoft.VisualBasic/FileAttribute.cs -Microsoft.VisualBasic/FileSystem.cs -Microsoft.VisualBasic/Financial.cs -Microsoft.VisualBasic/FirstDayOfWeek.cs -Microsoft.VisualBasic/FirstWeekOfYear.cs -Microsoft.VisualBasic/Globals.cs -Microsoft.VisualBasic/Information.cs -Microsoft.VisualBasic/Interaction.cs -Microsoft.VisualBasic/MsgBoxResult.cs -Microsoft.VisualBasic/MsgBoxStyle.cs -Microsoft.VisualBasic/OpenAccess.cs -Microsoft.VisualBasic/OpenMode.cs -Microsoft.VisualBasic/OpenShare.cs -Microsoft.VisualBasic/SpcInfo.cs -Microsoft.VisualBasic/Strings.cs -Microsoft.VisualBasic/TODOAttribute.cs -Microsoft.VisualBasic/TabInfo.cs -Microsoft.VisualBasic/TriState.cs -Microsoft.VisualBasic/VBFixedArrayAttribute.cs -Microsoft.VisualBasic/VBFixedStringAttribute.cs -Microsoft.VisualBasic/VBMath.cs -Microsoft.VisualBasic/VariantType.cs -Microsoft.VisualBasic/VbStrConv.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionCompareAttribute.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/TODOAttribute.cs -Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.cs diff --git a/mcs/class/Microsoft.VisualBasic/makefile.gnu b/mcs/class/Microsoft.VisualBasic/makefile.gnu deleted file mode 100644 index 499518f196571..0000000000000 --- a/mcs/class/Microsoft.VisualBasic/makefile.gnu +++ /dev/null @@ -1,13 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/Microsoft.VisualBasic.dll - -LIB_LIST = list -LIB_FLAGS = -r corlib -r System - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=./Test* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/Mono.CSharp.Debugger/AssemblerWriterI386.cs b/mcs/class/Mono.CSharp.Debugger/AssemblerWriterI386.cs deleted file mode 100644 index 58ce935bdd0e9..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/AssemblerWriterI386.cs +++ /dev/null @@ -1,311 +0,0 @@ -// -// Mono.CSharp.Debugger/AssemblerWriterI386.cs -// -// Author: -// Martin Baulig (martin@gnome.org) -// -// IAssemblerWriter implementation for the Intel i386. -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -using System; -using System.IO; - -namespace Mono.CSharp.Debugger -{ - public class AssemblerWriterI386 : IAssemblerWriter - { - public AssemblerWriterI386 (StreamWriter writer) { - this.writer = writer; - writer.WriteLine ("#NOAPP"); - } - - private StreamWriter writer; - private static int next_anon_label_idx = 0; - private bool in_section = false; - - public void WriteLabel (string label) - { - writer.WriteLine (".L_" + label + ":"); - } - - public int GetNextLabelIndex () - { - return ++next_anon_label_idx; - } - - public int WriteLabel () - { - int index = ++next_anon_label_idx; - - WriteLabel (index); - - return index; - } - - public void WriteLabel (int index) - { - char[] output = { '.', 'L', '_', '\0', '\0', '\0', '\0', '\0', '\0', - ':', '\n' }; - - unchecked { - int value = (int) index; - output [3] = hex [(value & 0xf00000) >> 20]; - output [4] = hex [(value & 0x0f0000) >> 16]; - output [5] = hex [(value & 0x00f000) >> 12]; - output [6] = hex [(value & 0x000f00) >> 8]; - output [7] = hex [(value & 0x0000f0) >> 4]; - output [8] = hex [(value & 0x00000f)]; - } - - writer.Write (output, 0, output.Length); - } - - private static readonly char[] hex = { '0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; - - public void WriteUInt8 (bool value) - { - WriteUInt8 (value ? 1 : 0); - } - - public void WriteUInt8 (int value) - { - char[] output = { '\t', '.', 'b', 'y', 't', 'e', ' ', - '0', 'x', '\0', '\0', - '\n' }; - - unchecked { - output [9] = hex [(value & 0xf0) >> 4]; - output [10] = hex [value & 0x0f]; - } - - writer.Write (output, 0, output.Length); - } - - public void WriteInt8 (int value) - { - char[] output = { '\t', '.', 'b', 'y', 't', 'e', ' ', - '0', 'x', '\0', '\0', - '\n' }; - - unchecked { - uint uvalue = (uint) value; - output [9] = hex [(uvalue & 0xf0) >> 4]; - output [10] = hex [uvalue & 0x0f]; - } - - writer.Write (output, 0, output.Length); - } - - public void Write2Bytes (int a, int b) - { - char[] output = { '\t', '.', 'b', 'y', 't', 'e', ' ', - '0', 'x', '\0', '\0', ',', ' ', - '0', 'x', '\0', '\0', - '\n' }; - - unchecked { - uint ua = (uint) a; - uint ub = (uint) b; - output [9] = hex [(ua & 0xf0) >> 4]; - output [10] = hex [ua & 0x0f]; - output [15] = hex [(ub & 0xf0) >> 4]; - output [16] = hex [ub & 0x0f]; - } - - writer.Write (output, 0, output.Length); - } - - public void WriteUInt16 (int value) - { - writer.WriteLine ("\t.word " + value); - } - - public void WriteInt16 (int value) - { - writer.WriteLine ("\t.word " + value); - } - - public void WriteUInt32 (int value) - { - char[] output = { '\t', '.', 'l', 'o', 'n', 'g', ' ', - '0', 'x', '\0', '\0', '\0', '\0', '\0', '\0', - '\0', '\0', '\n' }; - - unchecked { - output [9] = hex [(value & 0xf0000000) >> 28]; - output [10] = hex [(value & 0x0f000000) >> 24]; - output [11] = hex [(value & 0x00f00000) >> 20]; - output [12] = hex [(value & 0x000f0000) >> 16]; - output [13] = hex [(value & 0x0000f000) >> 12]; - output [14] = hex [(value & 0x00000f00) >> 8]; - output [15] = hex [(value & 0x000000f0) >> 4]; - output [16] = hex [(value & 0x0000000f)]; - } - - writer.Write (output, 0, output.Length); - } - - public void WriteInt32 (int value) - { - char[] output = { '\t', '.', 'l', 'o', 'n', 'g', ' ', - '0', 'x', '\0', '\0', '\0', '\0', '\0', '\0', - '\0', '\0', '\n' }; - - unchecked { - uint uvalue = (uint) value; - output [9] = hex [(uvalue & 0xf0000000) >> 28]; - output [10] = hex [(uvalue & 0x0f000000) >> 24]; - output [11] = hex [(uvalue & 0x00f00000) >> 20]; - output [12] = hex [(uvalue & 0x000f0000) >> 16]; - output [13] = hex [(uvalue & 0x0000f000) >> 12]; - output [14] = hex [(uvalue & 0x00000f00) >> 8]; - output [15] = hex [(uvalue & 0x000000f0) >> 4]; - output [16] = hex [(uvalue & 0x0000000f)]; - } - - writer.Write (output, 0, output.Length); - } - - public void WriteSLeb128 (int value) - { - writer.WriteLine ("\t.sleb128 " + value); - } - - public void WriteULeb128 (int value) - { - writer.WriteLine ("\t.uleb128 " + value); - } - - public void WriteAddress (int value) - { - if (value == 0) - writer.WriteLine ("\t.long 0"); - else - writer.WriteLine ("\t.long " + value); - } - - public void WriteString (string value) - { - writer.WriteLine ("\t.string \"" + value + "\""); - } - - public void WriteSectionStart (String section) - { - if (in_section) - throw new Exception (); - in_section = true; - writer.WriteLine ("\t.section ." + section); - } - - public void WriteSectionEnd () - { - in_section = false; - } - - public void WriteRelativeOffset (int start_label, int end_label) - { - char[] output = { '\t', '.', 'l', 'o', 'n', 'g', ' ', - '.', 'L', '_', '\0', '\0', '\0', '\0', '\0', '\0', - ' ', '-', ' ', - '.', 'L', '_', '\0', '\0', '\0', '\0', '\0', '\0', - '\n' }; - - unchecked { - output [10] = hex [(end_label & 0xf00000) >> 20]; - output [11] = hex [(end_label & 0x0f0000) >> 16]; - output [12] = hex [(end_label & 0x00f000) >> 12]; - output [13] = hex [(end_label & 0x000f00) >> 8]; - output [14] = hex [(end_label & 0x0000f0) >> 4]; - output [15] = hex [(end_label & 0x00000f)]; - output [22] = hex [(start_label & 0xf00000) >> 20]; - output [23] = hex [(start_label & 0x0f0000) >> 16]; - output [24] = hex [(start_label & 0x00f000) >> 12]; - output [25] = hex [(start_label & 0x000f00) >> 8]; - output [26] = hex [(start_label & 0x0000f0) >> 4]; - output [27] = hex [(start_label & 0x00000f)]; - } - - writer.Write (output, 0, output.Length); - } - - public void WriteShortRelativeOffset (int start_label, int end_label) - { - char[] output = { '\t', '.', 'b', 'y', 't', 'e', ' ', - '.', 'L', '_', '\0', '\0', '\0', '\0', '\0', '\0', - ' ', '-', ' ', - '.', 'L', '_', '\0', '\0', '\0', '\0', '\0', '\0', - '\n' }; - - unchecked { - output [10] = hex [(end_label & 0xf00000) >> 20]; - output [11] = hex [(end_label & 0x0f0000) >> 16]; - output [12] = hex [(end_label & 0x00f000) >> 12]; - output [13] = hex [(end_label & 0x000f00) >> 8]; - output [14] = hex [(end_label & 0x0000f0) >> 4]; - output [15] = hex [(end_label & 0x00000f)]; - output [22] = hex [(start_label & 0xf00000) >> 20]; - output [23] = hex [(start_label & 0x0f0000) >> 16]; - output [24] = hex [(start_label & 0x00f000) >> 12]; - output [25] = hex [(start_label & 0x000f00) >> 8]; - output [26] = hex [(start_label & 0x0000f0) >> 4]; - output [27] = hex [(start_label & 0x00000f)]; - } - - writer.Write (output, 0, output.Length); - } - - public void WriteAbsoluteOffset (string label) - { - writer.WriteLine ("\t.long .L_" + label); - } - - public void WriteAbsoluteOffset (int index) - { - char[] output = { '\t', '.', 'l', 'o', 'n', 'g', ' ', - '.', 'L', '_', '\0', '\0', '\0', '\0', '\0', '\0', - '\n' }; - - unchecked { - output [10] = hex [(index & 0xf00000) >> 20]; - output [11] = hex [(index & 0x0f0000) >> 16]; - output [12] = hex [(index & 0x00f000) >> 12]; - output [13] = hex [(index & 0x000f00) >> 8]; - output [14] = hex [(index & 0x0000f0) >> 4]; - output [15] = hex [(index & 0x00000f)]; - } - - writer.Write (output, 0, output.Length); - - } - - public object StartSubsectionWithSize () - { - int start_index = ++next_anon_label_idx; - int end_index = ++next_anon_label_idx; - - WriteRelativeOffset (start_index, end_index); - WriteLabel (start_index); - - return end_index; - } - - public object StartSubsectionWithShortSize () - { - int start_index = ++next_anon_label_idx; - int end_index = ++next_anon_label_idx; - - WriteShortRelativeOffset (start_index, end_index); - WriteLabel (start_index); - - return end_index; - } - - public void EndSubsection (object end_index) - { - WriteLabel ((int) end_index); - } - } -} diff --git a/mcs/class/Mono.CSharp.Debugger/ChangeLog b/mcs/class/Mono.CSharp.Debugger/ChangeLog deleted file mode 100644 index d6de0fae8f43f..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/ChangeLog +++ /dev/null @@ -1,251 +0,0 @@ -2002-07-05 Martin Baulig - - * MonoDwarfFileWriter.cs: Added support for types in referenced assemblies. - -2002-07-05 Martin Baulig - - * MonoDwarfFileWriter.cs: Added support for arrays. - - * gdb-csharp-support.patch: Updated. - -2002-06-29 Martin Baulig - - * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work. - -2002-06-29 Martin Baulig - - * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their - corresponding struct/class declarations. - -2002-06-28 Martin Baulig - - * gdb-csharp-support.patch: Updated. - -2002-06-28 Martin Baulig - - * MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions. - Make static struct/class fields actually work. Provide a TAG_typedef for struct's - and classes. - -2002-05-30 Martin Baulig - - * IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method. - - * MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method - is no longer supported and throws an exception. - (Initialize (string, string[])): New custom initialization function. - - * MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument - to the constructor to pass command line arguments. - - * gdb-csharp-support.patch: Updated for GDB 5.2. - -2002-05-30 Martin Baulig - - * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now get's the - AssemblyBuilder's `methods' array as third argument. - (OpenMethod): Use this array to get the method builder rather than using an - interncall for it. - (get_method_builder): Removed this interncall. - -2002-05-25 Martin Baulig - - * MonoDwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays. - -2002-05-24 Martin Baulig - - * IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'. - (ITypeHandle): New interface. - - * DwarfFileWriter.cs: Largely reorganized the type writing code. Types are - now represented by ITypeHandle objects which are stored in a per-dwarf-writer - hash table. At the moment, all types still need to be in one compile unit due - to lacking support in gdb - but this new type code here already supports this. - - * MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them - public, cleaned up the code, put everything into one compile unit. - (DefineLocalVariable): Added a version of this function which takes useful args. - -2002-05-22 Martin Baulig - - * IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods' - properties. - - * MonoDwarfFileWriter.cs (WriteSymbolTable): New public method. Moved the - code that writes the "mono_line_numbers" section here from the LineNumberEngine. - -2002-05-22 Martin Baulig - - * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'. - - * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional - ModuleBuilder argument. - (OpenMethod): Immediately call the `get_method' interncall to get the MethodBase - from the token, then store the MethodBase instead of the token. The token may - still change during the metadata library's fixup process. - (DoFixups): When the image has been written to disk, call the GetToken () method - on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens. - -2002-05-22 Martin Baulig - - * AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler - output which is free of comments and extra whitespaces so that it's suitable - for `as -f'. - -2002-05-22 Martin Baulig - - * IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with - `MethodBase MethodBase' and added `Type ReturnType'. We're now correctly - dealing with constructors and not crashing anymore. - -2002-05-21 Martin Baulig - - * MonoDwarfFileWriter.cs: Write a special line number table which can be read - in by the metadata library to get line number information in backtraces. - -2002-05-06 Martin Baulig - - * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not - AppDomain.Load () to load the assembly. - -2002-04-26 Martin Baulig - - * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version) - to implement C# support. - - * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB - source directory after applying the patch. - -2002-04-26 Martin Baulig - - * MonoDwarfFileWriter.cs (DieInternalString): Removed. - -2002-04-25 Martin Baulig - - * MonoDwarfFileWriter.cs: Reflect latest MonoString changes. - -2002-04-13 Martin Baulig - - * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock' - method to support nested blocks. - - * MonoSymbolWriter.cs: Correctly handle nested blocks. - - * MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for - public ones; also added DW_AT_accessibility. - (DieVariable): Reflected latest debug-symfile.c changes. - -2002-04-12 Martin Baulig - - * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version) - to implement variable lifetimes. - -2002-04-12 Martin Baulig - - * MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's - lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope. - -2002-03-29 Martin Baulig - - * AssemblerWriterI386.cs: Rewrote most of the string output function, do the - number->string conversion manually. It's now taking about 15 seconds to write - a symbol file for MCS, no longer more than a minute. - - * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed - a few bugs. - -2002-03-25 Martin Baulig - - * MonoDwarfFileWriter.cs (CreateType): Return a `DieType'. - (RegisterType): Add the type to the type hash before creating dependency types - so we don't get recursion loops. - (RegisterPointerType): New func to register a "pointer to type" type. - (DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New - types; added support for strings, arrays and basic support for classes. - -2002-03-24 Martin Baulig - - * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed. - - * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string - argument which is the full pathname of the assembly - you must call Close() - after the assembly has been written to disk since the symbol writer needs to - load the finished assembly to get its metadata. - - * MonoDwarfFileWriter.cs: Added support for enums and structs. - -2002-03-24 Martin Baulig - - * MonoDwarfFileWriter.cs: Added support for method parameters. - -2002-03-24 Martin Baulig - - * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(), - we're now using the ISymbolWriter's method. - (IVariable): Added `byte[] Signature' property. - - * MonoSymbolWriter.cs (SetAssembly): New method. This must be called before - Close(); the assembly parameter is the already-written assembly, ie. it must - contain the full metadata. - (OpenMethod): Only take the token argument and set MethodInfo later in DoFixups. - (SetMethodSourceRange): You must call this function to tell the symbol writer - in which source file the method is defined. - (DefineLocal): Store the signature in the local. - (DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field - and the LocalVariable's Type field. - -2002-03-23 Martin Baulig - - * IMonoSymbolWriter.cs (ISourceBlock): New interface. - (ILocalVariable): Renamed this interface to IVariable. - (IVariable): Added Line, Type, Token. - (ILocalVariable, IMethodParameter): New interfaces, derive from IVariable. - (ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End, - changed their type to ISourceLine. Removed CodeSize. - (ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset. - - * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class. - (MonoDwarfFileWriter.DieMethodVariable): New class. - - * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented. - Reflected latest IMonoSymbolWriter interface changes. - -2002-03-20 Martin Baulig - - * IAssemblerWriter.cs: New interface. - - * AssemblerWriterI386.cs: New class. - - * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class - platform and assembler independent. - -2002-03-20 Martin Baulig - - * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and - Token properties. - - * MonoDwarfFileWriter.cs: Implemented line number support. - -2002-03-19 Martin Baulig - - * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable): - New interfaces. - - * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not - a string. - -2002-03-19 Martin Baulig - - This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter - interface. It's still work in progress and not yet used anywhere. - - There is some preliminary documentation in the source files and some more - docu in the README and README.relocation-table files. - - * IMonoSymbolWriter.cs: New file. - * MonoDwarfFileWriter.cs: New file. - * MonoSymbolDocumentWriter.cs: New file. - * MonoSymbolWriter.cs: New file. - - * README, README.relocation-table: Documentation. - diff --git a/mcs/class/Mono.CSharp.Debugger/IAssemblerWriter.cs b/mcs/class/Mono.CSharp.Debugger/IAssemblerWriter.cs deleted file mode 100644 index 169b9fc073e56..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/IAssemblerWriter.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Mono.CSharp.Debugger/IAssemblerWriter.cs -// -// Author: -// Martin Baulig (martin@gnome.org) -// -// This is a platform and assembler independent assembler output interface. -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Collections; -using System.IO; - -namespace Mono.CSharp.Debugger -{ - public interface IAssemblerWriter - { - int GetNextLabelIndex (); - - void WriteLabel (int index); - - void WriteLabel (string label); - - int WriteLabel (); - - void WriteUInt8 (bool value); - - void WriteUInt8 (int value); - - void WriteInt8 (int value); - - void Write2Bytes (int a, int b); - - void WriteUInt16 (int value); - - void WriteInt16 (int value); - - void WriteUInt32 (int value); - - void WriteInt32 (int value); - - void WriteSLeb128 (int value); - - void WriteULeb128 (int value); - - void WriteAddress (int value); - - void WriteString (string value); - - void WriteSectionStart (String section); - - void WriteSectionEnd (); - - void WriteRelativeOffset (int start_label, int end_label); - - void WriteShortRelativeOffset (int start_label, int end_label); - - void WriteAbsoluteOffset (int index); - - void WriteAbsoluteOffset (string label); - - object StartSubsectionWithSize (); - - object StartSubsectionWithShortSize (); - - void EndSubsection (object end_index); - } -} diff --git a/mcs/class/Mono.CSharp.Debugger/IMonoSymbolWriter.cs b/mcs/class/Mono.CSharp.Debugger/IMonoSymbolWriter.cs deleted file mode 100644 index 31870f7f56b51..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/IMonoSymbolWriter.cs +++ /dev/null @@ -1,200 +0,0 @@ -// -// System.Diagnostics.SymbolStore/IMonoSymbolWriter.cs -// -// Author: -// Martin Baulig (martin@gnome.org) -// -// This interface is derived from System.Diagnostics.SymbolStore.ISymbolWriter. -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Reflection; -using System.Reflection.Emit; -using System.Diagnostics.SymbolStore; -using System.Collections; -using System.IO; - -namespace Mono.CSharp.Debugger -{ - public interface IMonoSymbolWriter : ISymbolWriter - { - ISourceMethod[] Methods { - get; - } - - ISourceFile[] Sources { - get; - } - - void Initialize (string filename, string[] args); - } - - public interface ISourceFile - { - string FileName { - get; - } - - ISourceMethod[] Methods { - get; - } - - void AddMethod (ISourceMethod method); - } - - public interface ISourceMethod - { - ISourceLine[] Lines { - get; - } - - void AddLine (ISourceLine line); - - ISourceBlock[] Blocks { - get; - } - - ILocalVariable[] Locals { - get; - } - - void AddLocal (ILocalVariable local); - - - ISourceLine Start { - get; - } - - ISourceLine End { - get; - } - - string FullName { - get; - } - - int Token { - get; - } - - Type ReturnType { - get; - } - - ParameterInfo[] Parameters { - get; - } - - MethodBase MethodBase { - get; - } - - ISourceFile SourceFile { - get; - } - } - - public interface ISourceBlock - { - ISourceMethod SourceMethod { - get; - } - - ILocalVariable[] Locals { - get; - } - - void AddLocal (ILocalVariable local); - - ISourceBlock[] Blocks { - get; - } - - void AddBlock (ISourceBlock block); - - ISourceLine Start { - get; - } - - ISourceLine End { - get; - } - - int ID { - get; - } - } - - public enum SourceOffsetType - { - OFFSET_NONE, - OFFSET_IL, - OFFSET_LOCAL, - OFFSET_PARAMETER - } - - public interface ISourceLine - { - SourceOffsetType OffsetType { - get; - } - - int Offset { - get; - } - - int Row { - get; - } - - int Column { - get; - } - } - - public interface ITypeHandle - { - string Name { - get; - } - - Type Type { - get; - } - - int Token { - get; - } - } - - public interface IVariable - { - string Name { - get; - } - - ISourceLine Line { - get; - } - - ITypeHandle TypeHandle { - get; - } - - ISourceMethod Method { - get; - } - - int Index { - get; - } - } - - public interface ILocalVariable : IVariable - { } - - public interface IMethodParameter : IVariable - { } -} diff --git a/mcs/class/Mono.CSharp.Debugger/Mono.CSharp.Debugger.build b/mcs/class/Mono.CSharp.Debugger/Mono.CSharp.Debugger.build deleted file mode 100644 index 04c1931126a04..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/Mono.CSharp.Debugger.build +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/Mono.CSharp.Debugger/MonoDwarfFileWriter.cs b/mcs/class/Mono.CSharp.Debugger/MonoDwarfFileWriter.cs deleted file mode 100755 index 00f0d1ccf7745..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/MonoDwarfFileWriter.cs +++ /dev/null @@ -1,2822 +0,0 @@ -// -// System.Diagnostics.SymbolStore/MonoDwarfWriter.cs -// -// Author: -// Martin Baulig (martin@gnome.org) -// -// This is the default implementation of the System.Diagnostics.SymbolStore.ISymbolWriter -// interface. -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Reflection; -using System.Reflection.Emit; -using System.Runtime.CompilerServices; -using System.Diagnostics.SymbolStore; -using System.Collections; -using System.Text; -using System.IO; - -namespace Mono.CSharp.Debugger -{ - public class DwarfFileWriter - { - protected const string producer_id = "Mono C# Compiler 0.01 03-18-2002"; - - protected ArrayList compile_units = new ArrayList (); - protected ArrayList line_number_engines = new ArrayList (); - protected StreamWriter writer = null; - protected IAssemblerWriter aw = null; - protected string symbol_file = null; - - public bool timestamps = false; - public bool use_gnu_extensions = false; - - // Write a generic file which contains no machine dependant stuff but - // only function and type declarations. - protected readonly bool DoGeneric = false; - - public readonly TypeHandle void_type; - public readonly TypeHandle int_type; - public readonly TypeHandle char_type; - public readonly TypeHandle array_type; - public readonly TypeHandle array_bounds_type; - public readonly TypeHandle string_type; - public readonly DieCompileUnit DieGlobalCompileUnit; - - // - // DwarfFileWriter public interface - // - public DwarfFileWriter (string symbol_file, string[] args) - { - foreach (string arg in args) { - if (arg.StartsWith ("output=")) - symbol_file = arg.Substring (7); - else if (arg == "timestamp") - timestamps = true; - else if (arg == "gnu_extensions") - use_gnu_extensions = true; - else if (arg == "generic") - DoGeneric = true; - else - Console.WriteLine ("Symbol writer warning: Unknown argument: " + arg); - } - - this.symbol_file = symbol_file; - this.writer = new StreamWriter (symbol_file, false, Encoding.ASCII); - this.aw = new AssemblerWriterI386 (this.writer); - this.last_time = DateTime.Now; - - CompileUnit compile_unit = new CompileUnit (this, symbol_file); - DieGlobalCompileUnit = new DieCompileUnit (compile_unit); - - void_type = RegisterType (typeof (void)); - RegisterType (typeof (bool)); - char_type = RegisterType (typeof (char)); - RegisterType (typeof (SByte)); - RegisterType (typeof (Byte)); - RegisterType (typeof (Int16)); - RegisterType (typeof (UInt16)); - int_type = RegisterType (typeof (Int32)); - RegisterType (typeof (UInt32)); - RegisterType (typeof (Int64)); - RegisterType (typeof (UInt64)); - RegisterType (typeof (Single)); - RegisterType (typeof (Double)); - if (!use_gnu_extensions) { - array_type = RegisterType (typeof (MonoArray)); - array_bounds_type = RegisterType (typeof (MonoArrayBounds)); - string_type = RegisterType (typeof (MonoString)); - } - } - - DateTime last_time; - void ShowTime (string msg) - { - DateTime now = DateTime.Now; - TimeSpan span = now - last_time; - last_time = now; - - Console.WriteLine ( - "MonoDwarfFileWriter [{0:00}:{1:000}] {2}", - (int) span.TotalSeconds, span.Milliseconds, msg); - } - - public void CreateTypes () - { - types_closed = true; - } - - // Writes the final dwarf file. - public void Close () - { - CreateTypes (); - - if (timestamps) - ShowTime ("Emitting compile units"); - - foreach (CompileUnit compile_unit in compile_units) - compile_unit.Emit (); - - if (timestamps) - ShowTime ("Done"); - - foreach (LineNumberEngine line_number_engine in line_number_engines) - line_number_engine.Emit (); - - if (timestamps) - ShowTime ("Done emitting " + LineNumberEngine.count + " line numbers"); - - WriteAbbrevDeclarations (); - if (timestamps) - ShowTime ("Done writing abbrev declarations"); - - WriteRelocEntries (); - if (timestamps) - ShowTime ("Done writing " + reloc_entries.Count + " reloc entries"); - - writer.Close (); - } - - // Adds a new compile unit to this dwarf file - public void AddCompileUnit (CompileUnit compile_unit) - { - compile_units.Add (compile_unit); - } - - // Adds a new line number engine to this dwarf file - public void AddLineNumberEngine (LineNumberEngine line_number_engine) - { - line_number_engines.Add (line_number_engine); - } - - public IAssemblerWriter AssemblerWriter { - get { - return aw; - } - } - - // This string is written into the generated dwarf file to identify the - // producer and version number. - public string ProducerID { - get { - return producer_id; - } - } - - private Hashtable type_hash = new Hashtable (); - private bool types_closed = false; - - public TypeHandle RegisterType (Type type) - { - if (types_closed) - throw new InvalidOperationException (); - - if (type_hash.Contains (type)) - return (TypeHandle) type_hash [type]; - - TypeHandle handle = new TypeHandle (type); - type_hash.Add (type, handle); - - if (!use_gnu_extensions) { - if (type.IsArray && (type != typeof (Array))) - handle.CreateArrayType (RegisterType (type.GetElementType ())); - else if (type.Equals (typeof (MonoString))) - handle.CreateStringType (char_type); - } else { - if (type.IsArray & (type != typeof (Array))) - handle.ArrayElementType = RegisterType (type.GetElementType ()); - } - - handle.CreateType (DieGlobalCompileUnit); - - return handle; - } - - // - // This is used to reference types. - // - - public class TypeHandle : ITypeHandle - { - protected static ArrayList external_types = new ArrayList (); - - protected readonly Type type; - protected DieType type_die; - protected int token; - protected Die pointer_die; - protected TypeHandle array_bounds_type; - protected TypeHandle array_vector_type; - protected TypeHandle array_element_type; - - public TypeHandle (Type type) - { - this.type = type; - } - - public void CreateArrayType (TypeHandle element_type) - { - this.array_element_type = element_type; - this.array_bounds_type = new TypeHandle_ArrayBounds (type.GetArrayRank ()); - this.array_vector_type = new TypeHandle_ArrayVector (array_element_type); - } - - public void CreateStringType (TypeHandle element_type) - { - this.array_element_type = element_type; - this.array_vector_type = new TypeHandle_ArrayVector (element_type); - } - - public string Name { - get { - return type.FullName; - } - } - - public Type Type { - get { - return type; - } - } - - public int Token { - get { - if ((token == 0) && !type.Equals (typeof (object))) - throw new InvalidOperationException (); - - return token; - } - } - - public DieType TypeDie { - get { - if (type_die == null) - throw new InvalidOperationException (); - else - return type_die; - } - } - - public ITypeHandle ArrayBoundsType { - get { - if (array_bounds_type == null) - throw new InvalidOperationException (); - else - return array_bounds_type; - } - } - - public ITypeHandle ArrayElementType { - get { - if (array_element_type == null) - throw new InvalidOperationException (); - else - return array_element_type; - } - set { - array_element_type = (TypeHandle) value; - } - } - - public ITypeHandle ArrayVectorType { - get { - if (array_vector_type == null) - throw new InvalidOperationException ("FUCK: " + type); - else - return array_vector_type; - } - } - - public Die PointerDie { - get { - return pointer_die; - } - } - - public static Type[] ExternalTypes { - get { - Type[] retval = new Type [external_types.Count]; - external_types.CopyTo (retval, 0); - return retval; - } - } - - public virtual void CreateType (DieCompileUnit parent_die) - { - if (type_die != null) - return; - - if (array_bounds_type != null) - array_bounds_type.CreateType (parent_die); - if (array_element_type != null) - array_element_type.CreateType (parent_die); - if (array_vector_type != null) - array_vector_type.CreateType (parent_die); - - ITypeHandle void_type = parent_die.Writer.void_type; - - if ((type.IsPrimitive && !type.IsByRef) || (type == typeof (void))) { - type_die = new DieBaseType (parent_die, this); - return; - } else if (type.Equals (typeof (string))) { - if (parent_die.Writer.use_gnu_extensions) - type_die = new DieMonoStringType (parent_die); - else - type_die = new DieStringType (parent_die, this); - pointer_die = new DieInternalPointer (parent_die, type_die); - type_die.CreateType (); - return; - } else if (type.IsArray && (type != typeof (Array))) { - if (parent_die.Writer.use_gnu_extensions) - type_die = new DieMonoArrayType (parent_die, this); - else - type_die = new DieArrayType (parent_die, this); - pointer_die = new DieInternalPointer (parent_die, type_die); - type_die.CreateType (); - return; - } else if (type.Equals (typeof (MonoArrayBounds))) { - type_die = new DieArrayBoundsType (parent_die, this); - pointer_die = new DieInternalPointer (parent_die, type_die); - type_die.CreateType (); - return; - } else if (type.IsPointer || type.IsByRef) { - type_die = new DiePointerType (parent_die, type); - type_die.CreateType (); - return; - } - - if (type is TypeBuilder) - token = ((TypeBuilder) type).TypeToken.Token; - else if (!type.Equals (typeof (object))) - token = external_types.Add (type) + 1; - - if (type.IsPointer || type.IsByRef) - type_die = new DiePointerType (parent_die, type); - else if (type.IsEnum) - type_die = new DieEnumType (parent_die, this); - else if (type.IsValueType) { - type_die = new DieStructureType (parent_die, this); - new DieInternalTypeDef (parent_die, type_die, type.FullName); - } else if (type.IsClass) { - type_die = new DieClassType (parent_die, this); - pointer_die = new DieInternalPointer (parent_die, type_die); - new DieInternalTypeDef (parent_die, type_die, type.FullName); - } else - type_die = new DieTypeDef (parent_die, void_type, type.FullName); - - type_die.CreateType (); - } - } - - public class TypeHandle_ArrayBounds : TypeHandle - { - private readonly int rank; - - public TypeHandle_ArrayBounds (int rank) - : base (typeof (MonoArrayBounds)) - { - this.rank = rank; - } - - public override void CreateType (DieCompileUnit parent_die) - { - ITypeHandle int_type = parent_die.Writer.int_type; - ITypeHandle array_bounds_type = parent_die.Writer.array_bounds_type; - - type_die = new DieInternalArray (parent_die, array_bounds_type); - new DieSubRangeType (type_die, int_type, 0, rank); - - type_die.CreateType (); - } - } - - public class TypeHandle_ArrayVector : TypeHandle - { - TypeHandle element_type; - - public TypeHandle_ArrayVector (TypeHandle element_type) - : base (element_type.Type) - { - this.element_type = element_type; - } - - public override void CreateType (DieCompileUnit parent_die) - { - ITypeHandle int_type = parent_die.Writer.int_type; - - type_die = new DieInternalArray (parent_die, element_type); - new DieSubRangeType (type_die, int_type, 0, -1); - - type_die.CreateType (); - } - } - - // - // A compile unit refers to a single C# source file. - // - public class CompileUnit - { - protected DwarfFileWriter dw; - protected IAssemblerWriter aw; - protected string source_file; - protected ArrayList dies = new ArrayList (); - - public readonly int ReferenceIndex; - - public CompileUnit (DwarfFileWriter dw, string source_file, Die[] dies) - { - this.dw = dw; - this.aw = dw.AssemblerWriter; - this.source_file = source_file; - if (dies != null) - this.dies.AddRange (dies); - - this.ReferenceIndex = this.aw.GetNextLabelIndex (); - - dw.AddCompileUnit (this); - } - - // - // Construct a new compile unit for source file @source_file. - // - // This constructor automatically adds the newly created compile - // unit to the DwarfFileWriter's list of compile units. - // - public CompileUnit (DwarfFileWriter dw, string source_file) - : this (dw, source_file, null) - { } - - public string SourceFile { - get { - return source_file; - } - } - - public string ProducerID { - get { - return dw.ProducerID; - } - } - - public DwarfFileWriter DwarfFileWriter - { - get { - return dw; - } - } - - // Add a new debugging information entry to this compile unit. - public void AddDie (Die die) - { - dies.Add (die); - } - - // Write the whole compile unit to the dwarf file. - public void Emit () - { - object start_index, end_index; - - dw.WriteSectionStart (Section.DEBUG_INFO); - - aw.WriteLabel (ReferenceIndex); - - start_index = aw.WriteLabel (); - - end_index = aw.StartSubsectionWithSize (); - aw.WriteUInt16 (2); - aw.WriteAbsoluteOffset ("debug_abbrev_b"); - if (dw.DoGeneric) - aw.WriteUInt8 (4); - else { - dw.AddRelocEntry (RelocEntryType.TARGET_ADDRESS_SIZE); - aw.WriteUInt8 (4); - } - - if (dies != null) - foreach (Die die in dies) - die.Emit (); - - aw.EndSubsection (end_index); - - aw.WriteSectionEnd (); - } - } - - public class LineNumberEngine - { - public readonly int ReferenceIndex; - - public readonly int LineBase = 1; - public readonly int LineRange = 8; - - protected DwarfFileWriter dw; - protected IAssemblerWriter aw; - - public readonly int[] StandardOpcodeSizes = { - 0, 0, 1, 1, 1, 1, 0, 0, 0, 0 - }; - - public readonly int OpcodeBase; - - public static int count = 0; - - private Hashtable _sources = new Hashtable (); - private Hashtable _directories = new Hashtable (); - private Hashtable _methods = new Hashtable (); - - private int next_source_id; - private int next_directory_id; - - private int next_method_id; - - private enum DW_LNS { - LNS_extended_op = 0, - LNS_copy = 1, - LNS_advance_pc = 2, - LNS_advance_line = 3, - LNS_set_file = 4, - LNS_set_column = 5, - LNS_negate_stmt = 6, - LNS_set_basic_block = 7, - LNS_const_add_pc = 8, - LNS_fixed_advance_pc = 9 - }; - - private enum DW_LNE { - LNE_end_sequence = 1, - LNE_set_address = 2, - LNE_define_file = 3 - }; - - public ISourceFile[] Sources { - get { - ISourceFile[] retval = new ISourceFile [_sources.Count]; - - foreach (ISourceFile source in _sources.Keys) - retval [(int) _sources [source] - 1] = source; - - return retval; - } - } - - public string[] Directories { - get { - string[] retval = new string [_directories.Count]; - - foreach (string directory in _directories.Keys) - retval [(int) _directories [directory] - 1] = directory; - - return retval; - } - } - - public ISourceMethod[] Methods { - get { - ISourceMethod[] retval = new ISourceMethod [_methods.Count]; - - foreach (ISourceMethod method in _methods.Keys) { - retval [(int) _methods [method] - 1] = method; - } - - return retval; - } - } - - public LineNumberEngine (DwarfFileWriter writer) - { - this.dw = writer; - this.aw = writer.AssemblerWriter; - this.ReferenceIndex = aw.GetNextLabelIndex (); - - dw.AddLineNumberEngine (this); - } - - public int LookupSource (ISourceFile source) - { - if (_sources.ContainsKey (source)) - return (int) _sources [source]; - - int index = ++next_source_id; - _sources.Add (source, index); - return index; - } - - public int LookupDirectory (string directory) - { - if (_directories.ContainsKey (directory)) - return (int) _directories [directory]; - - int index = ++next_directory_id; - _directories.Add (directory, index); - return index; - } - - public void AddMethod (ISourceMethod method) - { - LookupSource (method.SourceFile); - - int index = ++next_method_id; - _methods.Add (method, index); - } - - private void SetFile (ISourceFile source) - { - aw.WriteInt8 ((int) DW_LNS.LNS_set_file); - aw.WriteULeb128 (LookupSource (source)); - } - - private int st_line = 1; - - private void SetLine (int line) - { - aw.WriteInt8 ((int) DW_LNS.LNS_advance_line); - aw.WriteSLeb128 (line - st_line); - st_line = line; - } - - private void SetAddress (int token, int address) - { - aw.WriteUInt8 (0); - object end_index = aw.StartSubsectionWithShortSize (); - aw.WriteUInt8 ((int) DW_LNE.LNE_set_address); - dw.AddRelocEntry (RelocEntryType.IL_OFFSET, token, address); - aw.WriteAddress (0); - aw.EndSubsection (end_index); - } - - private void SetStartAddress (int token) - { - aw.WriteUInt8 (0); - object end_index = aw.StartSubsectionWithShortSize (); - aw.WriteUInt8 ((int) DW_LNE.LNE_set_address); - dw.AddRelocEntry (RelocEntryType.METHOD_START_ADDRESS, token); - aw.WriteAddress (0); - aw.EndSubsection (end_index); - } - - private void SetEndAddress (int token) - { - aw.WriteUInt8 (0); - object end_index = aw.StartSubsectionWithShortSize (); - aw.WriteUInt8 ((int) DW_LNE.LNE_set_address); - dw.AddRelocEntry (RelocEntryType.METHOD_END_ADDRESS, token); - aw.WriteAddress (0); - aw.EndSubsection (end_index); - } - - private void SetBasicBlock () - { - aw.WriteUInt8 ((int) DW_LNS.LNS_set_basic_block); - } - - private void EndSequence () - { - aw.WriteUInt8 (0); - aw.WriteUInt8 (1); - aw.WriteUInt8 ((int) DW_LNE.LNE_end_sequence); - - st_line = 1; - } - - private void Commit () - { - aw.WriteUInt8 ((int) DW_LNS.LNS_copy); - } - - private void WriteOneLine (int token, int line, int offset) - { - aw.WriteInt8 ((int) DW_LNS.LNS_advance_line); - aw.WriteSLeb128 (line - st_line); - aw.WriteUInt8 (0); - object end_index = aw.StartSubsectionWithShortSize (); - aw.WriteUInt8 ((int) DW_LNE.LNE_set_address); - dw.AddRelocEntry (RelocEntryType.IL_OFFSET, token, offset); - aw.WriteAddress (0); - aw.EndSubsection (end_index); - - aw.Write2Bytes ((int) DW_LNS.LNS_set_basic_block, - (int) DW_LNS.LNS_copy); - - st_line = line; - } - - public void Emit () - { - dw.WriteSectionStart (Section.DEBUG_LINE); - aw.WriteLabel (ReferenceIndex); - object end_index = aw.StartSubsectionWithSize (); - - aw.WriteUInt16 (2); - object start_index = aw.StartSubsectionWithSize (); - aw.WriteUInt8 (1); - aw.WriteUInt8 (1); - aw.WriteInt8 (LineBase); - aw.WriteUInt8 (LineRange); - aw.WriteUInt8 (StandardOpcodeSizes.Length); - for (int i = 1; i < StandardOpcodeSizes.Length; i++) - aw.WriteUInt8 (StandardOpcodeSizes [i]); - - foreach (string directory in Directories) - aw.WriteString (directory); - aw.WriteUInt8 (0); - - foreach (ISourceFile source in Sources) { - aw.WriteString (source.FileName); - aw.WriteULeb128 (0); - aw.WriteULeb128 (0); - aw.WriteULeb128 (0); - } - - aw.WriteUInt8 (0); - - aw.EndSubsection (start_index); - - foreach (ISourceMethod method in Methods) { - if (method.Start == null || method.Start.Row == 0) - continue; - - SetFile (method.SourceFile); - SetLine (method.Start.Row); - SetStartAddress (method.Token); - SetBasicBlock (); - Commit (); - - foreach (ISourceLine line in method.Lines) { - count++; - WriteOneLine (method.Token, line.Row, line.Offset); - // SetLine (line.Row); - // SetAddress (method.Token, line.Offset); - // SetBasicBlock (); - // Commit (); - } - - SetLine (method.End.Row); - SetEndAddress (method.Token); - SetBasicBlock (); - Commit (); - - EndSequence (); - } - - aw.EndSubsection (end_index); - aw.WriteSectionEnd (); - } - } - - // DWARF tag from the DWARF 2 specification. - public enum DW_TAG { - TAG_array_type = 0x01, - TAG_class_type = 0x02, - TAG_enumeration_type = 0x04, - TAG_formal_parameter = 0x05, - TAG_lexical_block = 0x0b, - TAG_member = 0x0d, - TAG_pointer_type = 0x0f, - TAG_compile_unit = 0x11, - TAG_string_type = 0x12, - TAG_structure_type = 0x13, - TAG_typedef = 0x16, - TAG_inheritance = 0x1c, - TAG_subrange_type = 0x21, - TAG_base_type = 0x24, - TAG_enumerator = 0x28, - TAG_subprogram = 0x2e, - TAG_variable = 0x34 - } - - // DWARF attribute from the DWARF 2 specification. - public enum DW_AT { - AT_location = 0x02, - AT_name = 0x03, - AT_byte_size = 0x0b, - AT_stmt_list = 0x10, - AT_low_pc = 0x11, - AT_high_pc = 0x12, - AT_language = 0x13, - AT_string_length = 0x19, - AT_const_value = 0x1c, - AT_lower_bound = 0x22, - AT_producer = 0x25, - AT_start_scope = 0x2c, - AT_upper_bound = 0x2f, - AT_accessibility = 0x32, - AT_artificial = 0x34, - AT_count = 0x37, - AT_data_member_location = 0x38, - AT_declaration = 0x3c, - AT_encoding = 0x3e, - AT_external = 0x3f, - AT_specification = 0x47, - AT_type = 0x49, - AT_data_location = 0x50, - AT_end_scope = 0x2121 - } - - // DWARF form from the DWARF 2 specification. - public enum DW_FORM { - FORM_addr = 0x01, - FORM_block4 = 0x04, - FORM_data4 = 0x06, - FORM_string = 0x08, - FORM_data1 = 0x0b, - FORM_flag = 0x0c, - FORM_sdata = 0x0d, - FORM_udata = 0x0f, - FORM_ref4 = 0x13 - } - - public enum DW_LANG { - LANG_C_plus_plus = 0x04, - LANG_C_sharp = 0x9001 - } - - public enum DW_OP { - OP_addr = 0x03, - OP_deref = 0x06, - OP_const1u = 0x08, - OP_const1s = 0x09, - OP_const2u = 0x0a, - OP_const2s = 0x0b, - OP_const4u = 0x0c, - OP_const4s = 0x0d, - OP_const8u = 0x0e, - OP_const8s = 0x0f, - OP_constu = 0x10, - OP_consts = 0x11, - OP_plus = 0x22, - OP_plus_uconst = 0x23, - OP_fbreg = 0x91, - } - - public enum DW_ACCESS { - ACCESS_public = 1, - ACCESS_protected = 2, - ACCESS_private = 3 - }; - - protected enum MRI_string { - offset_length = 0x00, - offset_chars = 0x01 - } - - protected enum MRI_array { - offset_bounds = 0x00, - offset_max_length = 0x01, - offset_vector = 0x02 - } - - protected enum MRI_array_bounds { - offset_lower = 0x00, - offset_length = 0x01 - } - - // Abstract base class for a "debugging information entry" (die). - public abstract class Die - { - protected DwarfFileWriter dw; - protected IAssemblerWriter aw; - protected ArrayList child_dies = new ArrayList (); - public readonly Die Parent; - - protected readonly int abbrev_id; - protected readonly AbbrevDeclaration abbrev_decl; - - public readonly int ReferenceIndex; - - // - // Create a new die If @parent is not null, add the newly - // created die to the parent's list of child dies. - // - // @abbrev_id is the abbreviation id for this die class. - // Derived classes should call the DwarfFileWriter's static - // RegisterAbbrevDeclaration function in their static constructor - // to get an abbrev id. Once you registered an abbrev entry, it'll - // be automatically written to the debug_abbrev section. - // - public Die (DwarfFileWriter dw, Die parent, int abbrev_id) - { - this.dw = dw; - this.aw = dw.AssemblerWriter; - this.Parent = parent; - this.abbrev_id = abbrev_id; - this.abbrev_decl = GetAbbrevDeclaration (abbrev_id); - this.ReferenceIndex = this.aw.GetNextLabelIndex (); - - if (parent != null) - parent.AddChildDie (this); - } - - public Die (DwarfFileWriter dw, int abbrev_id) - : this (dw, null, abbrev_id) - { } - - public Die (Die parent, int abbrev_id) - : this (parent.dw, parent, abbrev_id) - { } - - protected void AddChildDie (Die die) - { - child_dies.Add (die); - } - - public override bool Equals (object o) - { - if (!(o is Die)) - return false; - - return ((Die) o).ReferenceIndex == ReferenceIndex; - } - - public override int GetHashCode () - { - return ReferenceIndex; - } - - // - // Write this die and all its children to the dwarf file. - // - public virtual void Emit () - { - aw.WriteLabel (ReferenceIndex); - - aw.WriteULeb128 (abbrev_id); - DoEmit (); - - if (abbrev_decl.HasChildren) { - foreach (Die child in child_dies) - child.Emit (); - - aw.WriteUInt8 (0); - } - } - - // - // Derived classes must implement this function to actually - // write themselves to the dwarf file. - // - // Note that the abbrev id has already been written in Emit() - - // if you don't like this, you must override Emit() as well. - // - public abstract void DoEmit (); - - // - // Gets the compile unit of this die. - // - public virtual DieCompileUnit GetCompileUnit () - { - Die die = this; - - while (die.Parent != null) - die = die.Parent; - - if (die is DieCompileUnit) - return (DieCompileUnit) die; - else - return null; - } - - public DieCompileUnit DieCompileUnit { - get { - return GetCompileUnit (); - } - } - - public DwarfFileWriter Writer { - get { - return dw; - } - } - } - - // DW_TAG_compile_unit - public class DieCompileUnit : Die - { - private static int my_abbrev_id; - - protected Hashtable types = new Hashtable (); - protected Hashtable methods = new Hashtable (); - protected Hashtable pointer_types = new Hashtable (); - - static DieCompileUnit () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_producer, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_language, DW_FORM.FORM_udata), - new AbbrevEntry (DW_AT.AT_stmt_list, DW_FORM.FORM_ref4) - }; - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_compile_unit, true, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - public readonly CompileUnit CompileUnit; - public readonly bool DoGeneric; - public readonly LineNumberEngine LineNumberEngine; - - // - // Create a new DW_TAG_compile_unit debugging information entry - // and add it to the @compile_unit. - // - public DieCompileUnit (CompileUnit compile_unit) - : base (compile_unit.DwarfFileWriter, my_abbrev_id) - { - this.CompileUnit = compile_unit; - this.DoGeneric = dw.DoGeneric; - compile_unit.AddDie (this); - - LineNumberEngine = new LineNumberEngine (dw); - } - - public void WriteRelativeDieReference (Die target_die) - { - if (!this.Equals (target_die.GetCompileUnit ())) - throw new ArgumentException ("Target die must be in the same " - + "compile unit"); - - aw.WriteRelativeOffset (CompileUnit.ReferenceIndex, - target_die.ReferenceIndex); - } - - public void WriteTypeReference (ITypeHandle ihandle) - { - WriteTypeReference (ihandle, true); - } - - public void WriteTypeReference (ITypeHandle ihandle, bool use_pointer_die) - { - if (!(ihandle is TypeHandle)) - throw new NotSupportedException (); - - TypeHandle handle = (TypeHandle) ihandle; - - if (use_pointer_die && (handle.PointerDie != null)) - WriteRelativeDieReference (handle.PointerDie); - else - WriteRelativeDieReference (handle.TypeDie); - } - - public override void DoEmit () - { - aw.WriteString (CompileUnit.SourceFile); - aw.WriteString (CompileUnit.ProducerID); - if (dw.use_gnu_extensions) - aw.WriteULeb128 ((int) DW_LANG.LANG_C_sharp); - else - aw.WriteULeb128 ((int) DW_LANG.LANG_C_plus_plus); - aw.WriteAbsoluteOffset (LineNumberEngine.ReferenceIndex); - } - } - - // DW_TAG_subprogram - public class DieSubProgram : Die - { - private static int my_abbrev_id_1; - private static int my_abbrev_id_2; - private static int my_abbrev_id_3; - private static int my_abbrev_id_4; - private static int my_abbrev_id_5; - - static DieSubProgram () - { - // Method without return value - AbbrevEntry[] entries_1 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_low_pc, DW_FORM.FORM_addr), - new AbbrevEntry (DW_AT.AT_high_pc, DW_FORM.FORM_addr) - }; - // Method with return value - AbbrevEntry[] entries_2 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_low_pc, DW_FORM.FORM_addr), - new AbbrevEntry (DW_AT.AT_high_pc, DW_FORM.FORM_addr), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4) - }; - // Method declaration without return value - AbbrevEntry[] entries_3 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_declaration, DW_FORM.FORM_flag) - }; - // Method declaration with return value - AbbrevEntry[] entries_4 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_declaration, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4) - }; - // Method definition - AbbrevEntry[] entries_5 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_specification, DW_FORM.FORM_ref4) - }; - - - AbbrevDeclaration decl_1 = new AbbrevDeclaration ( - DW_TAG.TAG_subprogram, true, entries_1); - AbbrevDeclaration decl_2 = new AbbrevDeclaration ( - DW_TAG.TAG_subprogram, true, entries_2); - AbbrevDeclaration decl_3 = new AbbrevDeclaration ( - DW_TAG.TAG_subprogram, true, entries_3); - AbbrevDeclaration decl_4 = new AbbrevDeclaration ( - DW_TAG.TAG_subprogram, true, entries_4); - AbbrevDeclaration decl_5 = new AbbrevDeclaration ( - DW_TAG.TAG_subprogram, true, entries_5); - - my_abbrev_id_1 = RegisterAbbrevDeclaration (decl_1); - my_abbrev_id_2 = RegisterAbbrevDeclaration (decl_2); - my_abbrev_id_3 = RegisterAbbrevDeclaration (decl_3); - my_abbrev_id_4 = RegisterAbbrevDeclaration (decl_4); - my_abbrev_id_5 = RegisterAbbrevDeclaration (decl_5); - } - - private static int get_abbrev_id (bool DoGeneric, ISourceMethod method) - { - if (DoGeneric) - if (method.ReturnType == typeof (void)) - return my_abbrev_id_3; - else - return my_abbrev_id_4; - else - if (method.ReturnType == typeof (void)) - return my_abbrev_id_1; - else - return my_abbrev_id_2; - } - - protected string name; - protected Die specification_die; - protected ISourceMethod method; - protected ITypeHandle retval_type; - - // - // Create a new DW_TAG_subprogram debugging information entry - // for method @name (which has a void return value) and add it - // to the @parent_die - // - public DieSubProgram (DieCompileUnit parent_die, Die specification_die, - ISourceMethod method) - : this (parent_die, method.FullName, method, my_abbrev_id_5) - { - this.specification_die = specification_die; - } - - public DieSubProgram (Die parent_die, ISourceMethod method) - : this (parent_die, method.MethodBase.Name, method, - get_abbrev_id (false, method)) - { - if (method.ReturnType != typeof (void)) - retval_type = dw.RegisterType (method.ReturnType); - - DieCompileUnit.LineNumberEngine.AddMethod (method); - } - - private DieSubProgram (Die parent_die, string name, ISourceMethod method, - int abbrev_id) - : base (parent_die, abbrev_id) - { - this.name = name; - this.method = method; - - if (!method.MethodBase.IsStatic) - new DieMethodVariable (this, method); - - foreach (ParameterInfo param in method.Parameters) { - MethodParameter mp = new MethodParameter (dw, method, param); - - new DieMethodVariable (this, mp); - } - } - - public override void DoEmit () - { - aw.WriteString (name); - aw.WriteUInt8 (true); - if (specification_die != null) { - DieCompileUnit.WriteRelativeDieReference (specification_die); - return; - } - - if (dw.DoGeneric) - aw.WriteUInt8 (true); - else { - dw.AddRelocEntry (RelocEntryType.METHOD_START_ADDRESS, method.Token); - aw.WriteAddress (0); - dw.AddRelocEntry (RelocEntryType.METHOD_END_ADDRESS, method.Token); - aw.WriteAddress (0); - } - if (method.ReturnType != typeof (void)) - DieCompileUnit.WriteTypeReference (retval_type); - } - } - - // DW_TAG_base_type - public class DieBaseType : DieType - { - private static int my_abbrev_id; - - static DieBaseType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_encoding, DW_FORM.FORM_data1), - new AbbrevEntry (DW_AT.AT_byte_size, DW_FORM.FORM_data1) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_base_type, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected Type type; - protected string name; - - // - // Create a new DW_TAG_base_type debugging information entry - // - public DieBaseType (DieCompileUnit parent_die, ITypeHandle type) - : this (parent_die, type, type.Name) - { } - - public DieBaseType (DieCompileUnit parent_die, ITypeHandle type, string name) - : base (parent_die, type, my_abbrev_id) - { - this.type = type.Type; - this.name = name; - } - - protected enum DW_ATE { - ATE_void = 0x00, - ATE_address = 0x01, - ATE_boolean = 0x02, - ATE_complex_float = 0x03, - ATE_float = 0x04, - ATE_signed = 0x05, - ATE_signed_char = 0x06, - ATE_unsigned = 0x07, - ATE_unsigned_char = 0x08 - } - - public override void DoEmit () - { - aw.WriteString (name); - if (type == typeof (void)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_address); - aw.WriteUInt8 (0); - } else if (type == typeof (bool)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_boolean); - aw.WriteUInt8 (1); - } else if (type == typeof (char)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_unsigned_char); - aw.WriteUInt8 (2); - } else if (type == typeof (sbyte)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_signed); - aw.WriteUInt8 (1); - } else if (type == typeof (byte)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_unsigned); - aw.WriteUInt8 (1); - } else if (type == typeof (short)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_signed); - aw.WriteUInt8 (2); - } else if (type == typeof (ushort)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_unsigned); - aw.WriteUInt8 (2); - } else if (type == typeof (int)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_signed); - aw.WriteUInt8 (4); - } else if (type == typeof (uint)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_unsigned); - aw.WriteUInt8 (4); - } else if (type == typeof (long)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_signed); - aw.WriteUInt8 (8); - } else if (type == typeof (ulong)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_unsigned); - aw.WriteUInt8 (8); - } else if (type == typeof (float)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_float); - aw.WriteUInt8 (4); - } else if (type == typeof (double)) { - aw.WriteUInt8 ((int) DW_ATE.ATE_float); - aw.WriteUInt8 (8); - } else - throw new ArgumentException ("Not a base type: " + type); - } - } - - // - // Abstract base class for types. - // - - public abstract class DieType : Die - { - private readonly ITypeHandle type_handle; - - public DieType (Die parent_die, Type type, int abbrev_id) - : this (parent_die, parent_die.Writer.RegisterType (type), abbrev_id) - { } - - public DieType (Die parent_die, ITypeHandle type_handle, int abbrev_id) - : base (parent_die, abbrev_id) - { - this.type_handle = type_handle; - } - - public virtual void CreateType () - { } - - public ITypeHandle TypeHandle { - get { - return type_handle; - } - } - } - - - // DW_TAG_pointer_type - public class DiePointerType : DieType - { - private static int my_abbrev_id; - - static DiePointerType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_pointer_type, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - public DiePointerType (DieCompileUnit parent_die, Type type) - : base (parent_die, parent_die.Writer.RegisterType (type.GetElementType ()), - my_abbrev_id) - { } - - public override void DoEmit () - { - DieCompileUnit.WriteTypeReference (TypeHandle); - } - } - - public class DieTypeDef : DieType - { - private static int my_abbrev_id; - - static DieTypeDef () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_typedef, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected string name; - - public DieTypeDef (Die parent_die, ITypeHandle type, string name) - : base (parent_die, type, my_abbrev_id) - { - this.name = name; - } - - public override void DoEmit () - { - aw.WriteString (name); - DieCompileUnit.WriteTypeReference (TypeHandle); - } - } - - public class DieInternalTypeDef : Die - { - private static int my_abbrev_id; - - static DieInternalTypeDef () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_typedef, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected Die type_die; - protected string name; - - public DieInternalTypeDef (DieCompileUnit parent_die, Die type_die, string name) - : base (parent_die, my_abbrev_id) - { - this.type_die = type_die; - this.name = name; - } - - public override void DoEmit () - { - aw.WriteString (name); - DieCompileUnit.WriteRelativeDieReference (type_die); - } - } - - public class DieInternalPointer : Die - { - private static int my_abbrev_id; - - static DieInternalPointer () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_pointer_type, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected Die type_die; - - public DieInternalPointer (DieCompileUnit parent_die, Die type_die) - : base (parent_die, my_abbrev_id) - { - this.type_die = type_die; - } - - public override void DoEmit () - { - DieCompileUnit.WriteRelativeDieReference (type_die); - } - } - - // DW_TAG_enumeration_type - public class DieEnumType : DieType - { - private static int my_abbrev_id; - - static DieEnumType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_byte_size, DW_FORM.FORM_data1) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_enumeration_type, true, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - public DieEnumType (DieCompileUnit parent_die, ITypeHandle type) - : base (parent_die, type, my_abbrev_id) - { - Array values = Enum.GetValues (type.Type); - string[] names = Enum.GetNames (type.Type); - - foreach (object value in values) { - int intval; - string name = null; - - if (value is int) - intval = (int) value; - else - intval = System.Convert.ToInt32 (value); - - for (int i = 0; i < values.Length; ++i) - if (value.Equals (values.GetValue (i))) { - name = names [i]; - break; - } - - if (name == null) - throw new ArgumentException (); - - new DieEnumerator (this, name, intval); - } - } - - public override void DoEmit () - { - aw.WriteString (TypeHandle.Name); - dw.AddRelocEntry_TypeSize (TypeHandle); - aw.WriteUInt8 (0); - } - } - - // DW_TAG_enumerator - public class DieEnumerator : Die - { - private static int my_abbrev_id; - - static DieEnumerator () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_const_value, DW_FORM.FORM_data4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_enumerator, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected string name; - protected int value; - - public DieEnumerator (DieEnumType parent_die, string name, int value) - : base (parent_die, my_abbrev_id) - { - this.name = name; - this.value = value; - } - - public override void DoEmit () - { - aw.WriteString (name); - aw.WriteInt32 (value); - } - } - - // DW_TAG_structure_type - public class DieStructureType : DieType - { - private static int my_abbrev_id; - - static DieStructureType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_byte_size, DW_FORM.FORM_data1) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_structure_type, true, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected DieCompileUnit parent_die; - protected readonly Type type; - protected string name; - protected FieldInfo[] fields; - protected ITypeHandle[] field_types; - protected Die[] field_dies; - protected MethodInfo[] methods; - protected Die[] method_dies; - - protected const BindingFlags FieldBindingFlags = - BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | - BindingFlags.Static | BindingFlags.DeclaredOnly; - - public override void CreateType () - { - fields = this.type.GetFields (FieldBindingFlags); - field_types = new ITypeHandle [fields.Length]; - field_dies = new Die [fields.Length]; - - int index = 0; - for (int i = 0; i < fields.Length; i++) { - Type field_type = fields [i].FieldType; - field_types [i] = dw.RegisterType (field_type); - DW_ACCESS access; - - if (fields [i].IsPublic) - access = DW_ACCESS.ACCESS_public; - else if (fields [i].IsPrivate) - access = DW_ACCESS.ACCESS_private; - else - access = DW_ACCESS.ACCESS_protected; - - if (fields [i].IsStatic) { - field_dies [i] = new DieStaticVariable (this, fields [i].Name, - i, field_types [i]); - string name = String.Concat (type.FullName, ".", - fields [i].Name); - new DieStaticVariableDefinition (parent_die, fields [i].Name, - field_dies [i]); - } else - field_dies [i] = new DieMember (this, fields [i].Name, - index++, field_types [i], - access); - } - - base.CreateType (); - } - - public DieStructureType (DieCompileUnit parent_die, ITypeHandle type) - : this (parent_die, type, type.Name, my_abbrev_id) - { } - - protected DieStructureType (DieCompileUnit parent_die, ITypeHandle type, - int abbrev_id) - : this (parent_die, type, type.Name, abbrev_id) - { } - - protected DieStructureType (DieCompileUnit parent_die, ITypeHandle type, - string name) - : this (parent_die, type, name, my_abbrev_id) - { } - - protected DieStructureType (DieCompileUnit parent_die, ITypeHandle type, - string name, int abbrev_id) - : base (parent_die, type, abbrev_id) - { - this.parent_die = parent_die; - this.type = type.Type; - this.name = name; - } - - public override void DoEmit () - { - aw.WriteString (name); - dw.AddRelocEntry_TypeSize (TypeHandle); - aw.WriteUInt8 (0); - } - } - - public class DieArrayType : DieStructureType - { - protected new readonly ITypeHandle type; - protected ITypeHandle element_type; - protected int rank; - - public DieArrayType (DieCompileUnit parent_die, ITypeHandle type) - : this (parent_die, type, type.Type.GetArrayRank ()) - { } - - private DieArrayType (DieCompileUnit parent_die, ITypeHandle type, int rank) - : base (parent_die, parent_die.Writer.array_type, type.Name) - { - this.type = type; - this.rank = rank; - } - - public override void CreateType () - { - element_type = ((TypeHandle) type).ArrayElementType; - - new DieMember (this, "Bounds", - (int) MRI_array.offset_bounds, - ((TypeHandle) type).ArrayBoundsType); - - new DieMember (this, "MaxLength", - (int) MRI_array.offset_max_length, - dw.int_type); - - new DieMember (this, "Vector", - (int) MRI_array.offset_vector, - ((TypeHandle) type).ArrayVectorType); - - base.CreateType (); - } - } - - public class DieArrayBoundsType : DieStructureType - { - public DieArrayBoundsType (DieCompileUnit parent_die, ITypeHandle type) - : base (parent_die, type, type.Name) - { } - - public override void CreateType () - { - new DieMember (this, "Lower", - (int) MRI_array_bounds.offset_lower, - dw.int_type); - - new DieMember (this, "Length", - (int) MRI_array_bounds.offset_length, - dw.int_type); - - base.CreateType (); - } - } - - public class DieStringType : DieStructureType - { - protected new readonly ITypeHandle type; - - public DieStringType (DieCompileUnit parent_die, ITypeHandle type) - : base (parent_die, parent_die.Writer.string_type, "MonoString") - { - this.type = type; - } - - public override void CreateType () - { - new DieMember (this, "Length", - (int) MRI_string.offset_length, - dw.int_type); - - new DieMember (this, "Chars", - (int) MRI_string.offset_chars, - dw.string_type.ArrayVectorType); - - base.CreateType (); - } - } - - public class DieMonoStringType : DieType - { - private static int my_abbrev_id; - - static DieMonoStringType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_string_length, DW_FORM.FORM_block4), - new AbbrevEntry (DW_AT.AT_byte_size, DW_FORM.FORM_data4), - new AbbrevEntry (DW_AT.AT_data_location, DW_FORM.FORM_block4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_string_type, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - public DieMonoStringType (Die parent_die) - : base (parent_die, parent_die.Writer.void_type, my_abbrev_id) - { } - - public override void DoEmit () - { - object end_index; - - end_index = aw.StartSubsectionWithSize (); - dw.AddRelocEntry (RelocEntryType.MONO_STRING_STRING_LENGTH); - aw.WriteUInt32 (0); - aw.WriteUInt32 (0); - aw.EndSubsection (end_index); - - dw.AddRelocEntry (RelocEntryType.MONO_STRING_BYTE_SIZE); - aw.WriteUInt32 (0); - - end_index = aw.StartSubsectionWithSize (); - dw.AddRelocEntry (RelocEntryType.MONO_STRING_DATA_LOCATION); - aw.WriteUInt32 (0); - aw.WriteUInt32 (0); - aw.EndSubsection (end_index); - } - } - - protected class DieInternalArray : DieType - { - private static int my_abbrev_id; - - static DieInternalArray () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_byte_size, DW_FORM.FORM_data1) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_array_type, true, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - public DieInternalArray (Die parent_die, ITypeHandle type) - : base (parent_die, type, my_abbrev_id) - { } - - public override void DoEmit () - { - aw.WriteString (TypeHandle.Name); - DieCompileUnit.WriteTypeReference (TypeHandle); - aw.WriteUInt8 (4); - } - } - - public class DieMonoArrayType : DieType - { - private static int my_abbrev_id; - - protected readonly ITypeHandle type; - protected ITypeHandle element_type; - protected int rank; - - static DieMonoArrayType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_data_location, DW_FORM.FORM_block4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_array_type, true, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - public DieMonoArrayType (Die parent_die, ITypeHandle type) - : this (parent_die, type, type.Type.GetArrayRank ()) - { } - - private DieMonoArrayType (Die parent_die, ITypeHandle type, int rank) - : base (parent_die, type, my_abbrev_id) - { - this.type = type; - this.rank = rank; - } - - public override void CreateType () - { - element_type = ((TypeHandle) type).ArrayElementType; - - new DieInternalSubRangeType (this); - - base.CreateType (); - } - - public override void DoEmit () - { - bool use_ptr_die; - if (element_type.Type.Equals (typeof (string))) - use_ptr_die = true; - else - use_ptr_die = false; - - DieCompileUnit.WriteTypeReference (element_type, use_ptr_die); - - object end_index = aw.StartSubsectionWithSize (); - dw.AddRelocEntry (RelocEntryType.MONO_ARRAY_DATA_LOCATION); - aw.WriteUInt32 (0); - aw.WriteUInt32 (0); - aw.EndSubsection (end_index); - } - } - - public class DieInternalSubRangeType : DieType - { - private static int my_abbrev_id_1; - private static int my_abbrev_id_2; - - static DieInternalSubRangeType () - { - AbbrevEntry[] entries_1 = { - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_byte_size, DW_FORM.FORM_data4), - new AbbrevEntry (DW_AT.AT_count, DW_FORM.FORM_block4) - }; - AbbrevEntry[] entries_2 = { - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_lower_bound, DW_FORM.FORM_block4), - new AbbrevEntry (DW_AT.AT_upper_bound, DW_FORM.FORM_block4) - }; - - AbbrevDeclaration decl_1 = new AbbrevDeclaration ( - DW_TAG.TAG_subrange_type, false, entries_1); - AbbrevDeclaration decl_2 = new AbbrevDeclaration ( - DW_TAG.TAG_subrange_type, false, entries_2); - - my_abbrev_id_1 = RegisterAbbrevDeclaration (decl_1); - my_abbrev_id_2 = RegisterAbbrevDeclaration (decl_2); - } - - protected int dimension; - - public DieInternalSubRangeType (Die parent_die) - : base (parent_die, parent_die.Writer.int_type, my_abbrev_id_1) - { - this.dimension = -1; - } - - public DieInternalSubRangeType (Die parent_die, int dimension) - : base (parent_die, parent_die.Writer.int_type, my_abbrev_id_2) - { - this.dimension = dimension; - } - - public override void DoEmit () - { - DieCompileUnit.WriteTypeReference (TypeHandle); - - if (dimension >= 0) - throw new NotImplementedException (); - else { - dw.AddRelocEntry (RelocEntryType.MONO_ARRAY_LENGTH_BYTE_SIZE); - aw.WriteUInt32 (0); - - object end_index = aw.StartSubsectionWithSize (); - dw.AddRelocEntry (RelocEntryType.MONO_ARRAY_MAX_LENGTH); - aw.WriteUInt32 (0); - aw.WriteUInt32 (0); - aw.EndSubsection (end_index); - } - } - } - - public class DieSubRangeType : DieType - { - private static int my_abbrev_id; - - static DieSubRangeType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_lower_bound, DW_FORM.FORM_data4), - new AbbrevEntry (DW_AT.AT_upper_bound, DW_FORM.FORM_data4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_subrange_type, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected int lower; - protected int upper; - - public DieSubRangeType (Die parent_die, ITypeHandle type, int lower, int upper) - : base (parent_die, type, my_abbrev_id) - { - this.lower = lower; - this.upper = upper; - } - - public override void DoEmit () - { - DieCompileUnit.WriteTypeReference (TypeHandle); - aw.WriteInt32 (lower); - aw.WriteInt32 (upper); - } - } - - // DW_TAG_class_type - public class DieClassType : DieStructureType - { - private static int my_abbrev_id; - - static DieClassType () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_byte_size, DW_FORM.FORM_data1), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_class_type, true, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - ITypeHandle base_type; - - public DieClassType (DieCompileUnit parent_die, ITypeHandle type_handle) - : base (parent_die, type_handle, my_abbrev_id) - { - } - - public override void CreateType () - { - Type baset = TypeHandle.Type.BaseType; - - if ((baset != null) && !baset.Equals (typeof (object)) && !baset.Equals (typeof (System.Array))) { - base_type = dw.RegisterType (baset); - - new DieInheritance (this, base_type); - } - - base.CreateType (); - } - - public override void DoEmit () - { - aw.WriteString (TypeHandle.Name); - dw.AddRelocEntry_TypeSize (TypeHandle); - aw.WriteUInt8 (0); - aw.WriteUInt8 (true); - } - } - - // DW_TAG_inheritance - public class DieInheritance : DieType - { - private static int my_abbrev_id; - - static DieInheritance () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_data_member_location, DW_FORM.FORM_block4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_inheritance, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - public DieInheritance (Die parent_die, ITypeHandle type) - : base (parent_die, type, my_abbrev_id) - { } - - public override void DoEmit () - { - DieCompileUnit.WriteTypeReference (TypeHandle, false); - - object end_index = aw.StartSubsectionWithSize (); - aw.WriteUInt8 ((int) DW_OP.OP_const1u); - aw.WriteUInt8 (0); - aw.EndSubsection (end_index); - } - } - - // DW_TAG_member - public class DieMember : DieType - { - private static int my_abbrev_id; - - static DieMember () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_accessibility, DW_FORM.FORM_data1), - new AbbrevEntry (DW_AT.AT_data_member_location, DW_FORM.FORM_block4) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_member, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected string name; - protected int index; - protected DW_ACCESS access; - protected DieType parent_die; - - public DieMember (DieType parent_die, string name, int index, - ITypeHandle type, DW_ACCESS access) - : base (parent_die, type, my_abbrev_id) - { - this.name = name; - this.index = index; - this.access = access; - this.parent_die = parent_die; - } - - public DieMember (DieType parent_die, string name, int index, ITypeHandle type) - : this (parent_die, name, index, type, - DW_ACCESS.ACCESS_public) - { } - - public override void DoEmit () - { - aw.WriteString (name); - DieCompileUnit.WriteTypeReference (TypeHandle); - aw.WriteUInt8 ((int) access); - - object end_index = aw.StartSubsectionWithSize (); - aw.WriteUInt8 ((int) DW_OP.OP_const4u); - dw.AddRelocEntry_TypeFieldOffset (parent_die.TypeHandle, index); - aw.WriteInt32 (0); - aw.EndSubsection (end_index); - } - } - - // DW_TAG_lexical_block - public class DieLexicalBlock : Die - { - private static int my_abbrev_id; - - static DieLexicalBlock () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_low_pc, DW_FORM.FORM_addr), - new AbbrevEntry (DW_AT.AT_high_pc, DW_FORM.FORM_addr) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_lexical_block, true, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected ISourceBlock block; - - public DieLexicalBlock (Die parent_die, ISourceBlock block) - : base (parent_die, my_abbrev_id) - { - this.block = block; - } - - public override void DoEmit () - { - int token = block.SourceMethod.Token; - int start_offset = block.Start.Offset; - int end_offset = block.End.Offset; - - dw.AddRelocEntry (RelocEntryType.IL_OFFSET, token, start_offset); - aw.WriteAddress (0); - dw.AddRelocEntry (RelocEntryType.IL_OFFSET, token, end_offset); - aw.WriteAddress (0); - } - } - - public abstract class DieVariable : DieType - { - private static int my_abbrev_id_this; - private static int my_abbrev_id_local; - private static int my_abbrev_id_param; - private static int my_abbrev_id_static; - - public enum VariableType { - VARIABLE_THIS, - VARIABLE_PARAMETER, - VARIABLE_LOCAL, - VARIABLE_STATIC - }; - - static int get_abbrev_id (VariableType vtype) - { - switch (vtype) { - case VariableType.VARIABLE_THIS: - return my_abbrev_id_this; - case VariableType.VARIABLE_PARAMETER: - return my_abbrev_id_param; - case VariableType.VARIABLE_LOCAL: - return my_abbrev_id_local; - case VariableType.VARIABLE_STATIC: - return my_abbrev_id_static; - default: - throw new ArgumentException (); - } - } - - static DieVariable () - { - AbbrevEntry[] entries_1 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_location, DW_FORM.FORM_block4), - new AbbrevEntry (DW_AT.AT_start_scope, DW_FORM.FORM_addr), - new AbbrevEntry (DW_AT.AT_end_scope, DW_FORM.FORM_addr) - }; - AbbrevEntry[] entries_2 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_location, DW_FORM.FORM_block4), - }; - AbbrevEntry[] entries_3 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_artificial, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_location, DW_FORM.FORM_block4), - }; - AbbrevEntry[] entries_4 = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_type, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_declaration, DW_FORM.FORM_flag), - new AbbrevEntry (DW_AT.AT_location, DW_FORM.FORM_block4) - }; - - AbbrevDeclaration decl_local = new AbbrevDeclaration ( - DW_TAG.TAG_variable, false, entries_1); - AbbrevDeclaration decl_param = new AbbrevDeclaration ( - DW_TAG.TAG_formal_parameter, false, entries_2); - AbbrevDeclaration decl_this = new AbbrevDeclaration ( - DW_TAG.TAG_formal_parameter, false, entries_3); - AbbrevDeclaration decl_static = new AbbrevDeclaration ( - DW_TAG.TAG_variable, false, entries_4); - - my_abbrev_id_local = RegisterAbbrevDeclaration (decl_local); - my_abbrev_id_param = RegisterAbbrevDeclaration (decl_param); - my_abbrev_id_this = RegisterAbbrevDeclaration (decl_this); - my_abbrev_id_static = RegisterAbbrevDeclaration (decl_static); - } - - protected string name; - protected ITypeHandle type_handle; - protected VariableType vtype; - - public DieVariable (Die parent_die, string name, ITypeHandle handle, VariableType vtype) - : base (parent_die, handle, get_abbrev_id (vtype)) - { - this.name = name; - this.type_handle = handle; - this.vtype = vtype; - } - - public override void DoEmit () - { - aw.WriteString (name); - DieCompileUnit.WriteTypeReference (type_handle); - switch (vtype) { - case VariableType.VARIABLE_LOCAL: - aw.WriteUInt8 (false); - DoEmitLocation (); - DoEmitScope (); - break; - case VariableType.VARIABLE_PARAMETER: - aw.WriteUInt8 (false); - DoEmitLocation (); - break; - case VariableType.VARIABLE_THIS: - aw.WriteUInt8 (true); - DoEmitLocation (); - break; - case VariableType.VARIABLE_STATIC: - aw.WriteUInt8 (true); - DoEmitLocation (); - break; - } - } - - protected abstract void DoEmitLocation (); - protected abstract void DoEmitScope (); - } - - public class DieMethodVariable : DieVariable - { - public DieMethodVariable (Die parent_die, ILocalVariable local) - : base (parent_die, local.Name, local.TypeHandle, - VariableType.VARIABLE_LOCAL) - { - this.var = local; - } - - public DieMethodVariable (Die parent_die, IMethodParameter param) - : base (parent_die, param.Name, param.TypeHandle, - VariableType.VARIABLE_PARAMETER) - { - this.var = param; - } - - public DieMethodVariable (Die parent_die, ISourceMethod method) - : base (parent_die, "this", - parent_die.Writer.RegisterType (method.MethodBase.ReflectedType), - VariableType.VARIABLE_THIS) - { - this.method = method; - } - - protected IVariable var; - protected ISourceMethod method; - - protected override void DoEmitLocation () - { - object end_index = aw.StartSubsectionWithSize (); - // These relocation entries expect a location description - // of exactly 8 bytes. - switch (vtype) { - case VariableType.VARIABLE_LOCAL: - dw.AddRelocEntry (RelocEntryType.LOCAL_VARIABLE, - var.Method.Token, var.Index); - break; - case VariableType.VARIABLE_PARAMETER: - dw.AddRelocEntry (RelocEntryType.METHOD_PARAMETER, - var.Method.Token, var.Index); - break; - case VariableType.VARIABLE_THIS: - dw.AddRelocEntry (RelocEntryType.METHOD_PARAMETER, - method.Token, 0); - break; - } - // This looks a bit strange, but OP_fbreg takes a sleb128 - // agument and we can't use fields of variable size. - aw.WriteUInt8 ((int) DW_OP.OP_fbreg); - aw.WriteSLeb128 (0); - aw.WriteUInt8 ((int) DW_OP.OP_const4s); - aw.WriteInt32 (0); - aw.WriteUInt8 ((int) DW_OP.OP_plus); - aw.EndSubsection (end_index); - } - - protected override void DoEmitScope () - { - dw.AddRelocEntry (RelocEntryType.VARIABLE_START_SCOPE, - var.Method.Token, var.Index); - aw.WriteAddress (0); - dw.AddRelocEntry (RelocEntryType.VARIABLE_END_SCOPE, - var.Method.Token, var.Index); - aw.WriteAddress (0); - } - } - - public class DieStaticVariable : DieVariable - { - public DieStaticVariable (DieType parent_die, string name, int index, - ITypeHandle type) - : base (parent_die, name, type, VariableType.VARIABLE_STATIC) - { - this.parent_die = parent_die; - this.index = index; - this.type = type; - } - - DieType parent_die; - ITypeHandle type; - int index; - - protected override void DoEmitLocation () - { - object end_index = aw.StartSubsectionWithSize (); - aw.WriteUInt8 ((int) DW_OP.OP_addr); - dw.AddRelocEntry_TypeStaticFieldOffset (parent_die.TypeHandle, index); - aw.WriteAddress (0); - aw.EndSubsection (end_index); - } - - protected override void DoEmitScope () - { } - } - - public class DieStaticVariableDefinition : Die - { - private static int my_abbrev_id; - - static DieStaticVariableDefinition () - { - AbbrevEntry[] entries = { - new AbbrevEntry (DW_AT.AT_name, DW_FORM.FORM_string), - new AbbrevEntry (DW_AT.AT_specification, DW_FORM.FORM_ref4), - new AbbrevEntry (DW_AT.AT_external, DW_FORM.FORM_flag) - }; - - AbbrevDeclaration decl = new AbbrevDeclaration ( - DW_TAG.TAG_variable, false, entries); - - my_abbrev_id = RegisterAbbrevDeclaration (decl); - } - - protected Die specification_die; - protected string name; - - public DieStaticVariableDefinition (DieCompileUnit parent_die, string name, - Die specification_die) - : base (parent_die, my_abbrev_id) - { - this.name = name; - this.specification_die = specification_die; - } - - public override void DoEmit () - { - aw.WriteString (name); - DieCompileUnit.WriteRelativeDieReference (specification_die); - aw.WriteUInt8 (true); - } - } - - protected const int reloc_table_version = 15; - - protected enum Section { - DEBUG_INFO = 0x01, - DEBUG_ABBREV = 0x02, - DEBUG_LINE = 0x03, - MONO_RELOC_TABLE = 0x04, - MONO_LINE_NUMBERS = 0x05, - MONO_SYMBOL_TABLE = 0x06 - } - - public struct AbbrevEntry { - public AbbrevEntry (DW_AT attribute, DW_FORM form) - { - this._attribute = attribute; - this._form = form; - } - - private DW_AT _attribute; - private DW_FORM _form; - - public DW_AT Attribute { - get { - return _attribute; - } - } - - public DW_FORM Form { - get { - return _form; - } - } - } - - public struct AbbrevDeclaration { - public AbbrevDeclaration (DW_TAG tag, bool has_children, AbbrevEntry[] entries) - { - this._tag = tag; - this._has_children = has_children; - this._entries = entries; - } - - private DW_TAG _tag; - private bool _has_children; - private AbbrevEntry[] _entries; - - public DW_TAG Tag { - get { - return _tag; - } - } - - public bool HasChildren { - get { - return _has_children; - } - } - - public AbbrevEntry[] Entries { - get { - return _entries; - } - } - } - - - protected enum RelocEntryType { - NONE, - // Size of an address on the target machine - TARGET_ADDRESS_SIZE = 0x01, - // Map an IL offset to a machine address - IL_OFFSET = 0x02, - // Start address of machine code for this method - METHOD_START_ADDRESS = 0x03, - // End address of machine code for this method - METHOD_END_ADDRESS = 0x04, - // Stack offset of local variable - LOCAL_VARIABLE = 0x05, - // Stack offset of method parameter - METHOD_PARAMETER = 0x06, - // Sizeof (type) - TYPE_SIZEOF = 0x07, - TYPE_FIELD_OFFSET = 0x08, - MONO_STRING_SIZEOF = 0x09, - MONO_STRING_OFFSET = 0x0a, - MONO_ARRAY_SIZEOF = 0x0b, - MONO_ARRAY_OFFSET = 0x0c, - MONO_ARRAY_BOUNDS_SIZEOF = 0x0d, - MONO_ARRAY_BOUNDS_OFFSET = 0x0e, - VARIABLE_START_SCOPE = 0x0f, - VARIABLE_END_SCOPE = 0x10, - MONO_STRING_FIELDSIZE = 0x11, - MONO_ARRAY_FIELDSIZE = 0x12, - TYPE_FIELD_FIELDSIZE = 0x13, - MONO_STRING_STRING_LENGTH = 0x14, - MONO_STRING_BYTE_SIZE = 0x15, - MONO_STRING_DATA_LOCATION = 0x16, - TYPE_STATIC_FIELD_OFFSET = 0x17, - MONO_ARRAY_DATA_LOCATION = 0x18, - MONO_ARRAY_MAX_LENGTH = 0x19, - MONO_ARRAY_LENGTH_BYTE_SIZE = 0x1a - } - - protected class RelocEntry { - public RelocEntry (RelocEntryType type, int token, int original, - Section section, int index) - { - _type = type; - _section = section; - _token = token; - _original = original; - _index = index; - } - - public RelocEntryType RelocType { - get { - return _type; - } - } - - public Section Section { - get { - return _section; - } - } - - public int Index { - get { - return _index; - } - } - - public int Token { - get { - return _token; - } - } - - public int Original { - get { - return _original; - } - } - - private RelocEntryType _type; - private Section _section; - private int _token; - private int _index; - private int _original; - } - - private Section current_section; - private ArrayList reloc_entries = new ArrayList (); - - private static ArrayList abbrev_declarations = new ArrayList (); - - protected string GetSectionName (Section section) - { - switch (section) { - case Section.DEBUG_INFO: - return "debug_info"; - case Section.DEBUG_ABBREV: - return "debug_abbrev"; - case Section.DEBUG_LINE: - return "debug_line"; - case Section.MONO_RELOC_TABLE: - return "mono_reloc_table"; - case Section.MONO_LINE_NUMBERS: - return "mono_line_numbers"; - case Section.MONO_SYMBOL_TABLE: - return "mono_symbol_table"; - default: - throw new ArgumentException (); - } - } - - protected void AddRelocEntry (RelocEntry entry) - { - reloc_entries.Add (entry); - } - - protected void AddRelocEntry (RelocEntryType type, int token, int original, - Section section, int index) - { - AddRelocEntry (new RelocEntry (type, token, original, section, index)); - } - - protected void AddRelocEntry (RelocEntryType type, int token, int original) - { - AddRelocEntry (type, token, original, current_section, aw.WriteLabel ()); - } - - protected void AddRelocEntry (RelocEntryType type, int token) - { - AddRelocEntry (type, token, 0); - } - - protected void AddRelocEntry (RelocEntryType type) - { - AddRelocEntry (type, 0); - } - - protected void AddRelocEntry (RelocEntryType entry_type, ITypeHandle type) - { - AddRelocEntry (entry_type, type, 0); - } - - protected void AddRelocEntry (RelocEntryType entry_type, ITypeHandle type, int original) - { - AddRelocEntry (entry_type, type.Token, original); - } - - protected void AddRelocEntry_TypeSize (ITypeHandle type) - { - if (type == string_type) - AddRelocEntry (RelocEntryType.MONO_STRING_SIZEOF); - else if (type == array_type) - AddRelocEntry (RelocEntryType.MONO_ARRAY_SIZEOF); - else if (type.Type.Equals (typeof (MonoArrayBounds))) - AddRelocEntry (RelocEntryType.MONO_ARRAY_BOUNDS_SIZEOF); - else - AddRelocEntry (RelocEntryType.TYPE_SIZEOF, type); - } - - protected void AddRelocEntry_TypeFieldOffset (ITypeHandle type, int index) - { - if (type == string_type) - AddRelocEntry (RelocEntryType.MONO_STRING_OFFSET, index); - else if (type == array_type) - AddRelocEntry (RelocEntryType.MONO_ARRAY_OFFSET, index); - else if (type.Type.Equals (typeof (MonoArrayBounds))) - AddRelocEntry (RelocEntryType.MONO_ARRAY_BOUNDS_OFFSET, index); - else - AddRelocEntry (RelocEntryType.TYPE_FIELD_OFFSET, type, index); - } - - protected void AddRelocEntry_TypeFieldSize (ITypeHandle type, int index) - { - if (type == string_type) - AddRelocEntry (RelocEntryType.MONO_STRING_FIELDSIZE, index); - else if (type == array_type) - AddRelocEntry (RelocEntryType.MONO_ARRAY_FIELDSIZE, index); - else - AddRelocEntry (RelocEntryType.TYPE_FIELD_FIELDSIZE, type, index); - } - - protected void AddRelocEntry_TypeStaticFieldOffset (ITypeHandle type, int index) - { - AddRelocEntry (RelocEntryType.TYPE_STATIC_FIELD_OFFSET, type, index); - } - - // - // Mono relocation table. See the README.relocation-table file in this - // directory for a detailed description of the file format. - // - protected void WriteRelocEntries () - { - WriteSectionStart (Section.MONO_RELOC_TABLE); - aw.WriteUInt16 (reloc_table_version); - aw.WriteUInt8 (0); - object end_index = aw.StartSubsectionWithSize (); - - int count = 0; - - foreach (RelocEntry entry in reloc_entries) { - count++; - - aw.WriteUInt8 ((int) entry.RelocType); - object tmp_index = aw.StartSubsectionWithSize (); - - aw.WriteUInt8 ((int) entry.Section); - aw.WriteAbsoluteOffset (entry.Index); - - switch (entry.RelocType) { - case RelocEntryType.METHOD_START_ADDRESS: - case RelocEntryType.METHOD_END_ADDRESS: - case RelocEntryType.TYPE_SIZEOF: - aw.WriteUInt32 (entry.Token); - break; - case RelocEntryType.IL_OFFSET: - case RelocEntryType.LOCAL_VARIABLE: - case RelocEntryType.METHOD_PARAMETER: - case RelocEntryType.TYPE_FIELD_OFFSET: - case RelocEntryType.TYPE_STATIC_FIELD_OFFSET: - case RelocEntryType.VARIABLE_START_SCOPE: - case RelocEntryType.VARIABLE_END_SCOPE: - case RelocEntryType.TYPE_FIELD_FIELDSIZE: - aw.WriteUInt32 (entry.Token); - aw.WriteUInt32 (entry.Original); - break; - case RelocEntryType.MONO_STRING_SIZEOF: - case RelocEntryType.MONO_ARRAY_SIZEOF: - case RelocEntryType.MONO_ARRAY_BOUNDS_SIZEOF: - break; - case RelocEntryType.MONO_STRING_OFFSET: - case RelocEntryType.MONO_ARRAY_OFFSET: - case RelocEntryType.MONO_ARRAY_BOUNDS_OFFSET: - case RelocEntryType.MONO_STRING_FIELDSIZE: - case RelocEntryType.MONO_ARRAY_FIELDSIZE: - aw.WriteUInt32 (entry.Token); - break; - } - - aw.EndSubsection (tmp_index); - } - - aw.EndSubsection (end_index); - aw.WriteSectionEnd (); - } - - // - // Registers a new abbreviation declaration. - // - // This function should be called by a static constructor in one of - // Die's subclasses. - // - protected static int RegisterAbbrevDeclaration (AbbrevDeclaration decl) - { - return abbrev_declarations.Add (decl) + 1; - } - - protected static AbbrevDeclaration GetAbbrevDeclaration (int index) - { - return (AbbrevDeclaration) abbrev_declarations [index - 1]; - } - - protected void WriteAbbrevDeclarations () - { - aw.WriteSectionStart (GetSectionName (Section.DEBUG_ABBREV)); - aw.WriteLabel ("debug_abbrev_b"); - - for (int index = 0; index < abbrev_declarations.Count; index++) { - AbbrevDeclaration decl = (AbbrevDeclaration) abbrev_declarations [index]; - - aw.WriteULeb128 (index + 1); - aw.WriteULeb128 ((int) decl.Tag); - aw.WriteUInt8 (decl.HasChildren); - - foreach (AbbrevEntry entry in decl.Entries) { - aw.WriteULeb128 ((int) entry.Attribute); - aw.WriteULeb128 ((int) entry.Form); - } - - aw.WriteUInt8 (0); - aw.WriteUInt8 (0); - } - - aw.WriteSectionEnd (); - } - - protected void WriteSectionStart (Section section) - { - aw.WriteSectionStart (GetSectionName (section)); - current_section = section; - } - - public void WriteLineNumberTable (IMonoSymbolWriter symwriter) - { - WriteSectionStart (Section.MONO_LINE_NUMBERS); - aw.WriteUInt16 (reloc_table_version); - - Hashtable sources = new Hashtable (); - - foreach (ISourceFile source in symwriter.Sources) { - if (sources.ContainsKey (source)) - continue; - - sources.Add (source, aw.GetNextLabelIndex ()); - } - - object line_number_end_index = aw.StartSubsectionWithSize (); - - Hashtable method_labels = new Hashtable (); - - foreach (ISourceMethod method in symwriter.Methods) { - if (method.Start == null || method.Start.Row == 0) - continue; - - int label = aw.GetNextLabelIndex (); - aw.WriteUInt32 (method.Token); - aw.WriteAbsoluteOffset ((int) sources [method.SourceFile]); - aw.WriteUInt32 (method.Start.Row); - aw.WriteAbsoluteOffset (label); - - method_labels [method] = label; - } - - aw.EndSubsection (line_number_end_index); - - foreach (ISourceMethod method in method_labels.Keys) { - aw.WriteLabel ((int) method_labels [method]); - - foreach (ISourceLine line in method.Lines) { - aw.WriteUInt32 (line.Row); - aw.WriteUInt32 (line.Offset); - } - - aw.WriteUInt32 (0); - aw.WriteUInt32 (0); - } - - foreach (ISourceFile source in sources.Keys) { - aw.WriteLabel ((int) sources [source]); - - aw.WriteString (source.FileName); - } - - aw.WriteSectionEnd (); - } - - public void WriteSymbolTable (IMonoSymbolWriter symwriter) - { - WriteSectionStart (Section.MONO_SYMBOL_TABLE); - aw.WriteUInt16 (reloc_table_version); - - object end_index = aw.StartSubsectionWithSize (); - - Type[] external_types = TypeHandle.ExternalTypes; - - aw.WriteUInt32 (external_types.Length); - for (int i = 0; i < external_types.Length; i++) { - aw.WriteString (external_types [i].Namespace); - aw.WriteString (external_types [i].Name); - } - - aw.EndSubsection (end_index); - - aw.WriteSectionEnd (); - } - } - - internal struct MonoString - { } - - internal struct MonoArrayBounds - { } - - internal struct MonoArray - { } -} diff --git a/mcs/class/Mono.CSharp.Debugger/MonoSymbolDocumentWriter.cs b/mcs/class/Mono.CSharp.Debugger/MonoSymbolDocumentWriter.cs deleted file mode 100644 index 27c4ea48749d0..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/MonoSymbolDocumentWriter.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// System.Diagnostics.SymbolStore/MonoSymbolDocumentWriter.cs -// -// Author: -// Martin Baulig (martin@gnome.org) -// -// This is the default implementation of the -// System.Diagnostics.SymbolStore.ISymbolDocumentWriter interface. -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Reflection; -using System.Reflection.Emit; -using System.Diagnostics.SymbolStore; -using System.IO; - -namespace Mono.CSharp.Debugger -{ - - public class MonoSymbolDocumentWriter : ISymbolDocumentWriter - { - protected string url; - - // - // Constructor - // - public MonoSymbolDocumentWriter (string url) - { - this.url = url; - } - - public string FileName { - get { - return url; - } - } - - // - // Interface ISymbolDocumentWriter - // - - // - // MonoSymbolWriter creates a DWARF 2 debugging file and DWARF operates - // on file names, but has no way to include a whole source file in the - // symbol file. - // - - public void SetCheckSum (Guid algorithmId, byte[] checkSum) - { - throw new NotSupportedException (); - } - - public void SetSource (byte[] source) - { - throw new NotSupportedException (); - } - } -} diff --git a/mcs/class/Mono.CSharp.Debugger/MonoSymbolWriter.cs b/mcs/class/Mono.CSharp.Debugger/MonoSymbolWriter.cs deleted file mode 100755 index 145388f202bd8..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/MonoSymbolWriter.cs +++ /dev/null @@ -1,811 +0,0 @@ -// -// System.Diagnostics.SymbolStore/MonoSymbolWriter.cs -// -// Author: -// Martin Baulig (martin@gnome.org) -// -// This is the default implementation of the System.Diagnostics.SymbolStore.ISymbolWriter -// interface. -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Reflection; -using System.Reflection.Emit; -using System.Runtime.CompilerServices; -using System.Diagnostics.SymbolStore; -using System.Collections; -using System.IO; - -namespace Mono.CSharp.Debugger -{ - public class SourceFile : ISourceFile - { - private ArrayList _methods = new ArrayList (); - private string _file_name; - - public SourceFile (string filename) - { - this._file_name = filename; - } - - public override string ToString () - { - return _file_name; - } - - // interface ISourceFile - - public string FileName { - get { - return _file_name; - } - } - - public ISourceMethod[] Methods { - get { - ISourceMethod[] retval = new ISourceMethod [_methods.Count]; - _methods.CopyTo (retval); - return retval; - } - } - - public void AddMethod (ISourceMethod method) - { - _methods.Add (method); - } - } - - public class SourceBlock : ISourceBlock - { - static private int next_index; - private readonly int _index; - - public SourceBlock (ISourceMethod method, ISourceLine start, ISourceLine end) - { - this._method = method; - this._start = start; - this._end = end; - this._index = ++next_index; - } - - internal SourceBlock (ISourceMethod method, int startOffset) - { - this._method = method; - this._start = new SourceLine (startOffset); - this._index = ++next_index; - } - - public override string ToString () - { - return "SourceBlock #" + ID + " (" + Start + " - " + End + ")"; - } - - private readonly ISourceMethod _method; - private ArrayList _blocks = new ArrayList (); - internal ISourceLine _start; - internal ISourceLine _end; - - private ArrayList _locals = new ArrayList (); - - public ISourceMethod SourceMethod { - get { - return _method; - } - } - - public ISourceBlock[] Blocks { - get { - ISourceBlock[] retval = new ISourceBlock [_blocks.Count]; - _blocks.CopyTo (retval); - return retval; - } - } - - public void AddBlock (ISourceBlock block) - { - _blocks.Add (block); - } - - public ISourceLine Start { - get { - return _start; - } - } - - public ISourceLine End { - get { - return _end; - } - } - - public int ID { - get { - return _index; - } - } - - public ILocalVariable[] Locals { - get { - ILocalVariable[] retval = new ILocalVariable [_locals.Count]; - _locals.CopyTo (retval); - return retval; - } - } - - public void AddLocal (ILocalVariable local) - { - _locals.Add (local); - } - } - - public class SourceLine : ISourceLine - { - public SourceLine (int row, int column) - : this (0, row, column) - { - this._type = SourceOffsetType.OFFSET_NONE; - } - - public SourceLine (int offset, int row, int column) - { - this._offset = offset; - this._row = row; - this._column = column; - this._type = SourceOffsetType.OFFSET_IL; - } - - internal SourceLine (int offset) - : this (offset, 0, 0) - { } - - public override string ToString () - { - return "SourceLine (" + _offset + "@" + _row + ":" + _column + ")"; - } - - internal SourceOffsetType _type; - internal int _offset; - internal int _row; - internal int _column; - - // interface ISourceLine - - public SourceOffsetType OffsetType { - get { - return _type; - } - } - - public int Offset { - get { - return _offset; - } - } - - public int Row { - get { - return _row; - } - } - - public int Column { - get { - return _column; - } - } - } - - public class Variable : IVariable - { - public Variable (string name, ITypeHandle handle, ISourceMethod method, int index) - : this (name, handle, method, index, null) - { } - - public Variable (string name, ITypeHandle handle, ISourceMethod method, - int index, ISourceLine line) - { - this._name = name; - this._handle = handle; - this._method = method; - this._line = line; - this._index = index; - } - - private readonly string _name; - private readonly ITypeHandle _handle; - private readonly ISourceMethod _method; - private readonly ISourceLine _line; - private readonly int _index; - - // interface IVariable - - public string Name { - get { - return _name; - } - } - - public ISourceMethod Method { - get { - return _method; - } - } - - public int Index { - get { - return _index; - } - } - - public ITypeHandle TypeHandle { - get { - return _handle; - } - } - - public ISourceLine Line { - get { - return _line; - } - } - } - - public class LocalVariable : Variable, ILocalVariable - { - public LocalVariable (string name, ITypeHandle handle, ISourceMethod method, - int index, ISourceLine line) - : base (name, handle, method, index, line) - { } - - public override string ToString () - { - return "LocalVariable (" + Index + "," + Name + ")"; - } - } - - public class MethodParameter : Variable, IMethodParameter - { - private static int get_index (ISourceMethod method, ParameterInfo param) - { - return method.MethodBase.IsStatic ? param.Position - 1 : - param.Position; - } - - public MethodParameter (DwarfFileWriter writer, ISourceMethod method, - ParameterInfo param) - : base (param.Name, writer.RegisterType (param.ParameterType), - method, get_index (method, param)) - { - this._method = method; - this._param = param; - } - - private readonly ISourceMethod _method; - private readonly ParameterInfo _param; - } - - public class SourceMethod : ISourceMethod - { - private ArrayList _lines = new ArrayList (); - private ArrayList _blocks = new ArrayList (); - private Hashtable _block_hash = new Hashtable (); - private Stack _block_stack = new Stack (); - - internal readonly MethodBase _method_base; - internal ISourceFile _source_file; - internal int _token; - - private SourceBlock _implicit_block; - - public SourceMethod (MethodBase method_base, ISourceFile source_file) - : this (method_base) - { - this._source_file = source_file; - } - - internal SourceMethod (MethodBase method_base) - { - this._method_base = method_base; - - this._implicit_block = new SourceBlock (this, 0); - } - - public void SetSourceRange (ISourceFile sourceFile, - int startLine, int startColumn, - int endLine, int endColumn) - { - _source_file = sourceFile; - _implicit_block._start = new SourceLine (startLine, startColumn); - _implicit_block._end = new SourceLine (endLine, endColumn); - } - - - public void StartBlock (ISourceBlock block) - { - _block_stack.Push (block); - } - - public void EndBlock (int endOffset) { - SourceBlock block = (SourceBlock) _block_stack.Pop (); - - block._end = new SourceLine (endOffset); - - if (_block_stack.Count > 0) { - ISourceBlock parent = (ISourceBlock) _block_stack.Peek (); - - parent.AddBlock (block); - } else - _blocks.Add (block); - - _block_hash.Add (block.ID, block); - } - - public void SetBlockRange (int BlockID, int startOffset, int endOffset) - { - SourceBlock block = (SourceBlock) _block_hash [BlockID]; - ((SourceLine) block.Start)._offset = startOffset; - ((SourceLine) block.End)._offset = endOffset; - } - - public ISourceBlock CurrentBlock { - get { - if (_block_stack.Count > 0) - return (ISourceBlock) _block_stack.Peek (); - else - return _implicit_block; - } - } - - // interface ISourceMethod - - public ISourceLine[] Lines { - get { - ISourceLine[] retval = new ISourceLine [_lines.Count]; - _lines.CopyTo (retval); - return retval; - } - } - - public void AddLine (ISourceLine line) - { - _lines.Add (line); - } - - public ISourceBlock[] Blocks { - get { - ISourceBlock[] retval = new ISourceBlock [_blocks.Count]; - _blocks.CopyTo (retval); - return retval; - } - } - - public ILocalVariable[] Locals { - get { - return _implicit_block.Locals; - } - } - - public void AddLocal (ILocalVariable local) - { - _implicit_block.AddLocal (local); - } - - public MethodBase MethodBase { - get { - return _method_base; - } - } - - public string FullName { - get { - return _method_base.DeclaringType.FullName + "." + _method_base.Name; - } - } - - public Type ReturnType { - get { - if (_method_base is MethodInfo) - return ((MethodInfo)_method_base).ReturnType; - else if (_method_base is ConstructorInfo) - return _method_base.DeclaringType; - else - throw new NotSupportedException (); - } - } - - public ParameterInfo[] Parameters { - get { - if (_method_base == null) - return new ParameterInfo [0]; - - ParameterInfo [] retval = _method_base.GetParameters (); - if (retval == null) - return new ParameterInfo [0]; - else - return retval; - } - } - - public ISourceFile SourceFile { - get { - return _source_file; - } - } - - public int Token { - get { - if (_token != 0) - return _token; - else - throw new NotSupportedException (); - } - } - - public ISourceLine Start { - get { - return _implicit_block.Start; - } - } - - public ISourceLine End { - get { - return _implicit_block.End; - } - } - } - - public class MonoSymbolWriter : IMonoSymbolWriter - { - protected Assembly assembly; - protected ModuleBuilder module_builder; - protected ArrayList locals = null; - protected ArrayList orphant_methods = null; - protected ArrayList methods = null; - protected Hashtable sources = null; - protected DwarfFileWriter writer = null; - private ArrayList mbuilder_array = null; - - public ISourceMethod[] Methods { - get { - ISourceMethod[] retval = new ISourceMethod [methods.Count]; - methods.CopyTo (retval); - return retval; - } - } - - public ISourceFile[] Sources { - get { - ISourceFile[] retval = new ISourceFile [sources.Count]; - sources.Values.CopyTo (retval, 0); - return retval; - } - } - - public DwarfFileWriter DwarfFileWriter { - get { - return writer; - } - } - - protected SourceMethod current_method = null; - private readonly string assembly_filename = null; - - // - // Interface IMonoSymbolWriter - // - - public MonoSymbolWriter (ModuleBuilder mb, string filename, ArrayList mbuilder_array) - { - this.assembly_filename = filename; - this.module_builder = mb; - this.methods = new ArrayList (); - this.sources = new Hashtable (); - this.orphant_methods = new ArrayList (); - this.locals = new ArrayList (); - this.mbuilder_array = mbuilder_array; - } - - public void Close () { - if (assembly == null) - assembly = Assembly.LoadFrom (assembly_filename); - - DoFixups (assembly); - - CreateDwarfFile (assembly); - } - - public void CloseNamespace () { - } - - // Create and return a new IMonoSymbolDocumentWriter. - public ISymbolDocumentWriter DefineDocument (string url, - Guid language, - Guid languageVendor, - Guid documentType) - { - return new MonoSymbolDocumentWriter (url); - } - - public void DefineField ( - SymbolToken parent, - string name, - FieldAttributes attributes, - byte[] signature, - SymAddressKind addrKind, - int addr1, - int addr2, - int addr3) - { - } - - public void DefineGlobalVariable ( - string name, - FieldAttributes attributes, - byte[] signature, - SymAddressKind addrKind, - int addr1, - int addr2, - int addr3) - { - } - - public void DefineLocalVariable (string name, - FieldAttributes attributes, - byte[] signature, - SymAddressKind addrKind, - int addr1, - int addr2, - int addr3, - int startOffset, - int endOffset) - { - throw new NotSupportedException (); - } - - public void DefineLocalVariable (string name, - LocalBuilder local, - FieldAttributes attributes, - int position, - int startOffset, - int endOffset) - { - if (current_method == null) - return; - - ITypeHandle type = writer.RegisterType (local.LocalType); - - LocalVariable local_info = new LocalVariable (name, type, current_method, - position, null); - - current_method.CurrentBlock.AddLocal (local_info); - locals.Add (local_info); - } - - - public void DefineParameter (string name, - ParameterAttributes attributes, - int sequence, - SymAddressKind addrKind, - int addr1, - int addr2, - int addr3) - { - throw new NotSupportedException (); - } - - public void DefineSequencePoints (ISymbolDocumentWriter document, - int[] offsets, - int[] lines, - int[] columns, - int[] endLines, - int[] endColumns) - { - SourceLine source_line = new SourceLine (offsets [0], lines [0], columns [0]); - - if (current_method != null) - current_method.AddLine (source_line); - } - - public void Initialize (IntPtr emitter, string filename, bool fFullBuild) - { - throw new NotSupportedException (); - } - - public void Initialize (string filename, string[] args) - { - this.writer = new DwarfFileWriter (filename, args); - } - - public void OpenMethod (SymbolToken symbol_token) - { - int token = symbol_token.GetToken (); - - if ((token & 0xff000000) != 0x06000000) - throw new ArgumentException (); - - int index = (token & 0xffffff) - 1; - - MethodBuilder mb = (MethodBuilder) mbuilder_array [index]; - - current_method = new SourceMethod (mb); - - methods.Add (current_method); - } - - public void SetMethodSourceRange (ISymbolDocumentWriter startDoc, - int startLine, int startColumn, - ISymbolDocumentWriter endDoc, - int endLine, int endColumn) - { - if (current_method == null) - return; - - if ((startDoc == null) || (endDoc == null)) - throw new NullReferenceException (); - - if (!(startDoc is MonoSymbolDocumentWriter) || !(endDoc is MonoSymbolDocumentWriter)) - throw new NotSupportedException ("both startDoc and endDoc must be of type " - + "MonoSymbolDocumentWriter"); - - if (!startDoc.Equals (endDoc)) - throw new NotSupportedException ("startDoc and endDoc must be the same"); - - string source_file = ((MonoSymbolDocumentWriter) startDoc).FileName; - SourceFile source_info; - - if (sources.ContainsKey (source_file)) - source_info = (SourceFile) sources [source_file]; - else { - source_info = new SourceFile (source_file); - sources.Add (source_file, source_info); - } - - current_method.SetSourceRange (source_info, startLine, startColumn, - endLine, endColumn); - - source_info.AddMethod (current_method); - } - - public void CloseMethod () { - current_method = null; - } - - public void OpenNamespace (string name) - { - } - - public int OpenScope (int startOffset) - { - if (current_method == null) - return 0; - - ISourceBlock block = new SourceBlock (current_method, startOffset); - current_method.StartBlock (block); - - return block.ID; - } - - public void CloseScope (int endOffset) { - if (current_method == null) - return; - - current_method.EndBlock (endOffset); - } - - public void SetScopeRange (int scopeID, int startOffset, int endOffset) - { - if (current_method == null) - return; - - current_method.SetBlockRange (scopeID, startOffset, endOffset); - } - - public void SetSymAttribute (SymbolToken parent, string name, byte[] data) - { - } - - public void SetUnderlyingWriter (IntPtr underlyingWriter) - { - throw new NotSupportedException (); - } - - public void SetUserEntryPoint (SymbolToken entryMethod) - { - } - - public void UsingNamespace (string fullName) - { - } - - // - // MonoSymbolWriter implementation - // - protected void WriteLocal (DwarfFileWriter.Die parent_die, ILocalVariable local) - { - DwarfFileWriter.DieMethodVariable die; - - die = new DwarfFileWriter.DieMethodVariable (parent_die, local); - } - - protected void WriteBlock (DwarfFileWriter.Die parent_die, ISourceBlock block) - { - DwarfFileWriter.DieLexicalBlock die; - - die = new DwarfFileWriter.DieLexicalBlock (parent_die, block); - - foreach (ILocalVariable local in block.Locals) - WriteLocal (die, local); - - foreach (ISourceBlock subblock in block.Blocks) - WriteBlock (die, subblock); - } - - protected void WriteMethod (ISourceMethod method) - { - DwarfFileWriter.DieCompileUnit parent_die = writer.DieGlobalCompileUnit; - DwarfFileWriter.TypeHandle declaring_type; - DwarfFileWriter.DieSubProgram die; - DwarfFileWriter.Die defining_die; - - declaring_type = DwarfFileWriter.RegisterType (method.MethodBase.DeclaringType); - - die = new DwarfFileWriter.DieSubProgram (declaring_type.TypeDie, method); - defining_die = new DwarfFileWriter.DieSubProgram (parent_die, die, method); - - foreach (ILocalVariable local in method.Locals) - WriteLocal (defining_die, local); - - foreach (ISourceBlock block in method.Blocks) - WriteBlock (defining_die, block); - } - - protected void WriteSource (DwarfFileWriter writer, ISourceFile source) - { - foreach (ISourceMethod method in source.Methods) - WriteMethod (method); - } - - protected void DoFixups (Assembly assembly) - { - foreach (SourceMethod method in methods) { - if (method._method_base is MethodBuilder) { - MethodBuilder mb = (MethodBuilder) method._method_base; - method._token = mb.GetToken ().Token; - } else if (method._method_base is ConstructorBuilder) { - ConstructorBuilder cb = (ConstructorBuilder) method._method_base; - method._token = cb.GetToken ().Token; - } else - throw new NotSupportedException (); - - if (method.SourceFile == null) - orphant_methods.Add (method); - } - } - - protected void CreateDwarfFile (Assembly assembly) - { - foreach (ISourceFile source in sources.Values) - WriteSource (writer, source); - - if (orphant_methods.Count > 0) { - SourceFile source = new SourceFile (""); - - foreach (SourceMethod orphant in orphant_methods) { - orphant._source_file = source; - source.AddMethod (orphant); - } - - WriteSource (writer, source); - } - - writer.WriteSymbolTable (this); - - writer.WriteLineNumberTable (this); - - writer.Close (); - } - } -} - diff --git a/mcs/class/Mono.CSharp.Debugger/README b/mcs/class/Mono.CSharp.Debugger/README deleted file mode 100644 index 4fb2043099f41..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/README +++ /dev/null @@ -1,43 +0,0 @@ -This is an implementation of the System.Diagnostics.SymbolStore.ISymbolWriter -interface which writes a dwarf debugging information file. - -Unfortunately there are several major problems with this interface and I'm -unsure how to solve them: - -1.) The interface contains a constructor method `Initialize' which has an - 'IntPtr' emitter argument which seems to be a pointer to the actual - symbol writer which resides in a proprietary, undocumented DLL (I spent - almost 3 hours browsing the ".NET Framework SDK Documentation" and - msdn.microsoft.com - without success. - - A short test showed me that mscorlib doesn't like passing zero, this - won't give you the system's default implementation. - - To solve this problem, I created a derived interface IMonoSymbolWriter - which contains an additional constructor which only takes the name of - the symbol file as argument. - - void Initialize (string filename); - -2.) You seem to get an instance of a class implementing this interface by - creating a new instance of System.Reflection.Emit.ModuleBuilder (with the - `bool createSymbolFile' argument) and then calling GetSymWriter() on - the returned object. - - So far so good, but how does this method find out which symbol writer - to use ? - -3.) According to the documentation, some of the methods of - System.Reflection.Emit.ILGenerator and System.Reflection.Emit.LocalBuilder - seem to use the symbol writer to emit symbol debugging information. - - But again, how do these objects get the symbol writer ? - -Currently, there are two ways to use this assembly: - -a.) Fix the problems outlined above and dynamically load this assembly - (Mono.CSharp.Debugger.dll) when a new symbol writer is created. - -b.) Reference this assembly in your application and manually create the - symbol writer using the constructor. - diff --git a/mcs/class/Mono.CSharp.Debugger/README.relocation-table b/mcs/class/Mono.CSharp.Debugger/README.relocation-table deleted file mode 100644 index f9a875784fa88..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/README.relocation-table +++ /dev/null @@ -1,100 +0,0 @@ -This is an implementation of the System.Diagnostics.SymbolStore.ISymbolWriter -interface which writes a symbol file in the dwarf format. - -The output is an assembler input file containing dwarf data with an -additional ELF section called ".mono_reloc_table". This section is -read by the JIT engine to map IL offsets and such to machine -addresses. - -The mono relocation table contains of - -1. A 2-byte unsigned integer containing a version number, currently 2. - -2. A 1-byte unsigned integer containing a flag specifying whether the - object file containing this section has already been relocated. - - The symbol writer sets this flag to zero, you must change it to 1 - if you write the relocated file back to disk. - -3. A 4-byte unsigned integer containing the total size of the - relocation table, but not including the size field itself. - -4. One or more relocation entries. - -Each entry in the relocation table has the following form: - -1. A 1-byte unsigned integer specifying the type of this entry. - -2. A 4-byte unsigned integer containing the size of this entry, but - not including the size field itself. - -3. A 1-byte unsigned integer specifying the ELF section of this entry. - -4. A 4-byte unsigned offset from the beginning of the ELF section to - the location which needs to be relocated. This is called the target. - -5. Optional additional data depending on the type of the entry. - -The following entry types are currently defined: - -a) TARGET_ADDRESS_SIZE - 0x01 - - The target is a 1-byte unsigned integer containing the size in - bytes of an address on the target machine. - -b) IL_OFFSET - 0x02 - - The target is an integer of appropriate size to hold an address on - the target machine (the assembler ensures that the object has the - correct size) and contains an IL offset from the beginning of the - current method which needs to be replaced with the corresponding - machine address. - - This entry has a 4-byte unsigned integer argument containing the - metadata token of the current method and a 4-byte unsigned integer - argument containing the IL offset. - -c) METHOD_START_ADDRESS - 0x03 -d) METHOD_END_ADDRESS - 0x04 - - The target is an integer of appropriate size to hold an address on - the target machine (the assembler ensures that the object has the - correct size). - - This entry has a 4-byte unsigned integer argument containing the - metadata token of the current method. - -To use the generated object file, the JIT must: - -* Check whether the file contains a ".mono_reloc_table" section. - If not, the file cannot be used (you need to change the address size - field in each compilation unit header). - -* Check whether the flag field of the relocation table (the 3rd byte - of the relocation table) is zero. If it is 1, the file has already - been relocated. In this case, it's best to reject the file. - -* Set the flag field to 1. - -* Process all relocation entries. - -* Write the modified file back to disk. - -To do the relocation, the JIT can assume that: - -1.) All the relevant ELF sections are physically contiguous - (a requirement from the DWARF 2 specification). - -2.) All relocation targets holding addresses are suitable of holding - an address on the target machine. - - This means that you can do something like - - * (void **) ptr = map_to_machine (* (void **) ptr) - -3.) There are no other changes needed in the object file - so you can - just write it back to disk once you're done with the relocation. - - -Last changed March 19th, 2002 -Martin Baulig diff --git a/mcs/class/Mono.CSharp.Debugger/csharp-lang.c b/mcs/class/Mono.CSharp.Debugger/csharp-lang.c deleted file mode 100644 index d8c6f91600f96..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/csharp-lang.c +++ /dev/null @@ -1,330 +0,0 @@ -/* -*- mode: C; c-basic-offset: 2 -*- - - C# language support for Mono. - Copyright 2002 Ximian, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#include "defs.h" -#include "symtab.h" -#include "gdbtypes.h" -#include "gdbcore.h" -#include "expression.h" -#include "value.h" -#include "valprint.h" -#include "demangle.h" -#include "parser-defs.h" -#include "language.h" -#include "symfile.h" -#include "objfiles.h" -#include "gdb_string.h" -#include "csharp-lang.h" -#include "c-lang.h" -#include "annotate.h" -#include - -static void csharp_print_value_fields (struct type *type, char *valaddr, CORE_ADDR address, - struct ui_file *stream, int format, int recurse, - enum val_prettyprint pretty); - -/* Print the character C on STREAM as part of the contents of a literal - string whose delimiter is QUOTER. Note that that format for printing - characters and strings is language specific. */ - -void -csharp_emit_char (int c, struct ui_file *stream, int quoter) -{ - switch (c) - { - case '\\': - case '\'': - fprintf_filtered (stream, "\\%c", c); - break; - case '\b': - fputs_filtered ("\\b", stream); - break; - case '\t': - fputs_filtered ("\\t", stream); - break; - case '\n': - fputs_filtered ("\\n", stream); - break; - case '\f': - fputs_filtered ("\\f", stream); - break; - case '\r': - fputs_filtered ("\\r", stream); - break; - default: - if (isprint (c)) - fputc_filtered (c, stream); - else - fprintf_filtered (stream, "\\u%.4x", (unsigned int) c); - break; - } -} - -int -csharp_value_print (struct value *val, struct ui_file *stream, int format, - enum val_prettyprint pretty) -{ - struct type *type; - CORE_ADDR address; - int i; - char *name; - - type = VALUE_TYPE (val); - address = VALUE_ADDRESS (val) + VALUE_OFFSET (val); - - CHECK_TYPEDEF (type); - if (TYPE_CODE (type) == TYPE_CODE_PTR) - { - struct type *target_type = check_typedef (TYPE_TARGET_TYPE (type)); - CORE_ADDR addr = unpack_pointer (type, VALUE_CONTENTS (val)); - - if ((addr != 0) && - ((TYPE_CODE (target_type) == TYPE_CODE_CSHARP_STRING) || - (TYPE_CODE (target_type) == TYPE_CODE_CSHARP_ARRAY) || - (TYPE_CODE (target_type) == TYPE_CODE_STRUCT) || - (TYPE_CODE (target_type) == TYPE_CODE_CLASS))) - { - struct value *newval = value_at (target_type, addr, VALUE_BFD_SECTION (val)); - int retval; - - retval = val_print (target_type, VALUE_CONTENTS (newval), 0, addr, - stream, format, 1, 0, pretty); - - release_value (newval); - - return retval; - } - } - - return (val_print (type, VALUE_CONTENTS (val), 0, address, - stream, format, 1, 0, pretty)); -} - -void -csharp_print_type (struct type *type, char *varstring, struct ui_file *stream, - int show, int level) -{ - int i; - - CHECK_TYPEDEF (type); - switch (TYPE_CODE (type)) - { - case TYPE_CODE_CSHARP_STRING: - fputs_filtered ("string", stream); - return; - - case TYPE_CODE_CSHARP_ARRAY: - csharp_print_type (TYPE_TARGET_TYPE (type), varstring, stream, show, level); - - fprintf_filtered (stream, "["); - for (i = 1; i < TYPE_CSHARP_ARRAY_ARRAY_RANK (type); i++) - fprintf_filtered (stream, ","); - fputs_filtered ("]", stream); - - return; - - case TYPE_CODE_PTR: - if (level == 0) - csharp_print_type (TYPE_TARGET_TYPE (type), varstring, stream, - show, level + 1); - else - c_print_type (type, varstring, stream, show, level); - - return; - - default: - c_print_type (type, varstring, stream, show, level); - break; - } -} - -/* Called by various _val_print routines to print elements of an - array in the form ", , , ...". - - (FIXME?) Assumes array element separator is a comma, which is correct - for all languages currently handled. - (FIXME?) Some languages have a notation for repeated array elements, - perhaps we should try to use that notation when appropriate. - */ - -void -csharp_print_array_elements (struct type *type, char *valaddr, CORE_ADDR address, - struct ui_file *stream, int format, int deref_ref, - int recurse, enum val_prettyprint pretty, - unsigned int len, unsigned int i) -{ - unsigned int things_printed = 0; - struct type *elttype; - unsigned eltlen; - /* Position of the array element we are examining to see - whether it is repeated. */ - unsigned int rep1; - /* Number of repetitions we have detected so far. */ - unsigned int reps; - - elttype = TYPE_TARGET_TYPE (type); - eltlen = TYPE_LENGTH (check_typedef (elttype)); - - annotate_array_section_begin (i, elttype); - - for (; i < len && things_printed < print_max; i++) - { - if (i != 0) - { - if (prettyprint_arrays) - { - fprintf_filtered (stream, ",\n"); - print_spaces_filtered (2 + 2 * recurse, stream); - } - else - { - fprintf_filtered (stream, ", "); - } - } - wrap_here (n_spaces (2 + 2 * recurse)); - - rep1 = i + 1; - reps = 1; - while ((rep1 < len) && - !memcmp (valaddr + i * eltlen, valaddr + rep1 * eltlen, eltlen)) - { - ++reps; - ++rep1; - } - - if (reps > repeat_count_threshold) - { - val_print (elttype, valaddr + i * eltlen, 0, address + i * eltlen, - stream, format, deref_ref, recurse + 1, pretty); - annotate_elt_rep (reps); - fprintf_filtered (stream, " ", reps); - annotate_elt_rep_end (); - - i = rep1 - 1; - things_printed += repeat_count_threshold; - } - else - { - val_print (elttype, valaddr + i * eltlen, 0, address + i * eltlen, - stream, format, deref_ref, recurse + 1, pretty); - annotate_elt (); - things_printed++; - } - } - annotate_array_section_end (); - if (i < len) - { - fprintf_filtered (stream, "..."); - } -} - -/* Print data of type TYPE located at VALADDR (within GDB), which came from - the inferior at address ADDRESS, onto stdio stream STREAM according to - FORMAT (a letter or 0 for natural format). The data at VALADDR is in - target byte order. - - If the data are a string pointer, returns the number of string characters - printed. - - If DEREF_REF is nonzero, then dereference references, otherwise just print - them like pointers. - - The PRETTY parameter controls prettyprinting. */ - -int -csharp_val_print (struct type *type, char *valaddr, int embedded_offset, - CORE_ADDR address, struct ui_file *stream, int format, - int deref_ref, int recurse, enum val_prettyprint pretty) -{ - register unsigned int i = 0; /* Number of characters printed */ - struct type *target_type; - struct value *newval; - LONGEST length; - CORE_ADDR addr; - - CHECK_TYPEDEF (type); - switch (TYPE_CODE (type)) - { - case TYPE_CODE_CSHARP_STRING: - addr = address + TYPE_CSHARP_ARRAY_LENGTH_OFFSET (type); - length = read_memory_integer (addr, TYPE_CSHARP_ARRAY_LENGTH_BYTESIZE (type)); - - addr = address + TYPE_CSHARP_ARRAY_DATA_OFFSET (type); - - return val_print_string (addr, length, 2, stream); - - case TYPE_CODE_CSHARP_ARRAY: - target_type = check_typedef (TYPE_TARGET_TYPE (type)); - - addr = address + TYPE_CSHARP_ARRAY_LENGTH_OFFSET (type); - length = read_memory_integer (addr, TYPE_CSHARP_ARRAY_LENGTH_BYTESIZE (type)); - - addr = address + TYPE_CSHARP_ARRAY_DATA_OFFSET (type); - - newval = allocate_repeat_value (target_type, length); - - VALUE_LVAL (newval) = lval_memory; - VALUE_ADDRESS (newval) = addr; - VALUE_LAZY (newval) = 1; - - fprintf_filtered (stream, "{"); - - csharp_print_array_elements (type, VALUE_CONTENTS (newval), addr, stream, - format, deref_ref, recurse, pretty, length, 0); - - fprintf_filtered (stream, "}"); - - release_value (newval); - - return 0; - - case TYPE_CODE_PTR: - target_type = check_typedef (TYPE_TARGET_TYPE (type)); - addr = unpack_pointer (type, valaddr); - - if ((addr != 0) && (TYPE_CODE (target_type) == TYPE_CODE_CSHARP_STRING)) - { - struct value *newval = value_at (target_type, addr, NULL); - int retval; - - retval = val_print (target_type, VALUE_CONTENTS (newval), 0, addr, - stream, format, 1, 0, pretty); - - release_value (newval); - - return retval; - } - break; - - default: - break; - } - - return c_val_print (type, valaddr, embedded_offset, address, stream, - format, deref_ref, recurse, pretty); -} - -/* Table mapping opcodes into strings for printing operators - and precedences of the operators. */ - -const struct op_print csharp_op_print_tab[] = -{ - {NULL, 0, 0, 0} -}; diff --git a/mcs/class/Mono.CSharp.Debugger/csharp-lang.h b/mcs/class/Mono.CSharp.Debugger/csharp-lang.h deleted file mode 100644 index 27a331065a51f..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/csharp-lang.h +++ /dev/null @@ -1,38 +0,0 @@ -/* -*- mode: C; c-basic-offset: 2 -*- - - C# language support for Mono. - Copyright 2002 Ximian, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#ifndef CSHARP_LANG_H -#define CSHARP_LANG_H - -extern const struct op_print csharp_op_print_tab[]; - -extern void csharp_emit_char (int c, struct ui_file *stream, int quoter); - -extern void csharp_print_type (struct type *type, char *varstring, - struct ui_file *stream, int show, int level); - -extern int csharp_val_print (struct type *type, char *valaddr, int embedded_offset, - CORE_ADDR address, struct ui_file *stream, int format, - int deref_ref, int recurse, enum val_prettyprint pretty); - -extern int csharp_value_print (struct value *val, struct ui_file *stream, int format, - enum val_prettyprint pretty); - -#endif diff --git a/mcs/class/Mono.CSharp.Debugger/csharp-mono-lang.c b/mcs/class/Mono.CSharp.Debugger/csharp-mono-lang.c deleted file mode 100644 index 6c7a87573dc77..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/csharp-mono-lang.c +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- mode: C; c-basic-offset: 2 -*- - - C# language support for Mono. - Copyright 2002 Ximian, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#include "defs.h" -#include "symtab.h" -#include "gdbtypes.h" -#include "expression.h" -#include "parser-defs.h" -#include "language.h" -#include "gdbtypes.h" -#include "symtab.h" -#include "symfile.h" -#include "objfiles.h" -#include "gdb_string.h" -#include "value.h" -#include "csharp-lang.h" -#include "c-lang.h" -#include "gdbcore.h" -#include - -/* Local functions */ - -extern void _initialize_csharp_mono_language (void); - -const struct language_defn csharp_mono_language_defn = -{ - "csharp-mono", /* Language name */ - language_csharp_mono, - c_builtin_types, - range_check_off, - type_check_off, - case_sensitive_on, - c_parse, - c_error, - evaluate_subexp_standard, - c_printchar, /* Print a character constant */ - c_printstr, /* Function to print string constant */ - csharp_emit_char, /* Function to print a single character */ - c_create_fundamental_type, /* Create fundamental type in this language */ - csharp_print_type, /* Print a type using appropriate syntax */ - csharp_val_print, /* Print a value using appropriate syntax */ - csharp_value_print, /* Print a top-level value */ - {"", "", "", ""}, /* Binary format info */ - {"0%lo", "0", "o", ""}, /* Octal format info */ - {"%ld", "", "d", ""}, /* Decimal format info */ - {"0x%lx", "0x", "x", ""}, /* Hex format info */ - csharp_op_print_tab, /* expression operators for printing */ - 0, /* not c-style arrays */ - 0, /* String lower bound */ - &builtin_type_char, /* Type of string elements */ - LANG_MAGIC -}; - -void -_initialize_csharp_mono_language (void) -{ - add_language (&csharp_mono_language_defn); -} - diff --git a/mcs/class/Mono.CSharp.Debugger/gdb-csharp-support.patch b/mcs/class/Mono.CSharp.Debugger/gdb-csharp-support.patch deleted file mode 100644 index 2bd705d1d85b9..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/gdb-csharp-support.patch +++ /dev/null @@ -1,460 +0,0 @@ -diff -ru gdb-5.2.orig/gdb/Makefile.in gdb-5.2/gdb/Makefile.in ---- gdb-5.2.orig/gdb/Makefile.in Mon Feb 25 19:15:52 2002 -+++ gdb-5.2/gdb/Makefile.in Thu May 30 22:33:31 2002 -@@ -548,7 +548,8 @@ - tui/tui-file.h tui/tui-file.c tui/tui-out.c tui/tui-hooks.c \ - ui-file.h ui-file.c \ - frame.c doublest.c \ -- gnu-v2-abi.c gnu-v3-abi.c hpacc-abi.c cp-abi.c -+ gnu-v2-abi.c gnu-v3-abi.c hpacc-abi.c cp-abi.c \ -+ csharp-lang.c csharp-mono-lang.c - - LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c - -@@ -670,7 +671,8 @@ - vx-share/dbgRpcLib.h vx-share/ptrace.h vx-share/vxTypes.h \ - vx-share/vxWorks.h vx-share/wait.h vx-share/xdr_ld.h \ - vx-share/xdr_ptrace.h vx-share/xdr_rdb.h gdbthread.h \ -- dcache.h remote-utils.h top.h somsolib.h -+ dcache.h remote-utils.h top.h somsolib.h \ -+ csharp-lang.h - - # Header files that already have srcdir in them, or which are in objdir. - -@@ -722,7 +724,8 @@ - nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o \ - ui-file.o \ - frame.o doublest.o \ -- gnu-v2-abi.o gnu-v3-abi.o hpacc-abi.o cp-abi.o -+ gnu-v2-abi.o gnu-v3-abi.o hpacc-abi.o cp-abi.o \ -+ csharp-lang.o csharp-mono-lang.o - - OBS = $(COMMON_OBS) $(ANNOTATE_OBS) - -diff -ru gdb-5.2.orig/gdb/defs.h gdb-5.2/gdb/defs.h ---- gdb-5.2.orig/gdb/defs.h Mon Mar 25 17:50:20 2002 -+++ gdb-5.2/gdb/defs.h Thu May 30 22:32:57 2002 -@@ -209,7 +209,8 @@ - language_m2, /* Modula-2 */ - language_asm, /* Assembly language */ - language_scm, /* Scheme / Guile */ -- language_pascal /* Pascal */ -+ language_pascal, /* Pascal */ -+ language_csharp_mono /* C# using Mono */ - }; - - enum precision_type -diff -ru gdb-5.2.orig/gdb/dwarf2read.c gdb-5.2/gdb/dwarf2read.c ---- gdb-5.2.orig/gdb/dwarf2read.c Thu Feb 28 12:21:16 2002 -+++ gdb-5.2/gdb/dwarf2read.c Fri Jul 5 14:34:25 2002 -@@ -733,7 +733,8 @@ - static void read_tag_volatile_type (struct die_info *, struct objfile *, - const struct comp_unit_head *); - --static void read_tag_string_type (struct die_info *, struct objfile *); -+static void read_tag_string_type (struct die_info *, struct objfile *, -+ const struct comp_unit_head *); - - static void read_subroutine_type (struct die_info *, struct objfile *, - const struct comp_unit_head *); -@@ -1520,7 +1521,7 @@ - read_tag_reference_type (die, objfile, cu_header); - break; - case DW_TAG_string_type: -- read_tag_string_type (die, objfile); -+ read_tag_string_type (die, objfile, cu_header); - break; - case DW_TAG_base_type: - read_base_type (die, objfile); -@@ -2510,6 +2511,52 @@ - return; - } - -+ if (cu_language == language_csharp_mono) -+ { -+ die->type = create_csharp_array_type (NULL, element_type); -+ -+ attr = dwarf_attr (die, DW_AT_data_location); -+ if (attr) -+ { -+ TYPE_CSHARP_ARRAY_DATA_OFFSET (die->type) = -+ decode_locdesc (DW_BLOCK (attr), objfile, cu_header); -+ } -+ -+ child_die = die->next; -+ while (child_die && child_die->tag) -+ { -+ if (child_die->tag != DW_TAG_subrange_type) -+ internal_error (__FILE__, __LINE__, -+ "read_array_type: invalid C# array type"); -+ -+ ++TYPE_CSHARP_ARRAY_ARRAY_RANK (die->type); -+ -+ child_die = sibling_die (child_die); -+ } -+ -+ if (TYPE_CSHARP_ARRAY_ARRAY_RANK (die->type) < 2) -+ { -+ attr = dwarf_attr (die->next, DW_AT_count); -+ if (attr) -+ { -+ TYPE_CSHARP_ARRAY_LENGTH_OFFSET (die->type) = -+ decode_locdesc (DW_BLOCK (attr), objfile, cu_header); -+ } -+ -+ attr = dwarf_attr (die->next, DW_AT_byte_size); -+ if (attr) -+ { -+ TYPE_CSHARP_ARRAY_LENGTH_BYTESIZE (die->type) = DW_UNSND (attr); -+ } -+ } -+ -+ TYPE_LENGTH (die->type) = max (TYPE_CSHARP_ARRAY_DATA_OFFSET (die->type), -+ TYPE_CSHARP_ARRAY_LENGTH_OFFSET (die->type)) + -+ TYPE_CSHARP_ARRAY_LENGTH_BYTESIZE (die->type); -+ -+ return; -+ } -+ - back_to = make_cleanup (null_cleanup, NULL); - child_die = die->next; - while (child_die && child_die->tag) -@@ -2766,7 +2813,8 @@ - attribute to reference it. */ - - static void --read_tag_string_type (struct die_info *die, struct objfile *objfile) -+read_tag_string_type (struct die_info *die, struct objfile *objfile, -+ const struct comp_unit_head *cu_header) - { - struct type *type, *range_type, *index_type, *char_type; - struct attribute *attr; -@@ -2777,6 +2825,34 @@ - return; - } - -+ if (cu_language == language_csharp_mono) -+ { -+ type = create_csharp_string_type (NULL, objfile); -+ TYPE_NAME (type) = obsavestring ("string", 6, &objfile->type_obstack); -+ -+ attr = dwarf_attr (die, DW_AT_string_length); -+ if (attr) -+ { -+ TYPE_CSHARP_ARRAY_LENGTH_OFFSET (type) = decode_locdesc (DW_BLOCK (attr), objfile, cu_header); -+ } -+ -+ attr = dwarf_attr (die, DW_AT_byte_size); -+ if (attr) -+ { -+ TYPE_CSHARP_ARRAY_LENGTH_BYTESIZE (type) = DW_UNSND (attr); -+ } -+ -+ attr = dwarf_attr (die, DW_AT_data_location); -+ if (attr) -+ { -+ TYPE_CSHARP_ARRAY_DATA_OFFSET (type) = decode_locdesc (DW_BLOCK (attr), objfile, cu_header); -+ } -+ -+ die->type = type; -+ return; -+ } -+ -+ - attr = dwarf_attr (die, DW_AT_string_length); - if (attr) - { -@@ -3822,6 +3898,9 @@ - case DW_LANG_Java: - cu_language = language_java; - break; -+ case DW_LANG_CSharp_Mono: -+ cu_language = language_csharp_mono; -+ break; - case DW_LANG_Ada83: - case DW_LANG_Cobol74: - case DW_LANG_Cobol85: -@@ -4288,6 +4367,19 @@ - add_symbol_to_list (sym, list_in_scope); - break; - } -+ attr = dwarf_attr (die, DW_AT_start_scope); -+ attr2 = dwarf_attr (die, DW_AT_end_scope); -+ if (attr && attr2) -+ { -+ struct range_list *r = (struct range_list *) -+ obstack_alloc (&objfile->type_obstack, -+ sizeof (struct range_list)); -+ -+ r->start = DW_ADDR (attr); -+ r->end = DW_ADDR (attr2); -+ -+ SYMBOL_RANGES (sym) = r; -+ } - attr = dwarf_attr (die, DW_AT_location); - if (attr) - { -@@ -4701,7 +4793,7 @@ - read_tag_volatile_type (die, objfile, cu_header); - break; - case DW_TAG_string_type: -- read_tag_string_type (die, objfile); -+ read_tag_string_type (die, objfile, cu_header); - break; - case DW_TAG_typedef: - read_typedef (die, objfile, cu_header); -diff -ru gdb-5.2.orig/gdb/findvar.c gdb-5.2/gdb/findvar.c ---- gdb-5.2.orig/gdb/findvar.c Sun Feb 10 03:47:11 2002 -+++ gdb-5.2/gdb/findvar.c Fri May 31 01:14:10 2002 -@@ -411,9 +411,11 @@ - read_var_value (register struct symbol *var, struct frame_info *frame) - { - register struct value *v; -+ register struct range_list *r; - struct type *type = SYMBOL_TYPE (var); - CORE_ADDR addr; - register int len; -+ int range_ok = 0; - - v = allocate_value (type); - VALUE_LVAL (v) = lval_memory; /* The most likely possibility. */ -@@ -423,6 +425,23 @@ - - if (frame == NULL) - frame = selected_frame; -+ -+ if (!SYMBOL_RANGES (var)) -+ range_ok = 1; -+ else -+ { -+ for (r = SYMBOL_RANGES (var); r; r = r->next) -+ { -+ if (r->start <= frame->pc && r->end >= frame->pc) -+ { -+ range_ok = 1; -+ break; -+ } -+ } -+ } -+ -+ if (!range_ok) -+ return NULL; - - switch (SYMBOL_CLASS (var)) - { -diff -ru gdb-5.2.orig/gdb/gdbtypes.c gdb-5.2/gdb/gdbtypes.c ---- gdb-5.2.orig/gdb/gdbtypes.c Fri Feb 8 18:34:33 2002 -+++ gdb-5.2/gdb/gdbtypes.c Fri Jul 5 14:32:54 2002 -@@ -726,6 +726,26 @@ - return (result_type); - } - -+struct type * -+create_csharp_array_type (struct type *result_type, struct type *element_type) -+{ -+ LONGEST low_bound, high_bound; -+ -+ if (result_type == NULL) -+ { -+ result_type = alloc_type (TYPE_OBJFILE (element_type)); -+ } -+ TYPE_CODE (result_type) = TYPE_CODE_CSHARP_ARRAY; -+ TYPE_TARGET_TYPE (result_type) = element_type; -+ -+ CHECK_TYPEDEF (element_type); -+ -+ TYPE_CSHARP_ARRAY (result_type) = (struct csharp_array_type *) -+ TYPE_ALLOC (result_type, sizeof (struct csharp_array_type)); -+ -+ return (result_type); -+} -+ - /* Create a string type using either a blank type supplied in RESULT_TYPE, - or creating a new type. String types are similar enough to array of - char types that we can use create_array_type to build the basic type -@@ -744,6 +764,18 @@ - *current_language->string_char_type, - range_type); - TYPE_CODE (result_type) = TYPE_CODE_STRING; -+ return (result_type); -+} -+ -+struct type * -+create_csharp_string_type (struct type *result_type, struct objfile *objfile) -+{ -+ result_type = alloc_type (objfile); -+ TYPE_CODE (result_type) = TYPE_CODE_CSHARP_STRING; -+ -+ TYPE_CSHARP_ARRAY (result_type) = (struct csharp_array_type *) -+ TYPE_ALLOC (result_type, sizeof (struct csharp_array_type)); -+ - return (result_type); - } - -diff -ru gdb-5.2.orig/gdb/gdbtypes.h gdb-5.2/gdb/gdbtypes.h ---- gdb-5.2.orig/gdb/gdbtypes.h Sun Feb 3 23:57:56 2002 -+++ gdb-5.2/gdb/gdbtypes.h Fri Jul 5 00:16:16 2002 -@@ -130,7 +130,10 @@ - - TYPE_CODE_TYPEDEF, - TYPE_CODE_TEMPLATE, /* C++ template */ -- TYPE_CODE_TEMPLATE_ARG /* C++ template arg */ -+ TYPE_CODE_TEMPLATE_ARG, /* C++ template arg */ -+ -+ TYPE_CODE_CSHARP_STRING, /* C# string */ -+ TYPE_CODE_CSHARP_ARRAY /* C# array */ - - }; - -@@ -471,6 +474,10 @@ - - struct cplus_struct_type *cplus_stuff; - -+ /* CSHARP_ARRAY is for TYPE_CODE_CSHARP_ARRAY. */ -+ -+ struct csharp_array_type *csharp_array; -+ - /* FLOATFORMAT is for TYPE_CODE_FLT. It is a pointer to the - floatformat object that describes the floating-point value - that resides within the type. */ -@@ -704,6 +711,20 @@ - *localtype_ptr; - }; - -+/* C# language-specific information for TYPE_CODE_CSHARP_STRING and -+ * TYPE_CODE_CSHARP_ARRAY nodes. */ -+ -+struct csharp_array_type -+ { -+ unsigned array_rank; -+ -+ unsigned length_offset; -+ -+ unsigned length_bytesize; -+ -+ unsigned data_offset; -+ }; -+ - /* Struct used in computing virtual base list */ - struct vbase - { -@@ -844,6 +865,14 @@ - (TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits == NULL ? 0 \ - : B_TST(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits, (n))) - -+/* C# */ -+ -+#define TYPE_CSHARP_ARRAY(thistype) (thistype)->type_specific.csharp_array -+#define TYPE_CSHARP_ARRAY_ARRAY_RANK(thistype) TYPE_CSHARP_ARRAY(thistype)->array_rank -+#define TYPE_CSHARP_ARRAY_LENGTH_OFFSET(thistype) TYPE_CSHARP_ARRAY(thistype)->length_offset -+#define TYPE_CSHARP_ARRAY_LENGTH_BYTESIZE(thistype) TYPE_CSHARP_ARRAY(thistype)->length_bytesize -+#define TYPE_CSHARP_ARRAY_DATA_OFFSET(thistype) TYPE_CSHARP_ARRAY(thistype)->data_offset -+ - #define TYPE_FIELD_STATIC(thistype, n) ((thistype)->fields[n].bitsize < 0) - #define TYPE_FIELD_STATIC_HAS_ADDR(thistype, n) ((thistype)->fields[n].bitsize == -2) - #define TYPE_FIELD_STATIC_PHYSNAME(thistype, n) FIELD_PHYSNAME(TYPE_FIELD(thistype, n)) -@@ -1100,7 +1129,12 @@ - extern struct type *create_array_type (struct type *, struct type *, - struct type *); - -+extern struct type *create_csharp_array_type (struct type *result_type, -+ struct type *element_type); -+ - extern struct type *create_string_type (struct type *, struct type *); -+ -+extern struct type *create_csharp_string_type (struct type *, struct objfile *); - - extern struct type *create_set_type (struct type *, struct type *); - -diff -ru gdb-5.2.orig/gdb/language.c gdb-5.2/gdb/language.c ---- gdb-5.2.orig/gdb/language.c Wed Feb 13 19:49:30 2002 -+++ gdb-5.2/gdb/language.c Thu May 30 22:32:57 2002 -@@ -865,6 +865,7 @@ - case language_chill: - case language_m2: - case language_pascal: -+ case language_csharp_mono: - return TYPE_CODE (type) != TYPE_CODE_CHAR ? 0 : 1; - - case language_c: -diff -ru gdb-5.2.orig/gdb/stack.c gdb-5.2/gdb/stack.c ---- gdb-5.2.orig/gdb/stack.c Thu Feb 14 08:24:54 2002 -+++ gdb-5.2/gdb/stack.c Fri May 31 01:13:24 2002 -@@ -1173,14 +1173,36 @@ - case LOC_REGISTER: - case LOC_STATIC: - case LOC_BASEREG: -- values_printed = 1; -- for (j = 0; j < num_tabs; j++) -- fputs_filtered ("\t", stream); -- fputs_filtered (SYMBOL_SOURCE_NAME (sym), stream); -- fputs_filtered (" = ", stream); -- print_variable_value (sym, fi, stream); -- fprintf_filtered (stream, "\n"); -- break; -+ { -+ struct range_list *r; -+ int range_ok = 0; -+ -+ if (!SYMBOL_RANGES (sym)) -+ range_ok = 1; -+ else -+ { -+ for (r = SYMBOL_RANGES (sym); r; r = r->next) -+ { -+ if (r->start <= fi->pc && r->end >= fi->pc) -+ { -+ range_ok = 1; -+ break; -+ } -+ } -+ } -+ -+ if (range_ok) -+ { -+ values_printed = 1; -+ for (j = 0; j < num_tabs; j++) -+ fputs_filtered ("\t", stream); -+ fputs_filtered (SYMBOL_SOURCE_NAME (sym), stream); -+ fputs_filtered (" = ", stream); -+ print_variable_value (sym, fi, stream); -+ fprintf_filtered (stream, "\n"); -+ } -+ break; -+ } - - default: - /* Ignore symbols which are not locals. */ -diff -ru gdb-5.2.orig/include/elf/ChangeLog gdb-5.2/include/elf/ChangeLog ---- gdb-5.2.orig/include/elf/ChangeLog Wed Feb 13 19:14:48 2002 -+++ gdb-5.2/include/elf/ChangeLog Fri May 31 00:25:33 2002 -@@ -1,3 +1,7 @@ -+2002-04-12 Martin Baulig -+ -+ * dwarf2.h (DW_AT_end_scope): Added as GNU extension. -+ - 2002-02-13 Matt Fredette - - * m68k.h (EF_M68000): Define. -diff -ru gdb-5.2.orig/include/elf/dwarf2.h gdb-5.2/include/elf/dwarf2.h ---- gdb-5.2.orig/include/elf/dwarf2.h Tue Jan 29 00:26:53 2002 -+++ gdb-5.2/include/elf/dwarf2.h Fri May 31 00:25:33 2002 -@@ -328,6 +328,8 @@ - DW_AT_src_coords = 0x2104, - DW_AT_body_begin = 0x2105, - DW_AT_body_end = 0x2106, -+ DW_AT_end_scope = 0x2121, -+ - /* VMS Extensions. */ - DW_AT_VMS_rtnbeg_pd_address = 0x2201 - }; -@@ -675,7 +677,8 @@ - DW_LANG_Ada95 = 0x000d, - DW_LANG_Fortran95 = 0x000e, - /* MIPS. */ -- DW_LANG_Mips_Assembler = 0x8001 -+ DW_LANG_Mips_Assembler = 0x8001, -+ DW_LANG_CSharp_Mono = 0x9001 - }; - - diff --git a/mcs/class/Mono.CSharp.Debugger/gdb-variable-scopes.patch b/mcs/class/Mono.CSharp.Debugger/gdb-variable-scopes.patch deleted file mode 100644 index fc9612b0148d2..0000000000000 --- a/mcs/class/Mono.CSharp.Debugger/gdb-variable-scopes.patch +++ /dev/null @@ -1,175 +0,0 @@ -Index: include/elf/ChangeLog -=================================================================== -RCS file: /cvs/src/src/include/elf/ChangeLog,v -retrieving revision 1.121 -diff -u -u -p -r1.121 ChangeLog ---- include/elf/ChangeLog 13 Feb 2002 18:14:48 -0000 1.121 -+++ include/elf/ChangeLog 12 Apr 2002 19:50:31 -0000 -@@ -1,3 +1,7 @@ -+2002-04-12 Martin Baulig -+ -+ * dwarf2.h (DW_AT_end_scope): Added as GNU extension. -+ - 2002-02-13 Matt Fredette - - * m68k.h (EF_M68000): Define. -Index: include/elf/dwarf2.h -=================================================================== -RCS file: /cvs/src/src/include/elf/dwarf2.h,v -retrieving revision 1.8 -diff -u -u -p -r1.8 dwarf2.h ---- include/elf/dwarf2.h 28 Jan 2002 23:26:53 -0000 1.8 -+++ include/elf/dwarf2.h 12 Apr 2002 19:50:32 -0000 -@@ -328,6 +328,8 @@ enum dwarf_attribute - DW_AT_src_coords = 0x2104, - DW_AT_body_begin = 0x2105, - DW_AT_body_end = 0x2106, -+ DW_AT_end_scope = 0x2121, -+ - /* VMS Extensions. */ - DW_AT_VMS_rtnbeg_pd_address = 0x2201 - }; -Index: gdb/ChangeLog -=================================================================== -RCS file: /cvs/src/src/gdb/ChangeLog,v -retrieving revision 1.2421 -diff -u -u -p -r1.2421 ChangeLog ---- gdb/ChangeLog 12 Apr 2002 07:37:17 -0000 1.2421 -+++ gdb/ChangeLog 12 Apr 2002 19:50:38 -0000 -@@ -1,3 +1,14 @@ -+2002-04-12 Martin Baulig -+ -+ * dwarf2read.c (new_symbol): If DW_AT_start_scope and DW_AT_end_scope -+ are specified, set SYMBOL_RANGES(). -+ -+ * findvar.c (read_var_value): Check whether the current PC is within -+ the SYMBOL_RANGES(), return NULL if not. -+ -+ * stack.c (print_block_frame_locals): Only print vars if the current PC -+ is in their SYMBOL_RANGES(). -+ - 2002-04-12 Kevin Buettner - - From Jimi X : -Index: gdb/dwarf2read.c -=================================================================== -RCS file: /cvs/src/src/gdb/dwarf2read.c,v -retrieving revision 1.52 -diff -u -u -p -r1.52 dwarf2read.c ---- gdb/dwarf2read.c 4 Apr 2002 22:26:43 -0000 1.52 -+++ gdb/dwarf2read.c 12 Apr 2002 19:50:44 -0000 -@@ -4394,6 +4394,19 @@ new_symbol (struct die_info *die, struct - add_symbol_to_list (sym, list_in_scope); - break; - } -+ attr = dwarf_attr (die, DW_AT_start_scope); -+ attr2 = dwarf_attr (die, DW_AT_end_scope); -+ if (attr && attr2) -+ { -+ struct range_list *r = (struct range_list *) -+ obstack_alloc (&objfile->type_obstack, -+ sizeof (struct range_list)); -+ -+ r->start = DW_ADDR (attr); -+ r->end = DW_ADDR (attr2); -+ -+ SYMBOL_RANGES (sym) = r; -+ } - attr = dwarf_attr (die, DW_AT_location); - if (attr) - { -Index: gdb/findvar.c -=================================================================== -RCS file: /cvs/src/src/gdb/findvar.c,v -retrieving revision 1.31 -diff -u -u -p -r1.31 findvar.c ---- gdb/findvar.c 9 Apr 2002 03:06:13 -0000 1.31 -+++ gdb/findvar.c 12 Apr 2002 19:50:45 -0000 -@@ -417,9 +417,11 @@ struct value * - read_var_value (register struct symbol *var, struct frame_info *frame) - { - register struct value *v; -+ register struct range_list *r; - struct type *type = SYMBOL_TYPE (var); - CORE_ADDR addr; - register int len; -+ int range_ok = 0; - - v = allocate_value (type); - VALUE_LVAL (v) = lval_memory; /* The most likely possibility. */ -@@ -429,6 +431,23 @@ read_var_value (register struct symbol * - - if (frame == NULL) - frame = selected_frame; -+ -+ if (!SYMBOL_RANGES (var)) -+ range_ok = 1; -+ else -+ { -+ for (r = SYMBOL_RANGES (var); r; r = r->next) -+ { -+ if (r->start <= frame->pc && r->end > frame->pc) -+ { -+ range_ok = 1; -+ break; -+ } -+ } -+ } -+ -+ if (!range_ok) -+ return NULL; - - switch (SYMBOL_CLASS (var)) - { -Index: gdb/stack.c -=================================================================== -RCS file: /cvs/src/src/gdb/stack.c,v -retrieving revision 1.33 -diff -u -u -p -r1.33 stack.c ---- gdb/stack.c 10 Apr 2002 23:32:33 -0000 1.33 -+++ gdb/stack.c 12 Apr 2002 19:50:47 -0000 -@@ -1173,14 +1173,36 @@ print_block_frame_locals (struct block * - case LOC_REGISTER: - case LOC_STATIC: - case LOC_BASEREG: -- values_printed = 1; -- for (j = 0; j < num_tabs; j++) -- fputs_filtered ("\t", stream); -- fputs_filtered (SYMBOL_SOURCE_NAME (sym), stream); -- fputs_filtered (" = ", stream); -- print_variable_value (sym, fi, stream); -- fprintf_filtered (stream, "\n"); -- break; -+ { -+ struct range_list *r; -+ int range_ok = 0; -+ -+ if (!SYMBOL_RANGES (sym)) -+ range_ok = 1; -+ else -+ { -+ for (r = SYMBOL_RANGES (sym); r; r = r->next) -+ { -+ if (r->start <= fi->pc && r->end > fi->pc) -+ { -+ range_ok = 1; -+ break; -+ } -+ } -+ } -+ -+ if (range_ok) -+ { -+ values_printed = 1; -+ for (j = 0; j < num_tabs; j++) -+ fputs_filtered ("\t", stream); -+ fputs_filtered (SYMBOL_SOURCE_NAME (sym), stream); -+ fputs_filtered (" = ", stream); -+ print_variable_value (sym, fi, stream); -+ fprintf_filtered (stream, "\n"); -+ } -+ break; -+ } - - default: - /* Ignore symbols which are not locals. */ diff --git a/mcs/class/Mono.Data.MySql/ChangeLog b/mcs/class/Mono.Data.MySql/ChangeLog deleted file mode 100644 index 9b109532fa6aa..0000000000000 --- a/mcs/class/Mono.Data.MySql/ChangeLog +++ /dev/null @@ -1,79 +0,0 @@ -2002-08-13 Daniel Morgan - - * Mono.Data.MySql/MySqlCommand.cs: modified - rowsRetrieved should be rowsAffected in ExecuteNonQuery - because the number is only to show the rows affected - by an INSERT, UPDATE, or DELETE; anything else, the - number is -1 - - * Mono.Data.MySql/Test.cs: modified - enable retrieving the results from a query. even though - this still does not work for some reason, i thought - i would enable it so others could see the problem. - -2002-05-30 Daniel Morgan - - * Mono.Data.MySql.build: modified - need to copy Mono.Data.MySql.dll to mcs/class/System.Data/Test - so the SqlSharpCli test program can use MySql too - -2002-05-30 Daniel Morgan - - * Test/TestMySqlInsert.cs: added test - to do an SQL INSERT to insert a row into table. - Works on cygwin compiled using mcs and mono and - runs on mint, but it fails running on mono. - - * Mono.Data.MySql/MySqlCommand.cs - * Mono.Data.MySql/TODOAttribute.cs - * Mono.Data.MySql/MySqlConnection.cs: added - - * list: added - so can build with mcs/mono on linux - I only tested it on Cygwin though. - To work on linux, the library name in the pinvokes - in MySql.cs will need to be changed. - - * Mono.Data.MySql.build: modified - exclude files from build. also copy Mono.Data.MySql.dll - to Mono.Data.MySql so you can build and run Test.cs - - * Mono.Data.MySql/MySql.cs: modified - tweaks to compile under mcs/mono and run under mint or mono. - Runs under mint, but not mono. Had to comment out - mysql_thread_begin/mysql_thread_end functions because they refused - to load in mono. Until this is fixed, a memory leak will occur. - Can not retrieve field data from MySQL because the PtrToStructure() - needs to be implemented in System.Runtime.InteropServices.Marshal class. - However, this will be very complicated to do. So, we connect to - MySQL and execute SQL Commands, but we can not do Queries yet. - - * Mono.Data.MySql/Test.cs: modified - tweaks to test C# bindings with compiling mcs/mono and - running on mint and mono. Runs on mint, but not mono. - -2002-05-28 Daniel Morgan - - * Mono.Data.MySql - * Mono.Data.MySql/Mono.Data.MySql: add directories - for the Mono.Data.MySql assembly and namespace. This - will contain the MySql .NET Data Provider which will use - C# bindings to libMySQL - - * Mono.Data.MySql/Test.cs: added file to - test the C# bindings to MySQL - - * Mono.Data.MySql/MySql.cs - * Mono.Data.MySql/Field.cs: added files - for the beginnings of C# bindings to MySQL - - * Mono.Data.MySql/makefile: added file - to build the MySQL C# bindings on csc/Microsoft.NET - - These C# bindings to the MySQL libMySQL.dll were created by - Brad Merrill - and can be downloaded from - http://www.cybercom.net/~zbrad/DotNet/MySql/ - and put into the Mono Class Library under the X11/MIT License - with Brad Merril's permission. - diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql.build b/mcs/class/Mono.Data.MySql/Mono.Data.MySql.build deleted file mode 100644 index 1ffa819f7d0ae..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql.build +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/Field.cs b/mcs/class/Mono.Data.MySql/Mono.Data.MySql/Field.cs deleted file mode 100644 index 518dbfa292d04..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/Field.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// Field.cs -// -// Provide definition for the Field class -// Part of the C# bindings to MySQL library libMySQL.dll -// -// Author: -// Brad Merrill -// -// (C)Copyright 2002 Brad Merril -// -// http://www.cybercom.net/~zbrad/DotNet/MySql/ -// -// Mono has gotten permission from Brad Merrill to include in -// the Mono Class Library -// his C# bindings to MySQL under the X11 License -// -// Mono can be found at http://www.go-mono.com/ -// The X11/MIT License can be found -// at http://www.opensource.org/licenses/mit-license.html -// - - -namespace Mono.Data.MySql { - using System.Runtime.InteropServices; - - /// - /// - /// MySql P/Invoke implementation test program - /// Brad Merrill - /// 3-Mar-2002 - /// - /// - /// This structure contains information about a field, such as the - /// field's name, type, and size. Its members are described in more - /// detail below. You may obtain the structures for - /// each field by calling - /// - /// repeatedly. - /// Field values are not part of this structure; - /// they are contained in a Row structure. - /// - /// - [StructLayout(LayoutKind.Sequential)] - public class Field { - ///name of column - [MarshalAs(UnmanagedType.LPStr)] - public string Name; - ///table of column - [MarshalAs(UnmanagedType.LPStr)] - public string Table; - ///default value - [MarshalAs(UnmanagedType.LPStr)] - public string Def; - ///type of field - public int FieldTypes; - ///width of column - public uint Length; - ///max width of selected set - public uint MaxLength; - ///div flags - public uint Flags; - ///number of decimals in field - public uint Decimals; - } -} diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySql.cs b/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySql.cs deleted file mode 100644 index c49be11552622..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySql.cs +++ /dev/null @@ -1,270 +0,0 @@ -// -// MySql.cs -// -// Provides the core of C# bindings -// to the MySQL library libMySQL.dll -// -// Author: -// Brad Merrill -// Daniel Morgan -// -// (C)Copyright 2002 Brad Merril -// (C)Copyright 2002 Daniel Morgan -// -// http://www.cybercom.net/~zbrad/DotNet/MySql/ -// -// Mono has gotten permission from Brad Merrill to include in -// the Mono Class Library -// his C# bindings to MySQL under the X11 License -// -// Mono can be found at http://www.go-mono.com/ -// The X11/MIT License can be found -// at http://www.opensource.org/licenses/mit-license.html -// - -// Things to do: -// ============= -// FIXME: mysql_thread_init() and mysql_thread_end() -// for some reason can not be loaded from the libMySQL.dll -// using Mono. Until this is fixed, there will be a -// resource leak. -// -// TODO: method IntPtr PtrToStructure(IntPtr, Type) needs to -// be implemented in assembly corlib.dll -// in class System.Runtime.InteropServices.Marshal -// which requires also an internal call in the runtime -// for it too. -// This is so we can retrieve Field data from MySQL. -// -// TODO: more functions in the MySQL C Client API -// (libmysqlclient.so on linux and libmySQL.dll on cygwin) -// need to be added here as C# pinvoke methods. -// Other data structures may need to be added as well. -// -// TODO: handle the name of the MySQL client library for -// different platforms because it is named differently -// on each platform. -// We maybe using a config file for this. -// - -namespace Mono.Data.MySql { - using System; - using System.Security; - using System.Runtime.InteropServices; - - /// - /// - /// MySql P/Invoke implementation - /// Brad Merrill - /// 3-Mar-2002 - /// - /// - /// This is an incomplete implementation of the mysql C api, - /// but sufficient to run the Test sample application. - /// - /// - internal sealed class MySql { - ///protocol version - public static readonly uint ProtocolVersion = 10; - ///server version - public static readonly string ServerVersion = "3.23.49"; - ///server suffix - public static readonly string ServerSuffix = ""; - ///server version as int - public static readonly uint VersionId = 32349; - ///server port number - public static readonly uint Port = 3306; - ///unix named socket - public static readonly string UnixAddr = "/tmp/mysql.sock"; - ///character set - public static readonly string CharSet = "latin1"; - - ///Gets or initializes a `MySql' structure - ///An initialized `MYSQL*' handle. IntPtr.Zero if there was insufficient memory to allocate a new object. - [SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", EntryPoint="mysql_init", ExactSpelling=true)] - public static extern IntPtr Init(IntPtr db); - - ///Connects to a MySql server - /// value on success, else returns IntPtr.Zero - [SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_connect", ExactSpelling=true)] - public static extern IntPtr Connect(IntPtr db, - [In] string host, [In] string user, [In] string passwd, - [In] string dbname, - uint port, [In] string socketName, uint flags - ); - - ///Selects a database - ///Zero for success. Non-zero if an error occurred. - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_select_db", ExactSpelling=true)] - public static extern int SelectDb(IntPtr conn, [In] string db); - - ///Closes a server connection - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", EntryPoint="mysql_close", ExactSpelling=true)] - public static extern void Close(IntPtr db); - - ///Executes a SQL query specified as a string - ///number of rows changed, -1 if zero - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_query", ExactSpelling=true)] - public static extern int Query(IntPtr conn, [In] string query); - - ///Retrieves a complete result set to the client - ///An IntPtr result structure with the results. IntPtr.Zero if an error occurred. - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_store_result", ExactSpelling=true)] - public static extern IntPtr StoreResult(IntPtr conn); - - ///Returns the number of rows in a result set - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_num_rows", ExactSpelling=true)] - public static extern int NumRows(IntPtr r); - - ///Returns the number of columns in a result set - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_num_fields", ExactSpelling=true)] - public static extern int NumFields(IntPtr r); - - ///Returns an IntPtr to all field structures - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_fetch_field", ExactSpelling=true)] - public static extern IntPtr FetchField(IntPtr r); - - ///Retrieves the next row of a result set - ///An IntPtr structure for the next row. IntPtr.Zero if there are no more rows to retrieve or if an error occurred. - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_fetch_row", ExactSpelling=true)] - public static extern IntPtr FetchRow(IntPtr r); - - ///Frees the memory allocated for a result set by - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_free_result", ExactSpelling=true)] - public static extern void FreeResult(IntPtr r); - - ///Returns a string that represents the client library version - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_get_client_info", ExactSpelling=true)] - public static extern string GetClientInfo(); - - /// - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_get_host_info", ExactSpelling=true)] - public static extern string GetHostInfo(IntPtr db); - - ///A string describing the type of connection in use, including the server host name. - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_get_server_info", ExactSpelling=true)] - public static extern string GetServerInfo(IntPtr db); - - ///A string describing the server status. null if an error occurred. - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_stat", ExactSpelling=true)] - public static extern string Stat(IntPtr db); - - /// - /// Returns a result set describing the current server - /// threads. This is the same kind of information as that - /// reported by `mysqladmin processlist' or a `SHOW PROCESSLIST' - /// query. You must free the result set with - /// . - /// - /// - /// A IntPtr result set for success. IntPtr.Zero if an error - /// occurred. - /// - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_list_processes", ExactSpelling=true)] - public static extern IntPtr ListProcesses(IntPtr db); - - /// - /// - /// Returns a result set consisting of table names in - /// the current database that match the simple regular expression - /// specified by the parameter. - /// may contain the wild-card characters - /// "%" or "_", or may be a null pointer to match all tables. - /// - /// - /// Calling is similar to executing - /// the query "SHOW tables [LIKE wild]". - /// - /// - /// You must free the result set with . - /// - /// - //[SuppressUnmanagedCodeSecurity] - [DllImport("libmySQL", - EntryPoint="mysql_list_tables", ExactSpelling=true)] - public static extern IntPtr ListTables(IntPtr db, [In] string wild); - - /// - /// For the connection specified by , - /// returns the - /// error message for the most recently invoked API function - /// that can succeed or fail. An empty string ("") is - /// returned if no error occurred. - /// - /// - /// A string that describes the error. An empty string if no error occurred. - /// - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_error", ExactSpelling=true)] - public static extern string Error(IntPtr db); - - /// - /// - /// This function needs to be called before exiting - /// to free memory allocated explicitly by - /// or implicitly by - /// . - /// - /// - /// Note that this function is NOT invoked automatically by the client - /// library! - /// - /// - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_thread_end", ExactSpelling=true)] - public static extern void ThreadEnd(); - - /// - /// - /// This function needs to be called for each created thread - /// to initialize thread specific variables. - /// - /// - /// This is automatically called by . - /// - /// - [DllImport("libmySQL", - CharSet=System.Runtime.InteropServices.CharSet.Ansi, - EntryPoint="mysql_thread_init", ExactSpelling=true)] - public static extern void ThreadInit(); - } -} diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlCommand.cs b/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlCommand.cs deleted file mode 100644 index e7f8a16f63a99..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlCommand.cs +++ /dev/null @@ -1,335 +0,0 @@ -// -// Mono.Data.MySql.MySqlCommand.cs -// -// Author: -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Daniel Morgan, 2002 -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; -using System.Xml; - -namespace Mono.Data.MySql { - // public sealed class MySqlCommand : Component, IDbCommand, ICloneable - public sealed class MySqlCommand : IDbCommand { - - #region Fields - - private string sql = ""; - private int timeout = 30; - // default is 30 seconds - // for command execution - - private MySqlConnection conn = null; - //private MySqlTransaction trans = null; - private CommandType cmdType = CommandType.Text; - private bool designTime = false; - //private MySqlParameterCollection parmCollection = new - // MySqlParameterCollection(); - - // MySqlDataReader state data for ExecuteReader() - //private MySqlDataReader dataReader = null; - private string[] queries = null; - private int currentQuery = -1; - private CommandBehavior cmdBehavior = CommandBehavior.Default; - - //private ParmUtil parmUtil = null; - - #endregion // Fields - - #region Constructors - - public MySqlCommand() { - sql = ""; - } - - public MySqlCommand (string cmdText) { - sql = cmdText; - } - - public MySqlCommand (string cmdText, MySqlConnection connection) { - sql = cmdText; - conn = connection; - } - - /* - public MySqlCommand (string cmdText, MySqlConnection connection, - MySqlTransaction transaction) { - sql = cmdText; - conn = connection; - trans = transaction; - } - */ - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public void Cancel () { - // FIXME: use non-blocking Exec for this - throw new NotImplementedException (); - } - - // FIXME: is this the correct way to return a stronger type? - [MonoTODO] - IDbDataParameter IDbCommand.CreateParameter () { - //return CreateParameter (); - return null; - } - - /* - [MonoTODO] - public SqlParameter CreateParameter () { - return new SqlParameter (); - } - */ - - [MonoTODO] - public int ExecuteNonQuery () { - int rowsAffected = -1; - //TODO: need to do this correctly - // this is just something quick - // thrown together to see if we can - // execute a SQL Command - Console.WriteLine("Insert SQL: " + sql); - Console.Out.Flush(); - int rcq = MySql.Query(conn.NativeMySqlInitStruct, sql); - if (rcq != 0) { - // TODO: throw an exception here? - Console.WriteLine("Error: Couldn't execute ["+sql+"] on server."); - Console.Out.Flush(); - Console.WriteLine("MySql Error: " + MySql.Error(conn.NativeMySqlInitStruct)); - Console.Out.Flush(); - return 0; - } - // TODO: need to return the number of rows affected for an INSERT, UPDATE, or DELETE - // otherwise, it is -1 - return rowsAffected; - } - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader () { - //return ExecuteReader (); - // FIXME: just a quick hack - ExecuteNonQuery(); - return null; - - } - - /* - [MonoTODO] - public MySqlDataReader ExecuteReader () { - return ExecuteReader(CommandBehavior.Default); - } - */ - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader ( - CommandBehavior behavior) { - //return ExecuteReader (behavior); - return null; - } - - /* - [MonoTODO] - public MySqlDataReader ExecuteReader (CommandBehavior behavior) { - - } - */ - - [MonoTODO] - public object ExecuteScalar () { - // FIXME: just a quick hack - ExecuteNonQuery(); - return null; - } - - [MonoTODO] - public XmlReader ExecuteXmlReader () { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Prepare () { - // FIXME: parameters have to be implemented for this - throw new NotImplementedException (); - } - - [MonoTODO] - public MySqlCommand Clone () { - throw new NotImplementedException (); - } - - #endregion // Methods - - #region Properties - - public string CommandText { - get { - return sql; - } - - set { - sql = value; - } - } - - public int CommandTimeout { - get { - return timeout; - } - - set { - // FIXME: if value < 0, throw - // ArgumentException - // if (value < 0) - // throw ArgumentException; - timeout = value; - } - } - - public CommandType CommandType { - get { - return cmdType; - } - - set { - cmdType = value; - } - } - - // FIXME: for property Connection, is this the correct - // way to handle a return of a stronger type? - IDbConnection IDbCommand.Connection { - get { - return Connection; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during a - // transaction in progress - - // csc - Connection = (MySqlConnection) value; - // mcs - // Connection = value; - - // FIXME: set Transaction property to null - } - } - - public MySqlConnection Connection { - get { - // conn defaults to null - return conn; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during - // a transaction in progress - conn = value; - // FIXME: set Transaction property to null - } - } - - public bool DesignTimeVisible { - get { - return designTime; - } - - set{ - designTime = value; - } - } - - // FIXME; for property Parameters, is this the correct - // way to handle a stronger return type? - IDataParameterCollection IDbCommand.Parameters { - get { - //return Parameters; - return null; - } - } - - //public SqlParameterCollection Parameters { - // get { - // return parmCollection; - // } - //} - - // FIXME: for property Transaction, is this the correct - // way to handle a return of a stronger type? - IDbTransaction IDbCommand.Transaction { - get { - //return Transaction; - return null; - } - - set { - // FIXME: error handling - do not allow - // setting of transaction if transaction - // has already begun - - //Transaction = (MySqlTransaction) value; - throw new NotImplementedException(); - } - } - - /* - public MySqlTransaction Transaction { - get { - return trans; - } - - set { - // FIXME: error handling - trans = value; - } - } - */ - - [MonoTODO] - public UpdateRowSource UpdatedRowSource { - // FIXME: do this once DbDataAdaptor - // and DataRow are done - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } - } - - #endregion // Properties - - #region Inner Classes - - #endregion // Inner Classes - - #region Destructors - - [MonoTODO] - public void Dispose() { - // FIXME: need proper way to release resources - // Dispose(true); - } - - [MonoTODO] - ~MySqlCommand() { - // FIXME: need proper way to release resources - // Dispose(false); - } - - #endregion //Destructors - } -} diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlConnection.cs b/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlConnection.cs deleted file mode 100644 index 1d6d22768034a..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlConnection.cs +++ /dev/null @@ -1,534 +0,0 @@ -// -// Mono.Data.MySql.MyConnection.cs -// -// Author: -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Daniel Morgan 2002 -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; - -namespace Mono.Data.MySql { - - public sealed class MySqlConnection : Component, IDbConnection, - ICloneable { - - #region Fields - - private IntPtr mysqlInitStruct = IntPtr.Zero; - private IntPtr mysqlConn = IntPtr.Zero; - - private string connectionString = ""; - private string mysqlConnectionString = ""; - - //private MySqlTransaction trans = null; - private int connectionTimeout = 15; - // default for 15 seconds - - // MySQL connection string parameters - string host = ""; - string user = ""; - string passwd = ""; - string dbname = ""; - uint port = MySql.Port; - string socketName = ""; - uint flags = 0; - - // connection state - private ConnectionState conState = ConnectionState.Closed; - - // DataReader state - //private MySqlDataReader rdr = null; - private bool dataReaderOpen = false; - // FIXME: if true, throw an exception if SqlConnection - // is used for anything other than reading - // data using SqlDataReader - - private string versionString = "Unknown"; - private bool disposed = false; - - #endregion // Fields - - #region Constructors - - // A lot of the defaults were initialized in the Fields - [MonoTODO] - public MySqlConnection () { - - } - - [MonoTODO] - public MySqlConnection (String connectionString) { - SetConnectionString (connectionString); - } - - #endregion // Constructors - - #region Destructors - - // aka Finalize - // [ClassInterface(ClassInterfaceType.AutoDual)] - [MonoTODO] - ~MySqlConnection() { - // FIXME: this class need - // a destructor to release resources - // Also, take a look at Dispose - Dispose (false); - } - - #endregion // Destructors - - #region Public Methods - - IDbTransaction IDbConnection.BeginTransaction () { - // return BeginTransaction (); - return null; - } - - //public MySqlTransaction BeginTransaction () { - // return TransactionBegin (); // call private method - //} - - IDbTransaction IDbConnection.BeginTransaction (IsolationLevel - il) { - //return BeginTransaction (il); - return null; - } - - //public MySqlTransaction BeginTransaction (IsolationLevel il) { - // return TransactionBegin (il); // call private method - //} - - //[MonoTODO] - //public MySqlTransaction BeginTransaction(string transactionName) { - // return TransactionBegin (); // call private method - //} - - //[MonoTODO] - //public MySqlTransaction BeginTransaction(IsolationLevel iso, - // string transactionName) { - // return TransactionBegin (iso); // call private method - //} - - [MonoTODO] - public void ChangeDatabase (string databaseName) { - throw new NotImplementedException (); - } - - object ICloneable.Clone() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Close () { - if(dataReaderOpen == true) { - // TODO: what do I do if - // the user Closes the connection - // without closing the Reader first? - - } - CloseDataSource (); - } - - IDbCommand IDbConnection.CreateCommand () { - return CreateCommand (); - } - - public MySqlCommand CreateCommand () { - MySqlCommand sqlcmd = new MySqlCommand ("", this); - - return sqlcmd; - } - - [MonoTODO] - public void Open () { - if(dbname.Equals("")) - throw new InvalidOperationException( - "dbname missing"); - else if(conState == ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is already Open"); - - // FIXME: check to make sure we have - // everything to connect, - // otherwise, throw an exception - - mysqlInitStruct = MySql.Init(IntPtr.Zero); - if (mysqlInitStruct == IntPtr.Zero) { - // TODO: throw exception instead - Console.WriteLine("MySQL Init failed."); - return; - } - - - // *** this is what it should be *** - //mysqlConn = MySql.Connect(mysqlInitStruct, - // host.Equals("") ? null : host, - // user.Equals("") ? null : user, - // passwd.Equals("") ? null : passwd, - // dbname.Equals("") ? null : dbname, - // port, - // socketName.Equals("") ? null : socketName, - // flags); - // - mysqlConn = MySql.Connect(mysqlInitStruct, - host, - user, - passwd, - dbname, - port, - socketName, - flags); - if (mysqlConn == IntPtr.Zero) { - // TODO: throw exception instead - Console.WriteLine("MySQL Connect failed, "+MySql.Error(mysqlInitStruct)); - return; - } - - Console.WriteLine("MySql Selecting Database: " + dbname + "..."); - Console.Out.Flush(); - int sdb = MySql.SelectDb(mysqlInitStruct, dbname); - if (sdb != 0) { - Console.WriteLine("Error: Can not select the "+dbname+" database."); - Console.Out.Flush(); - Console.WriteLine("MySql Error: " + MySql.Error(mysqlInitStruct)); - Console.Out.Flush(); - return; - } - - // Successfully Connected - SetupConnection(); - } - - #endregion // Public Methods - - #region Protected Methods - - [MonoTODO] - - protected override void Dispose(bool disposing) { - if(!this.disposed) - try { - if(disposing) { - // release any managed resources - } - // release any unmanaged resources - // close any handles - - this.disposed = true; - } - finally { - base.Dispose(disposing); - } - } - - #endregion - - #region Internal Methods - - // Used to prevent MySqlConnection - // from doing anything while - // MySqlDataReader is open. - // Open the Reader. (called from MySqlCommand) - /* - internal void OpenReader(MySqlDataReader reader) { - if(dataReaderOpen == true) { - // TODO: throw exception here? - // because a reader - // is already open - } - else { - rdr = reader; - dataReaderOpen = true; - } - } - */ - - // Used to prevent MySqlConnection - // from doing anything while - // MySqlDataReader is open - // Close the Reader (called from MySqlCommand) - // if closeConnection true, Close() the connection - // this is based on CommandBehavior.CloseConnection - internal void CloseReader(bool closeConnection) { - if(closeConnection == true) - CloseDataSource(); - else - dataReaderOpen = false; - } - - #endregion // Internal Methods - - #region Private Methods - - private void SetupConnection() { - conState = ConnectionState.Open; - - versionString = GetDatabaseServerVersion(); - - // May need to set DateTime format to ISO - // "YYYY-MM-DD hh:mi:ss.ms" - } - - private string GetDatabaseServerVersion() { - //MySqlCommand cmd = new MySqlCommand("select version()",this); - //return (string) cmd.ExecuteScalar(); - return ""; - } - - private void CloseDataSource () { - // FIXME: just a quick hack - if(conState == ConnectionState.Open) { - /* - if(trans != null) - if(trans.DoingTransaction == true) { - trans.Rollback(); - // trans.Dispose(); - trans = null; - } - */ - conState = ConnectionState.Closed; - MySql.Close(mysqlInitStruct); - // MySql.ThreadEnd(); - mysqlConn = IntPtr.Zero; - } - } - - private void SetConnectionString (string connectionString) { - - this.connectionString = connectionString; - mysqlConnectionString = ConvertStringToMySql ( - connectionString); - } - - private String ConvertStringToMySql (String - oleDbConnectionString) { - StringBuilder mysqlConnection = - new StringBuilder(); - string result; - string[] connectionParameters; - - char[] semicolon = new Char[1]; - semicolon[0] = ';'; - - // FIXME: what is the max number of value pairs - // can there be for the OLE DB - // connnection string? what about libgda max? - // what about postgres max? - - // FIXME: currently assuming value pairs are like: - // "key1=value1;key2=value2;key3=value3" - // Need to deal with values that have - // single or double quotes. And error - // handling of that too. - // "key1=value1;key2='value2';key=\"value3\"" - - // FIXME: put the connection parameters - // from the connection - // string into a - // Hashtable (System.Collections) - // instead of using private variables - // to store them - connectionParameters = oleDbConnectionString. - Split (semicolon); - foreach (string sParameter in connectionParameters) { - if(sParameter.Length > 0) { - BreakConnectionParameter (sParameter); - mysqlConnection. - Append (sParameter + - " "); - } - } - result = mysqlConnection.ToString (); - return result; - } - - private bool BreakConnectionParameter (String sParameter) { - bool addParm = true; - int index; - - index = sParameter.IndexOf ("="); - if (index > 0) { - string parmKey, parmValue; - - // separate string "key=value" to - // string "key" and "value" - parmKey = sParameter.Substring (0, index); - parmValue = sParameter.Substring (index + 1, - sParameter.Length - index - 1); - - /* - * string host - * string user - * string passwd - * string dbname - * unit port - * string socketName - * unit flags (can be multiple) - */ - switch(parmKey.ToLower()) { - case "port": - port = UInt32.Parse(parmValue); - break; - - case "host": - // set DataSource property - host = parmValue; - break; - - case "dbname": - // set Database property - dbname = parmValue; - break; - - case "user": - user = parmValue; - break; - - case "passwd": - passwd = parmValue; - break; - - case "socketName": - socketName = parmValue; - break; - - default: - // throw an exception? - break; - } - } - return addParm; - } - - /* - private MySqlTransaction TransactionBegin () { - // FIXME: need to keep track of - // transaction in-progress - trans = new SqlTransaction (); - // using internal methods of SqlTransaction - trans.SetConnection (this); - trans.Begin(); - - return trans; - } - - private MySqlTransaction TransactionBegin (IsolationLevel il) { - // FIXME: need to keep track of - // transaction in-progress - TransactionBegin(); - trans.SetIsolationLevel (il); - - return trans; - } - */ - - #endregion - - #region Public Properties - - [MonoTODO] - public ConnectionState State { - get { - return conState; - } - } - - public string ConnectionString { - get { - return connectionString; - } - set { - SetConnectionString (value); - } - } - - public int ConnectionTimeout { - get { - return connectionTimeout; - } - } - - public string Database { - get { - return dbname; - } - } - - public string DataSource { - get { - return host; - } - } - - public int PacketSize { - get { - throw new NotImplementedException (); - } - } - - public string ServerVersion { - get { - return versionString; - } - } - - #endregion // Public Properties - - #region Internal Properties -/* - // For Mono.Data.MySql classes - // to get the current transaction - // in progress - if any - internal MySqlTransaction Transaction { - get { - return trans; - } - } -*/ - // For Mono.Data.MySql classes - // to get the unmanaged MySql connection - internal IntPtr NativeMySqlConnection { - get { - return mysqlConn; - } - } - - // For Mono.Data.MySql classes - // to get the unmanaged MySql connection - internal IntPtr NativeMySqlInitStruct { - get { - return mysqlInitStruct; - } - } - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open - internal bool IsReaderOpen { - get { - return dataReaderOpen; - } - } - - #endregion // Internal Properties - - #region Events -/* - public event - MyInfoMessageEventHandler InfoMessage; - - public event - StateChangeEventHandler StateChange; -*/ - #endregion - - } -} diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/TODOAttribute.cs b/mcs/class/Mono.Data.MySql/Mono.Data.MySql/TODOAttribute.cs deleted file mode 100644 index 22481a86a8347..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/TODOAttribute.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// -using System; - -namespace Mono.Data.MySql { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All)] - internal class MonoTODOAttribute : Attribute { - - string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - } -} diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/Test.cs b/mcs/class/Mono.Data.MySql/Mono.Data.MySql/Test.cs deleted file mode 100644 index ee7c944af99e5..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/Test.cs +++ /dev/null @@ -1,259 +0,0 @@ -// -// Test.cs -// -// Used to Test the C# bindings to MySQL. This test -// is based on the test that comes with MySQL. -// Part of the C# bindings to MySQL library libMySQL.dll -// -// Author: -// Brad Merrill -// -// (C)Copyright 2002 Brad Merril -// -// http://www.cybercom.net/~zbrad/DotNet/MySql/ -// -// Mono has gotten permission from Brad Merrill to include in -// the Mono Class Library -// his C# bindings to MySQL under the X11 License -// -// Mono can be found at http://www.go-mono.com/ -// The X11/MIT License can be found -// at http://www.opensource.org/licenses/mit-license.html -// - -// #define MYSQL_CANDO_QUERY if the runtime can do a query -// define MYSQL_CANDO_THREADS if the runtime can use mysql_thread_* functions -#define MYSQL_CANDO_QUERY -#define MYSQL_CANDO_THREADS - -using System; -using System.Runtime.InteropServices; -using Mono.Data.MySql; - -/// -/// -/// MySql P/Invoke implementation test program -/// Brad Merrill -/// 3-Mar-2002 -/// -/// -/// This is based on the myTest.c program in the -/// libmysqltest example directory of the mysql distribution. -/// -/// -/// I noticed during implementation that the C api libraries are -/// thread sensitive, in that they store information in the -/// currently executing thread local storage. This is -/// incompatible with the thread pool model in the CLR, in which -/// you could be executing the same context on different -/// threads. -/// -/// -/// A better implementation would be to rewrite the libmysql -/// layer in managed code, and do all the socket APIs, and mysql -/// protocol using the .NET Framework APIs. However, that's a -/// bit more than a weekend of work. -/// -/// -public class Test { - [STAThread] - public static int Main() { - Console.WriteLine("Test for MySQL C# Bindings started..."); - Console.Out.Flush(); - int rcq; - - string myDb = "test"; - string myStmt = "SELECT * FROM sometable"; - string insertStmt = "INSERT INTO SOMETABLE (TID,TDESC,AINT) VALUES ('MySQL','Mono.Data',12)"; - - Console.WriteLine("MySql Init..."); - Console.Out.Flush(); - IntPtr db = MySql.Init(IntPtr.Zero); - if (db == IntPtr.Zero) { - Console.WriteLine("Error: Init failed."); - Console.Out.Flush(); - return 1; - } - - Console.WriteLine("MySql Connection..."); - Console.Out.Flush(); - IntPtr conn = MySql.Connect(db, "", "", "", "", MySql.Port, - "", (uint)0); - //IntPtr conn = MySql.mysql_connect(db, null, null, null, null, MySql.Port, - // null, (uint)0); - if (conn == IntPtr.Zero) { - Console.WriteLine("Error: Connect failed."); - Console.Out.Flush(); - Console.WriteLine("MySql Error: " + MySql.Error(db)); - Console.Out.Flush(); - return 1; - } - - Console.WriteLine("MySql Selecting Database: " + myDb + "..."); - Console.Out.Flush(); - int sdb = MySql.SelectDb(db, myDb); - if (sdb != 0) { - Console.WriteLine("Error: Can not select the "+myDb+" database."); - Console.Out.Flush(); - Console.WriteLine("MySql Error: " + MySql.Error(db)); - Console.Out.Flush(); - return 1; - } - - Console.WriteLine("Insert SQL: "+insertStmt); - Console.Out.Flush(); - rcq = MySql.Query(db, insertStmt); - if (rcq != 0) { - Console.WriteLine("Couldn't execute ["+insertStmt+"] on server."); - Console.Out.Flush(); - Console.WriteLine("MySql Error: " + MySql.Error(db)); - Console.Out.Flush(); - return 1; - } - -#if MYSQL_CANDO_QUERY - Console.WriteLine("Query: "+myStmt); - Console.Out.Flush(); - rcq = MySql.Query(db, myStmt); - if (rcq != 0) { - Console.WriteLine("?Couldn't execute ["+myStmt+"] on server."); - Console.Out.Flush(); - Console.WriteLine("MySql Error: " + MySql.Error(db)); - Console.Out.Flush(); - return 1; - } - - Console.WriteLine("Process Results..."); - Console.Out.Flush(); - procResults(db); - - Console.WriteLine("==== Diagnostic info ===="); - Console.Out.Flush(); - Console.WriteLine("Client info: "+MySql.GetClientInfo()); - Console.WriteLine("Host info: "+MySql.GetHostInfo(db)); - Console.WriteLine("Server info: "+MySql.GetServerInfo(db)); - Console.Out.Flush(); - - Console.WriteLine("List Processes..."); - Console.Out.Flush(); - listProcesses(db); - Console.WriteLine("List Tables..."); - Console.Out.Flush(); - listTables(db); -#endif // MYSQL_CANDO_QUERY - - Console.WriteLine("MySql Stat..."); - Console.Out.Flush(); - Console.WriteLine(MySql.Stat(db)); - - Console.WriteLine("MySql Close..."); - Console.Out.Flush(); - MySql.Close(db); -#if MYSQL_CANDO_THREADS - Console.WriteLine("MySql Thread End..."); - Console.Out.Flush(); - MySql.ThreadEnd(); -#endif // MYSQL_CANDO_THREADS - Console.WriteLine("Exiting..."); - Console.Out.Flush(); - - return 0; - } - -#if MYSQL_CANDO_QUERY - static void procResults(IntPtr db) { - IntPtr res = MySql.StoreResult(db); - int numRows = MySql.NumRows(res); - Console.WriteLine("Number of records found: " + numRows); - int numFields = MySql.NumFields(res); - string[] fields = new string[numFields]; - for (int i = 0; i < numFields; i++) { - Field fd = (Field) Marshal.PtrToStructure(MySql.FetchField(res), typeof(Field)); - fields[i] = fd.Name; - } - IntPtr row; - int recCnt = 1; - while ((row = MySql.FetchRow(res)) != IntPtr.Zero) { - Console.WriteLine("Record #" + recCnt + ":"); - for (int i = 0, j = 1; i < numFields; i++, j++) { - Console.WriteLine(" Going to WriteLine Fld...\n"); - Console.Out.Flush(); - Console.WriteLine(" theField[[[" + fields[i] + "]]]\n"); - Console.Out.Flush(); - Console.WriteLine(" after theField... \n"); - Console.Out.Flush(); - Console.WriteLine(" Fld #"+j+" ("+fields[i]+"): "+rowVal(row, i)); - Console.Out.Flush(); - } - Console.WriteLine("=============================="); - } - MySql.FreeResult(res); - } - - static string rowVal(IntPtr res, int index) { - Console.WriteLine("...Marshal.ReadIntPtr() BEFORE...\n"); - Console.Out.Flush(); - IntPtr str = Marshal.ReadIntPtr(res, index*IntPtr.Size); - Console.WriteLine("...Marshal.ReadIntPtr() AFTER...\n"); - Console.Out.Flush(); - if (str == IntPtr.Zero) - return "NULL"; - Console.WriteLine("...Marshal.PtrToStringAnsi() BEFORE..."); - Console.Out.Flush(); - string s = Marshal.PtrToStringAnsi(str); - Console.WriteLine("...Marshal.PtrToStringAnsi() AFTER..."); - Console.Out.Flush(); - return s; - } - - static void listProcesses(IntPtr db) { - IntPtr res = MySql.ListProcesses(db); - if (res == IntPtr.Zero) { - Console.WriteLine("Got error "+MySql.Error(db)+" when retreiving processlist"); - return; - } - int numRows = MySql.NumRows(res); - // Console.WriteLine("Number of records found: "+i); - int numFields = MySql.NumFields(res); - string[] fields = new string[numFields]; - for (int i = 0; i < numFields; i++) { - Field fd = (Field) Marshal.PtrToStructure(MySql.FetchField(res), typeof(Field)); - fields[i] = fd.Name; - } - IntPtr row; - int recCnt = 1; - while ((row = MySql.FetchRow(res)) != IntPtr.Zero) { - Console.WriteLine("Process #" + recCnt + ":"); - for (int i = 0, j = 1; i < numFields; i++, j++) { - Console.WriteLine(" Fld #"+j+" ("+fields[i]+"): "+rowVal(row, i)); - } - Console.WriteLine("=============================="); - } - MySql.FreeResult(res); - } - - static void listTables(IntPtr db) { - IntPtr res = MySql.ListTables(db, "%"); - if (res == IntPtr.Zero) - return; - int numRows = MySql.NumRows(res); - // Console.WriteLine("Number of records found: "+i); - int numFields = MySql.NumFields(res); - string[] fields = new string[numFields]; - for (int i = 0; i < numFields; i++) { - Field fd = (Field) Marshal.PtrToStructure(MySql.FetchField(res), typeof(Field)); - fields[i] = fd.Name; - } - IntPtr row; - int recCnt = 1; - while ((row = MySql.FetchRow(res)) != IntPtr.Zero) { - Console.WriteLine("Process #" + recCnt + ":"); - for (int i = 0, j = 1; i < numFields; i++, j++) { - Console.WriteLine(" Fld #"+j+" ("+fields[i]+"): "+rowVal(row, i)); - } - Console.WriteLine("=============================="); - } - MySql.FreeResult(res); - } -#endif // MYSQL_CANDO_QUERY -} diff --git a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/makefile b/mcs/class/Mono.Data.MySql/Mono.Data.MySql/makefile deleted file mode 100644 index 78547a30cd3bc..0000000000000 --- a/mcs/class/Mono.Data.MySql/Mono.Data.MySql/makefile +++ /dev/null @@ -1,20 +0,0 @@ - -SRCLIST = MySql.cs Test.cs - -.SUFFIXES: .exe .dll .cs .lex .txt - -#DEBUG = /debug - -.cs.dll: - csc $(DEBUG) /t:dll $*.cs - -.cs.exe: - csc $(DEBUG) /t:exe $*.cs - -all : Test.exe MySql.dll - -Test.exe : Test.cs MySql.dll - csc $(DEBUG) /t:exe /r:MySql.dll Test.cs - -MySql.dll : MySql.cs Field.cs - csc $(DEBUG) /t:library /doc:MySql.xml MySql.cs Field.cs diff --git a/mcs/class/Mono.Data.MySql/Test/TestMySqlInsert.cs b/mcs/class/Mono.Data.MySql/Test/TestMySqlInsert.cs deleted file mode 100644 index 30d6267bf4d7a..0000000000000 --- a/mcs/class/Mono.Data.MySql/Test/TestMySqlInsert.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// TestSqlInsert.cs -// -// To Test MySqlConnection and MySqlCommand by connecting -// to a MySQL database -// and then executing an INSERT SQL statement -// -// To use: -// change strings to your database, userid, tables, etc...: -// connectionString -// insertStatement -// -// To test: -// mcs TestMySqlInsert.cs -r Mono.Data.MySql.dll -// mint TestMySqlInsert.exe -// -// Author: -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C)Copyright 2002 Daniel Morgan -// - -using System; -using System.Data; -using Mono.Data.MySql; - -namespace TestMonoDataMysql -{ - class TestMySqlInsert - { - [STAThread] - static void Main(string[] args) - { - MySqlConnection conn; - MySqlCommand cmd; - //MySqlTransaction trans; - - int rowsAffected; - - String connectionString; - String insertStatement; - String deleteStatement; - - connectionString = - "dbname=test"; - - insertStatement = - "insert into sometable " + - "(tid, tdesc) " + - "values ('beer', 'Beer for All!') "; - - deleteStatement = - "delete from sometable " + - "where tid = 'beer' "; - - // Connect to a MySQL database - Console.WriteLine ("Connect to database..."); - conn = new MySqlConnection(connectionString); - conn.Open(); - - // begin transaction - //Console.WriteLine ("Begin Transaction..."); - //trans = conn.BeginTransaction(); - - // create SQL DELETE command - Console.WriteLine ("Create Command initializing " + - "with an DELETE statement..."); - //cmd = new MySqlCommand (deleteStatement, conn); - cmd = new MySqlCommand (deleteStatement, conn); - - // execute the DELETE SQL command - Console.WriteLine ("Execute DELETE SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // change the SQL command to an SQL INSERT Command - Console.WriteLine ("Now use INSERT SQL Command..."); - cmd.CommandText = insertStatement; - - // execute the INSERT SQL command - Console.WriteLine ("Execute INSERT SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // if successfull at INSERT, commit the transaction, - // otherwise, do a rollback the transaction using - // trans.Rollback(); - // FIXME: need to have exceptions working in - // Mono.Data.MySql classes before you can do rollback - //Console.WriteLine ("Commit transaction..."); - //trans.Commit(); - - // Close connection to database - Console.WriteLine ("Close database connection..."); - conn.Close(); - - Console.WriteLine ("Assuming everything " + - "was successful."); - Console.WriteLine ("Verify data in database to " + - "see if row is there."); - } - } -} diff --git a/mcs/class/Mono.Data.MySql/list b/mcs/class/Mono.Data.MySql/list deleted file mode 100644 index 1434f89e67830..0000000000000 --- a/mcs/class/Mono.Data.MySql/list +++ /dev/null @@ -1,5 +0,0 @@ -Mono.Data.MySql/Field.cs -Mono.Data.MySql/MySqlCommand.cs -Mono.Data.MySql/MySqlConnection.cs -Mono.Data.MySql/MySql.cs -Mono.Data.MySql/TODOAttribute.cs diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/ParmUtil.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/ParmUtil.cs deleted file mode 100644 index 3dabac7853ee5..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/ParmUtil.cs +++ /dev/null @@ -1,176 +0,0 @@ -// -// ParmUtil.cs - utility to bind variables in a SQL statement to parameters in C# code -// This is in the PostgreSQL .NET Data provider in Mono -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// - -// comment DEBUG_ParmUtil for production, for debug messages, uncomment -//#define DEBUG_ParmUtil - -using System; -using System.Data; -using System.Text; - -namespace System.Data.SqlClient { - - enum PostgresBindVariableCharacter { - Semicolon, - At, - QuestionMark - } - - public class ParmUtil { - - private string sql = ""; - private string resultSql = ""; - private SqlParameterCollection parmsCollection = null; - - static private PostgresBindVariableCharacter PgbindChar = PostgresBindVariableCharacter.Semicolon; - static char bindChar; - - // static constructor - static ParmUtil() { - switch(PgbindChar) { - case PostgresBindVariableCharacter.Semicolon: - bindChar = ':'; - break; - case PostgresBindVariableCharacter.At: - bindChar = '@'; - break; - case PostgresBindVariableCharacter.QuestionMark: - // this doesn't have named parameters, - // they must be in order - bindChar = '?'; - break; - } - } - - public ParmUtil(string query, SqlParameterCollection parms) { - sql = query; - parmsCollection = parms; - } - - public string ResultSql { - get { - return resultSql; - } - } - - // TODO: currently only works for input variables, - // need to do input/output, output, and return - public string ReplaceWithParms() { - - StringBuilder result = new StringBuilder(); - char[] chars = sql.ToCharArray(); - bool bStringConstFound = false; - - for(int i = 0; i < chars.Length; i++) { - if(chars[i] == '\'') { - if(bStringConstFound == true) - bStringConstFound = false; - else - bStringConstFound = true; - - result.Append(chars[i]); - } - else if(chars[i] == bindChar && - bStringConstFound == false) { -#if DEBUG_ParmUtil - Console.WriteLine("Bind Variable character found..."); -#endif - StringBuilder parm = new StringBuilder(); - i++; - while(i <= chars.Length) { - char ch; - if(i == chars.Length) - ch = ' '; // a space - else - ch = chars[i]; - -#if DEBUG_ParmUtil - Console.WriteLine("Is char Letter or digit?"); -#endif - if(Char.IsLetterOrDigit(ch)) { -#if DEBUG_ParmUtil - Console.WriteLine("Char IS letter or digit. " + - "Now, append char to parm StringBuilder"); -#endif - parm.Append(ch); - } - else { -#if DEBUG_ParmUtil - Console.WriteLine("Char is NOT letter or char. " + - "thus we got rest of bind variable name. "); - - // replace bind variable placeholder - // with data value constant - Console.WriteLine("parm StringBuilder to string p..."); -#endif - string p = parm.ToString(); -#if DEBUG_ParmUtil - Console.WriteLine("calling BindReplace..."); -#endif - bool found = BindReplace(result, p); -#if DEBUG_ParmUtil - Console.WriteLine(" Found = " + found); -#endif - if(found == true) - break; - else { - // *** Error Handling - Console.WriteLine("Error: parameter not found: " + p); - return ""; - } - } - i++; - } - i--; - } - else - result.Append(chars[i]); - } - - resultSql = result.ToString(); - return resultSql; - } - - public bool BindReplace (StringBuilder result, string p) { - // bind variable - bool found = false; - -#if DEBUG_ParmUtil - Console.WriteLine("Does the parmsCollection contain the parameter???: " + p); -#endif - if(parmsCollection.Contains(p) == true) { - // parameter found -#if DEBUG_ParmUtil - Console.WriteLine("Parameter Found: " + p); -#endif - SqlParameter prm = parmsCollection[p]; - -#if DEBUG_ParmUtil - // DEBUG - Console.WriteLine(" Value: " + prm.Value); - Console.WriteLine(" Direction: " + prm.Direction); -#endif - // convert object to string and place - // into SQL - if(prm.Direction == ParameterDirection.Input) { - string strObj = PostgresHelper. - ObjectToString(prm.DbType, - prm.Value); - result.Append(strObj); - } - else - result.Append(bindChar + p); - - found = true; - } - return found; - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs deleted file mode 100644 index 20b9e02a6d0d6..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// System.Data.SqlClient.SqlClientPermission.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.SqlClient { - - public sealed class SqlClientPermission : DBDataPermission { - - [MonoTODO] - public SqlClientPermission() { - // FIXME: do constructor - } - - [MonoTODO] - public SqlClientPermission(PermissionState state) { - // FIXME: do constructor - } - - [MonoTODO] - public SqlClientPermission(PermissionState state, - bool allowBlankPassword) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Copy() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void FromXml(SecurityElement - securityElement) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Intersect(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override bool IsSubsetOf(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override string ToString() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override SecurityElement ToXml() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Union(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - ~SqlClientPermission() { - // FIXME: destructor to release resources - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs deleted file mode 100644 index 149613c5f2ecb..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// System.Data.SqlClient.SqlClientPermissionAttribute.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.SqlClient { - - [AttributeUsage(AttributeTargets.Assembly | - AttributeTargets.Class | - AttributeTargets.Struct | - AttributeTargets.Constructor | - AttributeTargets.Method)] - [Serializable] - public sealed class SqlClientPermissionAttribute : - DBDataPermissionAttribute { - - [MonoTODO] - public SqlClientPermissionAttribute(SecurityAction action) : - base(action) - { - // FIXME: do constructor - } - - [MonoTODO] - public override IPermission CreatePermission() { - throw new NotImplementedException (); - } - - //[MonoTODO] - //~SqlClientPermissionAttribute() { - // // FIXME: destructor to release resources - //} - } - -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs deleted file mode 100644 index af2771c3fa2f2..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs +++ /dev/null @@ -1,928 +0,0 @@ -// -// System.Data.SqlClient.SqlCommand.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc 2002 http://www.ximian.com/ -// (C) Daniel Morgan, 2002 -// (C) Copyright 2002 Tim Coleman -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// use #define DEBUG_SqlCommand if you want to spew debug messages -// #define DEBUG_SqlCommand - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; -using System.Xml; - -namespace System.Data.SqlClient { - /// - /// Represents a SQL statement that is executed - /// while connected to a SQL database. - /// - // public sealed class SqlCommand : Component, IDbCommand, ICloneable - public sealed class SqlCommand : IDbCommand { - - #region Fields - - private string sql = ""; - private int timeout = 30; - // default is 30 seconds - // for command execution - - private SqlConnection conn = null; - private SqlTransaction trans = null; - private CommandType cmdType = CommandType.Text; - private bool designTime = false; - private SqlParameterCollection parmCollection = new - SqlParameterCollection(); - - // SqlDataReader state data for ExecuteReader() - private SqlDataReader dataReader = null; - private string[] queries = null; - private int currentQuery = -1; - private CommandBehavior cmdBehavior = CommandBehavior.Default; - - private ParmUtil parmUtil = null; - - #endregion // Fields - - #region Constructors - - public SqlCommand() { - sql = ""; - } - - public SqlCommand (string cmdText) { - sql = cmdText; - } - - public SqlCommand (string cmdText, SqlConnection connection) { - sql = cmdText; - conn = connection; - } - - public SqlCommand (string cmdText, SqlConnection connection, - SqlTransaction transaction) { - sql = cmdText; - conn = connection; - trans = transaction; - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public void Cancel () { - // FIXME: use non-blocking Exec for this - throw new NotImplementedException (); - } - - // FIXME: is this the correct way to return a stronger type? - [MonoTODO] - IDbDataParameter IDbCommand.CreateParameter () { - return CreateParameter (); - } - - [MonoTODO] - public SqlParameter CreateParameter () { - return new SqlParameter (); - } - - public int ExecuteNonQuery () { - IntPtr pgResult; // PGresult - int rowsAffected = -1; - ExecStatusType execStatus; - String rowsAffectedString; - string query; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - query = TweakQuery(sql, cmdType); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == ExecStatusType.PGRES_COMMAND_OK || - execStatus == ExecStatusType.PGRES_TUPLES_OK ) { - - rowsAffectedString = PostgresLibrary. - PQcmdTuples (pgResult); - - if(rowsAffectedString != null) - if(rowsAffectedString.Equals("") == false) - rowsAffected = int.Parse(rowsAffectedString); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - - return rowsAffected; - } - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader () { - return ExecuteReader (); - } - - [MonoTODO] - public SqlDataReader ExecuteReader () { - return ExecuteReader(CommandBehavior.Default); - } - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader ( - CommandBehavior behavior) { - return ExecuteReader (behavior); - } - - [MonoTODO] - public SqlDataReader ExecuteReader (CommandBehavior behavior) - { - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnectionState is not Open"); - - cmdBehavior = behavior; - - queries = null; - currentQuery = -1; - dataReader = new SqlDataReader(this); - - queries = sql.Split(new Char[] {';'}); - - dataReader.NextResult(); - - return dataReader; - } - - internal SqlResult NextResult() - { - SqlResult res = new SqlResult(); - res.Connection = this.Connection; - res.Behavior = cmdBehavior; - string statement; - - currentQuery++; - - res.CurrentQuery = currentQuery; - - if(currentQuery < queries.Length && queries[currentQuery].Equals("") == false) { - res.SQL = queries[currentQuery]; - statement = TweakQuery(queries[currentQuery], cmdType); - ExecuteQuery(statement, res); - res.ResultReturned = true; - } - else { - res.ResultReturned = false; - } - - return res; - } - - private string TweakQuery(string query, CommandType commandType) { - string statement = ""; - StringBuilder td; - -#if DEBUG_SqlCommand - Console.WriteLine("---------[][] TweakQuery() [][]--------"); - Console.WriteLine("CommandType: " + commandType + " CommandBehavior: " + cmdBehavior); - Console.WriteLine("SQL before command type: " + query); -#endif - // finish building SQL based on CommandType - switch(commandType) { - case CommandType.Text: - statement = query; - break; - case CommandType.StoredProcedure: - statement = - "SELECT " + query + "()"; - break; - case CommandType.TableDirect: - // NOTE: this is for the PostgreSQL provider - // and for OleDb, according to the docs, - // an exception is thrown if you try to use - // this with SqlCommand - string[] directTables = query.Split( - new Char[] {','}); - - td = new StringBuilder("SELECT * FROM "); - - for(int tab = 0; tab < directTables.Length; tab++) { - if(tab > 0) - td.Append(','); - td.Append(directTables[tab]); - // FIXME: if multipe tables, how do we - // join? based on Primary/Foreign Keys? - // Otherwise, a Cartesian Product happens - } - statement = td.ToString(); - break; - default: - // FIXME: throw an exception? - statement = query; - break; - } -#if DEBUG_SqlCommand - Console.WriteLine("SQL after command type: " + statement); -#endif - // TODO: this parameters utility - // currently only support input variables - // need todo output, input/output, and return. -#if DEBUG_SqlCommand - Console.WriteLine("using ParmUtil in TweakQuery()..."); -#endif - parmUtil = new ParmUtil(statement, parmCollection); -#if DEBUG_SqlCommand - Console.WriteLine("ReplaceWithParms..."); -#endif - - statement = parmUtil.ReplaceWithParms(); - -#if DEBUG_SqlCommand - Console.WriteLine("SQL after ParmUtil: " + statement); -#endif - return statement; - } - - private void ExecuteQuery (string query, SqlResult res) - { - IntPtr pgResult; - - ExecStatusType execStatus; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnectionState is not Open"); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - res.ExecStatus = execStatus; - - if(execStatus == ExecStatusType.PGRES_TUPLES_OK || - execStatus == ExecStatusType.PGRES_COMMAND_OK) { - - res.BuildTableSchema(pgResult); - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - } - - // since SqlCommand has resources so SqlDataReader - // can do Read() and NextResult(), need to free - // those resources. Also, need to allow this SqlCommand - // and this SqlConnection to do things again. - internal void CloseReader() { - dataReader = null; - queries = null; - - if((cmdBehavior & CommandBehavior.CloseConnection) == CommandBehavior.CloseConnection) { - conn.CloseReader(true); - } - else { - conn.CloseReader(false); - } - } - - // only meant to be used between SqlConnectioin, - // SqlCommand, and SqlDataReader - internal void OpenReader(SqlDataReader reader) { - conn.OpenReader(reader); - } - - /// - /// ExecuteScalar is used to retrieve one object - /// from one result set - /// that has one row and one column. - /// It is lightweight compared to ExecuteReader. - /// - [MonoTODO] - public object ExecuteScalar () { - IntPtr pgResult; // PGresult - ExecStatusType execStatus; - object obj = null; // return - int nRow = 0; // first row - int nCol = 0; // first column - String value; - int nRows; - int nFields; - string query; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - query = TweakQuery(sql, cmdType); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - if(execStatus == ExecStatusType.PGRES_COMMAND_OK) { - // result was a SQL Command - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - return null; // return null reference - } - else if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - // result was a SQL Query - - nRows = PostgresLibrary. - PQntuples(pgResult); - - nFields = PostgresLibrary. - PQnfields(pgResult); - - if(nRows > 0 && nFields > 0) { - - // get column name - //String fieldName; - //fieldName = PostgresLibrary. - // PQfname(pgResult, nCol); - - int oid; - string sType; - DbType dbType; - // get PostgreSQL data type (OID) - oid = PostgresLibrary. - PQftype(pgResult, nCol); - sType = PostgresHelper. - OidToTypname (oid, conn.Types); - dbType = PostgresHelper. - TypnameToSqlDbType(sType); - - int definedSize; - // get defined size of column - definedSize = PostgresLibrary. - PQfsize(pgResult, nCol); - - // get data value - value = PostgresLibrary. - PQgetvalue( - pgResult, - nRow, nCol); - - int columnIsNull; - // is column NULL? - columnIsNull = PostgresLibrary. - PQgetisnull(pgResult, - nRow, nCol); - - int actualLength; - // get Actual Length - actualLength = PostgresLibrary. - PQgetlength(pgResult, - nRow, nCol); - - obj = PostgresHelper. - ConvertDbTypeToSystem ( - dbType, - value); - } - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - - return obj; - } - - [MonoTODO] - public XmlReader ExecuteXmlReader () { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Prepare () { - // FIXME: parameters have to be implemented for this - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand Clone () { - throw new NotImplementedException (); - } - - #endregion // Methods - - #region Properties - - public string CommandText { - get { - return sql; - } - - set { - sql = value; - } - } - - public int CommandTimeout { - get { - return timeout; - } - - set { - // FIXME: if value < 0, throw - // ArgumentException - // if (value < 0) - // throw ArgumentException; - timeout = value; - } - } - - public CommandType CommandType { - get { - return cmdType; - } - - set { - cmdType = value; - } - } - - // FIXME: for property Connection, is this the correct - // way to handle a return of a stronger type? - IDbConnection IDbCommand.Connection { - get { - return Connection; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during a - // transaction in progress - - // csc - Connection = (SqlConnection) value; - // mcs - // Connection = value; - - // FIXME: set Transaction property to null - } - } - - public SqlConnection Connection { - get { - // conn defaults to null - return conn; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during - // a transaction in progress - conn = value; - // FIXME: set Transaction property to null - } - } - - public bool DesignTimeVisible { - get { - return designTime; - } - - set{ - designTime = value; - } - } - - // FIXME; for property Parameters, is this the correct - // way to handle a stronger return type? - IDataParameterCollection IDbCommand.Parameters { - get { - return Parameters; - } - } - - public SqlParameterCollection Parameters { - get { - return parmCollection; - } - } - - // FIXME: for property Transaction, is this the correct - // way to handle a return of a stronger type? - IDbTransaction IDbCommand.Transaction { - get { - return Transaction; - } - - set { - // FIXME: error handling - do not allow - // setting of transaction if transaction - // has already begun - - // csc - Transaction = (SqlTransaction) value; - // mcs - // Transaction = value; - } - } - - public SqlTransaction Transaction { - get { - return trans; - } - - set { - // FIXME: error handling - trans = value; - } - } - - [MonoTODO] - public UpdateRowSource UpdatedRowSource { - // FIXME: do this once DbDataAdaptor - // and DataRow are done - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } - } - - #endregion // Properties - - #region Inner Classes - - #endregion // Inner Classes - - #region Destructors - - [MonoTODO] - public void Dispose() { - // FIXME: need proper way to release resources - // Dispose(true); - } - - [MonoTODO] - ~SqlCommand() { - // FIXME: need proper way to release resources - // Dispose(false); - } - - #endregion //Destructors - } - - // SqlResult is used for passing Result Set data - // from SqlCommand to SqlDataReader - internal class SqlResult { - - private DataTable dataTableSchema = null; // only will contain the schema - private IntPtr pg_result = IntPtr.Zero; // native PostgreSQL PGresult - private int rowCount = 0; - private int fieldCount = 0; - private string[] pgtypes = null; // PostgreSQL types (typname) - private bool resultReturned = false; - private SqlConnection con = null; - private int rowsAffected = -1; - private ExecStatusType execStatus = ExecStatusType.PGRES_FATAL_ERROR; - private int currentQuery = -1; - private string sql = ""; - private CommandBehavior cmdBehavior = CommandBehavior.Default; - - internal CommandBehavior Behavior { - get { - return cmdBehavior; - } - set { - cmdBehavior = value; - } - } - - internal string SQL { - get { - return sql; - } - set { - sql = value; - } - } - - internal ExecStatusType ExecStatus { - get { - return execStatus; - } - set { - execStatus = value; - } - } - - internal int CurrentQuery { - get { - return currentQuery; - } - - set { - currentQuery = value; - } - - } - - internal SqlConnection Connection { - get { - return con; - } - - set { - con = value; - } - } - - internal int RecordsAffected { - get { - return rowsAffected; - } - } - - internal bool ResultReturned { - get { - return resultReturned; - } - set { - resultReturned = value; - } - } - - internal DataTable Table { - get { - return dataTableSchema; - } - } - - internal IntPtr PgResult { - get { - return pg_result; - } - } - - internal int RowCount { - get { - return rowCount; - } - } - - internal int FieldCount { - get { - return fieldCount; - } - } - - internal string[] PgTypes { - get { - return pgtypes; - } - } - - internal void BuildTableSchema (IntPtr pgResult) { - pg_result = pgResult; - - // need to set IDataReader.RecordsAffected property - string rowsAffectedString; - rowsAffectedString = PostgresLibrary. - PQcmdTuples (pgResult); - if(rowsAffectedString != null) - if(rowsAffectedString.Equals("") == false) - rowsAffected = int.Parse(rowsAffectedString); - - // Only Results from SQL SELECT Queries - // get a DataTable for schema of the result - // otherwise, DataTable is null reference - if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - - dataTableSchema = new DataTable (); - dataTableSchema.Columns.Add ("ColumnName", typeof (string)); - dataTableSchema.Columns.Add ("ColumnOrdinal", typeof (int)); - dataTableSchema.Columns.Add ("ColumnSize", typeof (int)); - dataTableSchema.Columns.Add ("NumericPrecision", typeof (int)); - dataTableSchema.Columns.Add ("NumericScale", typeof (int)); - dataTableSchema.Columns.Add ("IsUnique", typeof (bool)); - dataTableSchema.Columns.Add ("IsKey", typeof (bool)); - DataColumn dc = dataTableSchema.Columns["IsKey"]; - dc.AllowDBNull = true; // IsKey can have a DBNull - dataTableSchema.Columns.Add ("BaseCatalogName", typeof (string)); - dataTableSchema.Columns.Add ("BaseColumnName", typeof (string)); - dataTableSchema.Columns.Add ("BaseSchemaName", typeof (string)); - dataTableSchema.Columns.Add ("BaseTableName", typeof (string)); - dataTableSchema.Columns.Add ("DataType", typeof(string)); - dataTableSchema.Columns.Add ("AllowDBNull", typeof (bool)); - dataTableSchema.Columns.Add ("ProviderType", typeof (int)); - dataTableSchema.Columns.Add ("IsAliased", typeof (bool)); - dataTableSchema.Columns.Add ("IsExpression", typeof (bool)); - dataTableSchema.Columns.Add ("IsIdentity", typeof (bool)); - dataTableSchema.Columns.Add ("IsAutoIncrement", typeof (bool)); - dataTableSchema.Columns.Add ("IsRowVersion", typeof (bool)); - dataTableSchema.Columns.Add ("IsHidden", typeof (bool)); - dataTableSchema.Columns.Add ("IsLong", typeof (bool)); - dataTableSchema.Columns.Add ("IsReadOnly", typeof (bool)); - - fieldCount = PostgresLibrary.PQnfields (pgResult); - rowCount = PostgresLibrary.PQntuples(pgResult); - pgtypes = new string[fieldCount]; - - // TODO: for CommandBehavior.SingleRow - // use IRow, otherwise, IRowset - if(fieldCount > 0) - if((cmdBehavior & CommandBehavior.SingleRow) == CommandBehavior.SingleRow) - fieldCount = 1; - - // TODO: for CommandBehavior.SchemaInfo - if((cmdBehavior & CommandBehavior.SchemaOnly) == CommandBehavior.SchemaOnly) - fieldCount = 0; - - // TODO: for CommandBehavior.SingleResult - if((cmdBehavior & CommandBehavior.SingleResult) == CommandBehavior.SingleResult) - if(currentQuery > 0) - fieldCount = 0; - - // TODO: for CommandBehavior.SequentialAccess - used for reading Large OBjects - //if((cmdBehavior & CommandBehavior.SequentialAccess) == CommandBehavior.SequentialAccess) { - //} - - DataRow schemaRow; - int oid; - DbType dbType; - Type typ; - - for (int i = 0; i < fieldCount; i += 1 ) { - schemaRow = dataTableSchema.NewRow (); - - string columnName = PostgresLibrary.PQfname (pgResult, i); - - schemaRow["ColumnName"] = columnName; - schemaRow["ColumnOrdinal"] = i+1; - schemaRow["ColumnSize"] = PostgresLibrary.PQfsize (pgResult, i); - schemaRow["NumericPrecision"] = 0; - schemaRow["NumericScale"] = 0; - // TODO: need to get KeyInfo - if((cmdBehavior & CommandBehavior.KeyInfo) == CommandBehavior.KeyInfo) { - bool IsUnique, IsKey; - GetKeyInfo(columnName, out IsUnique, out IsKey); - } - else { - schemaRow["IsUnique"] = false; - schemaRow["IsKey"] = DBNull.Value; - } - schemaRow["BaseCatalogName"] = ""; - schemaRow["BaseColumnName"] = columnName; - schemaRow["BaseSchemaName"] = ""; - schemaRow["BaseTableName"] = ""; - - // PostgreSQL type to .NET type stuff - oid = PostgresLibrary.PQftype (pgResult, i); - pgtypes[i] = PostgresHelper.OidToTypname (oid, con.Types); - dbType = PostgresHelper.TypnameToSqlDbType (pgtypes[i]); - - typ = PostgresHelper.DbTypeToSystemType (dbType); - string st = typ.ToString(); - schemaRow["DataType"] = st; - - schemaRow["AllowDBNull"] = false; - schemaRow["ProviderType"] = oid; - schemaRow["IsAliased"] = false; - schemaRow["IsExpression"] = false; - schemaRow["IsIdentity"] = false; - schemaRow["IsAutoIncrement"] = false; - schemaRow["IsRowVersion"] = false; - schemaRow["IsHidden"] = false; - schemaRow["IsLong"] = false; - schemaRow["IsReadOnly"] = false; - schemaRow.AcceptChanges(); - dataTableSchema.Rows.Add (schemaRow); - } - -#if DEBUG_SqlCommand - Console.WriteLine("********** DEBUG Table Schema BEGIN ************"); - foreach (DataRow myRow in dataTableSchema.Rows) { - foreach (DataColumn myCol in dataTableSchema.Columns) - Console.WriteLine(myCol.ColumnName + " = " + myRow[myCol]); - Console.WriteLine(); - } - Console.WriteLine("********** DEBUG Table Schema END ************"); -#endif // DEBUG_SqlCommand - - } - } - - // TODO: how do we get the key info if - // we don't have the tableName? - private void GetKeyInfo(string columnName, out bool isUnique, out bool isKey) { - isUnique = false; - isKey = false; - - string sql; - - sql = - "SELECT i.indkey, i.indisprimary, i.indisunique " + - "FROM pg_class c, pg_class c2, pg_index i " + - "WHERE c.relname = ':tableName' AND c.oid = i.indrelid " + - "AND i.indexrelid = c2.oid "; - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs deleted file mode 100644 index d2b028bc65239..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// System.Data.SqlClient.SqlCommandBuilder.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.ComponentModel; - -namespace System.Data.SqlClient { - - /// - /// Builder of one command - /// that will be used in manipulating a table for - /// a DataSet that is assoicated with a database. - /// - public sealed class SqlCommandBuilder : Component { - - [MonoTODO] - public SqlCommandBuilder() { - - } - - [MonoTODO] - public SqlCommandBuilder(SqlDataAdapter adapter) { - - } - - [MonoTODO] - public SqlDataAdapter DataAdapter { - get { - throw new NotImplementedException (); - } - - set{ - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string QuotePrefix { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string QuoteSuffix { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public static void DeriveParameters(SqlCommand command) { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetDeleteCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetInsertCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetUpdateCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RefreshSchema() { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void Dispose(bool disposing) { - throw new NotImplementedException (); - } - - [MonoTODO] - ~SqlCommandBuilder() { - // FIXME: create destructor - release resources - } - } -} - diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlConnection.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlConnection.cs deleted file mode 100644 index 0bd37605cc648..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlConnection.cs +++ /dev/null @@ -1,722 +0,0 @@ -// -// System.Data.SqlClient.SqlConnection.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// (C) Daniel Morgan 2002 -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// use #define DEBUG_SqlConnection if you want to spew debug messages -// #define DEBUG_SqlConnection - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; - -namespace System.Data.SqlClient { - - /// - /// Represents an open connection to a SQL data source - /// - public sealed class SqlConnection : Component, IDbConnection, - ICloneable - { - // FIXME: Need to implement class Component, - // and interfaces: ICloneable and IDisposable - - #region Fields - - private PostgresTypes types = null; - private IntPtr pgConn = IntPtr.Zero; - - // PGConn (Postgres Connection) - private string connectionString = ""; - // OLE DB Connection String - private string pgConnectionString = ""; - // PostgreSQL Connection String - private SqlTransaction trans = null; - private int connectionTimeout = 15; - // default for 15 seconds - - // connection parameters in connection string - private string host = ""; - // Name of host to connect to - private string hostaddr = ""; - // IP address of host to connect to - // should be in "n.n.n.n" format - private string port = ""; - // Port number to connect to at the server host - private string dbname = ""; // The database name. - private string user = ""; // User name to connect as. - private string password = ""; - // Password to be used if the server - // demands password authentication. - private string options = ""; - // Trace/debug options to be sent to the server. - private string tty = ""; - // A file or tty for optional - // debug output from the backend. - private string requiressl = ""; - // Set to 1 to require - // SSL connection to the backend. - // Libpq will then refuse to connect - // if the server does not - // support SSL. Set to 0 (default) to - // negotiate with server. - - // connection state - private ConnectionState conState = ConnectionState.Closed; - - // DataReader state - private SqlDataReader rdr = null; - private bool dataReaderOpen = false; - // FIXME: if true, throw an exception if SqlConnection - // is used for anything other than reading - // data using SqlDataReader - - private string versionString = "Unknown"; - - private bool disposed = false; - - #endregion // Fields - - #region Constructors - - // A lot of the defaults were initialized in the Fields - [MonoTODO] - public SqlConnection () { - - } - - [MonoTODO] - public SqlConnection (String connectionString) { - SetConnectionString (connectionString); - } - - #endregion // Constructors - - #region Destructors - - protected override void Dispose(bool disposing) { - if(!this.disposed) - try { - if(disposing) { - // release any managed resources - } - // release any unmanaged resources - // close any handles - - this.disposed = true; - } - finally { - base.Dispose(disposing); - } - } - - // aka Finalize() - // [ClassInterface(ClassInterfaceType.AutoDual)] - [MonoTODO] - ~SqlConnection() { - Dispose (false); - } - - #endregion // Destructors - - #region Public Methods - - IDbTransaction IDbConnection.BeginTransaction () { - return BeginTransaction (); - } - - public SqlTransaction BeginTransaction () { - return TransactionBegin (); // call private method - } - - IDbTransaction IDbConnection.BeginTransaction (IsolationLevel - il) { - return BeginTransaction (il); - } - - public SqlTransaction BeginTransaction (IsolationLevel il) { - return TransactionBegin (il); // call private method - } - - // PostgreSQL does not support named transactions/savepoint - // nor nested transactions - [Obsolete] - public SqlTransaction BeginTransaction(string transactionName) { - return TransactionBegin (); // call private method - } - - [Obsolete] - public SqlTransaction BeginTransaction(IsolationLevel iso, - string transactionName) { - return TransactionBegin (iso); // call private method - } - - [MonoTODO] - public void ChangeDatabase (string databaseName) { - throw new NotImplementedException (); - } - - object ICloneable.Clone() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Close () { - if(dataReaderOpen == true) { - // TODO: what do I do if - // the user Closes the connection - // without closing the Reader first? - - } - CloseDataSource (); - } - - IDbCommand IDbConnection.CreateCommand () { - return CreateCommand (); - } - - public SqlCommand CreateCommand () { - SqlCommand sqlcmd = new SqlCommand ("", this); - - return sqlcmd; - } - - [MonoTODO] - public void Open () { - if(dbname.Equals("")) - throw new InvalidOperationException( - "dbname missing"); - else if(conState == ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is already Open"); - - ConnStatusType connStatus; - - // FIXME: check to make sure we have - // everything to connect, - // otherwise, throw an exception - - pgConn = PostgresLibrary.PQconnectdb - (pgConnectionString); - - // FIXME: should we use PQconnectStart/PQconnectPoll - // instead of PQconnectdb? - // PQconnectdb blocks - // PQconnectStart/PQconnectPoll is non-blocking - - connStatus = PostgresLibrary.PQstatus (pgConn); - if(connStatus == ConnStatusType.CONNECTION_OK) { - // Successfully Connected - disposed = false; - SetupConnection(); - } - else { - String errorMessage = PostgresLibrary. - PQerrorMessage (pgConn); - errorMessage += ": Could not connect to database."; - - throw new SqlException(0, 0, - errorMessage, 0, "", - host, "SqlConnection", 0); - } - } - - #endregion // Public Methods - - #region Internal Methods - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open. - // Open the Reader. (called from SqlCommand) - internal void OpenReader(SqlDataReader reader) - { - if(dataReaderOpen == true) { - // TODO: throw exception here? - // because a reader - // is already open - } - else { - rdr = reader; - dataReaderOpen = true; - } - } - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open - // Close the Reader (called from SqlCommand) - // if closeConnection true, Close() the connection - // this is based on CommandBehavior.CloseConnection - internal void CloseReader(bool closeConnection) - { if(closeConnection == true) - CloseDataSource(); - else - dataReaderOpen = false; - } - - #endregion // Internal Methods - - #region Private Methods - - private void SetupConnection() { - - conState = ConnectionState.Open; - - // FIXME: load types into hashtable - types = new PostgresTypes(this); - types.Load(); - - versionString = GetDatabaseServerVersion(); - - // set DATE style to YYYY/MM/DD - IntPtr pgResult = IntPtr.Zero; - pgResult = PostgresLibrary.PQexec (pgConn, "SET DATESTYLE TO 'ISO'"); - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - - private string GetDatabaseServerVersion() - { - SqlCommand cmd = new SqlCommand("select version()",this); - return (string) cmd.ExecuteScalar(); - } - - private void CloseDataSource () { - // FIXME: just a quick hack - if(conState == ConnectionState.Open) { - if(trans != null) - if(trans.DoingTransaction == true) { - trans.Rollback(); - // trans.Dispose(); - trans = null; - } - - conState = ConnectionState.Closed; - PostgresLibrary.PQfinish (pgConn); - pgConn = IntPtr.Zero; - } - } - - private void SetConnectionString (string connectionString) { - // FIXME: perform error checking on string - // while translating string from - // OLE DB format to PostgreSQL - // connection string format - // - // OLE DB: "host=localhost;dbname=test;user=joe;password=smoe" - // PostgreSQL: "host=localhost dbname=test user=joe password=smoe" - // - // For OLE DB, you would have the additional - // "provider=postgresql" - // OleDbConnection you would be using libgda - // - // Also, parse the connection string into properties - - // FIXME: if connection is open, you can - // not set the connection - // string, throw an exception - - this.connectionString = connectionString; - pgConnectionString = ConvertStringToPostgres ( - connectionString); - -#if DEBUG_SqlConnection - Console.WriteLine( - "OLE-DB Connection String [in]: " + - this.ConnectionString); - Console.WriteLine( - "Postgres Connection String [out]: " + - pgConnectionString); -#endif // DEBUG_SqlConnection - } - - private String ConvertStringToPostgres (String - oleDbConnectionString) { - StringBuilder postgresConnection = - new StringBuilder(); - string result; - string[] connectionParameters; - - char[] semicolon = new Char[1]; - semicolon[0] = ';'; - - // FIXME: what is the max number of value pairs - // can there be for the OLE DB - // connnection string? what about libgda max? - // what about postgres max? - - // FIXME: currently assuming value pairs are like: - // "key1=value1;key2=value2;key3=value3" - // Need to deal with values that have - // single or double quotes. And error - // handling of that too. - // "key1=value1;key2='value2';key=\"value3\"" - - // FIXME: put the connection parameters - // from the connection - // string into a - // Hashtable (System.Collections) - // instead of using private variables - // to store them - connectionParameters = oleDbConnectionString. - Split (semicolon); - foreach (string sParameter in connectionParameters) { - if(sParameter.Length > 0) { - BreakConnectionParameter (sParameter); - postgresConnection. - Append (sParameter + - " "); - } - } - result = postgresConnection.ToString (); - return result; - } - - private bool BreakConnectionParameter (String sParameter) { - bool addParm = true; - int index; - - index = sParameter.IndexOf ("="); - if (index > 0) { - string parmKey, parmValue; - - // separate string "key=value" to - // string "key" and "value" - parmKey = sParameter.Substring (0, index); - parmValue = sParameter.Substring (index + 1, - sParameter.Length - index - 1); - - switch(parmKey.ToLower()) { - case "hostaddr": - hostaddr = parmValue; - break; - - case "port": - port = parmValue; - break; - - case "host": - // set DataSource property - host = parmValue; - break; - - case "dbname": - // set Database property - dbname = parmValue; - break; - - case "user": - user = parmValue; - break; - - case "password": - password = parmValue; - // addParm = false; - break; - - case "options": - options = parmValue; - break; - - case "tty": - tty = parmValue; - break; - - case "requiressl": - requiressl = parmValue; - break; - } - } - return addParm; - } - - private SqlTransaction TransactionBegin () { - // FIXME: need to keep track of - // transaction in-progress - trans = new SqlTransaction (); - // using internal methods of SqlTransaction - trans.SetConnection (this); - trans.Begin(); - - return trans; - } - - private SqlTransaction TransactionBegin (IsolationLevel il) { - // FIXME: need to keep track of - // transaction in-progress - TransactionBegin(); - trans.SetIsolationLevel (il); - - return trans; - } - - #endregion - - #region Public Properties - - [MonoTODO] - public ConnectionState State { - get { - return conState; - } - } - - public string ConnectionString { - get { - return connectionString; - } - set { - SetConnectionString (value); - } - } - - public int ConnectionTimeout { - get { - return connectionTimeout; - } - } - - public string Database { - get { - return dbname; - } - } - - public string DataSource { - get { - return host; - } - } - - public int PacketSize { - get { - throw new NotImplementedException (); - } - } - - public string ServerVersion { - get { - return versionString; - } - } - - #endregion // Public Properties - - #region Internal Properties - - // For System.Data.SqlClient classes - // to get the current transaction - // in progress - if any - internal SqlTransaction Transaction { - get { - return trans; - } - } - - // For System.Data.SqlClient classes - // to get the unmanaged PostgreSQL connection - internal IntPtr PostgresConnection { - get { - return pgConn; - } - } - - // For System.Data.SqlClient classes - // to get the list PostgreSQL types - // so can look up based on OID to - // get the .NET System type. - internal ArrayList Types { - get { - return types.List; - } - } - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open - internal bool IsReaderOpen { - get { - return dataReaderOpen; - } - } - - #endregion // Internal Properties - - #region Events - - public event - SqlInfoMessageEventHandler InfoMessage; - - public event - StateChangeEventHandler StateChange; - - #endregion - - #region Inner Classes - - private class PostgresTypes { - // TODO: create hashtable for - // PostgreSQL types to .NET types - // containing: oid, typname, SqlDbType - - private Hashtable hashTypes; - private ArrayList pgTypes; - private SqlConnection con; - - // Got this SQL with the permission from - // the authors of libgda - private const string SEL_SQL_GetTypes = - "SELECT oid, typname FROM pg_type " + - "WHERE typrelid = 0 AND typname !~ '^_' " + - " AND typname not in ('SET', 'cid', " + - "'int2vector', 'oidvector', 'regproc', " + - "'smgr', 'tid', 'unknown', 'xid') " + - "ORDER BY typname"; - - internal PostgresTypes(SqlConnection sqlcon) { - - con = sqlcon; - hashTypes = new Hashtable(); - } - - private void AddPgType(Hashtable types, - string typname, DbType dbType) { - - PostgresType pgType = new PostgresType(); - - pgType.typname = typname; - pgType.dbType = dbType; - - types.Add(pgType.typname, pgType); - } - - private void BuildTypes(IntPtr pgResult, - int nRows, int nFields) { - - String value; - - int r; - for(r = 0; r < nRows; r++) { - PostgresType pgType = - new PostgresType(); - - // get data value (oid) - value = PostgresLibrary. - PQgetvalue( - pgResult, - r, 0); - - pgType.oid = Int32.Parse(value); - - // get data value (typname) - value = PostgresLibrary. - PQgetvalue( - pgResult, - r, 1); - pgType.typname = String.Copy(value); - pgType.dbType = PostgresHelper. - TypnameToSqlDbType( - pgType.typname); - - pgTypes.Add(pgType); - } - pgTypes = ArrayList.ReadOnly(pgTypes); - } - - internal void Load() { - pgTypes = new ArrayList(); - IntPtr pgResult = IntPtr.Zero; // PGresult - - if(con.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (con.PostgresConnection, SEL_SQL_GetTypes); - - if(pgResult.Equals(IntPtr.Zero)) { - throw new SqlException(0, 0, - "No Resultset from PostgreSQL", 0, "", - con.DataSource, "SqlConnection", 0); - } - else { - ExecStatusType execStatus; - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - int nRows; - int nFields; - - nRows = PostgresLibrary. - PQntuples(pgResult); - - nFields = PostgresLibrary. - PQnfields(pgResult); - - BuildTypes (pgResult, nRows, nFields); - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - con.DataSource, "SqlConnection", 0); - } - } - } - - public ArrayList List { - get { - return pgTypes; - } - } - } - - #endregion - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs deleted file mode 100644 index 526f8f368183f..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs +++ /dev/null @@ -1,191 +0,0 @@ -// -// System.Data.SqlClient.SqlDataAdapter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc 2002 -// Copyright (C) 2002 Tim Coleman -// - -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - /// - /// Represents a set of command-related properties that are used - /// to fill the DataSet and update a data source, all this - /// from a SQL database. - /// - public sealed class SqlDataAdapter : DbDataAdapter, IDbDataAdapter - { - #region Fields - - SqlCommand deleteCommand; - SqlCommand insertCommand; - SqlCommand selectCommand; - SqlCommand updateCommand; - - static readonly object EventRowUpdated = new object(); - static readonly object EventRowUpdating = new object(); - - #endregion - - #region Constructors - - public SqlDataAdapter () - : this (new SqlCommand ()) - { - } - - public SqlDataAdapter (SqlCommand selectCommand) - { - DeleteCommand = new SqlCommand (); - InsertCommand = new SqlCommand (); - SelectCommand = selectCommand; - UpdateCommand = new SqlCommand (); - } - - public SqlDataAdapter (string selectCommandText, SqlConnection selectConnection) - : this (new SqlCommand (selectCommandText, selectConnection)) - { - } - - public SqlDataAdapter (string selectCommandText, string selectConnectionString) - : this (selectCommandText, new SqlConnection (selectConnectionString)) - { - } - - #endregion - - #region Properties - - public SqlCommand DeleteCommand { - get { - return deleteCommand; - } - set { - deleteCommand = value; - } - } - - public SqlCommand InsertCommand { - get { - return insertCommand; - } - set { - insertCommand = value; - } - } - - public SqlCommand SelectCommand { - get { - return selectCommand; - } - set { - selectCommand = value; - } - } - - public SqlCommand UpdateCommand { - get { - return updateCommand; - } - set { - updateCommand = value; - } - } - - IDbCommand IDbDataAdapter.DeleteCommand { - get { return DeleteCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - DeleteCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.InsertCommand { - get { return InsertCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - InsertCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.SelectCommand { - get { return SelectCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - SelectCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.UpdateCommand { - get { return UpdateCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - UpdateCommand = (SqlCommand)value; - } - } - - - ITableMappingCollection IDataAdapter.TableMappings { - get { return TableMappings; } - } - - #endregion // Properties - - #region Methods - - protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new SqlRowUpdatedEventArgs (dataRow, command, statementType, tableMapping); - } - - - protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new SqlRowUpdatingEventArgs (dataRow, command, statementType, tableMapping); - } - - protected override void OnRowUpdated (RowUpdatedEventArgs value) - { - SqlRowUpdatedEventHandler handler = (SqlRowUpdatedEventHandler) Events[EventRowUpdated]; - if ((handler != null) && (value is SqlRowUpdatedEventArgs)) - handler(this, (SqlRowUpdatedEventArgs) value); - } - - protected override void OnRowUpdating (RowUpdatingEventArgs value) - { - SqlRowUpdatingEventHandler handler = (SqlRowUpdatingEventHandler) Events[EventRowUpdating]; - if ((handler != null) && (value is SqlRowUpdatingEventArgs)) - handler(this, (SqlRowUpdatingEventArgs) value); - } - - #endregion // Methods - - #region Events and Delegates - - public event SqlRowUpdatedEventHandler RowUpdated { - add { Events.AddHandler (EventRowUpdated, value); } - remove { Events.RemoveHandler (EventRowUpdated, value); } - } - - public event SqlRowUpdatingEventHandler RowUpdating { - add { Events.AddHandler (EventRowUpdating, value); } - remove { Events.RemoveHandler (EventRowUpdating, value); } - } - - #endregion // Events and Delegates - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs deleted file mode 100644 index 28d0e1bc4e725..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs +++ /dev/null @@ -1,422 +0,0 @@ -// -// System.Data.SqlClient.SqlDataReader.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// (C) Daniel Morgan 2002 -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// *** uncomment #define to get debug messages, comment for production *** -//#define DEBUG_SqlDataReader - - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; - -namespace System.Data.SqlClient { - /// - /// Provides a means of reading one or more forward-only streams - /// of result sets obtained by executing a command - /// at a SQL database. - /// - //public sealed class SqlDataReader : MarshalByRefObject, - // IEnumerable, IDataReader, IDisposable, IDataRecord - public sealed class SqlDataReader : IEnumerable, - IDataReader, IDataRecord { - #region Fields - - private SqlCommand cmd; - private DataTable table = null; - - // columns in a row - private object[] fields; // data value in a .NET type - private string[] types; // PostgreSQL Type - private bool[] isNull; // is NULL? - private int[] actualLength; // ActualLength of data - private DbType[] dbTypes; // DB data type - // actucalLength = -1 is variable-length - - private bool open = false; - IntPtr pgResult; // PGresult - private int rows; - private int cols; - - private int recordsAffected = -1; // TODO: get this value - - private int currentRow = -1; // no Read() has been done yet - - #endregion // Fields - - #region Constructors - - internal SqlDataReader (SqlCommand sqlCmd) { - - cmd = sqlCmd; - open = true; - cmd.OpenReader(this); - } - - #endregion - - #region Public Methods - - [MonoTODO] - public void Close() { - open = false; - - // free SqlDataReader resources in SqlCommand - // and allow SqlConnection to be used again - cmd.CloseReader(); - - // TODO: get parameters from result - - // clear unmanaged PostgreSQL result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - - [MonoTODO] - public DataTable GetSchemaTable() { - return table; - } - - [MonoTODO] - public bool NextResult() { - SqlResult res; - currentRow = -1; - bool resultReturned; - - // reset - table = null; - pgResult = IntPtr.Zero; - rows = 0; - cols = 0; - types = null; - recordsAffected = -1; - - res = cmd.NextResult(); - resultReturned = res.ResultReturned; - - if(resultReturned == true) { - table = res.Table; - pgResult = res.PgResult; - rows = res.RowCount; - cols = res.FieldCount; - types = res.PgTypes; - recordsAffected = res.RecordsAffected; - } - - res = null; - return resultReturned; - } - - [MonoTODO] - public bool Read() { - - string dataValue; - int c = 0; - - if(currentRow < rows - 1) { - - currentRow++; - - // re-init row - fields = new object[cols]; - //dbTypes = new DbType[cols]; - actualLength = new int[cols]; - isNull = new bool[cols]; - - for(c = 0; c < cols; c++) { - - // get data value - dataValue = PostgresLibrary. - PQgetvalue( - pgResult, - currentRow, c); - - // is column NULL? - //isNull[c] = PostgresLibrary. - // PQgetisnull(pgResult, - // currentRow, c); - - // get Actual Length - actualLength[c] = PostgresLibrary. - PQgetlength(pgResult, - currentRow, c); - - DbType dbType; - dbType = PostgresHelper. - TypnameToSqlDbType(types[c]); - - if(dataValue == null) { - fields[c] = null; - isNull[c] = true; - } - else if(dataValue.Equals("")) { - fields[c] = null; - isNull[c] = true; - } - else { - isNull[c] = false; - fields[c] = PostgresHelper. - ConvertDbTypeToSystem ( - dbType, - dataValue); - } - } - return true; - } - return false; // EOF - } - - [MonoTODO] - public byte GetByte(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public long GetBytes(int i, long fieldOffset, - byte[] buffer, int bufferOffset, - int length) { - throw new NotImplementedException (); - } - - [MonoTODO] - public char GetChar(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public long GetChars(int i, long fieldOffset, - char[] buffer, int bufferOffset, - int length) { - throw new NotImplementedException (); - } - - [MonoTODO] - public IDataReader GetData(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public string GetDataTypeName(int i) { - return types[i]; - } - - [MonoTODO] - public DateTime GetDateTime(int i) { - return (DateTime) fields[i]; - } - - [MonoTODO] - public decimal GetDecimal(int i) { - return (decimal) fields[i]; - } - - [MonoTODO] - public double GetDouble(int i) { - return (double) fields[i]; - } - - [MonoTODO] - public Type GetFieldType(int i) { - - DataRow row = table.Rows[i]; - return Type.GetType((string)row["DataType"]); - } - - [MonoTODO] - public float GetFloat(int i) { - return (float) fields[i]; - } - - [MonoTODO] - public Guid GetGuid(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public short GetInt16(int i) { - return (short) fields[i]; - } - - [MonoTODO] - public int GetInt32(int i) { - return (int) fields[i]; - } - - [MonoTODO] - public long GetInt64(int i) { - return (long) fields[i]; - } - - [MonoTODO] - public string GetName(int i) { - - DataRow row = table.Rows[i]; - return (string) row["ColumnName"]; - } - - [MonoTODO] - public int GetOrdinal(string name) { - - int i; - DataRow row; - - for(i = 0; i < table.Rows.Count; i++) { - row = table.Rows[i]; - if(((string) row["ColumnName"]).Equals(name)) - return i; - } - - for(i = 0; i < table.Rows.Count; i++) { - string ta; - string n; - - row = table.Rows[i]; - ta = ((string) row["ColumnName"]).ToUpper(); - n = name.ToUpper(); - - if(ta.Equals(n)) { - return i; - } - } - - throw new MissingFieldException("Missing field: " + name); - } - - [MonoTODO] - public string GetString(int i) { - return (string) fields[i]; - } - - [MonoTODO] - public object GetValue(int i) { - return fields[i]; - } - - [MonoTODO] - public int GetValues(object[] values) - { - Array.Copy (fields, values, fields.Length); - return fields.Length; - } - - [MonoTODO] - public bool IsDBNull(int i) { - return isNull[i]; - } - - [MonoTODO] - public bool GetBoolean(int i) { - return (bool) fields[i]; - } - - [MonoTODO] - public IEnumerator GetEnumerator() { - throw new NotImplementedException (); - } - - #endregion // Public Methods - - #region Destructors - - [MonoTODO] - public void Dispose () { - } - - //[MonoTODO] - //~SqlDataReader() { - //} - - #endregion // Destructors - - #region Properties - - public int Depth { - [MonoTODO] - get { - return 0; // always return zero, unless - // this provider will allow - // nesting of a row - } - } - - public bool IsClosed { - [MonoTODO] - get { - if(open == false) - return true; - else - return false; - } - } - - public int RecordsAffected { - [MonoTODO] - get { - return recordsAffected; - } - } - - public int FieldCount { - [MonoTODO] - get { - return cols; - } - } - - public object this[string name] { - [MonoTODO] - get { - int i; - DataRow row; - - for(i = 0; i < table.Rows.Count; i++) { - row = table.Rows[i]; - if(row["ColumnName"].Equals(name)) - return fields[i]; - } - - for(i = 0; i < table.Rows.Count; i++) { - string ta; - string n; - - row = table.Rows[i]; - ta = ((string) row["ColumnName"]).ToUpper(); - n = name.ToUpper(); - - if(ta.Equals(n)) { - return fields[i]; - } - } - - throw new MissingFieldException("Missing field: " + name); - } - } - - public object this[int i] { - [MonoTODO] - get { - return fields[i]; - } - } - - #endregion // Properties - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlError.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlError.cs deleted file mode 100644 index e7c722285a925..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlError.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -// System.Data.SqlClient.SqlError.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// -using System; -using System.Data; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Describes an error from a SQL database. - /// - [MonoTODO] - public sealed class SqlError - { - byte theClass = 0; - int lineNumber = 0; - string message = ""; - int number = 0; - string procedure = ""; - string server = ""; - string source = ""; - byte state = 0; - - internal SqlError(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - this.theClass = theClass; - this.lineNumber = lineNumber; - this.message = message; - this.number = number; - this.procedure = procedure; - this.server = server; - this.source = source; - this.state = state; - } - - #region Properties - - [MonoTODO] - /// - /// severity level of the error - /// - public byte Class { - get { - return theClass; - } - } - - [MonoTODO] - public int LineNumber { - get { - return lineNumber; - } - } - - [MonoTODO] - public string Message { - get { - return message; - } - } - - [MonoTODO] - public int Number { - get { - return number; - } - } - - [MonoTODO] - public string Procedure { - get { - return procedure; - } - } - - [MonoTODO] - public string Server { - get { - return server; - } - } - - [MonoTODO] - public string Source { - get { - return source; - } - } - - [MonoTODO] - public byte State { - get { - return state; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override string ToString () - { - String toStr; - String stackTrace; - stackTrace = " "; - // FIXME: generate the correct SQL error string - toStr = "SqlError:" + message + stackTrace; - return toStr; - } - - internal void SetClass(byte theClass) { - this.theClass = theClass; - } - - internal void SetLineNumber(int lineNumber) { - this.lineNumber = lineNumber; - } - - internal void SetMessage(string message) { - this.message = message; - } - - internal void SetNumber(int number) { - this.number = number; - } - - internal void SetProcedure(string procedure) { - this.procedure = procedure; - } - - internal void SetServer(string server) { - this.server = server; - } - - internal void SetSource(string source) { - this.source = source; - } - - internal void SetState(byte state) { - this.state = state; - } - - #endregion - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs deleted file mode 100644 index 7050d5d08fa78..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// System.Data.SqlClient.SqlError.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// -using System; -using System.Collections; -using System.Data; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Describes an error from a SQL database. - /// - [MonoTODO] - public sealed class SqlErrorCollection : ICollection, IEnumerable - { - ArrayList errorList = new ArrayList(); - - internal SqlErrorCollection() { - } - - internal SqlErrorCollection(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - Add (theClass, lineNumber, message, - number, procedure, - server, source, state); - } - - #region Properties - - [MonoTODO] - public int Count { - get { - return errorList.Count; - } - } - - [MonoTODO] - public void CopyTo(Array array, int index) { - throw new NotImplementedException (); - } - - // [MonoTODO] - bool ICollection.IsSynchronized { - get { - throw new NotImplementedException (); - } - } - - // [MonoTODO] - object ICollection.SyncRoot { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public IEnumerator GetEnumerator() { - throw new NotImplementedException (); - } - - // Index property (indexer) - // [MonoTODO] - public SqlError this[int index] { - get { - return (SqlError) errorList[index]; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override string ToString() - { - throw new NotImplementedException (); - } - #endregion - - internal void Add(SqlError error) { - errorList.Add(error); - } - - internal void Add(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - SqlError error = new SqlError(theClass, - lineNumber, message, - number, procedure, - server, source, state); - Add(error); - } - - #region Destructors - - [MonoTODO] - ~SqlErrorCollection() - { - // FIXME: do the destructor - release resources - } - - #endregion - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlException.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlException.cs deleted file mode 100644 index e447b5993721b..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlException.cs +++ /dev/null @@ -1,204 +0,0 @@ -// -// System.Data.SqlClient.SqlException.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc -// -using System; -using System.Data; -using System.Runtime.Serialization; - -namespace System.Data.SqlClient -{ - /// - /// Exceptions, as returned by SQL databases. - /// - public sealed class SqlException : SystemException - { - private SqlErrorCollection errors; - - internal SqlException() - : base("a SQL Exception has occurred") { - errors = new SqlErrorCollection(); - } - - internal SqlException(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) - : base(message) { - - errors = new SqlErrorCollection (theClass, - lineNumber, message, - number, procedure, - server, source, state); - } - - #region Properties - - [MonoTODO] - public byte Class { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception here? - else - return errors[0].Class; - } - - set { - errors[0].SetClass(value); - } - } - - [MonoTODO] - public SqlErrorCollection Errors { - get { - return errors; - } - - set { - errors = value; - } - } - - [MonoTODO] - public int LineNumber { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception here? - return errors[0].LineNumber; - } - - set { - errors[0].SetLineNumber(value); - } - } - - [MonoTODO] - public override string Message { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else { - String msg = ""; - int i = 0; - - for(i = 0; i < errors.Count - 1; i++) { - msg = msg + errors[i].Message + "\n"; - } - msg = msg + errors[i].Message; - - return msg; - } - } - } - - [MonoTODO] - public int Number { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception? - else - return errors[0].Number; - } - - set { - errors[0].SetNumber(value); - } - } - - [MonoTODO] - public string Procedure { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Procedure; - } - - set { - errors[0].SetProcedure(value); - } - } - - [MonoTODO] - public string Server { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Server; - } - - set { - errors[0].SetServer(value); - } - } - - [MonoTODO] - public override string Source { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Source; - } - - set { - errors[0].SetSource(value); - } - } - - [MonoTODO] - public byte State { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception? - else - return errors[0].State; - } - - set { - errors[0].SetState(value); - } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override void GetObjectData(SerializationInfo si, - StreamingContext context) { - // FIXME: to do - } - - // [Serializable] - // [ClassInterface(ClassInterfaceType.AutoDual)] - public override string ToString() { - String toStr = ""; - for (int i = 0; i < errors.Count; i++) { - toStr = toStr + errors[i].ToString() + "\n"; - } - return toStr; - } - - internal void Add(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - errors.Add (theClass, lineNumber, message, - number, procedure, - server, source, state); - } - - [MonoTODO] - ~SqlException() { - // FIXME: destructor to release resources - } - - #endregion // Methods - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs deleted file mode 100644 index df69dff1d35c6..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// System.Data.SqlClient.SqlInfoMessageEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public sealed class SqlInfoMessageEventArgs : EventArgs - { - [MonoTODO] - public SqlErrorCollection Errors { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string Message - { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string Source { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public override string ToString() { - // representation of InfoMessage event - return "'ToString() for SqlInfoMessageEventArgs Not Implemented'"; - } - - //[MonoTODO] - //~SqlInfoMessageEventArgs() { - // FIXME: destructor needs to release resources - //} - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs deleted file mode 100644 index c9862d61c0325..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Data.SqlClient.SqlInfoMessageEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void - SqlInfoMessageEventHandler (object sender, - SqlInfoMessageEventArgs e); -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameter.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameter.cs deleted file mode 100644 index f79dad0dbfbe4..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// -// System.Data.SqlClient.SqlParameter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc. 2002 -// -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Represents a parameter to a Command object, and optionally, - /// its mapping to DataSet columns; and is implemented by .NET - /// data providers that access data sources. - /// - //public sealed class SqlParameter : MarshalByRefObject, - // IDbDataParameter, IDataParameter, ICloneable - public sealed class SqlParameter : IDbDataParameter, IDataParameter - { - private string parmName; - private SqlDbType dbtype; - private DbType theDbType; - private object objValue; - private int size; - private string sourceColumn; - private ParameterDirection direction; - private bool isNullable; - private byte precision; - private byte scale; - private DataRowVersion sourceVersion; - private int offset; - - [MonoTODO] - public SqlParameter () { - - } - - [MonoTODO] - public SqlParameter (string parameterName, object value) { - this.parmName = parameterName; - this.objValue = value; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType) { - this.parmName = parameterName; - this.dbtype = dbType; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size, string sourceColumn) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - this.sourceColumn = sourceColumn; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size, ParameterDirection direction, - bool isNullable, byte precision, - byte scale, string sourceColumn, - DataRowVersion sourceVersion, object value) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - this.sourceColumn = sourceColumn; - this.direction = direction; - this.isNullable = isNullable; - this.precision = precision; - this.scale = scale; - this.sourceVersion = sourceVersion; - this.objValue = value; - } - - [MonoTODO] - public DbType DbType { - get { - return theDbType; - } - set { - theDbType = value; - } - } - - [MonoTODO] - public ParameterDirection Direction { - get { - return direction; - } - set { - direction = value; - } - } - - [MonoTODO] - public bool IsNullable { - get { - return isNullable; - } - } - - [MonoTODO] - public int Offset { - get { - return offset; - } - - set { - offset = value; - } - } - - [MonoTODO] - public string ParameterName { - get { - return parmName; - } - - set { - parmName = value; - } - } - - [MonoTODO] - public string SourceColumn { - get { - return sourceColumn; - } - - set { - sourceColumn = value; - } - } - - [MonoTODO] - public DataRowVersion SourceVersion { - get { - return sourceVersion; - } - - set { - sourceVersion = value; - } - } - - [MonoTODO] - public SqlDbType SqlDbType { - get { - return dbtype; - } - - set { - dbtype = value; - } - } - - [MonoTODO] - public object Value { - get { - return objValue; - } - - set { - objValue = value; - } - } - - [MonoTODO] - public byte Precision { - get { - return precision; - } - - set { - precision = value; - } - } - - [MonoTODO] - public byte Scale { - get { - return scale; - } - - set { - scale = value; - } - } - - [MonoTODO] - public int Size - { - get { - return size; - } - - set { - size = value; - } - } - - [MonoTODO] - public override string ToString() { - return parmName; - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs deleted file mode 100644 index 1ccfae90c9a8e..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs +++ /dev/null @@ -1,276 +0,0 @@ -// -// System.Data.SqlClient.SqlParameterCollection.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Collections; - -namespace System.Data.SqlClient -{ - /// - /// Collects all parameters relevant to a Command object - /// and their mappings to DataSet columns. - /// - // public sealed class SqlParameterCollection : MarshalByRefObject, - // IDataParameterCollection, IList, ICollection, IEnumerable - public sealed class SqlParameterCollection : IDataParameterCollection - { - private ArrayList parameterList = new ArrayList(); - private Hashtable parameterNames = new Hashtable(); - -/* - [MonoTODO] - public void RemoveAt(string parameterName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int IndexOf(string parameterName) - { - throw new NotImplementedException (); - } - - - [MonoTODO] - public bool Contains(string parameterName) - { - return parameterNames.ContainsKey(parameterName); - } -*/ - - [MonoTODO] - public IEnumerator GetEnumerator() - { - throw new NotImplementedException (); - } - - - public int Add( object value) - { - // Call the add version that receives a SqlParameter - - // Check if value is a SqlParameter. - CheckType(value); - Add((SqlParameter) value); - - return IndexOf (value); - } - - - public SqlParameter Add(SqlParameter value) - { - parameterList.Add(value); - parameterNames.Add(value.ParameterName, parameterList.Add(value)); - return value; - } - - - public SqlParameter Add(string parameterName, object value) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.Value = value; - // TODO: Get the dbtype and Sqldbtype from system type of value. - - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, SqlDbType sqlDbType) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, - SqlDbType sqlDbType, int size) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - sqlparam.Size = size; - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, - SqlDbType sqlDbType, int size, string sourceColumn) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - sqlparam.Size = size; - sqlparam.SourceColumn = sourceColumn; - return Add(sqlparam); - } - - [MonoTODO] - public void Clear() - { - throw new NotImplementedException (); - } - - - public bool Contains(object value) - { - // Check if value is a SqlParameter - CheckType(value); - return Contains(((SqlParameter)value).ParameterName); - } - - - [MonoTODO] - public bool Contains(string value) - { - return parameterNames.ContainsKey(value); - } - - [MonoTODO] - public void CopyTo(Array array, int index) - { - throw new NotImplementedException (); - } - - - public int IndexOf(object value) - { - // Check if value is a SqlParameter - CheckType(value); - return IndexOf(((SqlParameter)value).ParameterName); - } - - - public int IndexOf(string parameterName) - { - return parameterList.IndexOf(parameterName); - } - - [MonoTODO] - public void Insert(int index, object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Remove(object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt(int index) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt(string parameterName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int Count { - get { - return parameterList.Count; - } - } - - object IList.this[int index] { - [MonoTODO] - get { - return (SqlParameter) this[index]; - } - - [MonoTODO] - set { - this[index] = (SqlParameter) value; - } - } - - public SqlParameter this[int index] { - get { - return (SqlParameter) parameterList[index]; - } - - set { - parameterList[index] = (SqlParameter) value; - } - } - - object IDataParameterCollection.this[string parameterName] { - [MonoTODO] - get { - return (SqlParameter) this[parameterName]; - } - - [MonoTODO] - set { - this[parameterName] = (SqlParameter) value; - } - } - - public SqlParameter this[string parameterName] { - get { - if(parameterNames.ContainsKey(parameterName)) - return (SqlParameter) parameterList[(int)parameterNames[parameterName]]; - else - throw new IndexOutOfRangeException("The specified name does not exist: " + parameterName); - } - - set { - if(parameterNames.ContainsKey(parameterName)) - parameterList[(int)parameterNames[parameterName]] = (SqlParameter) value; - else - throw new IndexOutOfRangeException("The specified name does not exist: " + parameterName); - } - } - - bool IList.IsFixedSize { - get { - throw new NotImplementedException (); - } - } - - bool IList.IsReadOnly { - get { - throw new NotImplementedException (); - } - } - - bool ICollection.IsSynchronized { - get { - throw new NotImplementedException (); - } - } - - object ICollection.SyncRoot { - get { - throw new NotImplementedException (); - } - } - - /// - /// This method checks if the parameter value is of - /// SqlParameter type. If it doesn't, throws an InvalidCastException. - /// - private void CheckType(object value) - { - if(!(value is SqlParameter)) - throw new InvalidCastException("Only SQLParameter objects can be used."); - } - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs deleted file mode 100644 index dbc5789aa95eb..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatedEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient { - public sealed class SqlRowUpdatedEventArgs : RowUpdatedEventArgs - { - [MonoTODO] - public SqlRowUpdatedEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (row, command, statementType, tableMapping) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public new SqlCommand Command { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - ~SqlRowUpdatedEventArgs () - { - throw new NotImplementedException (); - } - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs deleted file mode 100644 index 8cad2f1cbca51..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatedEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void SqlRowUpdatedEventHandler(object sender, - SqlRowUpdatedEventArgs e); -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs deleted file mode 100644 index 6194ca1f95de7..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatingEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - public sealed class SqlRowUpdatingEventArgs : RowUpdatingEventArgs - { - [MonoTODO] - public SqlRowUpdatingEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (row, command, statementType, tableMapping) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public new SqlCommand Command { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - ~SqlRowUpdatingEventArgs() - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs deleted file mode 100644 index 69c0228534dd3..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatingEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void SqlRowUpdatingEventHandler(object sender, - SqlRowUpdatingEventArgs e); -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs deleted file mode 100644 index 3a485b299c5ab..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs +++ /dev/null @@ -1,191 +0,0 @@ -// -// System.Data.SqlClient.SqlTransaction.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc. 2002 -// - -// use #define DEBUG_SqlTransaction if you want to spew debug messages -// #define DEBUG_SqlTransaction - - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - /// - /// Represents a transaction to be performed on a SQL database. - /// - // public sealed class SqlTransaction : MarshalByRefObject, - // IDbTransaction, IDisposable - public sealed class SqlTransaction : IDbTransaction - { - #region Fields - - private bool doingTransaction = false; - private SqlConnection conn = null; - private IsolationLevel isolationLevel = - IsolationLevel.ReadCommitted; - // There are only two IsolationLevel's for PostgreSQL: - // ReadCommitted and Serializable, - // but ReadCommitted is the default - - #endregion - - #region Public Methods - - [MonoTODO] - public void Commit () - { - if(doingTransaction == false) - throw new InvalidOperationException( - "Begin transaction was not " + - "done earlier " + - "thus PostgreSQL can not " + - "Commit transaction."); - - SqlCommand cmd = new SqlCommand("COMMIT", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = false; - } - - [MonoTODO] - public void Rollback() - { - if(doingTransaction == false) - throw new InvalidOperationException( - "Begin transaction was not " + - "done earlier " + - "thus PostgreSQL can not " + - "Rollback transaction."); - - SqlCommand cmd = new SqlCommand("ROLLBACK", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = false; - } - - // For PostgreSQL, Rollback(string) will not be implemented - // because PostgreSQL does not support Savepoints - [Obsolete] - public void Rollback(string transactionName) { - // throw new NotImplementedException (); - Rollback(); - } - - // For PostgreSQL, Save(string) will not be implemented - // because PostgreSQL does not support Savepoints - [Obsolete] - public void Save (string savePointName) { - // throw new NotImplementedException (); - } - - #endregion // Public Methods - - #region Internal Methods to System.Data.dll Assembly - - internal void Begin() - { - if(doingTransaction == true) - throw new InvalidOperationException( - "Transaction has begun " + - "and PostgreSQL does not " + - "support nested transactions."); - - SqlCommand cmd = new SqlCommand("BEGIN", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = true; - } - - internal void SetIsolationLevel(IsolationLevel isoLevel) - { - String sSql = "SET TRANSACTION ISOLATION LEVEL "; - - switch (isoLevel) - { - case IsolationLevel.ReadCommitted: - sSql += "READ COMMITTED"; - break; - - case IsolationLevel.Serializable: - sSql += "SERIALIZABLE"; - break; - - default: - // FIXME: generate exception here - // PostgreSQL only supports: - // ReadCommitted or Serializable - break; - } - SqlCommand cmd = new SqlCommand(sSql, conn); - cmd.ExecuteNonQuery(); - - this.isolationLevel = isoLevel; - } - - internal void SetConnection(SqlConnection connection) - { - this.conn = connection; - } - - #endregion // Internal Methods to System.Data.dll Assembly - - #region Properties - - IDbConnection IDbTransaction.Connection { - get { - return Connection; - } - } - - public SqlConnection Connection { - get { - return conn; - } - } - - public IsolationLevel IsolationLevel { - get { - return isolationLevel; - } - } - - internal bool DoingTransaction { - get { - return doingTransaction; - } - } - - #endregion Properties - - #region Destructors - - // Destructors aka Finalize and Dispose - - [MonoTODO] - public void Dispose() - { - // FIXME: need to properly release resources - // Dispose(true); - } - - // Destructor - [MonoTODO] - // [Serializable] - // [ClassInterface(ClassInterfaceType.AutoDual)] - ~SqlTransaction() { - // FIXME: need to properly release resources - // Dispose(false); - } - - #endregion // Destructors - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresLibrary.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresLibrary.cs deleted file mode 100644 index 493afcd49e274..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresLibrary.cs +++ /dev/null @@ -1,475 +0,0 @@ -// -// System.Data.SqlClient.PostgresLibrary.cs -// -// PInvoke methods to libpq -// which is PostgreSQL client library -// -// May also contain enumerations, -// data types, or wrapper methods. -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -// *** uncomment #define to get debug messages, comment for production *** -//#define DEBUG_PostgresLibrary - -using System; -using System.Data; -using System.Runtime.InteropServices; -using System.Diagnostics; -using System.Collections; - -namespace System.Data.SqlClient { - - /* IMPORTANT: DO NOT CHANGE ANY OF THESE ENUMS BELOW */ - - internal enum ConnStatusType - { - CONNECTION_OK, - CONNECTION_BAD, - CONNECTION_STARTED, - CONNECTION_MADE, - CONNECTION_AWAITING_RESPONSE, - CONNECTION_AUTH_OK, - CONNECTION_SETENV - } - - internal enum PostgresPollingStatusType - { - PGRES_POLLING_FAILED = 0, - PGRES_POLLING_READING, - PGRES_POLLING_WRITING, - PGRES_POLLING_OK, - PGRES_POLLING_ACTIVE - } - - internal enum ExecStatusType - { - PGRES_EMPTY_QUERY = 0, - PGRES_COMMAND_OK, - PGRES_TUPLES_OK, - PGRES_COPY_OUT, - PGRES_COPY_IN, - PGRES_BAD_RESPONSE, - PGRES_NONFATAL_ERROR, - PGRES_FATAL_ERROR - } - - sealed internal class PostgresLibrary - { - #region PInvoke Functions - - // pinvoke prototypes to PostgreSQL client library - // pq.dll on windows and libpq.so on linux - - [DllImport("pq")] - public static extern IntPtr PQconnectStart (string conninfo); - // PGconn *PQconnectStart(const char *conninfo); - - [DllImport("pq")] - public static extern PostgresPollingStatusType PQconnectPoll (IntPtr conn); - // PostgresPollingStatusType PQconnectPoll(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQconnectdb (string conninfo); - // PGconn *PQconnectdb(const char *conninfo); - - [DllImport("pq")] - public static extern IntPtr PQsetdbLogin (string pghost, - string pgport, string pgoptions, - string pgtty, string dbName, - string login, string pwd); - // PGconn *PQsetdbLogin(const char *pghost, - // const char *pgport, const char *pgoptions, - // const char *pgtty, const char *dbName, - // const char *login, const char *pwd); - - [DllImport("pq")] - public static extern void PQfinish (IntPtr conn); - // void PQfinish(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQconndefaults (); - // PQconninfoOption *PQconndefaults(void); - - [DllImport("pq")] - public static extern void PQconninfoFree (IntPtr connOptions); - // void PQconninfoFree(PQconninfoOption *connOptions); - - [DllImport("pq")] - public static extern int PQresetStart (IntPtr conn); - // int PQresetStart(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQresetPoll (IntPtr conn); - // PostgresPollingStatusType PQresetPoll(PGconn *conn); - - [DllImport("pq")] - public static extern void PQreset (IntPtr conn); - // void PQreset(PGconn *conn); - - [DllImport("pq")] - public static extern int PQrequestCancel (IntPtr conn); - // int PQrequestCancel(PGconn *conn); - - [DllImport("pq")] - public static extern string PQdb (IntPtr conn); - // char *PQdb(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQuser (IntPtr conn); - // char *PQuser(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQpass (IntPtr conn); - // char *PQpass(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQhost (IntPtr conn); - // char *PQhost(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQport (IntPtr conn); - // char *PQport(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQtty (IntPtr conn); - // char *PQtty(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQoptions (IntPtr conn); - // char *PQoptions(const PGconn *conn); - - [DllImport("pq")] - public static extern ConnStatusType PQstatus (IntPtr conn); - // ConnStatusType PQstatus(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQerrorMessage (IntPtr conn); - // char *PQerrorMessage(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQsocket (IntPtr conn); - // int PQsocket(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQbackendPID (IntPtr conn); - // int PQbackendPID(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQclientEncoding (IntPtr conn); - // int PQclientEncoding(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQsetClientEncoding (IntPtr conn, - string encoding); - // int PQsetClientEncoding(PGconn *conn, - // const char *encoding); - - //FIXME: when loading, causes runtime exception - //[DllImport("pq")] - //public static extern IntPtr PQgetssl (IntPtr conn); - // SSL *PQgetssl(PGconn *conn); - - [DllImport("pq")] - public static extern void PQtrace (IntPtr conn, - IntPtr debug_port); - // void PQtrace(PGconn *conn, - // FILE *debug_port); - - [DllImport("pq")] - public static extern void PQuntrace (IntPtr conn); - // void PQuntrace(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQsetNoticeProcessor (IntPtr conn, - IntPtr proc, IntPtr arg); - // PQnoticeProcessor PQsetNoticeProcessor(PGconn *conn, - // PQnoticeProcessor proc, void *arg); - - [DllImport("pq")] - public static extern int PQescapeString (string to, - string from, int length); - // size_t PQescapeString(char *to, - // const char *from, size_t length); - - [DllImport("pq")] - public static extern string PQescapeBytea (string bintext, - int binlen, IntPtr bytealen); - // unsigned char *PQescapeBytea(unsigned char *bintext, - // size_t binlen, size_t *bytealen); - - [DllImport("pq")] - public static extern IntPtr PQexec (IntPtr conn, - string query); - // PGresult *PQexec(PGconn *conn, - // const char *query); - - [DllImport("pq")] - public static extern IntPtr PQnotifies (IntPtr conn); - // PGnotify *PQnotifies(PGconn *conn); - - [DllImport("pq")] - public static extern void PQfreeNotify (IntPtr notify); - // void PQfreeNotify(PGnotify *notify); - - [DllImport("pq")] - public static extern int PQsendQuery (IntPtr conn, - string query); - // int PQsendQuery(PGconn *conn, - // const char *query); - - [DllImport("pq")] - public static extern IntPtr PQgetResult (IntPtr conn); - // PGresult *PQgetResult(PGconn *conn); - - [DllImport("pq")] - public static extern int PQisBusy (IntPtr conn); - // int PQisBusy(PGconn *conn); - - [DllImport("pq")] - public static extern int PQconsumeInput (IntPtr conn); - // int PQconsumeInput(PGconn *conn); - - [DllImport("pq")] - public static extern int PQgetline (IntPtr conn, - string str, int length); - // int PQgetline(PGconn *conn, - // char *string, int length); - - [DllImport("pq")] - public static extern int PQputline (IntPtr conn, - string str); - // int PQputline(PGconn *conn, - // const char *string); - - [DllImport("pq")] - public static extern int PQgetlineAsync (IntPtr conn, - string buffer, int bufsize); - // int PQgetlineAsync(PGconn *conn, char *buffer, - // int bufsize); - - [DllImport("pq")] - public static extern int PQputnbytes (IntPtr conn, - string buffer, int nbytes); - // int PQputnbytes(PGconn *conn, - //const char *buffer, int nbytes); - - [DllImport("pq")] - public static extern int PQendcopy (IntPtr conn); - // int PQendcopy(PGconn *conn); - - [DllImport("pq")] - public static extern int PQsetnonblocking (IntPtr conn, - int arg); - // int PQsetnonblocking(PGconn *conn, int arg); - - [DllImport("pq")] - public static extern int PQisnonblocking (IntPtr conn); - // int PQisnonblocking(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQflush (IntPtr conn); - // int PQflush(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQfn (IntPtr conn, int fnid, - IntPtr result_buf, IntPtr result_len, - int result_is_int, IntPtr args, - int nargs); - // PGresult *PQfn(PGconn *conn, int fnid, - // int *result_buf, int *result_len, - // int result_is_int, const PQArgBlock *args, - // int nargs); - - [DllImport("pq")] - public static extern ExecStatusType PQresultStatus (IntPtr res); - // ExecStatusType PQresultStatus(const PGresult *res); - - [DllImport("pq")] - public static extern string PQresStatus (ExecStatusType status); - // char *PQresStatus(ExecStatusType status); - - [DllImport("pq")] - public static extern string PQresultErrorMessage (IntPtr res); - // char *PQresultErrorMessage(const PGresult *res); - - [DllImport("pq")] - public static extern int PQntuples (IntPtr res); - // int PQntuples(const PGresult *res); - - [DllImport("pq")] - public static extern int PQnfields (IntPtr res); - // int PQnfields(const PGresult *res); - - [DllImport("pq")] - public static extern int PQbinaryTuples (IntPtr res); - // int PQbinaryTuples(const PGresult *res); - - [DllImport("pq")] - public static extern string PQfname (IntPtr res, - int field_num); - // char *PQfname(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfnumber (IntPtr res, - string field_name); - // int PQfnumber(const PGresult *res, - // const char *field_name); - - [DllImport("pq")] - public static extern int PQftype (IntPtr res, - int field_num); - // Oid PQftype(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfsize (IntPtr res, - int field_num); - // int PQfsize(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfmod (IntPtr res, int field_num); - // int PQfmod(const PGresult *res, int field_num); - - [DllImport("pq")] - public static extern string PQcmdStatus (IntPtr res); - // char *PQcmdStatus(PGresult *res); - - [DllImport("pq")] - public static extern string PQoidStatus (IntPtr res); - // char *PQoidStatus(const PGresult *res); - - [DllImport("pq")] - public static extern int PQoidValue (IntPtr res); - // Oid PQoidValue(const PGresult *res); - - [DllImport("pq")] - public static extern string PQcmdTuples (IntPtr res); - // char *PQcmdTuples(PGresult *res); - - [DllImport("pq")] - public static extern string PQgetvalue (IntPtr res, - int tup_num, int field_num); - // char *PQgetvalue(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetlength (IntPtr res, - int tup_num, int field_num); - // int PQgetlength(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetisnull (IntPtr res, - int tup_num, int field_num); - // int PQgetisnull(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern void PQclear (IntPtr res); - // void PQclear(PGresult *res); - - [DllImport("pq")] - public static extern IntPtr PQmakeEmptyPGresult (IntPtr conn, - IntPtr status); - // PGresult *PQmakeEmptyPGresult(PGconn *conn, - // ExecStatusType status); - - [DllImport("pq")] - public static extern void PQprint (IntPtr fout, - IntPtr res, IntPtr ps); - // void PQprint(FILE *fout, - // const PGresult *res, const PQprintOpt *ps); - - [DllImport("pq")] - public static extern void PQdisplayTuples (IntPtr res, - IntPtr fp, int fillAlign, string fieldSep, - int printHeader, int quiet); - // void PQdisplayTuples(const PGresult *res, - // FILE *fp, int fillAlign, const char *fieldSep, - // int printHeader, int quiet); - - [DllImport("pq")] - public static extern void PQprintTuples (IntPtr res, - IntPtr fout, int printAttName, int terseOutput, - int width); - // void PQprintTuples(const PGresult *res, - // FILE *fout, int printAttName, int terseOutput, - // int width); - - [DllImport("pq")] - public static extern int lo_open (IntPtr conn, - int lobjId, int mode); - // int lo_open(PGconn *conn, - // Oid lobjId, int mode); - - [DllImport("pq")] - public static extern int lo_close (IntPtr conn, int fd); - // int lo_close(PGconn *conn, int fd); - - [DllImport("pq")] - public static extern int lo_read (IntPtr conn, - int fd, string buf, int len); - // int lo_read(PGconn *conn, - // int fd, char *buf, size_t len); - - [DllImport("pq")] - public static extern int lo_write (IntPtr conn, - int fd, string buf, int len); - // int lo_write(PGconn *conn, - // int fd, char *buf, size_t len); - - [DllImport("pq")] - public static extern int lo_lseek (IntPtr conn, - int fd, int offset, int whence); - // int lo_lseek(PGconn *conn, - // int fd, int offset, int whence); - - [DllImport("pq")] - public static extern int lo_creat (IntPtr conn, - int mode); - // Oid lo_creat(PGconn *conn, - // int mode); - - [DllImport("pq")] - public static extern int lo_tell (IntPtr conn, int fd); - // int lo_tell(PGconn *conn, int fd); - - [DllImport("pq")] - public static extern int lo_unlink (IntPtr conn, - int lobjId); - // int lo_unlink(PGconn *conn, - // Oid lobjId); - - [DllImport("pq")] - public static extern int lo_import (IntPtr conn, - string filename); - // Oid lo_import(PGconn *conn, - // const char *filename); - - [DllImport("pq")] - public static extern int lo_export (IntPtr conn, - int lobjId, string filename); - // int lo_export(PGconn *conn, - // Oid lobjId, const char *filename); - - [DllImport("pq")] - public static extern int PQmblen (string s, - int encoding); - // int PQmblen(const unsigned char *s, - // int encoding); - - [DllImport("pq")] - public static extern int PQenv2encoding (); - // int PQenv2encoding(void); - - #endregion - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresTypes.cs b/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresTypes.cs deleted file mode 100644 index 6a086a82a4232..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresTypes.cs +++ /dev/null @@ -1,512 +0,0 @@ -// -// PostgresTypes.cs - holding methods to convert -// between PostgreSQL types and .NET types -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// - -// Note: this might become PostgresType and PostgresTypeCollection -// also, the PostgresTypes that exist as an inner internal class -// within SqlConnection maybe moved here in the future - -using System; -using System.Collections; -using System.Data; -using System.Data.Common; -using System.Data.SqlClient; -using System.Text; - -namespace System.Data.SqlClient { - - internal struct PostgresType { - public int oid; - public string typname; - public DbType dbType; - } - - sealed internal class PostgresHelper { - - // translates the PostgreSQL typname to System.Data.DbType - public static DbType TypnameToSqlDbType(string typname) { - DbType sqlType; - - // FIXME: use hashtable here? - - switch(typname) { - - case "abstime": - sqlType = DbType.Int32; - break; - - case "aclitem": - sqlType = DbType.String; - break; - - case "bit": - sqlType = DbType.String; - break; - - case "bool": - sqlType = DbType.Boolean; - break; - - case "box": - sqlType = DbType.String; - break; - - case "bpchar": - sqlType = DbType.String; - break; - - case "bytea": - sqlType = DbType.String; - break; - - case "char": - sqlType = DbType.String; - break; - - case "cidr": - sqlType = DbType.String; - break; - - case "circle": - sqlType = DbType.String; - break; - - case "date": - sqlType = DbType.Date; - break; - - case "float4": - sqlType = DbType.Single; - break; - - case "float8": - sqlType = DbType.Double; - break; - - case "inet": - sqlType = DbType.String; - break; - - case "int2": - sqlType = DbType.Int16; - break; - - case "int4": - sqlType = DbType.Int32; - break; - - case "int8": - sqlType = DbType.Int64; - break; - - case "interval": - sqlType = DbType.String; - break; - - case "line": - sqlType = DbType.String; - break; - - case "lseg": - sqlType = DbType.String; - break; - - case "macaddr": - sqlType = DbType.String; - break; - - case "money": - sqlType = DbType.Decimal; - break; - - case "name": - sqlType = DbType.String; - break; - - case "numeric": - sqlType = DbType.Decimal; - break; - - case "oid": - sqlType = DbType.Int32; - break; - - case "path": - sqlType = DbType.String; - break; - - case "point": - sqlType = DbType.String; - break; - - case "polygon": - sqlType = DbType.String; - break; - - case "refcursor": - sqlType = DbType.String; - break; - - case "reltime": - sqlType = DbType.String; - break; - - case "text": - sqlType = DbType.String; - break; - - case "time": - sqlType = DbType.Time; - break; - - case "timestamp": - sqlType = DbType.DateTime; - break; - - case "timestamptz": - sqlType = DbType.DateTime; - break; - - case "timetz": - sqlType = DbType.DateTime; - break; - - case "tinterval": - sqlType = DbType.String; - break; - - case "varbit": - sqlType = DbType.String; - break; - - case "varchar": - sqlType = DbType.String; - break; - - default: - sqlType = DbType.String; - break; - } - return sqlType; - } - - // Converts data value from database to .NET System type. - public static object ConvertDbTypeToSystem (DbType typ, String value) { - object obj = null; - - // FIXME: more types need - // to be converted - // from PostgreSQL oid type - // to .NET System. - - // FIXME: need to handle a NULL for each type - // maybe setting obj to System.DBNull.Value ? - - - if(value == null) { - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value is null"); - return null; - } - else if(value.Equals("")) { - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value is string empty"); - return null; - } - - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value: " + value); - - // Date, Time, and DateTime - // are parsed based on ISO format - // "YYYY-MM-DD hh:mi:ss.ms" - - switch(typ) { - case DbType.String: - obj = String.Copy(value); - break; - case DbType.Boolean: - obj = value.Equals("t"); - break; - case DbType.Int16: - obj = Int16.Parse(value); - break; - case DbType.Int32: - obj = Int32.Parse(value); - break; - case DbType.Int64: - obj = Int64.Parse(value); - break; - case DbType.Decimal: - obj = Decimal.Parse(value); - break; - case DbType.Single: - obj = Single.Parse(value); - break; - case DbType.Double: - obj = Double.Parse(value); - break; - case DbType.Date: - String[] sd = value.Split(new Char[] {'-'}); - obj = new DateTime( - Int32.Parse(sd[0]), Int32.Parse(sd[1]), Int32.Parse(sd[2]), - 0,0,0); - break; - case DbType.Time: - String[] st = value.Split(new Char[] {':'}); - obj = new DateTime(0001,01,01, - Int32.Parse(st[0]),Int32.Parse(st[1]),Int32.Parse(st[2])); - break; - case DbType.DateTime: - Int32 YYYY,MM,DD,hh,mi,ss,ms; - YYYY = Int32.Parse(value.Substring(0,4)); - MM = Int32.Parse(value.Substring(5,2)); - DD = Int32.Parse(value.Substring(8,2)); - hh = Int32.Parse(value.Substring(11,2)); - mi = Int32.Parse(value.Substring(14,2)); - ss = Int32.Parse(value.Substring(17,2)); - ms = Int32.Parse(value.Substring(20,2)); - obj = new DateTime(YYYY,MM,DD,hh,mi,ss,ms); - break; - default: - obj = String.Copy(value); - break; - } - - return obj; - } - - // Translates System.Data.DbType to System.Type - public static Type DbTypeToSystemType (DbType dType) { - // FIXME: more types need - // to be mapped - // from PostgreSQL oid type - // to .NET System. - - Type typ = null; - - switch(dType) { - case DbType.String: - typ = typeof(String); - break; - case DbType.Boolean: - typ = typeof(Boolean); - break; - case DbType.Int16: - typ = typeof(Int16); - break; - case DbType.Int32: - typ = typeof(Int32); - break; - case DbType.Int64: - typ = typeof(Int64); - break; - case DbType.Decimal: - typ = typeof(Decimal); - break; - case DbType.Single: - typ = typeof(Single); - break; - case DbType.Double: - typ = typeof(Double); - break; - case DbType.Date: - case DbType.Time: - case DbType.DateTime: - typ = typeof(DateTime); - break; - default: - typ = typeof(String); - break; - } - return typ; - } - - // Find DbType for oid - // which requires a look up of PostgresTypes - // DbType <-> typname <-> oid - public static string OidToTypname (int oid, ArrayList pgTypes) { - // FIXME: more types need - // to be mapped - // from PostgreSQL oid type - // to .NET System. - - string typname = "text"; // default - int i; - for(i = 0; i < pgTypes.Count; i++) { - PostgresType pt = (PostgresType) pgTypes[i]; - if(pt.oid == oid) { - typname = pt.typname; - break; - } - } - - return typname; - } - - // Convert a .NET System value type (Int32, String, Boolean, etc) - // to a string that can be included within a SQL statement. - // This is to methods provides the parameters support - // for the PostgreSQL .NET Data provider - public static string ObjectToString(DbType dbtype, object obj) { - - // TODO: how do we handle a NULL? - //if(isNull == true) - // return "NULL"; - - string s; - - // Date, Time, and DateTime are expressed in ISO format - // which is "YYYY-MM-DD hh:mm:ss.ms"; - DateTime dt; - StringBuilder sb; - - const string zero = "0"; - - switch(dbtype) { - case DbType.String: - s = "'" + obj + "'"; - break; - case DbType.Boolean: - if((bool)obj == true) - s = "'t'"; - else - s = "'f'"; - break; - case DbType.Int16: - s = obj.ToString(); - break; - case DbType.Int32: - s = obj.ToString(); - break; - case DbType.Int64: - s = obj.ToString(); - break; - case DbType.Decimal: - s = obj.ToString(); - break; - case DbType.Single: - s = obj.ToString(); - break; - case DbType.Double: - s = obj.ToString(); - break; - case DbType.Date: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // year - if(dt.Year < 10) - sb.Append("000" + dt.Year); - else if(dt.Year < 100) - sb.Append("00" + dt.Year); - else if(dt.Year < 1000) - sb.Append("0" + dt.Year); - else - sb.Append(dt.Year); - sb.Append("-"); - // month - if(dt.Month < 10) - sb.Append(zero + dt.Month); - else - sb.Append(dt.Month); - sb.Append("-"); - // day - if(dt.Day < 10) - sb.Append(zero + dt.Day); - else - sb.Append(dt.Day); - sb.Append('\''); - s = sb.ToString(); - break; - case DbType.Time: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // hour - if(dt.Hour < 10) - sb.Append(zero + dt.Hour); - else - sb.Append(dt.Hour); - sb.Append(":"); - // minute - if(dt.Minute < 10) - sb.Append(zero + dt.Minute); - else - sb.Append(dt.Minute); - sb.Append(":"); - // second - if(dt.Second < 10) - sb.Append(zero + dt.Second); - else - sb.Append(dt.Second); - sb.Append('\''); - s = sb.ToString(); - break; - case DbType.DateTime: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // year - if(dt.Year < 10) - sb.Append("000" + dt.Year); - else if(dt.Year < 100) - sb.Append("00" + dt.Year); - else if(dt.Year < 1000) - sb.Append("0" + dt.Year); - else - sb.Append(dt.Year); - sb.Append("-"); - // month - if(dt.Month < 10) - sb.Append(zero + dt.Month); - else - sb.Append(dt.Month); - sb.Append("-"); - // day - if(dt.Day < 10) - sb.Append(zero + dt.Day); - else - sb.Append(dt.Day); - sb.Append(" "); - // hour - if(dt.Hour < 10) - sb.Append(zero + dt.Hour); - else - sb.Append(dt.Hour); - sb.Append(":"); - // minute - if(dt.Minute < 10) - sb.Append(zero + dt.Minute); - else - sb.Append(dt.Minute); - sb.Append(":"); - // second - if(dt.Second < 10) - sb.Append(zero + dt.Second); - else - sb.Append(dt.Second); - sb.Append("."); - // millisecond - if(dt.Millisecond < 10) - sb.Append(zero + dt.Millisecond); - else - sb.Append(dt.Millisecond); - sb.Append('\''); - s = sb.ToString(); - break; - default: - // default to DbType.String - s = "'" + obj + "'"; - break; - } - return s; - } - } -} \ No newline at end of file diff --git a/mcs/class/Mono.Data.PostgreSqlClient/ParmUtil.cs b/mcs/class/Mono.Data.PostgreSqlClient/ParmUtil.cs deleted file mode 100644 index 3dabac7853ee5..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/ParmUtil.cs +++ /dev/null @@ -1,176 +0,0 @@ -// -// ParmUtil.cs - utility to bind variables in a SQL statement to parameters in C# code -// This is in the PostgreSQL .NET Data provider in Mono -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// - -// comment DEBUG_ParmUtil for production, for debug messages, uncomment -//#define DEBUG_ParmUtil - -using System; -using System.Data; -using System.Text; - -namespace System.Data.SqlClient { - - enum PostgresBindVariableCharacter { - Semicolon, - At, - QuestionMark - } - - public class ParmUtil { - - private string sql = ""; - private string resultSql = ""; - private SqlParameterCollection parmsCollection = null; - - static private PostgresBindVariableCharacter PgbindChar = PostgresBindVariableCharacter.Semicolon; - static char bindChar; - - // static constructor - static ParmUtil() { - switch(PgbindChar) { - case PostgresBindVariableCharacter.Semicolon: - bindChar = ':'; - break; - case PostgresBindVariableCharacter.At: - bindChar = '@'; - break; - case PostgresBindVariableCharacter.QuestionMark: - // this doesn't have named parameters, - // they must be in order - bindChar = '?'; - break; - } - } - - public ParmUtil(string query, SqlParameterCollection parms) { - sql = query; - parmsCollection = parms; - } - - public string ResultSql { - get { - return resultSql; - } - } - - // TODO: currently only works for input variables, - // need to do input/output, output, and return - public string ReplaceWithParms() { - - StringBuilder result = new StringBuilder(); - char[] chars = sql.ToCharArray(); - bool bStringConstFound = false; - - for(int i = 0; i < chars.Length; i++) { - if(chars[i] == '\'') { - if(bStringConstFound == true) - bStringConstFound = false; - else - bStringConstFound = true; - - result.Append(chars[i]); - } - else if(chars[i] == bindChar && - bStringConstFound == false) { -#if DEBUG_ParmUtil - Console.WriteLine("Bind Variable character found..."); -#endif - StringBuilder parm = new StringBuilder(); - i++; - while(i <= chars.Length) { - char ch; - if(i == chars.Length) - ch = ' '; // a space - else - ch = chars[i]; - -#if DEBUG_ParmUtil - Console.WriteLine("Is char Letter or digit?"); -#endif - if(Char.IsLetterOrDigit(ch)) { -#if DEBUG_ParmUtil - Console.WriteLine("Char IS letter or digit. " + - "Now, append char to parm StringBuilder"); -#endif - parm.Append(ch); - } - else { -#if DEBUG_ParmUtil - Console.WriteLine("Char is NOT letter or char. " + - "thus we got rest of bind variable name. "); - - // replace bind variable placeholder - // with data value constant - Console.WriteLine("parm StringBuilder to string p..."); -#endif - string p = parm.ToString(); -#if DEBUG_ParmUtil - Console.WriteLine("calling BindReplace..."); -#endif - bool found = BindReplace(result, p); -#if DEBUG_ParmUtil - Console.WriteLine(" Found = " + found); -#endif - if(found == true) - break; - else { - // *** Error Handling - Console.WriteLine("Error: parameter not found: " + p); - return ""; - } - } - i++; - } - i--; - } - else - result.Append(chars[i]); - } - - resultSql = result.ToString(); - return resultSql; - } - - public bool BindReplace (StringBuilder result, string p) { - // bind variable - bool found = false; - -#if DEBUG_ParmUtil - Console.WriteLine("Does the parmsCollection contain the parameter???: " + p); -#endif - if(parmsCollection.Contains(p) == true) { - // parameter found -#if DEBUG_ParmUtil - Console.WriteLine("Parameter Found: " + p); -#endif - SqlParameter prm = parmsCollection[p]; - -#if DEBUG_ParmUtil - // DEBUG - Console.WriteLine(" Value: " + prm.Value); - Console.WriteLine(" Direction: " + prm.Direction); -#endif - // convert object to string and place - // into SQL - if(prm.Direction == ParameterDirection.Input) { - string strObj = PostgresHelper. - ObjectToString(prm.DbType, - prm.Value); - result.Append(strObj); - } - else - result.Append(bindChar + p); - - found = true; - } - return found; - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs deleted file mode 100644 index 20b9e02a6d0d6..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// System.Data.SqlClient.SqlClientPermission.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.SqlClient { - - public sealed class SqlClientPermission : DBDataPermission { - - [MonoTODO] - public SqlClientPermission() { - // FIXME: do constructor - } - - [MonoTODO] - public SqlClientPermission(PermissionState state) { - // FIXME: do constructor - } - - [MonoTODO] - public SqlClientPermission(PermissionState state, - bool allowBlankPassword) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Copy() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void FromXml(SecurityElement - securityElement) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Intersect(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override bool IsSubsetOf(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override string ToString() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override SecurityElement ToXml() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Union(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - ~SqlClientPermission() { - // FIXME: destructor to release resources - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs deleted file mode 100644 index 149613c5f2ecb..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// System.Data.SqlClient.SqlClientPermissionAttribute.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.SqlClient { - - [AttributeUsage(AttributeTargets.Assembly | - AttributeTargets.Class | - AttributeTargets.Struct | - AttributeTargets.Constructor | - AttributeTargets.Method)] - [Serializable] - public sealed class SqlClientPermissionAttribute : - DBDataPermissionAttribute { - - [MonoTODO] - public SqlClientPermissionAttribute(SecurityAction action) : - base(action) - { - // FIXME: do constructor - } - - [MonoTODO] - public override IPermission CreatePermission() { - throw new NotImplementedException (); - } - - //[MonoTODO] - //~SqlClientPermissionAttribute() { - // // FIXME: destructor to release resources - //} - } - -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs deleted file mode 100644 index af2771c3fa2f2..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs +++ /dev/null @@ -1,928 +0,0 @@ -// -// System.Data.SqlClient.SqlCommand.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc 2002 http://www.ximian.com/ -// (C) Daniel Morgan, 2002 -// (C) Copyright 2002 Tim Coleman -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// use #define DEBUG_SqlCommand if you want to spew debug messages -// #define DEBUG_SqlCommand - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; -using System.Xml; - -namespace System.Data.SqlClient { - /// - /// Represents a SQL statement that is executed - /// while connected to a SQL database. - /// - // public sealed class SqlCommand : Component, IDbCommand, ICloneable - public sealed class SqlCommand : IDbCommand { - - #region Fields - - private string sql = ""; - private int timeout = 30; - // default is 30 seconds - // for command execution - - private SqlConnection conn = null; - private SqlTransaction trans = null; - private CommandType cmdType = CommandType.Text; - private bool designTime = false; - private SqlParameterCollection parmCollection = new - SqlParameterCollection(); - - // SqlDataReader state data for ExecuteReader() - private SqlDataReader dataReader = null; - private string[] queries = null; - private int currentQuery = -1; - private CommandBehavior cmdBehavior = CommandBehavior.Default; - - private ParmUtil parmUtil = null; - - #endregion // Fields - - #region Constructors - - public SqlCommand() { - sql = ""; - } - - public SqlCommand (string cmdText) { - sql = cmdText; - } - - public SqlCommand (string cmdText, SqlConnection connection) { - sql = cmdText; - conn = connection; - } - - public SqlCommand (string cmdText, SqlConnection connection, - SqlTransaction transaction) { - sql = cmdText; - conn = connection; - trans = transaction; - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public void Cancel () { - // FIXME: use non-blocking Exec for this - throw new NotImplementedException (); - } - - // FIXME: is this the correct way to return a stronger type? - [MonoTODO] - IDbDataParameter IDbCommand.CreateParameter () { - return CreateParameter (); - } - - [MonoTODO] - public SqlParameter CreateParameter () { - return new SqlParameter (); - } - - public int ExecuteNonQuery () { - IntPtr pgResult; // PGresult - int rowsAffected = -1; - ExecStatusType execStatus; - String rowsAffectedString; - string query; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - query = TweakQuery(sql, cmdType); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == ExecStatusType.PGRES_COMMAND_OK || - execStatus == ExecStatusType.PGRES_TUPLES_OK ) { - - rowsAffectedString = PostgresLibrary. - PQcmdTuples (pgResult); - - if(rowsAffectedString != null) - if(rowsAffectedString.Equals("") == false) - rowsAffected = int.Parse(rowsAffectedString); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - - return rowsAffected; - } - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader () { - return ExecuteReader (); - } - - [MonoTODO] - public SqlDataReader ExecuteReader () { - return ExecuteReader(CommandBehavior.Default); - } - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader ( - CommandBehavior behavior) { - return ExecuteReader (behavior); - } - - [MonoTODO] - public SqlDataReader ExecuteReader (CommandBehavior behavior) - { - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnectionState is not Open"); - - cmdBehavior = behavior; - - queries = null; - currentQuery = -1; - dataReader = new SqlDataReader(this); - - queries = sql.Split(new Char[] {';'}); - - dataReader.NextResult(); - - return dataReader; - } - - internal SqlResult NextResult() - { - SqlResult res = new SqlResult(); - res.Connection = this.Connection; - res.Behavior = cmdBehavior; - string statement; - - currentQuery++; - - res.CurrentQuery = currentQuery; - - if(currentQuery < queries.Length && queries[currentQuery].Equals("") == false) { - res.SQL = queries[currentQuery]; - statement = TweakQuery(queries[currentQuery], cmdType); - ExecuteQuery(statement, res); - res.ResultReturned = true; - } - else { - res.ResultReturned = false; - } - - return res; - } - - private string TweakQuery(string query, CommandType commandType) { - string statement = ""; - StringBuilder td; - -#if DEBUG_SqlCommand - Console.WriteLine("---------[][] TweakQuery() [][]--------"); - Console.WriteLine("CommandType: " + commandType + " CommandBehavior: " + cmdBehavior); - Console.WriteLine("SQL before command type: " + query); -#endif - // finish building SQL based on CommandType - switch(commandType) { - case CommandType.Text: - statement = query; - break; - case CommandType.StoredProcedure: - statement = - "SELECT " + query + "()"; - break; - case CommandType.TableDirect: - // NOTE: this is for the PostgreSQL provider - // and for OleDb, according to the docs, - // an exception is thrown if you try to use - // this with SqlCommand - string[] directTables = query.Split( - new Char[] {','}); - - td = new StringBuilder("SELECT * FROM "); - - for(int tab = 0; tab < directTables.Length; tab++) { - if(tab > 0) - td.Append(','); - td.Append(directTables[tab]); - // FIXME: if multipe tables, how do we - // join? based on Primary/Foreign Keys? - // Otherwise, a Cartesian Product happens - } - statement = td.ToString(); - break; - default: - // FIXME: throw an exception? - statement = query; - break; - } -#if DEBUG_SqlCommand - Console.WriteLine("SQL after command type: " + statement); -#endif - // TODO: this parameters utility - // currently only support input variables - // need todo output, input/output, and return. -#if DEBUG_SqlCommand - Console.WriteLine("using ParmUtil in TweakQuery()..."); -#endif - parmUtil = new ParmUtil(statement, parmCollection); -#if DEBUG_SqlCommand - Console.WriteLine("ReplaceWithParms..."); -#endif - - statement = parmUtil.ReplaceWithParms(); - -#if DEBUG_SqlCommand - Console.WriteLine("SQL after ParmUtil: " + statement); -#endif - return statement; - } - - private void ExecuteQuery (string query, SqlResult res) - { - IntPtr pgResult; - - ExecStatusType execStatus; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnectionState is not Open"); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - res.ExecStatus = execStatus; - - if(execStatus == ExecStatusType.PGRES_TUPLES_OK || - execStatus == ExecStatusType.PGRES_COMMAND_OK) { - - res.BuildTableSchema(pgResult); - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - } - - // since SqlCommand has resources so SqlDataReader - // can do Read() and NextResult(), need to free - // those resources. Also, need to allow this SqlCommand - // and this SqlConnection to do things again. - internal void CloseReader() { - dataReader = null; - queries = null; - - if((cmdBehavior & CommandBehavior.CloseConnection) == CommandBehavior.CloseConnection) { - conn.CloseReader(true); - } - else { - conn.CloseReader(false); - } - } - - // only meant to be used between SqlConnectioin, - // SqlCommand, and SqlDataReader - internal void OpenReader(SqlDataReader reader) { - conn.OpenReader(reader); - } - - /// - /// ExecuteScalar is used to retrieve one object - /// from one result set - /// that has one row and one column. - /// It is lightweight compared to ExecuteReader. - /// - [MonoTODO] - public object ExecuteScalar () { - IntPtr pgResult; // PGresult - ExecStatusType execStatus; - object obj = null; // return - int nRow = 0; // first row - int nCol = 0; // first column - String value; - int nRows; - int nFields; - string query; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - query = TweakQuery(sql, cmdType); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - if(execStatus == ExecStatusType.PGRES_COMMAND_OK) { - // result was a SQL Command - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - return null; // return null reference - } - else if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - // result was a SQL Query - - nRows = PostgresLibrary. - PQntuples(pgResult); - - nFields = PostgresLibrary. - PQnfields(pgResult); - - if(nRows > 0 && nFields > 0) { - - // get column name - //String fieldName; - //fieldName = PostgresLibrary. - // PQfname(pgResult, nCol); - - int oid; - string sType; - DbType dbType; - // get PostgreSQL data type (OID) - oid = PostgresLibrary. - PQftype(pgResult, nCol); - sType = PostgresHelper. - OidToTypname (oid, conn.Types); - dbType = PostgresHelper. - TypnameToSqlDbType(sType); - - int definedSize; - // get defined size of column - definedSize = PostgresLibrary. - PQfsize(pgResult, nCol); - - // get data value - value = PostgresLibrary. - PQgetvalue( - pgResult, - nRow, nCol); - - int columnIsNull; - // is column NULL? - columnIsNull = PostgresLibrary. - PQgetisnull(pgResult, - nRow, nCol); - - int actualLength; - // get Actual Length - actualLength = PostgresLibrary. - PQgetlength(pgResult, - nRow, nCol); - - obj = PostgresHelper. - ConvertDbTypeToSystem ( - dbType, - value); - } - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - - return obj; - } - - [MonoTODO] - public XmlReader ExecuteXmlReader () { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Prepare () { - // FIXME: parameters have to be implemented for this - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand Clone () { - throw new NotImplementedException (); - } - - #endregion // Methods - - #region Properties - - public string CommandText { - get { - return sql; - } - - set { - sql = value; - } - } - - public int CommandTimeout { - get { - return timeout; - } - - set { - // FIXME: if value < 0, throw - // ArgumentException - // if (value < 0) - // throw ArgumentException; - timeout = value; - } - } - - public CommandType CommandType { - get { - return cmdType; - } - - set { - cmdType = value; - } - } - - // FIXME: for property Connection, is this the correct - // way to handle a return of a stronger type? - IDbConnection IDbCommand.Connection { - get { - return Connection; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during a - // transaction in progress - - // csc - Connection = (SqlConnection) value; - // mcs - // Connection = value; - - // FIXME: set Transaction property to null - } - } - - public SqlConnection Connection { - get { - // conn defaults to null - return conn; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during - // a transaction in progress - conn = value; - // FIXME: set Transaction property to null - } - } - - public bool DesignTimeVisible { - get { - return designTime; - } - - set{ - designTime = value; - } - } - - // FIXME; for property Parameters, is this the correct - // way to handle a stronger return type? - IDataParameterCollection IDbCommand.Parameters { - get { - return Parameters; - } - } - - public SqlParameterCollection Parameters { - get { - return parmCollection; - } - } - - // FIXME: for property Transaction, is this the correct - // way to handle a return of a stronger type? - IDbTransaction IDbCommand.Transaction { - get { - return Transaction; - } - - set { - // FIXME: error handling - do not allow - // setting of transaction if transaction - // has already begun - - // csc - Transaction = (SqlTransaction) value; - // mcs - // Transaction = value; - } - } - - public SqlTransaction Transaction { - get { - return trans; - } - - set { - // FIXME: error handling - trans = value; - } - } - - [MonoTODO] - public UpdateRowSource UpdatedRowSource { - // FIXME: do this once DbDataAdaptor - // and DataRow are done - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } - } - - #endregion // Properties - - #region Inner Classes - - #endregion // Inner Classes - - #region Destructors - - [MonoTODO] - public void Dispose() { - // FIXME: need proper way to release resources - // Dispose(true); - } - - [MonoTODO] - ~SqlCommand() { - // FIXME: need proper way to release resources - // Dispose(false); - } - - #endregion //Destructors - } - - // SqlResult is used for passing Result Set data - // from SqlCommand to SqlDataReader - internal class SqlResult { - - private DataTable dataTableSchema = null; // only will contain the schema - private IntPtr pg_result = IntPtr.Zero; // native PostgreSQL PGresult - private int rowCount = 0; - private int fieldCount = 0; - private string[] pgtypes = null; // PostgreSQL types (typname) - private bool resultReturned = false; - private SqlConnection con = null; - private int rowsAffected = -1; - private ExecStatusType execStatus = ExecStatusType.PGRES_FATAL_ERROR; - private int currentQuery = -1; - private string sql = ""; - private CommandBehavior cmdBehavior = CommandBehavior.Default; - - internal CommandBehavior Behavior { - get { - return cmdBehavior; - } - set { - cmdBehavior = value; - } - } - - internal string SQL { - get { - return sql; - } - set { - sql = value; - } - } - - internal ExecStatusType ExecStatus { - get { - return execStatus; - } - set { - execStatus = value; - } - } - - internal int CurrentQuery { - get { - return currentQuery; - } - - set { - currentQuery = value; - } - - } - - internal SqlConnection Connection { - get { - return con; - } - - set { - con = value; - } - } - - internal int RecordsAffected { - get { - return rowsAffected; - } - } - - internal bool ResultReturned { - get { - return resultReturned; - } - set { - resultReturned = value; - } - } - - internal DataTable Table { - get { - return dataTableSchema; - } - } - - internal IntPtr PgResult { - get { - return pg_result; - } - } - - internal int RowCount { - get { - return rowCount; - } - } - - internal int FieldCount { - get { - return fieldCount; - } - } - - internal string[] PgTypes { - get { - return pgtypes; - } - } - - internal void BuildTableSchema (IntPtr pgResult) { - pg_result = pgResult; - - // need to set IDataReader.RecordsAffected property - string rowsAffectedString; - rowsAffectedString = PostgresLibrary. - PQcmdTuples (pgResult); - if(rowsAffectedString != null) - if(rowsAffectedString.Equals("") == false) - rowsAffected = int.Parse(rowsAffectedString); - - // Only Results from SQL SELECT Queries - // get a DataTable for schema of the result - // otherwise, DataTable is null reference - if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - - dataTableSchema = new DataTable (); - dataTableSchema.Columns.Add ("ColumnName", typeof (string)); - dataTableSchema.Columns.Add ("ColumnOrdinal", typeof (int)); - dataTableSchema.Columns.Add ("ColumnSize", typeof (int)); - dataTableSchema.Columns.Add ("NumericPrecision", typeof (int)); - dataTableSchema.Columns.Add ("NumericScale", typeof (int)); - dataTableSchema.Columns.Add ("IsUnique", typeof (bool)); - dataTableSchema.Columns.Add ("IsKey", typeof (bool)); - DataColumn dc = dataTableSchema.Columns["IsKey"]; - dc.AllowDBNull = true; // IsKey can have a DBNull - dataTableSchema.Columns.Add ("BaseCatalogName", typeof (string)); - dataTableSchema.Columns.Add ("BaseColumnName", typeof (string)); - dataTableSchema.Columns.Add ("BaseSchemaName", typeof (string)); - dataTableSchema.Columns.Add ("BaseTableName", typeof (string)); - dataTableSchema.Columns.Add ("DataType", typeof(string)); - dataTableSchema.Columns.Add ("AllowDBNull", typeof (bool)); - dataTableSchema.Columns.Add ("ProviderType", typeof (int)); - dataTableSchema.Columns.Add ("IsAliased", typeof (bool)); - dataTableSchema.Columns.Add ("IsExpression", typeof (bool)); - dataTableSchema.Columns.Add ("IsIdentity", typeof (bool)); - dataTableSchema.Columns.Add ("IsAutoIncrement", typeof (bool)); - dataTableSchema.Columns.Add ("IsRowVersion", typeof (bool)); - dataTableSchema.Columns.Add ("IsHidden", typeof (bool)); - dataTableSchema.Columns.Add ("IsLong", typeof (bool)); - dataTableSchema.Columns.Add ("IsReadOnly", typeof (bool)); - - fieldCount = PostgresLibrary.PQnfields (pgResult); - rowCount = PostgresLibrary.PQntuples(pgResult); - pgtypes = new string[fieldCount]; - - // TODO: for CommandBehavior.SingleRow - // use IRow, otherwise, IRowset - if(fieldCount > 0) - if((cmdBehavior & CommandBehavior.SingleRow) == CommandBehavior.SingleRow) - fieldCount = 1; - - // TODO: for CommandBehavior.SchemaInfo - if((cmdBehavior & CommandBehavior.SchemaOnly) == CommandBehavior.SchemaOnly) - fieldCount = 0; - - // TODO: for CommandBehavior.SingleResult - if((cmdBehavior & CommandBehavior.SingleResult) == CommandBehavior.SingleResult) - if(currentQuery > 0) - fieldCount = 0; - - // TODO: for CommandBehavior.SequentialAccess - used for reading Large OBjects - //if((cmdBehavior & CommandBehavior.SequentialAccess) == CommandBehavior.SequentialAccess) { - //} - - DataRow schemaRow; - int oid; - DbType dbType; - Type typ; - - for (int i = 0; i < fieldCount; i += 1 ) { - schemaRow = dataTableSchema.NewRow (); - - string columnName = PostgresLibrary.PQfname (pgResult, i); - - schemaRow["ColumnName"] = columnName; - schemaRow["ColumnOrdinal"] = i+1; - schemaRow["ColumnSize"] = PostgresLibrary.PQfsize (pgResult, i); - schemaRow["NumericPrecision"] = 0; - schemaRow["NumericScale"] = 0; - // TODO: need to get KeyInfo - if((cmdBehavior & CommandBehavior.KeyInfo) == CommandBehavior.KeyInfo) { - bool IsUnique, IsKey; - GetKeyInfo(columnName, out IsUnique, out IsKey); - } - else { - schemaRow["IsUnique"] = false; - schemaRow["IsKey"] = DBNull.Value; - } - schemaRow["BaseCatalogName"] = ""; - schemaRow["BaseColumnName"] = columnName; - schemaRow["BaseSchemaName"] = ""; - schemaRow["BaseTableName"] = ""; - - // PostgreSQL type to .NET type stuff - oid = PostgresLibrary.PQftype (pgResult, i); - pgtypes[i] = PostgresHelper.OidToTypname (oid, con.Types); - dbType = PostgresHelper.TypnameToSqlDbType (pgtypes[i]); - - typ = PostgresHelper.DbTypeToSystemType (dbType); - string st = typ.ToString(); - schemaRow["DataType"] = st; - - schemaRow["AllowDBNull"] = false; - schemaRow["ProviderType"] = oid; - schemaRow["IsAliased"] = false; - schemaRow["IsExpression"] = false; - schemaRow["IsIdentity"] = false; - schemaRow["IsAutoIncrement"] = false; - schemaRow["IsRowVersion"] = false; - schemaRow["IsHidden"] = false; - schemaRow["IsLong"] = false; - schemaRow["IsReadOnly"] = false; - schemaRow.AcceptChanges(); - dataTableSchema.Rows.Add (schemaRow); - } - -#if DEBUG_SqlCommand - Console.WriteLine("********** DEBUG Table Schema BEGIN ************"); - foreach (DataRow myRow in dataTableSchema.Rows) { - foreach (DataColumn myCol in dataTableSchema.Columns) - Console.WriteLine(myCol.ColumnName + " = " + myRow[myCol]); - Console.WriteLine(); - } - Console.WriteLine("********** DEBUG Table Schema END ************"); -#endif // DEBUG_SqlCommand - - } - } - - // TODO: how do we get the key info if - // we don't have the tableName? - private void GetKeyInfo(string columnName, out bool isUnique, out bool isKey) { - isUnique = false; - isKey = false; - - string sql; - - sql = - "SELECT i.indkey, i.indisprimary, i.indisunique " + - "FROM pg_class c, pg_class c2, pg_index i " + - "WHERE c.relname = ':tableName' AND c.oid = i.indrelid " + - "AND i.indexrelid = c2.oid "; - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs deleted file mode 100644 index d2b028bc65239..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// System.Data.SqlClient.SqlCommandBuilder.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.ComponentModel; - -namespace System.Data.SqlClient { - - /// - /// Builder of one command - /// that will be used in manipulating a table for - /// a DataSet that is assoicated with a database. - /// - public sealed class SqlCommandBuilder : Component { - - [MonoTODO] - public SqlCommandBuilder() { - - } - - [MonoTODO] - public SqlCommandBuilder(SqlDataAdapter adapter) { - - } - - [MonoTODO] - public SqlDataAdapter DataAdapter { - get { - throw new NotImplementedException (); - } - - set{ - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string QuotePrefix { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string QuoteSuffix { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public static void DeriveParameters(SqlCommand command) { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetDeleteCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetInsertCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetUpdateCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RefreshSchema() { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void Dispose(bool disposing) { - throw new NotImplementedException (); - } - - [MonoTODO] - ~SqlCommandBuilder() { - // FIXME: create destructor - release resources - } - } -} - diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlConnection.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlConnection.cs deleted file mode 100644 index 0bd37605cc648..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlConnection.cs +++ /dev/null @@ -1,722 +0,0 @@ -// -// System.Data.SqlClient.SqlConnection.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// (C) Daniel Morgan 2002 -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// use #define DEBUG_SqlConnection if you want to spew debug messages -// #define DEBUG_SqlConnection - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; - -namespace System.Data.SqlClient { - - /// - /// Represents an open connection to a SQL data source - /// - public sealed class SqlConnection : Component, IDbConnection, - ICloneable - { - // FIXME: Need to implement class Component, - // and interfaces: ICloneable and IDisposable - - #region Fields - - private PostgresTypes types = null; - private IntPtr pgConn = IntPtr.Zero; - - // PGConn (Postgres Connection) - private string connectionString = ""; - // OLE DB Connection String - private string pgConnectionString = ""; - // PostgreSQL Connection String - private SqlTransaction trans = null; - private int connectionTimeout = 15; - // default for 15 seconds - - // connection parameters in connection string - private string host = ""; - // Name of host to connect to - private string hostaddr = ""; - // IP address of host to connect to - // should be in "n.n.n.n" format - private string port = ""; - // Port number to connect to at the server host - private string dbname = ""; // The database name. - private string user = ""; // User name to connect as. - private string password = ""; - // Password to be used if the server - // demands password authentication. - private string options = ""; - // Trace/debug options to be sent to the server. - private string tty = ""; - // A file or tty for optional - // debug output from the backend. - private string requiressl = ""; - // Set to 1 to require - // SSL connection to the backend. - // Libpq will then refuse to connect - // if the server does not - // support SSL. Set to 0 (default) to - // negotiate with server. - - // connection state - private ConnectionState conState = ConnectionState.Closed; - - // DataReader state - private SqlDataReader rdr = null; - private bool dataReaderOpen = false; - // FIXME: if true, throw an exception if SqlConnection - // is used for anything other than reading - // data using SqlDataReader - - private string versionString = "Unknown"; - - private bool disposed = false; - - #endregion // Fields - - #region Constructors - - // A lot of the defaults were initialized in the Fields - [MonoTODO] - public SqlConnection () { - - } - - [MonoTODO] - public SqlConnection (String connectionString) { - SetConnectionString (connectionString); - } - - #endregion // Constructors - - #region Destructors - - protected override void Dispose(bool disposing) { - if(!this.disposed) - try { - if(disposing) { - // release any managed resources - } - // release any unmanaged resources - // close any handles - - this.disposed = true; - } - finally { - base.Dispose(disposing); - } - } - - // aka Finalize() - // [ClassInterface(ClassInterfaceType.AutoDual)] - [MonoTODO] - ~SqlConnection() { - Dispose (false); - } - - #endregion // Destructors - - #region Public Methods - - IDbTransaction IDbConnection.BeginTransaction () { - return BeginTransaction (); - } - - public SqlTransaction BeginTransaction () { - return TransactionBegin (); // call private method - } - - IDbTransaction IDbConnection.BeginTransaction (IsolationLevel - il) { - return BeginTransaction (il); - } - - public SqlTransaction BeginTransaction (IsolationLevel il) { - return TransactionBegin (il); // call private method - } - - // PostgreSQL does not support named transactions/savepoint - // nor nested transactions - [Obsolete] - public SqlTransaction BeginTransaction(string transactionName) { - return TransactionBegin (); // call private method - } - - [Obsolete] - public SqlTransaction BeginTransaction(IsolationLevel iso, - string transactionName) { - return TransactionBegin (iso); // call private method - } - - [MonoTODO] - public void ChangeDatabase (string databaseName) { - throw new NotImplementedException (); - } - - object ICloneable.Clone() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Close () { - if(dataReaderOpen == true) { - // TODO: what do I do if - // the user Closes the connection - // without closing the Reader first? - - } - CloseDataSource (); - } - - IDbCommand IDbConnection.CreateCommand () { - return CreateCommand (); - } - - public SqlCommand CreateCommand () { - SqlCommand sqlcmd = new SqlCommand ("", this); - - return sqlcmd; - } - - [MonoTODO] - public void Open () { - if(dbname.Equals("")) - throw new InvalidOperationException( - "dbname missing"); - else if(conState == ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is already Open"); - - ConnStatusType connStatus; - - // FIXME: check to make sure we have - // everything to connect, - // otherwise, throw an exception - - pgConn = PostgresLibrary.PQconnectdb - (pgConnectionString); - - // FIXME: should we use PQconnectStart/PQconnectPoll - // instead of PQconnectdb? - // PQconnectdb blocks - // PQconnectStart/PQconnectPoll is non-blocking - - connStatus = PostgresLibrary.PQstatus (pgConn); - if(connStatus == ConnStatusType.CONNECTION_OK) { - // Successfully Connected - disposed = false; - SetupConnection(); - } - else { - String errorMessage = PostgresLibrary. - PQerrorMessage (pgConn); - errorMessage += ": Could not connect to database."; - - throw new SqlException(0, 0, - errorMessage, 0, "", - host, "SqlConnection", 0); - } - } - - #endregion // Public Methods - - #region Internal Methods - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open. - // Open the Reader. (called from SqlCommand) - internal void OpenReader(SqlDataReader reader) - { - if(dataReaderOpen == true) { - // TODO: throw exception here? - // because a reader - // is already open - } - else { - rdr = reader; - dataReaderOpen = true; - } - } - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open - // Close the Reader (called from SqlCommand) - // if closeConnection true, Close() the connection - // this is based on CommandBehavior.CloseConnection - internal void CloseReader(bool closeConnection) - { if(closeConnection == true) - CloseDataSource(); - else - dataReaderOpen = false; - } - - #endregion // Internal Methods - - #region Private Methods - - private void SetupConnection() { - - conState = ConnectionState.Open; - - // FIXME: load types into hashtable - types = new PostgresTypes(this); - types.Load(); - - versionString = GetDatabaseServerVersion(); - - // set DATE style to YYYY/MM/DD - IntPtr pgResult = IntPtr.Zero; - pgResult = PostgresLibrary.PQexec (pgConn, "SET DATESTYLE TO 'ISO'"); - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - - private string GetDatabaseServerVersion() - { - SqlCommand cmd = new SqlCommand("select version()",this); - return (string) cmd.ExecuteScalar(); - } - - private void CloseDataSource () { - // FIXME: just a quick hack - if(conState == ConnectionState.Open) { - if(trans != null) - if(trans.DoingTransaction == true) { - trans.Rollback(); - // trans.Dispose(); - trans = null; - } - - conState = ConnectionState.Closed; - PostgresLibrary.PQfinish (pgConn); - pgConn = IntPtr.Zero; - } - } - - private void SetConnectionString (string connectionString) { - // FIXME: perform error checking on string - // while translating string from - // OLE DB format to PostgreSQL - // connection string format - // - // OLE DB: "host=localhost;dbname=test;user=joe;password=smoe" - // PostgreSQL: "host=localhost dbname=test user=joe password=smoe" - // - // For OLE DB, you would have the additional - // "provider=postgresql" - // OleDbConnection you would be using libgda - // - // Also, parse the connection string into properties - - // FIXME: if connection is open, you can - // not set the connection - // string, throw an exception - - this.connectionString = connectionString; - pgConnectionString = ConvertStringToPostgres ( - connectionString); - -#if DEBUG_SqlConnection - Console.WriteLine( - "OLE-DB Connection String [in]: " + - this.ConnectionString); - Console.WriteLine( - "Postgres Connection String [out]: " + - pgConnectionString); -#endif // DEBUG_SqlConnection - } - - private String ConvertStringToPostgres (String - oleDbConnectionString) { - StringBuilder postgresConnection = - new StringBuilder(); - string result; - string[] connectionParameters; - - char[] semicolon = new Char[1]; - semicolon[0] = ';'; - - // FIXME: what is the max number of value pairs - // can there be for the OLE DB - // connnection string? what about libgda max? - // what about postgres max? - - // FIXME: currently assuming value pairs are like: - // "key1=value1;key2=value2;key3=value3" - // Need to deal with values that have - // single or double quotes. And error - // handling of that too. - // "key1=value1;key2='value2';key=\"value3\"" - - // FIXME: put the connection parameters - // from the connection - // string into a - // Hashtable (System.Collections) - // instead of using private variables - // to store them - connectionParameters = oleDbConnectionString. - Split (semicolon); - foreach (string sParameter in connectionParameters) { - if(sParameter.Length > 0) { - BreakConnectionParameter (sParameter); - postgresConnection. - Append (sParameter + - " "); - } - } - result = postgresConnection.ToString (); - return result; - } - - private bool BreakConnectionParameter (String sParameter) { - bool addParm = true; - int index; - - index = sParameter.IndexOf ("="); - if (index > 0) { - string parmKey, parmValue; - - // separate string "key=value" to - // string "key" and "value" - parmKey = sParameter.Substring (0, index); - parmValue = sParameter.Substring (index + 1, - sParameter.Length - index - 1); - - switch(parmKey.ToLower()) { - case "hostaddr": - hostaddr = parmValue; - break; - - case "port": - port = parmValue; - break; - - case "host": - // set DataSource property - host = parmValue; - break; - - case "dbname": - // set Database property - dbname = parmValue; - break; - - case "user": - user = parmValue; - break; - - case "password": - password = parmValue; - // addParm = false; - break; - - case "options": - options = parmValue; - break; - - case "tty": - tty = parmValue; - break; - - case "requiressl": - requiressl = parmValue; - break; - } - } - return addParm; - } - - private SqlTransaction TransactionBegin () { - // FIXME: need to keep track of - // transaction in-progress - trans = new SqlTransaction (); - // using internal methods of SqlTransaction - trans.SetConnection (this); - trans.Begin(); - - return trans; - } - - private SqlTransaction TransactionBegin (IsolationLevel il) { - // FIXME: need to keep track of - // transaction in-progress - TransactionBegin(); - trans.SetIsolationLevel (il); - - return trans; - } - - #endregion - - #region Public Properties - - [MonoTODO] - public ConnectionState State { - get { - return conState; - } - } - - public string ConnectionString { - get { - return connectionString; - } - set { - SetConnectionString (value); - } - } - - public int ConnectionTimeout { - get { - return connectionTimeout; - } - } - - public string Database { - get { - return dbname; - } - } - - public string DataSource { - get { - return host; - } - } - - public int PacketSize { - get { - throw new NotImplementedException (); - } - } - - public string ServerVersion { - get { - return versionString; - } - } - - #endregion // Public Properties - - #region Internal Properties - - // For System.Data.SqlClient classes - // to get the current transaction - // in progress - if any - internal SqlTransaction Transaction { - get { - return trans; - } - } - - // For System.Data.SqlClient classes - // to get the unmanaged PostgreSQL connection - internal IntPtr PostgresConnection { - get { - return pgConn; - } - } - - // For System.Data.SqlClient classes - // to get the list PostgreSQL types - // so can look up based on OID to - // get the .NET System type. - internal ArrayList Types { - get { - return types.List; - } - } - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open - internal bool IsReaderOpen { - get { - return dataReaderOpen; - } - } - - #endregion // Internal Properties - - #region Events - - public event - SqlInfoMessageEventHandler InfoMessage; - - public event - StateChangeEventHandler StateChange; - - #endregion - - #region Inner Classes - - private class PostgresTypes { - // TODO: create hashtable for - // PostgreSQL types to .NET types - // containing: oid, typname, SqlDbType - - private Hashtable hashTypes; - private ArrayList pgTypes; - private SqlConnection con; - - // Got this SQL with the permission from - // the authors of libgda - private const string SEL_SQL_GetTypes = - "SELECT oid, typname FROM pg_type " + - "WHERE typrelid = 0 AND typname !~ '^_' " + - " AND typname not in ('SET', 'cid', " + - "'int2vector', 'oidvector', 'regproc', " + - "'smgr', 'tid', 'unknown', 'xid') " + - "ORDER BY typname"; - - internal PostgresTypes(SqlConnection sqlcon) { - - con = sqlcon; - hashTypes = new Hashtable(); - } - - private void AddPgType(Hashtable types, - string typname, DbType dbType) { - - PostgresType pgType = new PostgresType(); - - pgType.typname = typname; - pgType.dbType = dbType; - - types.Add(pgType.typname, pgType); - } - - private void BuildTypes(IntPtr pgResult, - int nRows, int nFields) { - - String value; - - int r; - for(r = 0; r < nRows; r++) { - PostgresType pgType = - new PostgresType(); - - // get data value (oid) - value = PostgresLibrary. - PQgetvalue( - pgResult, - r, 0); - - pgType.oid = Int32.Parse(value); - - // get data value (typname) - value = PostgresLibrary. - PQgetvalue( - pgResult, - r, 1); - pgType.typname = String.Copy(value); - pgType.dbType = PostgresHelper. - TypnameToSqlDbType( - pgType.typname); - - pgTypes.Add(pgType); - } - pgTypes = ArrayList.ReadOnly(pgTypes); - } - - internal void Load() { - pgTypes = new ArrayList(); - IntPtr pgResult = IntPtr.Zero; // PGresult - - if(con.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (con.PostgresConnection, SEL_SQL_GetTypes); - - if(pgResult.Equals(IntPtr.Zero)) { - throw new SqlException(0, 0, - "No Resultset from PostgreSQL", 0, "", - con.DataSource, "SqlConnection", 0); - } - else { - ExecStatusType execStatus; - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - int nRows; - int nFields; - - nRows = PostgresLibrary. - PQntuples(pgResult); - - nFields = PostgresLibrary. - PQnfields(pgResult); - - BuildTypes (pgResult, nRows, nFields); - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - con.DataSource, "SqlConnection", 0); - } - } - } - - public ArrayList List { - get { - return pgTypes; - } - } - } - - #endregion - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs deleted file mode 100644 index 526f8f368183f..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs +++ /dev/null @@ -1,191 +0,0 @@ -// -// System.Data.SqlClient.SqlDataAdapter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc 2002 -// Copyright (C) 2002 Tim Coleman -// - -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - /// - /// Represents a set of command-related properties that are used - /// to fill the DataSet and update a data source, all this - /// from a SQL database. - /// - public sealed class SqlDataAdapter : DbDataAdapter, IDbDataAdapter - { - #region Fields - - SqlCommand deleteCommand; - SqlCommand insertCommand; - SqlCommand selectCommand; - SqlCommand updateCommand; - - static readonly object EventRowUpdated = new object(); - static readonly object EventRowUpdating = new object(); - - #endregion - - #region Constructors - - public SqlDataAdapter () - : this (new SqlCommand ()) - { - } - - public SqlDataAdapter (SqlCommand selectCommand) - { - DeleteCommand = new SqlCommand (); - InsertCommand = new SqlCommand (); - SelectCommand = selectCommand; - UpdateCommand = new SqlCommand (); - } - - public SqlDataAdapter (string selectCommandText, SqlConnection selectConnection) - : this (new SqlCommand (selectCommandText, selectConnection)) - { - } - - public SqlDataAdapter (string selectCommandText, string selectConnectionString) - : this (selectCommandText, new SqlConnection (selectConnectionString)) - { - } - - #endregion - - #region Properties - - public SqlCommand DeleteCommand { - get { - return deleteCommand; - } - set { - deleteCommand = value; - } - } - - public SqlCommand InsertCommand { - get { - return insertCommand; - } - set { - insertCommand = value; - } - } - - public SqlCommand SelectCommand { - get { - return selectCommand; - } - set { - selectCommand = value; - } - } - - public SqlCommand UpdateCommand { - get { - return updateCommand; - } - set { - updateCommand = value; - } - } - - IDbCommand IDbDataAdapter.DeleteCommand { - get { return DeleteCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - DeleteCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.InsertCommand { - get { return InsertCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - InsertCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.SelectCommand { - get { return SelectCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - SelectCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.UpdateCommand { - get { return UpdateCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - UpdateCommand = (SqlCommand)value; - } - } - - - ITableMappingCollection IDataAdapter.TableMappings { - get { return TableMappings; } - } - - #endregion // Properties - - #region Methods - - protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new SqlRowUpdatedEventArgs (dataRow, command, statementType, tableMapping); - } - - - protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new SqlRowUpdatingEventArgs (dataRow, command, statementType, tableMapping); - } - - protected override void OnRowUpdated (RowUpdatedEventArgs value) - { - SqlRowUpdatedEventHandler handler = (SqlRowUpdatedEventHandler) Events[EventRowUpdated]; - if ((handler != null) && (value is SqlRowUpdatedEventArgs)) - handler(this, (SqlRowUpdatedEventArgs) value); - } - - protected override void OnRowUpdating (RowUpdatingEventArgs value) - { - SqlRowUpdatingEventHandler handler = (SqlRowUpdatingEventHandler) Events[EventRowUpdating]; - if ((handler != null) && (value is SqlRowUpdatingEventArgs)) - handler(this, (SqlRowUpdatingEventArgs) value); - } - - #endregion // Methods - - #region Events and Delegates - - public event SqlRowUpdatedEventHandler RowUpdated { - add { Events.AddHandler (EventRowUpdated, value); } - remove { Events.RemoveHandler (EventRowUpdated, value); } - } - - public event SqlRowUpdatingEventHandler RowUpdating { - add { Events.AddHandler (EventRowUpdating, value); } - remove { Events.RemoveHandler (EventRowUpdating, value); } - } - - #endregion // Events and Delegates - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs deleted file mode 100644 index 28d0e1bc4e725..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs +++ /dev/null @@ -1,422 +0,0 @@ -// -// System.Data.SqlClient.SqlDataReader.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// (C) Daniel Morgan 2002 -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// *** uncomment #define to get debug messages, comment for production *** -//#define DEBUG_SqlDataReader - - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; - -namespace System.Data.SqlClient { - /// - /// Provides a means of reading one or more forward-only streams - /// of result sets obtained by executing a command - /// at a SQL database. - /// - //public sealed class SqlDataReader : MarshalByRefObject, - // IEnumerable, IDataReader, IDisposable, IDataRecord - public sealed class SqlDataReader : IEnumerable, - IDataReader, IDataRecord { - #region Fields - - private SqlCommand cmd; - private DataTable table = null; - - // columns in a row - private object[] fields; // data value in a .NET type - private string[] types; // PostgreSQL Type - private bool[] isNull; // is NULL? - private int[] actualLength; // ActualLength of data - private DbType[] dbTypes; // DB data type - // actucalLength = -1 is variable-length - - private bool open = false; - IntPtr pgResult; // PGresult - private int rows; - private int cols; - - private int recordsAffected = -1; // TODO: get this value - - private int currentRow = -1; // no Read() has been done yet - - #endregion // Fields - - #region Constructors - - internal SqlDataReader (SqlCommand sqlCmd) { - - cmd = sqlCmd; - open = true; - cmd.OpenReader(this); - } - - #endregion - - #region Public Methods - - [MonoTODO] - public void Close() { - open = false; - - // free SqlDataReader resources in SqlCommand - // and allow SqlConnection to be used again - cmd.CloseReader(); - - // TODO: get parameters from result - - // clear unmanaged PostgreSQL result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - - [MonoTODO] - public DataTable GetSchemaTable() { - return table; - } - - [MonoTODO] - public bool NextResult() { - SqlResult res; - currentRow = -1; - bool resultReturned; - - // reset - table = null; - pgResult = IntPtr.Zero; - rows = 0; - cols = 0; - types = null; - recordsAffected = -1; - - res = cmd.NextResult(); - resultReturned = res.ResultReturned; - - if(resultReturned == true) { - table = res.Table; - pgResult = res.PgResult; - rows = res.RowCount; - cols = res.FieldCount; - types = res.PgTypes; - recordsAffected = res.RecordsAffected; - } - - res = null; - return resultReturned; - } - - [MonoTODO] - public bool Read() { - - string dataValue; - int c = 0; - - if(currentRow < rows - 1) { - - currentRow++; - - // re-init row - fields = new object[cols]; - //dbTypes = new DbType[cols]; - actualLength = new int[cols]; - isNull = new bool[cols]; - - for(c = 0; c < cols; c++) { - - // get data value - dataValue = PostgresLibrary. - PQgetvalue( - pgResult, - currentRow, c); - - // is column NULL? - //isNull[c] = PostgresLibrary. - // PQgetisnull(pgResult, - // currentRow, c); - - // get Actual Length - actualLength[c] = PostgresLibrary. - PQgetlength(pgResult, - currentRow, c); - - DbType dbType; - dbType = PostgresHelper. - TypnameToSqlDbType(types[c]); - - if(dataValue == null) { - fields[c] = null; - isNull[c] = true; - } - else if(dataValue.Equals("")) { - fields[c] = null; - isNull[c] = true; - } - else { - isNull[c] = false; - fields[c] = PostgresHelper. - ConvertDbTypeToSystem ( - dbType, - dataValue); - } - } - return true; - } - return false; // EOF - } - - [MonoTODO] - public byte GetByte(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public long GetBytes(int i, long fieldOffset, - byte[] buffer, int bufferOffset, - int length) { - throw new NotImplementedException (); - } - - [MonoTODO] - public char GetChar(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public long GetChars(int i, long fieldOffset, - char[] buffer, int bufferOffset, - int length) { - throw new NotImplementedException (); - } - - [MonoTODO] - public IDataReader GetData(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public string GetDataTypeName(int i) { - return types[i]; - } - - [MonoTODO] - public DateTime GetDateTime(int i) { - return (DateTime) fields[i]; - } - - [MonoTODO] - public decimal GetDecimal(int i) { - return (decimal) fields[i]; - } - - [MonoTODO] - public double GetDouble(int i) { - return (double) fields[i]; - } - - [MonoTODO] - public Type GetFieldType(int i) { - - DataRow row = table.Rows[i]; - return Type.GetType((string)row["DataType"]); - } - - [MonoTODO] - public float GetFloat(int i) { - return (float) fields[i]; - } - - [MonoTODO] - public Guid GetGuid(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public short GetInt16(int i) { - return (short) fields[i]; - } - - [MonoTODO] - public int GetInt32(int i) { - return (int) fields[i]; - } - - [MonoTODO] - public long GetInt64(int i) { - return (long) fields[i]; - } - - [MonoTODO] - public string GetName(int i) { - - DataRow row = table.Rows[i]; - return (string) row["ColumnName"]; - } - - [MonoTODO] - public int GetOrdinal(string name) { - - int i; - DataRow row; - - for(i = 0; i < table.Rows.Count; i++) { - row = table.Rows[i]; - if(((string) row["ColumnName"]).Equals(name)) - return i; - } - - for(i = 0; i < table.Rows.Count; i++) { - string ta; - string n; - - row = table.Rows[i]; - ta = ((string) row["ColumnName"]).ToUpper(); - n = name.ToUpper(); - - if(ta.Equals(n)) { - return i; - } - } - - throw new MissingFieldException("Missing field: " + name); - } - - [MonoTODO] - public string GetString(int i) { - return (string) fields[i]; - } - - [MonoTODO] - public object GetValue(int i) { - return fields[i]; - } - - [MonoTODO] - public int GetValues(object[] values) - { - Array.Copy (fields, values, fields.Length); - return fields.Length; - } - - [MonoTODO] - public bool IsDBNull(int i) { - return isNull[i]; - } - - [MonoTODO] - public bool GetBoolean(int i) { - return (bool) fields[i]; - } - - [MonoTODO] - public IEnumerator GetEnumerator() { - throw new NotImplementedException (); - } - - #endregion // Public Methods - - #region Destructors - - [MonoTODO] - public void Dispose () { - } - - //[MonoTODO] - //~SqlDataReader() { - //} - - #endregion // Destructors - - #region Properties - - public int Depth { - [MonoTODO] - get { - return 0; // always return zero, unless - // this provider will allow - // nesting of a row - } - } - - public bool IsClosed { - [MonoTODO] - get { - if(open == false) - return true; - else - return false; - } - } - - public int RecordsAffected { - [MonoTODO] - get { - return recordsAffected; - } - } - - public int FieldCount { - [MonoTODO] - get { - return cols; - } - } - - public object this[string name] { - [MonoTODO] - get { - int i; - DataRow row; - - for(i = 0; i < table.Rows.Count; i++) { - row = table.Rows[i]; - if(row["ColumnName"].Equals(name)) - return fields[i]; - } - - for(i = 0; i < table.Rows.Count; i++) { - string ta; - string n; - - row = table.Rows[i]; - ta = ((string) row["ColumnName"]).ToUpper(); - n = name.ToUpper(); - - if(ta.Equals(n)) { - return fields[i]; - } - } - - throw new MissingFieldException("Missing field: " + name); - } - } - - public object this[int i] { - [MonoTODO] - get { - return fields[i]; - } - } - - #endregion // Properties - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlError.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlError.cs deleted file mode 100644 index e7c722285a925..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlError.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -// System.Data.SqlClient.SqlError.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// -using System; -using System.Data; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Describes an error from a SQL database. - /// - [MonoTODO] - public sealed class SqlError - { - byte theClass = 0; - int lineNumber = 0; - string message = ""; - int number = 0; - string procedure = ""; - string server = ""; - string source = ""; - byte state = 0; - - internal SqlError(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - this.theClass = theClass; - this.lineNumber = lineNumber; - this.message = message; - this.number = number; - this.procedure = procedure; - this.server = server; - this.source = source; - this.state = state; - } - - #region Properties - - [MonoTODO] - /// - /// severity level of the error - /// - public byte Class { - get { - return theClass; - } - } - - [MonoTODO] - public int LineNumber { - get { - return lineNumber; - } - } - - [MonoTODO] - public string Message { - get { - return message; - } - } - - [MonoTODO] - public int Number { - get { - return number; - } - } - - [MonoTODO] - public string Procedure { - get { - return procedure; - } - } - - [MonoTODO] - public string Server { - get { - return server; - } - } - - [MonoTODO] - public string Source { - get { - return source; - } - } - - [MonoTODO] - public byte State { - get { - return state; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override string ToString () - { - String toStr; - String stackTrace; - stackTrace = " "; - // FIXME: generate the correct SQL error string - toStr = "SqlError:" + message + stackTrace; - return toStr; - } - - internal void SetClass(byte theClass) { - this.theClass = theClass; - } - - internal void SetLineNumber(int lineNumber) { - this.lineNumber = lineNumber; - } - - internal void SetMessage(string message) { - this.message = message; - } - - internal void SetNumber(int number) { - this.number = number; - } - - internal void SetProcedure(string procedure) { - this.procedure = procedure; - } - - internal void SetServer(string server) { - this.server = server; - } - - internal void SetSource(string source) { - this.source = source; - } - - internal void SetState(byte state) { - this.state = state; - } - - #endregion - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs deleted file mode 100644 index 7050d5d08fa78..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// System.Data.SqlClient.SqlError.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// -using System; -using System.Collections; -using System.Data; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Describes an error from a SQL database. - /// - [MonoTODO] - public sealed class SqlErrorCollection : ICollection, IEnumerable - { - ArrayList errorList = new ArrayList(); - - internal SqlErrorCollection() { - } - - internal SqlErrorCollection(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - Add (theClass, lineNumber, message, - number, procedure, - server, source, state); - } - - #region Properties - - [MonoTODO] - public int Count { - get { - return errorList.Count; - } - } - - [MonoTODO] - public void CopyTo(Array array, int index) { - throw new NotImplementedException (); - } - - // [MonoTODO] - bool ICollection.IsSynchronized { - get { - throw new NotImplementedException (); - } - } - - // [MonoTODO] - object ICollection.SyncRoot { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public IEnumerator GetEnumerator() { - throw new NotImplementedException (); - } - - // Index property (indexer) - // [MonoTODO] - public SqlError this[int index] { - get { - return (SqlError) errorList[index]; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override string ToString() - { - throw new NotImplementedException (); - } - #endregion - - internal void Add(SqlError error) { - errorList.Add(error); - } - - internal void Add(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - SqlError error = new SqlError(theClass, - lineNumber, message, - number, procedure, - server, source, state); - Add(error); - } - - #region Destructors - - [MonoTODO] - ~SqlErrorCollection() - { - // FIXME: do the destructor - release resources - } - - #endregion - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlException.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlException.cs deleted file mode 100644 index e447b5993721b..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlException.cs +++ /dev/null @@ -1,204 +0,0 @@ -// -// System.Data.SqlClient.SqlException.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc -// -using System; -using System.Data; -using System.Runtime.Serialization; - -namespace System.Data.SqlClient -{ - /// - /// Exceptions, as returned by SQL databases. - /// - public sealed class SqlException : SystemException - { - private SqlErrorCollection errors; - - internal SqlException() - : base("a SQL Exception has occurred") { - errors = new SqlErrorCollection(); - } - - internal SqlException(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) - : base(message) { - - errors = new SqlErrorCollection (theClass, - lineNumber, message, - number, procedure, - server, source, state); - } - - #region Properties - - [MonoTODO] - public byte Class { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception here? - else - return errors[0].Class; - } - - set { - errors[0].SetClass(value); - } - } - - [MonoTODO] - public SqlErrorCollection Errors { - get { - return errors; - } - - set { - errors = value; - } - } - - [MonoTODO] - public int LineNumber { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception here? - return errors[0].LineNumber; - } - - set { - errors[0].SetLineNumber(value); - } - } - - [MonoTODO] - public override string Message { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else { - String msg = ""; - int i = 0; - - for(i = 0; i < errors.Count - 1; i++) { - msg = msg + errors[i].Message + "\n"; - } - msg = msg + errors[i].Message; - - return msg; - } - } - } - - [MonoTODO] - public int Number { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception? - else - return errors[0].Number; - } - - set { - errors[0].SetNumber(value); - } - } - - [MonoTODO] - public string Procedure { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Procedure; - } - - set { - errors[0].SetProcedure(value); - } - } - - [MonoTODO] - public string Server { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Server; - } - - set { - errors[0].SetServer(value); - } - } - - [MonoTODO] - public override string Source { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Source; - } - - set { - errors[0].SetSource(value); - } - } - - [MonoTODO] - public byte State { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception? - else - return errors[0].State; - } - - set { - errors[0].SetState(value); - } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override void GetObjectData(SerializationInfo si, - StreamingContext context) { - // FIXME: to do - } - - // [Serializable] - // [ClassInterface(ClassInterfaceType.AutoDual)] - public override string ToString() { - String toStr = ""; - for (int i = 0; i < errors.Count; i++) { - toStr = toStr + errors[i].ToString() + "\n"; - } - return toStr; - } - - internal void Add(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - errors.Add (theClass, lineNumber, message, - number, procedure, - server, source, state); - } - - [MonoTODO] - ~SqlException() { - // FIXME: destructor to release resources - } - - #endregion // Methods - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs deleted file mode 100644 index df69dff1d35c6..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// System.Data.SqlClient.SqlInfoMessageEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public sealed class SqlInfoMessageEventArgs : EventArgs - { - [MonoTODO] - public SqlErrorCollection Errors { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string Message - { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string Source { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public override string ToString() { - // representation of InfoMessage event - return "'ToString() for SqlInfoMessageEventArgs Not Implemented'"; - } - - //[MonoTODO] - //~SqlInfoMessageEventArgs() { - // FIXME: destructor needs to release resources - //} - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs deleted file mode 100644 index c9862d61c0325..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Data.SqlClient.SqlInfoMessageEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void - SqlInfoMessageEventHandler (object sender, - SqlInfoMessageEventArgs e); -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameter.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameter.cs deleted file mode 100644 index f79dad0dbfbe4..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// -// System.Data.SqlClient.SqlParameter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc. 2002 -// -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Represents a parameter to a Command object, and optionally, - /// its mapping to DataSet columns; and is implemented by .NET - /// data providers that access data sources. - /// - //public sealed class SqlParameter : MarshalByRefObject, - // IDbDataParameter, IDataParameter, ICloneable - public sealed class SqlParameter : IDbDataParameter, IDataParameter - { - private string parmName; - private SqlDbType dbtype; - private DbType theDbType; - private object objValue; - private int size; - private string sourceColumn; - private ParameterDirection direction; - private bool isNullable; - private byte precision; - private byte scale; - private DataRowVersion sourceVersion; - private int offset; - - [MonoTODO] - public SqlParameter () { - - } - - [MonoTODO] - public SqlParameter (string parameterName, object value) { - this.parmName = parameterName; - this.objValue = value; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType) { - this.parmName = parameterName; - this.dbtype = dbType; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size, string sourceColumn) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - this.sourceColumn = sourceColumn; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size, ParameterDirection direction, - bool isNullable, byte precision, - byte scale, string sourceColumn, - DataRowVersion sourceVersion, object value) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - this.sourceColumn = sourceColumn; - this.direction = direction; - this.isNullable = isNullable; - this.precision = precision; - this.scale = scale; - this.sourceVersion = sourceVersion; - this.objValue = value; - } - - [MonoTODO] - public DbType DbType { - get { - return theDbType; - } - set { - theDbType = value; - } - } - - [MonoTODO] - public ParameterDirection Direction { - get { - return direction; - } - set { - direction = value; - } - } - - [MonoTODO] - public bool IsNullable { - get { - return isNullable; - } - } - - [MonoTODO] - public int Offset { - get { - return offset; - } - - set { - offset = value; - } - } - - [MonoTODO] - public string ParameterName { - get { - return parmName; - } - - set { - parmName = value; - } - } - - [MonoTODO] - public string SourceColumn { - get { - return sourceColumn; - } - - set { - sourceColumn = value; - } - } - - [MonoTODO] - public DataRowVersion SourceVersion { - get { - return sourceVersion; - } - - set { - sourceVersion = value; - } - } - - [MonoTODO] - public SqlDbType SqlDbType { - get { - return dbtype; - } - - set { - dbtype = value; - } - } - - [MonoTODO] - public object Value { - get { - return objValue; - } - - set { - objValue = value; - } - } - - [MonoTODO] - public byte Precision { - get { - return precision; - } - - set { - precision = value; - } - } - - [MonoTODO] - public byte Scale { - get { - return scale; - } - - set { - scale = value; - } - } - - [MonoTODO] - public int Size - { - get { - return size; - } - - set { - size = value; - } - } - - [MonoTODO] - public override string ToString() { - return parmName; - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs deleted file mode 100644 index 1ccfae90c9a8e..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs +++ /dev/null @@ -1,276 +0,0 @@ -// -// System.Data.SqlClient.SqlParameterCollection.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Collections; - -namespace System.Data.SqlClient -{ - /// - /// Collects all parameters relevant to a Command object - /// and their mappings to DataSet columns. - /// - // public sealed class SqlParameterCollection : MarshalByRefObject, - // IDataParameterCollection, IList, ICollection, IEnumerable - public sealed class SqlParameterCollection : IDataParameterCollection - { - private ArrayList parameterList = new ArrayList(); - private Hashtable parameterNames = new Hashtable(); - -/* - [MonoTODO] - public void RemoveAt(string parameterName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int IndexOf(string parameterName) - { - throw new NotImplementedException (); - } - - - [MonoTODO] - public bool Contains(string parameterName) - { - return parameterNames.ContainsKey(parameterName); - } -*/ - - [MonoTODO] - public IEnumerator GetEnumerator() - { - throw new NotImplementedException (); - } - - - public int Add( object value) - { - // Call the add version that receives a SqlParameter - - // Check if value is a SqlParameter. - CheckType(value); - Add((SqlParameter) value); - - return IndexOf (value); - } - - - public SqlParameter Add(SqlParameter value) - { - parameterList.Add(value); - parameterNames.Add(value.ParameterName, parameterList.Add(value)); - return value; - } - - - public SqlParameter Add(string parameterName, object value) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.Value = value; - // TODO: Get the dbtype and Sqldbtype from system type of value. - - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, SqlDbType sqlDbType) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, - SqlDbType sqlDbType, int size) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - sqlparam.Size = size; - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, - SqlDbType sqlDbType, int size, string sourceColumn) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - sqlparam.Size = size; - sqlparam.SourceColumn = sourceColumn; - return Add(sqlparam); - } - - [MonoTODO] - public void Clear() - { - throw new NotImplementedException (); - } - - - public bool Contains(object value) - { - // Check if value is a SqlParameter - CheckType(value); - return Contains(((SqlParameter)value).ParameterName); - } - - - [MonoTODO] - public bool Contains(string value) - { - return parameterNames.ContainsKey(value); - } - - [MonoTODO] - public void CopyTo(Array array, int index) - { - throw new NotImplementedException (); - } - - - public int IndexOf(object value) - { - // Check if value is a SqlParameter - CheckType(value); - return IndexOf(((SqlParameter)value).ParameterName); - } - - - public int IndexOf(string parameterName) - { - return parameterList.IndexOf(parameterName); - } - - [MonoTODO] - public void Insert(int index, object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Remove(object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt(int index) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt(string parameterName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int Count { - get { - return parameterList.Count; - } - } - - object IList.this[int index] { - [MonoTODO] - get { - return (SqlParameter) this[index]; - } - - [MonoTODO] - set { - this[index] = (SqlParameter) value; - } - } - - public SqlParameter this[int index] { - get { - return (SqlParameter) parameterList[index]; - } - - set { - parameterList[index] = (SqlParameter) value; - } - } - - object IDataParameterCollection.this[string parameterName] { - [MonoTODO] - get { - return (SqlParameter) this[parameterName]; - } - - [MonoTODO] - set { - this[parameterName] = (SqlParameter) value; - } - } - - public SqlParameter this[string parameterName] { - get { - if(parameterNames.ContainsKey(parameterName)) - return (SqlParameter) parameterList[(int)parameterNames[parameterName]]; - else - throw new IndexOutOfRangeException("The specified name does not exist: " + parameterName); - } - - set { - if(parameterNames.ContainsKey(parameterName)) - parameterList[(int)parameterNames[parameterName]] = (SqlParameter) value; - else - throw new IndexOutOfRangeException("The specified name does not exist: " + parameterName); - } - } - - bool IList.IsFixedSize { - get { - throw new NotImplementedException (); - } - } - - bool IList.IsReadOnly { - get { - throw new NotImplementedException (); - } - } - - bool ICollection.IsSynchronized { - get { - throw new NotImplementedException (); - } - } - - object ICollection.SyncRoot { - get { - throw new NotImplementedException (); - } - } - - /// - /// This method checks if the parameter value is of - /// SqlParameter type. If it doesn't, throws an InvalidCastException. - /// - private void CheckType(object value) - { - if(!(value is SqlParameter)) - throw new InvalidCastException("Only SQLParameter objects can be used."); - } - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs deleted file mode 100644 index dbc5789aa95eb..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatedEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient { - public sealed class SqlRowUpdatedEventArgs : RowUpdatedEventArgs - { - [MonoTODO] - public SqlRowUpdatedEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (row, command, statementType, tableMapping) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public new SqlCommand Command { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - ~SqlRowUpdatedEventArgs () - { - throw new NotImplementedException (); - } - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs deleted file mode 100644 index 8cad2f1cbca51..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatedEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void SqlRowUpdatedEventHandler(object sender, - SqlRowUpdatedEventArgs e); -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs deleted file mode 100644 index 6194ca1f95de7..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatingEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - public sealed class SqlRowUpdatingEventArgs : RowUpdatingEventArgs - { - [MonoTODO] - public SqlRowUpdatingEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (row, command, statementType, tableMapping) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public new SqlCommand Command { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - ~SqlRowUpdatingEventArgs() - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs deleted file mode 100644 index 69c0228534dd3..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatingEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void SqlRowUpdatingEventHandler(object sender, - SqlRowUpdatingEventArgs e); -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs b/mcs/class/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs deleted file mode 100644 index 3a485b299c5ab..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs +++ /dev/null @@ -1,191 +0,0 @@ -// -// System.Data.SqlClient.SqlTransaction.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc. 2002 -// - -// use #define DEBUG_SqlTransaction if you want to spew debug messages -// #define DEBUG_SqlTransaction - - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - /// - /// Represents a transaction to be performed on a SQL database. - /// - // public sealed class SqlTransaction : MarshalByRefObject, - // IDbTransaction, IDisposable - public sealed class SqlTransaction : IDbTransaction - { - #region Fields - - private bool doingTransaction = false; - private SqlConnection conn = null; - private IsolationLevel isolationLevel = - IsolationLevel.ReadCommitted; - // There are only two IsolationLevel's for PostgreSQL: - // ReadCommitted and Serializable, - // but ReadCommitted is the default - - #endregion - - #region Public Methods - - [MonoTODO] - public void Commit () - { - if(doingTransaction == false) - throw new InvalidOperationException( - "Begin transaction was not " + - "done earlier " + - "thus PostgreSQL can not " + - "Commit transaction."); - - SqlCommand cmd = new SqlCommand("COMMIT", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = false; - } - - [MonoTODO] - public void Rollback() - { - if(doingTransaction == false) - throw new InvalidOperationException( - "Begin transaction was not " + - "done earlier " + - "thus PostgreSQL can not " + - "Rollback transaction."); - - SqlCommand cmd = new SqlCommand("ROLLBACK", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = false; - } - - // For PostgreSQL, Rollback(string) will not be implemented - // because PostgreSQL does not support Savepoints - [Obsolete] - public void Rollback(string transactionName) { - // throw new NotImplementedException (); - Rollback(); - } - - // For PostgreSQL, Save(string) will not be implemented - // because PostgreSQL does not support Savepoints - [Obsolete] - public void Save (string savePointName) { - // throw new NotImplementedException (); - } - - #endregion // Public Methods - - #region Internal Methods to System.Data.dll Assembly - - internal void Begin() - { - if(doingTransaction == true) - throw new InvalidOperationException( - "Transaction has begun " + - "and PostgreSQL does not " + - "support nested transactions."); - - SqlCommand cmd = new SqlCommand("BEGIN", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = true; - } - - internal void SetIsolationLevel(IsolationLevel isoLevel) - { - String sSql = "SET TRANSACTION ISOLATION LEVEL "; - - switch (isoLevel) - { - case IsolationLevel.ReadCommitted: - sSql += "READ COMMITTED"; - break; - - case IsolationLevel.Serializable: - sSql += "SERIALIZABLE"; - break; - - default: - // FIXME: generate exception here - // PostgreSQL only supports: - // ReadCommitted or Serializable - break; - } - SqlCommand cmd = new SqlCommand(sSql, conn); - cmd.ExecuteNonQuery(); - - this.isolationLevel = isoLevel; - } - - internal void SetConnection(SqlConnection connection) - { - this.conn = connection; - } - - #endregion // Internal Methods to System.Data.dll Assembly - - #region Properties - - IDbConnection IDbTransaction.Connection { - get { - return Connection; - } - } - - public SqlConnection Connection { - get { - return conn; - } - } - - public IsolationLevel IsolationLevel { - get { - return isolationLevel; - } - } - - internal bool DoingTransaction { - get { - return doingTransaction; - } - } - - #endregion Properties - - #region Destructors - - // Destructors aka Finalize and Dispose - - [MonoTODO] - public void Dispose() - { - // FIXME: need to properly release resources - // Dispose(true); - } - - // Destructor - [MonoTODO] - // [Serializable] - // [ClassInterface(ClassInterfaceType.AutoDual)] - ~SqlTransaction() { - // FIXME: need to properly release resources - // Dispose(false); - } - - #endregion // Destructors - - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PostgresLibrary.cs b/mcs/class/Mono.Data.PostgreSqlClient/PostgresLibrary.cs deleted file mode 100644 index 493afcd49e274..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PostgresLibrary.cs +++ /dev/null @@ -1,475 +0,0 @@ -// -// System.Data.SqlClient.PostgresLibrary.cs -// -// PInvoke methods to libpq -// which is PostgreSQL client library -// -// May also contain enumerations, -// data types, or wrapper methods. -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -// *** uncomment #define to get debug messages, comment for production *** -//#define DEBUG_PostgresLibrary - -using System; -using System.Data; -using System.Runtime.InteropServices; -using System.Diagnostics; -using System.Collections; - -namespace System.Data.SqlClient { - - /* IMPORTANT: DO NOT CHANGE ANY OF THESE ENUMS BELOW */ - - internal enum ConnStatusType - { - CONNECTION_OK, - CONNECTION_BAD, - CONNECTION_STARTED, - CONNECTION_MADE, - CONNECTION_AWAITING_RESPONSE, - CONNECTION_AUTH_OK, - CONNECTION_SETENV - } - - internal enum PostgresPollingStatusType - { - PGRES_POLLING_FAILED = 0, - PGRES_POLLING_READING, - PGRES_POLLING_WRITING, - PGRES_POLLING_OK, - PGRES_POLLING_ACTIVE - } - - internal enum ExecStatusType - { - PGRES_EMPTY_QUERY = 0, - PGRES_COMMAND_OK, - PGRES_TUPLES_OK, - PGRES_COPY_OUT, - PGRES_COPY_IN, - PGRES_BAD_RESPONSE, - PGRES_NONFATAL_ERROR, - PGRES_FATAL_ERROR - } - - sealed internal class PostgresLibrary - { - #region PInvoke Functions - - // pinvoke prototypes to PostgreSQL client library - // pq.dll on windows and libpq.so on linux - - [DllImport("pq")] - public static extern IntPtr PQconnectStart (string conninfo); - // PGconn *PQconnectStart(const char *conninfo); - - [DllImport("pq")] - public static extern PostgresPollingStatusType PQconnectPoll (IntPtr conn); - // PostgresPollingStatusType PQconnectPoll(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQconnectdb (string conninfo); - // PGconn *PQconnectdb(const char *conninfo); - - [DllImport("pq")] - public static extern IntPtr PQsetdbLogin (string pghost, - string pgport, string pgoptions, - string pgtty, string dbName, - string login, string pwd); - // PGconn *PQsetdbLogin(const char *pghost, - // const char *pgport, const char *pgoptions, - // const char *pgtty, const char *dbName, - // const char *login, const char *pwd); - - [DllImport("pq")] - public static extern void PQfinish (IntPtr conn); - // void PQfinish(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQconndefaults (); - // PQconninfoOption *PQconndefaults(void); - - [DllImport("pq")] - public static extern void PQconninfoFree (IntPtr connOptions); - // void PQconninfoFree(PQconninfoOption *connOptions); - - [DllImport("pq")] - public static extern int PQresetStart (IntPtr conn); - // int PQresetStart(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQresetPoll (IntPtr conn); - // PostgresPollingStatusType PQresetPoll(PGconn *conn); - - [DllImport("pq")] - public static extern void PQreset (IntPtr conn); - // void PQreset(PGconn *conn); - - [DllImport("pq")] - public static extern int PQrequestCancel (IntPtr conn); - // int PQrequestCancel(PGconn *conn); - - [DllImport("pq")] - public static extern string PQdb (IntPtr conn); - // char *PQdb(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQuser (IntPtr conn); - // char *PQuser(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQpass (IntPtr conn); - // char *PQpass(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQhost (IntPtr conn); - // char *PQhost(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQport (IntPtr conn); - // char *PQport(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQtty (IntPtr conn); - // char *PQtty(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQoptions (IntPtr conn); - // char *PQoptions(const PGconn *conn); - - [DllImport("pq")] - public static extern ConnStatusType PQstatus (IntPtr conn); - // ConnStatusType PQstatus(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQerrorMessage (IntPtr conn); - // char *PQerrorMessage(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQsocket (IntPtr conn); - // int PQsocket(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQbackendPID (IntPtr conn); - // int PQbackendPID(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQclientEncoding (IntPtr conn); - // int PQclientEncoding(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQsetClientEncoding (IntPtr conn, - string encoding); - // int PQsetClientEncoding(PGconn *conn, - // const char *encoding); - - //FIXME: when loading, causes runtime exception - //[DllImport("pq")] - //public static extern IntPtr PQgetssl (IntPtr conn); - // SSL *PQgetssl(PGconn *conn); - - [DllImport("pq")] - public static extern void PQtrace (IntPtr conn, - IntPtr debug_port); - // void PQtrace(PGconn *conn, - // FILE *debug_port); - - [DllImport("pq")] - public static extern void PQuntrace (IntPtr conn); - // void PQuntrace(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQsetNoticeProcessor (IntPtr conn, - IntPtr proc, IntPtr arg); - // PQnoticeProcessor PQsetNoticeProcessor(PGconn *conn, - // PQnoticeProcessor proc, void *arg); - - [DllImport("pq")] - public static extern int PQescapeString (string to, - string from, int length); - // size_t PQescapeString(char *to, - // const char *from, size_t length); - - [DllImport("pq")] - public static extern string PQescapeBytea (string bintext, - int binlen, IntPtr bytealen); - // unsigned char *PQescapeBytea(unsigned char *bintext, - // size_t binlen, size_t *bytealen); - - [DllImport("pq")] - public static extern IntPtr PQexec (IntPtr conn, - string query); - // PGresult *PQexec(PGconn *conn, - // const char *query); - - [DllImport("pq")] - public static extern IntPtr PQnotifies (IntPtr conn); - // PGnotify *PQnotifies(PGconn *conn); - - [DllImport("pq")] - public static extern void PQfreeNotify (IntPtr notify); - // void PQfreeNotify(PGnotify *notify); - - [DllImport("pq")] - public static extern int PQsendQuery (IntPtr conn, - string query); - // int PQsendQuery(PGconn *conn, - // const char *query); - - [DllImport("pq")] - public static extern IntPtr PQgetResult (IntPtr conn); - // PGresult *PQgetResult(PGconn *conn); - - [DllImport("pq")] - public static extern int PQisBusy (IntPtr conn); - // int PQisBusy(PGconn *conn); - - [DllImport("pq")] - public static extern int PQconsumeInput (IntPtr conn); - // int PQconsumeInput(PGconn *conn); - - [DllImport("pq")] - public static extern int PQgetline (IntPtr conn, - string str, int length); - // int PQgetline(PGconn *conn, - // char *string, int length); - - [DllImport("pq")] - public static extern int PQputline (IntPtr conn, - string str); - // int PQputline(PGconn *conn, - // const char *string); - - [DllImport("pq")] - public static extern int PQgetlineAsync (IntPtr conn, - string buffer, int bufsize); - // int PQgetlineAsync(PGconn *conn, char *buffer, - // int bufsize); - - [DllImport("pq")] - public static extern int PQputnbytes (IntPtr conn, - string buffer, int nbytes); - // int PQputnbytes(PGconn *conn, - //const char *buffer, int nbytes); - - [DllImport("pq")] - public static extern int PQendcopy (IntPtr conn); - // int PQendcopy(PGconn *conn); - - [DllImport("pq")] - public static extern int PQsetnonblocking (IntPtr conn, - int arg); - // int PQsetnonblocking(PGconn *conn, int arg); - - [DllImport("pq")] - public static extern int PQisnonblocking (IntPtr conn); - // int PQisnonblocking(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQflush (IntPtr conn); - // int PQflush(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQfn (IntPtr conn, int fnid, - IntPtr result_buf, IntPtr result_len, - int result_is_int, IntPtr args, - int nargs); - // PGresult *PQfn(PGconn *conn, int fnid, - // int *result_buf, int *result_len, - // int result_is_int, const PQArgBlock *args, - // int nargs); - - [DllImport("pq")] - public static extern ExecStatusType PQresultStatus (IntPtr res); - // ExecStatusType PQresultStatus(const PGresult *res); - - [DllImport("pq")] - public static extern string PQresStatus (ExecStatusType status); - // char *PQresStatus(ExecStatusType status); - - [DllImport("pq")] - public static extern string PQresultErrorMessage (IntPtr res); - // char *PQresultErrorMessage(const PGresult *res); - - [DllImport("pq")] - public static extern int PQntuples (IntPtr res); - // int PQntuples(const PGresult *res); - - [DllImport("pq")] - public static extern int PQnfields (IntPtr res); - // int PQnfields(const PGresult *res); - - [DllImport("pq")] - public static extern int PQbinaryTuples (IntPtr res); - // int PQbinaryTuples(const PGresult *res); - - [DllImport("pq")] - public static extern string PQfname (IntPtr res, - int field_num); - // char *PQfname(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfnumber (IntPtr res, - string field_name); - // int PQfnumber(const PGresult *res, - // const char *field_name); - - [DllImport("pq")] - public static extern int PQftype (IntPtr res, - int field_num); - // Oid PQftype(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfsize (IntPtr res, - int field_num); - // int PQfsize(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfmod (IntPtr res, int field_num); - // int PQfmod(const PGresult *res, int field_num); - - [DllImport("pq")] - public static extern string PQcmdStatus (IntPtr res); - // char *PQcmdStatus(PGresult *res); - - [DllImport("pq")] - public static extern string PQoidStatus (IntPtr res); - // char *PQoidStatus(const PGresult *res); - - [DllImport("pq")] - public static extern int PQoidValue (IntPtr res); - // Oid PQoidValue(const PGresult *res); - - [DllImport("pq")] - public static extern string PQcmdTuples (IntPtr res); - // char *PQcmdTuples(PGresult *res); - - [DllImport("pq")] - public static extern string PQgetvalue (IntPtr res, - int tup_num, int field_num); - // char *PQgetvalue(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetlength (IntPtr res, - int tup_num, int field_num); - // int PQgetlength(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetisnull (IntPtr res, - int tup_num, int field_num); - // int PQgetisnull(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern void PQclear (IntPtr res); - // void PQclear(PGresult *res); - - [DllImport("pq")] - public static extern IntPtr PQmakeEmptyPGresult (IntPtr conn, - IntPtr status); - // PGresult *PQmakeEmptyPGresult(PGconn *conn, - // ExecStatusType status); - - [DllImport("pq")] - public static extern void PQprint (IntPtr fout, - IntPtr res, IntPtr ps); - // void PQprint(FILE *fout, - // const PGresult *res, const PQprintOpt *ps); - - [DllImport("pq")] - public static extern void PQdisplayTuples (IntPtr res, - IntPtr fp, int fillAlign, string fieldSep, - int printHeader, int quiet); - // void PQdisplayTuples(const PGresult *res, - // FILE *fp, int fillAlign, const char *fieldSep, - // int printHeader, int quiet); - - [DllImport("pq")] - public static extern void PQprintTuples (IntPtr res, - IntPtr fout, int printAttName, int terseOutput, - int width); - // void PQprintTuples(const PGresult *res, - // FILE *fout, int printAttName, int terseOutput, - // int width); - - [DllImport("pq")] - public static extern int lo_open (IntPtr conn, - int lobjId, int mode); - // int lo_open(PGconn *conn, - // Oid lobjId, int mode); - - [DllImport("pq")] - public static extern int lo_close (IntPtr conn, int fd); - // int lo_close(PGconn *conn, int fd); - - [DllImport("pq")] - public static extern int lo_read (IntPtr conn, - int fd, string buf, int len); - // int lo_read(PGconn *conn, - // int fd, char *buf, size_t len); - - [DllImport("pq")] - public static extern int lo_write (IntPtr conn, - int fd, string buf, int len); - // int lo_write(PGconn *conn, - // int fd, char *buf, size_t len); - - [DllImport("pq")] - public static extern int lo_lseek (IntPtr conn, - int fd, int offset, int whence); - // int lo_lseek(PGconn *conn, - // int fd, int offset, int whence); - - [DllImport("pq")] - public static extern int lo_creat (IntPtr conn, - int mode); - // Oid lo_creat(PGconn *conn, - // int mode); - - [DllImport("pq")] - public static extern int lo_tell (IntPtr conn, int fd); - // int lo_tell(PGconn *conn, int fd); - - [DllImport("pq")] - public static extern int lo_unlink (IntPtr conn, - int lobjId); - // int lo_unlink(PGconn *conn, - // Oid lobjId); - - [DllImport("pq")] - public static extern int lo_import (IntPtr conn, - string filename); - // Oid lo_import(PGconn *conn, - // const char *filename); - - [DllImport("pq")] - public static extern int lo_export (IntPtr conn, - int lobjId, string filename); - // int lo_export(PGconn *conn, - // Oid lobjId, const char *filename); - - [DllImport("pq")] - public static extern int PQmblen (string s, - int encoding); - // int PQmblen(const unsigned char *s, - // int encoding); - - [DllImport("pq")] - public static extern int PQenv2encoding (); - // int PQenv2encoding(void); - - #endregion - } -} diff --git a/mcs/class/Mono.Data.PostgreSqlClient/PostgresTypes.cs b/mcs/class/Mono.Data.PostgreSqlClient/PostgresTypes.cs deleted file mode 100644 index 6a086a82a4232..0000000000000 --- a/mcs/class/Mono.Data.PostgreSqlClient/PostgresTypes.cs +++ /dev/null @@ -1,512 +0,0 @@ -// -// PostgresTypes.cs - holding methods to convert -// between PostgreSQL types and .NET types -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// - -// Note: this might become PostgresType and PostgresTypeCollection -// also, the PostgresTypes that exist as an inner internal class -// within SqlConnection maybe moved here in the future - -using System; -using System.Collections; -using System.Data; -using System.Data.Common; -using System.Data.SqlClient; -using System.Text; - -namespace System.Data.SqlClient { - - internal struct PostgresType { - public int oid; - public string typname; - public DbType dbType; - } - - sealed internal class PostgresHelper { - - // translates the PostgreSQL typname to System.Data.DbType - public static DbType TypnameToSqlDbType(string typname) { - DbType sqlType; - - // FIXME: use hashtable here? - - switch(typname) { - - case "abstime": - sqlType = DbType.Int32; - break; - - case "aclitem": - sqlType = DbType.String; - break; - - case "bit": - sqlType = DbType.String; - break; - - case "bool": - sqlType = DbType.Boolean; - break; - - case "box": - sqlType = DbType.String; - break; - - case "bpchar": - sqlType = DbType.String; - break; - - case "bytea": - sqlType = DbType.String; - break; - - case "char": - sqlType = DbType.String; - break; - - case "cidr": - sqlType = DbType.String; - break; - - case "circle": - sqlType = DbType.String; - break; - - case "date": - sqlType = DbType.Date; - break; - - case "float4": - sqlType = DbType.Single; - break; - - case "float8": - sqlType = DbType.Double; - break; - - case "inet": - sqlType = DbType.String; - break; - - case "int2": - sqlType = DbType.Int16; - break; - - case "int4": - sqlType = DbType.Int32; - break; - - case "int8": - sqlType = DbType.Int64; - break; - - case "interval": - sqlType = DbType.String; - break; - - case "line": - sqlType = DbType.String; - break; - - case "lseg": - sqlType = DbType.String; - break; - - case "macaddr": - sqlType = DbType.String; - break; - - case "money": - sqlType = DbType.Decimal; - break; - - case "name": - sqlType = DbType.String; - break; - - case "numeric": - sqlType = DbType.Decimal; - break; - - case "oid": - sqlType = DbType.Int32; - break; - - case "path": - sqlType = DbType.String; - break; - - case "point": - sqlType = DbType.String; - break; - - case "polygon": - sqlType = DbType.String; - break; - - case "refcursor": - sqlType = DbType.String; - break; - - case "reltime": - sqlType = DbType.String; - break; - - case "text": - sqlType = DbType.String; - break; - - case "time": - sqlType = DbType.Time; - break; - - case "timestamp": - sqlType = DbType.DateTime; - break; - - case "timestamptz": - sqlType = DbType.DateTime; - break; - - case "timetz": - sqlType = DbType.DateTime; - break; - - case "tinterval": - sqlType = DbType.String; - break; - - case "varbit": - sqlType = DbType.String; - break; - - case "varchar": - sqlType = DbType.String; - break; - - default: - sqlType = DbType.String; - break; - } - return sqlType; - } - - // Converts data value from database to .NET System type. - public static object ConvertDbTypeToSystem (DbType typ, String value) { - object obj = null; - - // FIXME: more types need - // to be converted - // from PostgreSQL oid type - // to .NET System. - - // FIXME: need to handle a NULL for each type - // maybe setting obj to System.DBNull.Value ? - - - if(value == null) { - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value is null"); - return null; - } - else if(value.Equals("")) { - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value is string empty"); - return null; - } - - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value: " + value); - - // Date, Time, and DateTime - // are parsed based on ISO format - // "YYYY-MM-DD hh:mi:ss.ms" - - switch(typ) { - case DbType.String: - obj = String.Copy(value); - break; - case DbType.Boolean: - obj = value.Equals("t"); - break; - case DbType.Int16: - obj = Int16.Parse(value); - break; - case DbType.Int32: - obj = Int32.Parse(value); - break; - case DbType.Int64: - obj = Int64.Parse(value); - break; - case DbType.Decimal: - obj = Decimal.Parse(value); - break; - case DbType.Single: - obj = Single.Parse(value); - break; - case DbType.Double: - obj = Double.Parse(value); - break; - case DbType.Date: - String[] sd = value.Split(new Char[] {'-'}); - obj = new DateTime( - Int32.Parse(sd[0]), Int32.Parse(sd[1]), Int32.Parse(sd[2]), - 0,0,0); - break; - case DbType.Time: - String[] st = value.Split(new Char[] {':'}); - obj = new DateTime(0001,01,01, - Int32.Parse(st[0]),Int32.Parse(st[1]),Int32.Parse(st[2])); - break; - case DbType.DateTime: - Int32 YYYY,MM,DD,hh,mi,ss,ms; - YYYY = Int32.Parse(value.Substring(0,4)); - MM = Int32.Parse(value.Substring(5,2)); - DD = Int32.Parse(value.Substring(8,2)); - hh = Int32.Parse(value.Substring(11,2)); - mi = Int32.Parse(value.Substring(14,2)); - ss = Int32.Parse(value.Substring(17,2)); - ms = Int32.Parse(value.Substring(20,2)); - obj = new DateTime(YYYY,MM,DD,hh,mi,ss,ms); - break; - default: - obj = String.Copy(value); - break; - } - - return obj; - } - - // Translates System.Data.DbType to System.Type - public static Type DbTypeToSystemType (DbType dType) { - // FIXME: more types need - // to be mapped - // from PostgreSQL oid type - // to .NET System. - - Type typ = null; - - switch(dType) { - case DbType.String: - typ = typeof(String); - break; - case DbType.Boolean: - typ = typeof(Boolean); - break; - case DbType.Int16: - typ = typeof(Int16); - break; - case DbType.Int32: - typ = typeof(Int32); - break; - case DbType.Int64: - typ = typeof(Int64); - break; - case DbType.Decimal: - typ = typeof(Decimal); - break; - case DbType.Single: - typ = typeof(Single); - break; - case DbType.Double: - typ = typeof(Double); - break; - case DbType.Date: - case DbType.Time: - case DbType.DateTime: - typ = typeof(DateTime); - break; - default: - typ = typeof(String); - break; - } - return typ; - } - - // Find DbType for oid - // which requires a look up of PostgresTypes - // DbType <-> typname <-> oid - public static string OidToTypname (int oid, ArrayList pgTypes) { - // FIXME: more types need - // to be mapped - // from PostgreSQL oid type - // to .NET System. - - string typname = "text"; // default - int i; - for(i = 0; i < pgTypes.Count; i++) { - PostgresType pt = (PostgresType) pgTypes[i]; - if(pt.oid == oid) { - typname = pt.typname; - break; - } - } - - return typname; - } - - // Convert a .NET System value type (Int32, String, Boolean, etc) - // to a string that can be included within a SQL statement. - // This is to methods provides the parameters support - // for the PostgreSQL .NET Data provider - public static string ObjectToString(DbType dbtype, object obj) { - - // TODO: how do we handle a NULL? - //if(isNull == true) - // return "NULL"; - - string s; - - // Date, Time, and DateTime are expressed in ISO format - // which is "YYYY-MM-DD hh:mm:ss.ms"; - DateTime dt; - StringBuilder sb; - - const string zero = "0"; - - switch(dbtype) { - case DbType.String: - s = "'" + obj + "'"; - break; - case DbType.Boolean: - if((bool)obj == true) - s = "'t'"; - else - s = "'f'"; - break; - case DbType.Int16: - s = obj.ToString(); - break; - case DbType.Int32: - s = obj.ToString(); - break; - case DbType.Int64: - s = obj.ToString(); - break; - case DbType.Decimal: - s = obj.ToString(); - break; - case DbType.Single: - s = obj.ToString(); - break; - case DbType.Double: - s = obj.ToString(); - break; - case DbType.Date: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // year - if(dt.Year < 10) - sb.Append("000" + dt.Year); - else if(dt.Year < 100) - sb.Append("00" + dt.Year); - else if(dt.Year < 1000) - sb.Append("0" + dt.Year); - else - sb.Append(dt.Year); - sb.Append("-"); - // month - if(dt.Month < 10) - sb.Append(zero + dt.Month); - else - sb.Append(dt.Month); - sb.Append("-"); - // day - if(dt.Day < 10) - sb.Append(zero + dt.Day); - else - sb.Append(dt.Day); - sb.Append('\''); - s = sb.ToString(); - break; - case DbType.Time: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // hour - if(dt.Hour < 10) - sb.Append(zero + dt.Hour); - else - sb.Append(dt.Hour); - sb.Append(":"); - // minute - if(dt.Minute < 10) - sb.Append(zero + dt.Minute); - else - sb.Append(dt.Minute); - sb.Append(":"); - // second - if(dt.Second < 10) - sb.Append(zero + dt.Second); - else - sb.Append(dt.Second); - sb.Append('\''); - s = sb.ToString(); - break; - case DbType.DateTime: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // year - if(dt.Year < 10) - sb.Append("000" + dt.Year); - else if(dt.Year < 100) - sb.Append("00" + dt.Year); - else if(dt.Year < 1000) - sb.Append("0" + dt.Year); - else - sb.Append(dt.Year); - sb.Append("-"); - // month - if(dt.Month < 10) - sb.Append(zero + dt.Month); - else - sb.Append(dt.Month); - sb.Append("-"); - // day - if(dt.Day < 10) - sb.Append(zero + dt.Day); - else - sb.Append(dt.Day); - sb.Append(" "); - // hour - if(dt.Hour < 10) - sb.Append(zero + dt.Hour); - else - sb.Append(dt.Hour); - sb.Append(":"); - // minute - if(dt.Minute < 10) - sb.Append(zero + dt.Minute); - else - sb.Append(dt.Minute); - sb.Append(":"); - // second - if(dt.Second < 10) - sb.Append(zero + dt.Second); - else - sb.Append(dt.Second); - sb.Append("."); - // millisecond - if(dt.Millisecond < 10) - sb.Append(zero + dt.Millisecond); - else - sb.Append(dt.Millisecond); - sb.Append('\''); - s = sb.ToString(); - break; - default: - // default to DbType.String - s = "'" + obj + "'"; - break; - } - return s; - } - } -} \ No newline at end of file diff --git a/mcs/class/Mono.GetOptions/.cvsignore b/mcs/class/Mono.GetOptions/.cvsignore deleted file mode 100644 index 97274c3c4a64e..0000000000000 --- a/mcs/class/Mono.GetOptions/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -*.pdb -*.dll -*.csproj.user - diff --git a/mcs/class/Mono.GetOptions/AssemblyInfo.cs b/mcs/class/Mono.GetOptions/AssemblyInfo.cs deleted file mode 100644 index e8a5b7d31533a..0000000000000 --- a/mcs/class/Mono.GetOptions/AssemblyInfo.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly: AssemblyTitle("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.0.*")] - -// -// In order to sign your assembly you must specify a key to use. Refer to the -// Microsoft .NET Framework documentation for more information on assembly signing. -// -// Use the attributes below to control which key is used for signing. -// -// Notes: -// (*) If no key is specified, the assembly is not signed. -// (*) KeyName refers to a key that has been installed in the Crypto Service -// Provider (CSP) on your machine. KeyFile refers to a file which contains -// a key. -// (*) If the KeyFile and the KeyName values are both specified, the -// following processing occurs: -// (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key -// in the KeyFile is installed into the CSP and used. -// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. -// When specifying the KeyFile, the location of the KeyFile should be -// relative to the project output directory which is -// %Project Directory%\obj\. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile -// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] -// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework -// documentation for more information on this. -// -[assembly: AssemblyDelaySign(false)] -[assembly: AssemblyKeyFile("")] -[assembly: AssemblyKeyName("")] - diff --git a/mcs/class/Mono.GetOptions/Mono.GetOptions.csproj b/mcs/class/Mono.GetOptions/Mono.GetOptions.csproj deleted file mode 100644 index 695df1ee57b40..0000000000000 --- a/mcs/class/Mono.GetOptions/Mono.GetOptions.csproj +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/Mono.GetOptions/OptionList.cs b/mcs/class/Mono.GetOptions/OptionList.cs deleted file mode 100644 index 40751e656a794..0000000000000 --- a/mcs/class/Mono.GetOptions/OptionList.cs +++ /dev/null @@ -1,209 +0,0 @@ -// -// OptionList.cs -// -// Author: Rafael Teixeira (rafaelteixeirabr@hotmail.com) -// -// (C) 2002 Rafael Teixeira -// - -using System; -using System.Collections; -using System.IO; -using System.Reflection; - -namespace Mono.GetOptions -{ - [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true)] - public class AuthorAttribute : System.Attribute - { - public string Name; - public string SubProject; - - public AuthorAttribute(string Name) - { - this.Name = Name; - this.SubProject = null; - } - - public AuthorAttribute(string Name, string SubProject) - { - this.Name = Name; - this.SubProject = SubProject; - } - - public override string ToString() - { - if (SubProject == null) - return Name; - else - return Name + " (" + SubProject + ")"; - } - } - - enum OptionParameterType - { - None, - Integer, - Decimal, // look XML Schemas for better names - String, - Symbol, - FilePath, - FileMask, - AssemblyName, - AssemblyFileName, - AssemblyNameOrFileName - } - - public delegate bool OptionFound(object Value); - - /// - /// Summary description for Class1. - /// - public class OptionList - { - struct OptionDetails - { - public char ShortForm; - public string LongForm; - public string ShortDescription; - public OptionParameterType ParameterType; - public int MinOccurs; - public int MaxOccurs; // negative means there is no limit - public object DefaultValue; - public OptionFound Dispatcher; - - } - - private string appTitle = "Add a [assembly: AssemblyTitle(\"Here goes the application name\")] to your assembly"; - private string appCopyright = "Add a [assembly: AssemblyCopyright(\"(c)200n Here goes the copyright holder name\")] to your assembly"; - private string appDescription = "Add a [assembly: AssemblyDescription(\"Here goes the short description\")] to your assembly"; - private string[] appAuthors; - - public readonly string usageFormat; - public readonly string aboutDetails; - - private SortedList list = new SortedList(); - - private object[] GetAssemblyAttributes(Type type) - { - Assembly entry = Assembly.GetEntryAssembly(); - return entry.GetCustomAttributes(type, false); - } - - private string[] GetAssemblyAttributeStrings(Type type) - { - object[] result = GetAssemblyAttributes(type); - - if ((result == null) || (result.Length == 0)) - return new string[0]; - - int i = 0; - string[] var = new string[result.Length]; - - foreach(object o in result) - var[i++] = o.ToString(); - - return var; - } - - private void GetAssemblyAttributeValue(Type type, string propertyName, ref string var) - { - object[] result = GetAssemblyAttributes(type); - - if ((result != null) && (result.Length > 0)) - var = (string)(string)type.InvokeMember(propertyName, BindingFlags.Public | BindingFlags.GetField | BindingFlags.GetProperty | BindingFlags.Instance, null, result[0], new object [] {}); ; - } - - public OptionList(string aboutDetails, string usageFormat) - { - this.aboutDetails = aboutDetails; - this.usageFormat = usageFormat; - - GetAssemblyAttributeValue(typeof(AssemblyTitleAttribute), "Title", ref appTitle); - GetAssemblyAttributeValue(typeof(AssemblyCopyrightAttribute), "Copyright", ref appCopyright); - GetAssemblyAttributeValue(typeof(AssemblyDescriptionAttribute), "Description", ref appDescription); - appAuthors = GetAssemblyAttributeStrings(typeof(AuthorAttribute)); - if (appAuthors.Length == 0) - { - appAuthors = new String[1]; - appAuthors[0] = "Add one or more [assembly: Mono.GetOptions.Author(\"Here goes the author name\")] to your assembly"; - } - } - - private void AddGenericOption( - char shortForm, - string longForm, - string shortDescription, - OptionParameterType parameterType, - int minOccurs, - int maxOccurs, - object defaultValue, - OptionFound dispatcher) - { - OptionDetails option = new OptionDetails(); - - option.ShortForm = shortForm; - option.LongForm = longForm; - option.ShortDescription = shortDescription; - option.ParameterType = parameterType; - option.MinOccurs = minOccurs; - option.MaxOccurs = maxOccurs; - option.DefaultValue = defaultValue; - option.Dispatcher = dispatcher; - - if (shortForm == ' ') - list.Add(longForm, option); - else - list.Add(shortForm.ToString(), option); - } - - public void AddAbout(char shortForm, string longForm, string shortDescription) - { - AddGenericOption(shortForm, longForm, shortDescription, OptionParameterType.None, 0, 1, null, new OptionFound(DoAbout)); - } - - public void AddBooleanSwitch(char shortForm, string longForm, string shortDescription, bool defaultValue, OptionFound switcher) - { - AddGenericOption(shortForm, longForm, shortDescription, OptionParameterType.None, 0, 1, defaultValue, switcher); - } - - public void ShowAbout() - { - Console.WriteLine(appTitle + " - " + appCopyright); - Console.WriteLine(appDescription); - Console.WriteLine(); - Console.WriteLine(aboutDetails); - Console.WriteLine(); - Console.WriteLine("Authors:"); - foreach(string s in appAuthors) - Console.WriteLine ("\t" + s); - } - - private bool DoAbout(object nothing) - { - ShowAbout(); - return true; - } - - public void ShowUsage() - { - Console.WriteLine(appTitle + " - " + appCopyright); - Console.Write("Usage: "); - Console.WriteLine(usageFormat); - // TODO: list registered options here - foreach (DictionaryEntry option in list) - Console.WriteLine(option.Value.ToString()); - } - - public void ShowUsage(string errorMessage) - { - Console.WriteLine(errorMessage); - ShowUsage(); - } - - public void ProcessArgs(string[] args) - { - ShowAbout(); - } - } -} diff --git a/mcs/class/README b/mcs/class/README deleted file mode 100644 index 97382f10b2097..0000000000000 --- a/mcs/class/README +++ /dev/null @@ -1,277 +0,0 @@ -The class libraries are grouped together in the assemblies they belong. - -Each directory here represents an assembly, and inside each directory we -divide the code based on the namespace they implement. - -In addition, each assembly directory contains a Test directory that holds the -NUnit tests for that assembly. - -The nant build file for an assembly creates two versions of the dll for that -assembly. One version is a "full" dll. The full dll contains (almost) all -of the classes, regardless of how complete the classes are. The name of this -dll is the normal name you would expect, like "corlib.dll" or "System.dll". -These full dll's are created in the /mcs/class/lib directory. - -The other dll which is built is a "restricted" dll. The restricted dll -omits incomplete classes that would prevent the NUnit testrunner from actually -running the tests. These restricted dll's are created in the Test directory -of their respective assembly and named with a "_res" suffix. So, for example, -the NUnit-testable dll for corlib is /mcs/class/corlib/Test/corlib_res.dll. - -The final dll which is built is the one which houses the actual NUnit tests. -This dll is built from all of the classes in the Test directory and below, and -is named with a "_test" suffix. So, for example, the NUnit tests for corlib -are in /mcs/class/corlib/Test/corlib_test.dll. This dll is also linked with -the restricted dll found in the same directory. - - -* Missing implementation bits - - If you implement a class and you are missing implementation bits, - please use the attribute [MonoTODO]. This attribute can be used - to programatically generate our status web pages: - - [MonoTODO] - int MyFunction () - { - throw new NotImplementedException (); - } - -* Tagging buggy code - - If there is a bug in your implementation tag the problem by using - the word "FIXME" in the code, together with a description of the - problem. - - Do not use XXX or obscure descriptions, because otherwise people - will not be able to understand what you mean. - -* Tagging Problematic specs. - - If the documentation and the Microsoft implementation do - differ (you wrote a test case to prove this), I suggest that you edit - the file `mcs/class/doc/API-notes' so we can keep track of these problems - and submit our comments to ECMA or Microsoft and seek clarification. - - Sometimes the documentation might be buggy, and sometimes the implementation - might be buggy. Lets try to identify and pinpoint which one - is the correct one. - - Sometimes the specification will be lame (consider Version.ToString (fieldCount) - where there is no way of knowing how many fields are available, making the API - not only stupid, but leading to unreliable code). - - In those cases, use the keyword "LAMESPEC". - - -* Coding considerations and style. - - In order to keep the code consistent, please use the following - conventions. From here on `good' and `bad' are used to attribute - things that would make the coding style match, or not match. It is not - a judgement call on your coding abilities, but more of a style and - look call. Please try to follow these guidelines to ensure prettiness. - - Use 8 space tabs for writing your code (hopefully we can keep - this consistent). If you are modifying someone else's code, try - to keep the coding style similar. - - Since we are using 8-space tabs, you might want to consider the Linus - Torvals trick to reduce code nesting. Many times in a loop, you will - find yourself doing a test, and if the test is true, you will nest. - Many times this can be changed. Example: - - - for (i = 0; i < 10; i++) { - if (something (i)) { - do_more (); - } - } - - This take precious space, instead write it like this: - - for (i = 0; i < 10; i++) { - if (!something (i)) - continue; - do_more (); - } - - A few guidelines: - - * Use a space before an opening parenthesis when calling - functions, or indexing, like this: - - method (a); - b [10]; - - * Do not put a space after the opening parenthesis and the - closing one, ie: - - good: method (a); array [10]; - - bad: method ( a ); array[ 10 ]; - - * Inside a code block, put the opening brace on the same line - as the statement: - - good: - if (a) { - code (); - code (); - } - - bad: - if (a) - { - code (); - code (); - } - - * Avoid using unecessary open/close braces, vertical space - is usually limited: - - good: - if (a) - code (); - - bad: - if (a) { - code (); - } - - * When defining a method, use the C style for brace placement, - that means, use a new line for the brace, like this: - - good: - void Method () - { - } - - bad: - void Method () { - } - - * Properties and indexers are an exception, keep the - brace on the same line as the property declaration. - Rationale: this makes it visually - simple to distinguish them. - - good: - int Property { - get { - return value; - } - } - - bad: - int Property - { - get { - return value; - } - } - - Notice how the accessor "get" also keeps its brace on the same - line. - - For very small properties, you can compress things: - - ok: - int Property { - get { return value; } - set { x = value; } - } - - * Use white space in expressions liberally, except in the presence - of parenthesis: - - good: - - if (a + 5 > method (blah () + 4)) - - bad: - if (a+5>method(blah()+4)) - - * For any new files, please use a descriptive introduction, like - this: - - // - // System.Comment.cs: Handles comments in System files. - // - // Author: - // Juan Perez (juan@address.com) - // - // (C) 2002 Address, Inc (http://www.address.com) - // - - * If you are modyfing someone else's code, and your contribution - is significant, please add yourself to the Authors list. - - * Switch statements have the case at the same indentation as the - switch: - - switch (x) { - case 'a': - ... - case 'b': - ... - } - - * Argument names should use the camel casing for - identifiers, like this: - - good: - void Method (string myArgument) - - bad: - void Method (string lpstrArgument) - void Method (string my_string) - - Here are a couple of examples: - -class X : Y { - - bool Method (int argument_1, int argument_2) - { - if (argument_1 == argument_2) - throw new Exception (Locale.GetText ("They are equal!"); - - if (argument_1 < argument_2) { - if (argument_1 * 3 > 4) - return true; - else - return false; - } - - // - // This sample helps keep your sanity while using 8-spaces for tabs - // - VeryLongIdentifierWhichTakesManyArguments ( - Argument1, Argument2, Argument3, - NestedCallHere ( - MoreNested)); - } - - bool MyProperty { - get { - return x; - } - - set { - x = value; - } - } - - void AnotherMethod () - { - if ((a + 5) != 4) { - } - - while (blah) { - if (a) - continue; - b++; - } - } -} - \ No newline at end of file diff --git a/mcs/class/System.Configuration.Install/ChangeLog b/mcs/class/System.Configuration.Install/ChangeLog deleted file mode 100644 index f43b628da8061..0000000000000 --- a/mcs/class/System.Configuration.Install/ChangeLog +++ /dev/null @@ -1,9 +0,0 @@ -2002-07-22 Tim Coleman - * list.unix: - * makefile.gnu: - Files added to build this on linux. - -2002-08-13 Jonathan Pryor - * ChangeLog: Add change log to this directory - * System.Configuration.Install.build: Add build file to this directory. - diff --git a/mcs/class/System.Configuration.Install/System.Configuration.Install.build b/mcs/class/System.Configuration.Install/System.Configuration.Install.build deleted file mode 100644 index 2305c54532003..0000000000000 --- a/mcs/class/System.Configuration.Install/System.Configuration.Install.build +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog b/mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog deleted file mode 100644 index 50dcbb3dabccd..0000000000000 --- a/mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog +++ /dev/null @@ -1,8 +0,0 @@ -2002-07-22 Tim Coleman - * UninstallAction.cs: Changed namespace to - proper System.Configuration.Install; - -2002-08-13 Jonathan Pryor - * ChangeLog: Add change log to this directory - * UninstallAction.cs: Implemented. - diff --git a/mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs b/mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs deleted file mode 100644 index 9239419e06f50..0000000000000 --- a/mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.Configuration.Install.UninstallAction.cs -// -// Authors: -// Jonathan Pryor (jonpryor@vt.edu) -// -// (C) 2002 -// - -using System; - -namespace System.Configuration.Install { - - [Serializable] - public enum UninstallAction { - NoAction=0x01, - Remove=0x00 - } -} - diff --git a/mcs/class/System.Configuration.Install/Test/.cvsignore b/mcs/class/System.Configuration.Install/Test/.cvsignore deleted file mode 100644 index e47122844d5dd..0000000000000 --- a/mcs/class/System.Configuration.Install/Test/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.dll -*.pdb \ No newline at end of file diff --git a/mcs/class/System.Configuration.Install/Test/AllTests.cs b/mcs/class/System.Configuration.Install/Test/AllTests.cs deleted file mode 100644 index 8fe40431485f4..0000000000000 --- a/mcs/class/System.Configuration.Install/Test/AllTests.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -// MonoTests.AllTests.cs -// -// Author: -// Gonzalo Paniagua Javier (gonzalo@ximian.com) -// -// (C) 2002 Ximian, Inc. (http://www.ximian.com) -// - -using System; -using NUnit.Framework; - -namespace MonoTests -{ - public class AllTests : TestCase - { - public AllTests (string name) : base (name) {} - - public static ITest Suite - { - get { - TestSuite suite = new TestSuite(); - suite.AddTest (System.Configuration.Install.AllTests.Suite); - return suite; - } - } - } -} - diff --git a/mcs/class/System.Configuration.Install/Test/ChangeLog b/mcs/class/System.Configuration.Install/Test/ChangeLog deleted file mode 100644 index 334d62bcf81de..0000000000000 --- a/mcs/class/System.Configuration.Install/Test/ChangeLog +++ /dev/null @@ -1,12 +0,0 @@ -2002-07-15 Gonzalo Paniagua Javier - - * AllTests.cs: New file. - * System.Configuration.Install_test.build: modified randomly until it - works. - - Fixes 'make test'. - -2002-08-13 Jonathan Pryor - * ChangeLog: Add change log to this directory - * System.Configuration.Install_test.build: Add build file to this directory. - diff --git a/mcs/class/System.Configuration.Install/Test/System.Configuration.Install/AllTests.cs b/mcs/class/System.Configuration.Install/Test/System.Configuration.Install/AllTests.cs deleted file mode 100644 index 742b185f6c805..0000000000000 --- a/mcs/class/System.Configuration.Install/Test/System.Configuration.Install/AllTests.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// MonoTests.System.Configuration.Install.AllTests -// -// Authors: -// Gonzalo Paniagua Javier (gonzalo@ximian.com) -// -// (C) 2002 Ximian, Inc. (http://www.ximian.com) -// - -using System; -using NUnit.Framework; - -namespace MonoTests.System.Configuration.Install { - public class AllTests : TestCase { - - public AllTests (string name) : base (name) {} - - public static ITest Suite { - get - { - TestSuite suite = new TestSuite(); - return suite; - } - } - } -} - diff --git a/mcs/class/System.Configuration.Install/Test/System.Configuration.Install/ChangeLog b/mcs/class/System.Configuration.Install/Test/System.Configuration.Install/ChangeLog deleted file mode 100644 index a67be6de96b51..0000000000000 --- a/mcs/class/System.Configuration.Install/Test/System.Configuration.Install/ChangeLog +++ /dev/null @@ -1,5 +0,0 @@ -2002-07-15 Gonzalo Paniagua Javier - - * AllTests.cs: New file. - * ChangeLog: New file. - diff --git a/mcs/class/System.Configuration.Install/Test/System.Configuration.Install_test.build b/mcs/class/System.Configuration.Install/Test/System.Configuration.Install_test.build deleted file mode 100644 index d92e5e78fb47b..0000000000000 --- a/mcs/class/System.Configuration.Install/Test/System.Configuration.Install_test.build +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Configuration.Install/list.unix b/mcs/class/System.Configuration.Install/list.unix deleted file mode 100644 index e162d82c0fd11..0000000000000 --- a/mcs/class/System.Configuration.Install/list.unix +++ /dev/null @@ -1 +0,0 @@ -System.Configuration.Install/UninstallAction.cs diff --git a/mcs/class/System.Configuration.Install/makefile.gnu b/mcs/class/System.Configuration.Install/makefile.gnu deleted file mode 100644 index 5400fd350016e..0000000000000 --- a/mcs/class/System.Configuration.Install/makefile.gnu +++ /dev/null @@ -1,13 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/System.Configuration.Install.dll - -LIB_LIST = list.unix -LIB_FLAGS = -r corlib - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=./Test* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/System.Data/.cvsignore b/mcs/class/System.Data/.cvsignore deleted file mode 100644 index 0e3f75b9676d4..0000000000000 --- a/mcs/class/System.Data/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -.makefrag -.response -System.Data.dll -library-deps.stamp -Temp -tmp diff --git a/mcs/class/System.Data/ChangeLog b/mcs/class/System.Data/ChangeLog deleted file mode 100644 index 4cdd35ef5cdcf..0000000000000 --- a/mcs/class/System.Data/ChangeLog +++ /dev/null @@ -1,1686 +0,0 @@ -2002-08-20 Franklin Wise - - * System.Data/System.Data.build: added nowarn:0679 - - * System.Data/System.DataTable: cleaned up class, added MonoTODO tags - setup to begin implementing. Implemented ctor(). - - * Tests: See System.Data\Test\ChangeLog - - -2002-08-19 Rodrigo Moya - - * System.Data.OleDb/OleDbSchemaGuid.cs: initialize static members. - -2002-08-19 Franklin Wise - - * Tests: See System.Data\Test\ChangeLog - - * System.Data/UniqueConstraint.cs: More validation. - - * System.Data/ForeignKeyConstraint.cs: Added more validation rules. - Another LAMESPEC tag. Implemented more of Add/Remove Setup/Cleanup - logic. - - * System.Data/DataTable.cs: Added more MonoTODO tags - - * class/System.Data/.cvsignore: added tmp & Temp - - * System.Data/Constraint.cs: Changed abstract helpers to virtual and - internal. - - * System.Data/ConstraintCollection.cs: Commented out unused line. - -2002-08-18 Rodrigo Moya - - * System.Data.OleDb/OleDbConnection.cs (ChangeDatabase): implemented. - - * System.Data.OleDb/OleDbException.cs (OleDbException): added internal - constructor. - (ErrorCode, Message, Source, Errors): implemented. - - * System.Data.OleDb/OleDbError.cs: implemented the full class. - - * System.Data.OleDb/libgda.cs: added more libgda functions. - - * System.Data.OleDb/TestOleDb.cs (TestOleDb): display properties for - the opened connection. - -2002-08-18 Rodrigo Moya - - * System.Data.OleDb/OleDbConnection.cs (ServerVersion): implemented. - - * System.Data.OleDb/OleDbDataReader.cs (Close): clear the results - ArrayList after releasing the items. - (GetName, GetDateTime, GetDouble, GetSingle, GetInt16, GetInt32, - GetOrdinal, GetString): implemented. - (GetDataTypeName): made it get the type from the data model, not from - the current value, which could not have been retrieved yet. - (GetValue): call the Get* method corresponding with the data type of - the requested column. - - * System.Data.OleDb/libgda.cs: added more libgda functions. - (GdaTimestamp, GdaDate, GdaTime): new marshalled structures. - - * System.Data.OleDb/TestOleDb.cs (TestDateReader): display column - titles via OleDbDataReader.GetName (). - (TestOleDb): create temporary table with a date field. - (InsertRow): set current date for the date field. - -2002-08-18 Rodrigo Moya - - * System.Data.OleDb/OleDbDataReader.cs (this[]): made it just call - GetValue, which will take care of all the work needed. - (Close): implemented basic stuff. - (~OleDbDataReader): implemented. - - * System.Data.OleDb/libgda.cs: added more needed functions. - -2002-08-16 Rodrigo Moya - - * System.Data.OleDb/TestOleDb.cs: made it work with a temporary table - we create. - (TestTransaction): added test for transactions. - -2002-08-16 Rodrigo Moya - - * System.Data.OleDb/libgda.cs: added new needed libgda functions. - - * System.Data.OleDb/OleDbDataReader.cs (GetBoolean): throw exceptions - when there are errors. - (GetByte, GetChar, GetDataTypeName, GetValue, Read): implemented. - - * System.Data.OleDb/TestOleDb.cs: added more testing code for data - readers. - -2002-08-15 Rodrigo Moya - - * System.Data.OleDb/libgda.cs: added new needed libgda functions. - - * System.Data.OleDb/OleDbParameterCollection.cs (GdaParameterList): - create an empty GdaParameterList. - - * System.Data.OleDb/OleDbCommand.cs (ExecuteReader): check values - for NULL before passing them to Marshal.PtrToStructure, which issues - an exception if the value is NULL. - -2002-08-15 Rodrigo Moya - - * System.Data/UniqueConstraint.cs (UniqueConstraint): commented - unreachable code to avoid compiler warning. - - * System.Data.OleDb/libgda.cs (GdaList): added new internal class. - - * System.Data.OleDb/OleDbConnection.cs (DataSource): implemented. - (OpenReader): removed internal method. - - * System.Data.OleDb/OleDbCommand.cs (ExecuteReader): split correctly - the list of returned data models. - -2002-08-15 Franklin Wise - - * System.Data/Constraint.cs: Added helper virtual functions - - * System.Data/ConstraintCollection.cs: Improved constraint removal, - validation. Removed specific knowledge of subclasses of - Constraint. - - * System.Data/DataColumn.cs: Added static helper function to compare - if two DataColumn arrays are the same. - - * System.Data/ForeignKeyConstraint.cs: Continued to flush out. - - * System.Data/UniqueConstraint.cs: Implemented. Still some constraint - validation to do. - -2002-08-13 Franklin Wise - - * System.Data/DataRow.cs: Added several fixme tags. - -2002-08-13 Rodrigo Moya - - * System.Data.SqlClient/SqlDataAdapter.cs (DeleteCommand, - InsertCommand, SelectCommand, UpdateCommand): removed 'new' keyword - to avoid compiler warnings. - -2002-08-12 Franklin Wise - - * System.Data/Constraint.cs: Implemented - - * System.Data/UniqueConstraint.cs: GetHashCode() & - special case Ctor. Still need to be implemented. LAMESPEC tags - added. - - * System.Data/ConstraintCollection.cs: Clear() & - AddRange() need to be finished. Several LAMESPEC tags. - - * Allow Constraint collection to be created in DataTable. - - * System.Data/ForeignKeyConstraint: Added a couple of - helper functions. - - * System.Data/DataColumnCollection New/Added DataColumns now have - Table property set. - -2002-08-11 Rodrigo Moya - - * System.Data.OleDb/libgda.cs: added some GdaValue functions. - - * System.Data.OleDb/OleDbCommand.cs (OpenReader): removed this - internal method, since we don't need it. - (ExecuteReader): call SetupGdaCommand before executing the command - via libgda functions. - (ExecuteScalar): implemented. - - * System.Data.OleDb/OleDbDateReader.cs (OleDbDataReader): removed call - to OleDbCommand.OpenReader. - (GetBoolean): implemented. - -2002-08-08 Franklin Wise - - * System.Data/IDbComand.cs: IDbCommand now inherits IDisposable - - * System.Data/IDbConnection.cs: IDbConnection now inherits IDisposable - - * System.Data.SqlTypes/SqlCompareOptions.cs: Enum now set to correct - values. - -2002-08-06 Gonzalo Paniagua Javier - - * System.Data.OleDb/OleDbConnection.cs: little fixes to make it work - and don't show a warning in Open. - - * System.Data.OleDb/TestOleDb.cs: added Close. - -2002-08-05 Rodrigo Moya - - * System.Data.OleDb/OleDbConnection.cs (ConnectionString, - ConnectionTimeout, ServerVersion, GdaConnection): - corrected style. - (OleDbConnection): call libgda.gda_init on constructor. - - * System.Data.OleDb/libgda.cs (libgda): removed static constructor, - which wasn't been called. - - * System.Data.OleDb/TestOleDb.cs (TestOleDb): updated to really - make some tests. - -2002-08-04 Rodrigo Moya - - * list: added missing System.Data.OleDb and - System.Data.Common files. - - * System.Data.OleDb/ChangeLog: removed and merged with - System.Data's ChangeLog. - - * System.Data.OleDb/OleDbDataAdapter.cs: - * System.Data.OleDb/OleDbPermission.cs: compilation fixes. - -2002-07-30 Rodrigo Moya - - * System.Data.OleDb/OleDbDataReader.cs (FieldCount): implemented. - (IsClosed, Item, RecordsAffected): implemented some properties. - - * libgda.cs: added GdaDataModel methods. - -2002-07-29 Rodrigo Moya - - * System.Data.OleDb/OleDbDataReader.cs (OleDbDataReader constructor): changed to receive - a second argument (ArrayList results). - (NextResult): implemented. - - * System.Data.OleDb/OleDbCommand.cs: don't store the ArrayList of results, since we'll - pass that to the OleDbDataReader. - (OleDbCommand constructor): don't create the ArrayList of results. - (GdaResults): removed property. - (ExecuteReader): create a temporary ArrayList and pass that to the - OleDbDataReader constructor. - -2002-07-28 Rodrigo Moya - - * System.Data.OleDb/OleDbCommand.cs (ExecuteReader): - (CreateParameter): implemented IDbCommand methods. - (CommandText): don't create many GdaCommand's, only one is needed. - (ExecuteNonQuery): set up the internal GDA command object. - (ExecuteReader): use correctly the unique GDA command object. - - * System.Data.OleDb/libgda.cs: added new libgda calls. - -2002-07-27 Rodrigo Moya - - * System.Data.OleDb/OleDbConnection.cs (CreateCommand): - (BeginTransaction): implemented IDbConnection methods. - -2002-07-12 Rodrigo Moya - - * list: added System.Data.OleDb files to file list. - -2002-07-11 Rodrigo Moya - - * System.Data.OleDb/libgda.cs: added new libgda functions and some enumerations. - - * System.Data.OleDb/OleDbParameter.cs (IsNullable): removed explicit implementation - of the set method for this property. - - * System.Data.OleDb/OleDbDataAdapter.cs (MissingMappingAction): implemented. - (MissingSchemaAction): implemented. - -2002-07-10 Tim Coleman - - * System.Data.OleDb/OleDbCommandBuilder.cs: Added new methods, properties - * System.Data.OleDb/OleDbConnection.cs: Modified constructor - * System.Data.OleDb/OleDbError.cs: Added stubbs - * System.Data.OleDb/OleDbException.cs: Added stubbs - * System.Data.OleDb/OleDbInfoMessageEventArgs.cs: Added stubbs - * System.Data.OleDb/OleDbInfoMessageEventHandler.cs: style change - * System.Data.OleDb/OleDbParameter.cs: Added conversion from type to OleDbType - * System.Data.OleDb/OleDbPermission.cs: Added stubbs - * System.Data.OleDb/OleDbSchemaGuid.cs: Added stubbs - * System.Data.OleDb/OleDbTransaction.cs: New constructors, changes to methods to - support transaction nesting - * System.Data.OleDb/libgda.cs: Added my name to this file - -2002-07-09 Tim Coleman - - * System.Data.OleDb/OleDbCommand.cs: Style changes, added new methods - * System.Data.OleDb/OleDbConnection.cs: Style changes, added new methods - * System.Data.OleDb/OleDbDataAdapter.cs: Implementation - * System.Data.OleDb/OleDbDataReader.cs: Added stubbs - * System.Data.OleDb/OleDbErrorCollection.cs: Added stubbs, some implementation - * System.Data.OleDb/OleDbParameter.cs: Style changes, added new methods - * System.Data.OleDb/OleDbParameterCollection.cs: Style changes, added new methods - * System.Data.OleDb/OleDbPermissionAttribute.cs: Style changes, added new methods - * System.Data.OleDb/OleDbRowUpdatedEventArgs.cs: Added stubbs - * System.Data.OleDb/OleDbRowUpdatingEventArgs.cs: Added stubbs - * System.Data.OleDb/OleDbTransaction.cs: Style changes, added new methods - * System.Data.OleDb/OleDbType.cs: Fixed two typos - * System.Data.OleDb/libgda.cs: Style changes, added new methods - -2002-07-09 Tim Coleman - - * System.Data.build: remove restriction on System.Data.OleDb build - -2002-06-03 Rodrigo Moya - - * System.Data.OleDb/OleDbParameterCollection.cs (GetEnumerator, SyncRoot, - IsSynchronized): implemented. - -2002-06-02 Rodrigo Moya - - * System.Data.OleDb/OleDbTransaction.cs (Dispose): added missing method. - - * System.Data.OleDb/OleDbCommand.cs (Clone): added missing methods. - (Parameters, Transaction, Connection): made these overload - IDbCommand's ones. - - * System.Data.OleDb/OleDbParameterCollection.cs (IndexOf, Remove, RemoveAt): - call m_list methods, not own ones. - - * System.Data.OleDb/OleDbParameter.cs: more implementation. - -2002-06-02 Rodrigo Moya - - * System.Data.OleDb/OleDbTransaction.cs (Connection, IsolationLevel, Begin, - Commit, Rollback): implemented. - (GdaConnection): added new internal property. - - * System.Data.OleDb/OleDbParameter.cs: - * System.Data.OleDb/OleDbParameterCollection.cs: implemented some methods and - properties. - - * System.Data.OleDb/libgda.cs: added yet more libgda API functions. - -2002-06-01 Rodrigo Moya - - * System.Data.OleDb/libgda.cs: added new libgda API functions. - - * System.Data.OleDb/OleDbConnection.cs (Provider): implemented. - (BeginTransaction): made it overload IDbConnection methods. - (ChangeDatabase): new stub, needs some work on libgda for being - implemented. - (Clone): new stub. - (Close): implemented. - (CreateCommand): implemented. - (GetOleDbSchemaTable): new stub, until I understand what to do here. - (Open): implemented basic stuff, which is just supporting connection - strings that represent a GDA data source name. More to come. - (InfoMessage, StateChange): added events. - - * System.Data.OleDb/TestOleDb.cs: test program for System.Data.OleDb. - -2002-05-29 Rodrigo Moya - - * System.Data.OleDb/libgda.cs: added static constructor. - (GdaClient): new static property to get the underlying GdaClient - object. - - * System.Data.OleDb/OleDbConnection.cs: removed GDA initialization, which belongs to - the static 'libgda' class. - -2002-05-29 Rodrigo Moya - - * System.Data.OleDb/libgda.cs: static class for libgda API calls. - - * System.Data.OleDb/OleDbConnection.cs: implemented constructors. - (ConnectionString, Connectiontimeout, Database, State): - implemented class properties. - (BeginTransaction): implemented. - - * System.Data.OleDb/OleDbTransaction.cs: implemented protected constructors. - - * System.Data.OleDb/TestGDA.cs: simple test for libgda API. - -2002-05-27 Rodrigo Moya - - * System.Data.OleDb/*: started System.Data.OleDb provider, based on libgda. - -2002-06-06 Rodrigo Moya - - * list: added missing PostgresTypes.cs file. - -2002-06-02 Francisco Jr. - - * System.Data.SqlClient/SqlParameterCollection.cs: implemented missing - methods. - -2002-05-30 Daniel Morgan - - * System.Data.SqlClient/SqlConnection.cs: modifed - - start to implement the interfaces properly and - properly doing a Close(), Dispose(), and - releasing resources - - * Test/SqlSharpCli.cs: modified - - add support for MySQL in Mono.Data.MySql - and OleDb support in System.Data.OleDb. However, - the OleDb support is commented right now. - When the program starts up, a shorter help menu should - display the most important commands: help and quit - -2002-05-28 Rodrigo Moya - - * System.Data.build: exclude System.Data.OleDb files. - -2002-05-27 Daniel Morgan - - * System.Data.SqlClient/SqlCommand.cs: typo - should be CommandBehavior.KeyInfo - - * Test/SqlSharpCli.cs: refactored and added a few more - features. - -2002-05-27 Tim Coleman - * list: update to compile properly (add missing - files and switch path delimiter from '\' to '/'). - -2002-05-26 Daniel Morgan - - * System.Data/DataRow.cs - * System.Data.Common/DbDataAdapter.cs: fix to - get Test/TestSqlDataAdapter.cs to work again - - * Test/TestSqlDataAdapter.cs: removed comment - about SqlDataReader:NextResult() not being implemented; it - bas been implemented - -2002-05-26 Daniel Morgan - - * System.Data/DataRow.cs: modified - support setting of DBNull.Value - using the Item indexer this[DataColumn] - - * System.Data.SqlClient/SqlCommand.cs: modified - tweaks to show TODO's for other CommandBehavior. - Set AllowDBNull column to true for IsKey row - in schema DataTable. - - * System.Data.SqlClient/SqlConnection.cs: modified - if transaction is in progress when a Close() is called, - do a transaction Rollback. - -2002-05-26 Daniel Morgan - - * Test/SqlSharpCli.cs: added file - My new toy. SQL# is a command-line tool to enter - SQL commands and queries using Mono System.Data. - It also serves as a test for Mono System.Data. - - * System.Data.SqlClient/SqlCommand.cs: modified - - ExecuteNonQuery(), ExecuteScalar(), and ExecuteReader() - should handle the results from SQL Commands and Queries. - - Internal class SqlResult should not create schema Table - for the result from a SQL Command. Also, set the RecordsRetrieved - property for SqlDataReader. - - Closing the SqlDataReader should Close() the SqlConnection for - a CommandBehavior.CloseConnection. - - Set defaults for SqlResult - - * System.Data.SqlClient/SqlConnection.cs: modified - - when SqlDataReader is Close() - should Close() the SqlConnection for - a CommandBehavior.CloseConnection. Changed internal Property - from OpenReader get/set to IsReaderOpen get and created - internal methods OpenReader()/CloseReader() for SqlCommand to call. - SqlConnection needs to be prevented from doing while SqlDataReader - is being used. - - * System.Data.SqlClient/SqlDataReader.cs: modified - - call SqlCommand's OpenReader() internal method. get - RecordsRetrieved from SqlResult. set/reset default - values for SqlDataReader. - - * Test/PostgresTest.cs - * Test/TestExecuteScalar.cs - * Test/TestSqlDataReader.cs: modified - for the Execute...() methods in SqlCommand - to test SQL Queries and Commands - - * Test/System.Data_test.build: modified - exclude new file Test/SqlSharpCli.cs from - test build - -2002-05-24 Tim Coleman - * System.Data.Common/DbDataAdapter.cs: remove IDbCommands, except - for get accessors. These should be implemented in derived classes. See - SqlDataAdapter for clues. - * System.Data.SqlClient/SqlDataAdapter.cs: implement IDbDataAdapter - * System.Data.Common/DataAdapter.cs: - * System.Data.Common/DataTableMappingCollection.cs: - * System.Data.Common/DataTableMapping.cs: - * System.Data.Common/DataColumnMappingCollection.cs: - * System.Data.Common/DataColumnMapping.cs: - Properly (I hope!) implement all of the appropriate interfaces - for these classes. - - -2002-05-23 Tim Coleman - * System.Data.SqlClient/SqlCommand.cs: include - the BaseColumnName in the schema table. Was missed before. - * System.Data.Common/DbDataAdapter.cs: Use DataTable - mappings so that the DataSet and DataTable are more closely tied. - Get schema information from the DataTable using GetSchemaTable () - Various other little fixes - * System.Data.Common/DataColumnMappingCollection.cs: - * System.Data.Common/DataTableMapping.cs: - * System.Data.Common/DataTableMappingCollection.cs: Some - implementation, enough to be used by DbDataAdapter. - -2002-05-23 Daniel Morgan - - * System.Data.SqlClient/SqlCommand.cs: set - the "ProviderType" to the PostgreSQL type oid - - * System.Data.SqlClient/SqlDataReader.cs: fix - for various properties and methods that - return meta data: Item indexers this[name] and this[index], - GetFieldType, GetName, and GetOrdinal. SqlDataAdapter - should work again. - -2002-05-22 Daniel Morgan - - * System.Data/DataRow.cs: change suggested - by tim: in Item indexer, do an EndEdit() - - * System.Data.SqlClient/SqlCommand.cs: more - fixes to SqlResult. After setting each item in - the DataRow, do an AcceptChanges() to commit - the changes in the DataRow. For DataType, use a Type - of System.String since System.Type nor System.Object - seems to work. - - * Test/TestSqlDataReader.cs - * Test/PostgresTest.cs: updated to to be on - the way schema table is suppose to work - -2002-05-22 Daniel Morgan - - * System.Data.SqlClient/SqlCommand.cs: more work on - building the schema table - -2002-05-22 Tim Coleman - * System.Data.SqlClient/SqlCommand.cs: preliminary work - on getting the schema table correctly built. - -2002-05-21 Daniel Morgan - - * System.Data.SqlClient/ParmUtil.cs: added file - to - provide utility for conversion of input parameters - - * System.Data.SqlClient/PostgresTypes.cs: added file - - moved the PostgreHelper class to here. May eventually - move the internal class PostgresTypes that's inside the - SqlConnection to here as well. - Handling of PostgreSQL <-> .NET types need to be though - out more. Also, the PostgreHelper has a method to convert - from .NET types to a string which can be put into used in - an SQL statement to execute against a PostgreSQL database. - This is the beginnings of parameters support. It currently - only supports input parameters. Still need to do output, - input/output, and return parameters. - - * Test/TestSqlParameters.cs: new test to test the input - parameters in System.Data.SqlClient against a - PostgreSQL db. - - * System.Data.SqlClient/PostgresLibrary.cs: moved - PostgresHelper class to file PostgresTypes.cs. Also - moved struct PostgresType there too. - - * System.Data.SqlClient/SqlCommand.cs: added input - parameters support - - * System.Data.SqlClient/SqlParameter.cs: got - SqlParameter to work - - * System.Data.SqlClient/SqlParameterCollection.cs: got - SqlParameterCollection to work - - * Test/System.Data_test.build: added files to exclude - from test build - - * System.Data.SqlClient/SqlConnection.cs: release resources - no longer used - -2002-05-18 Daniel Morgan - - * System.Xml: added directory for classes with namespace - System.Xml to go into the System.Data.dll assembly - - * System.Xml/XmlDataDocument: added file - for stubbed concrete class XmlDataDocument which - inherits from XmlDocument. Its purpose is to provide - a W3C XML DOM Document for relational data and interacting - with a DataSet - -2002-05-18 Daniel Morgan - - * System.Data.SqlClient/SqlCommand.cs: handle CommandTypes - Text, TableDirect, and StoredProcedure - - * Test/PostgresTest.cs: changed call to version() - stored procedure to use the CommandType of StoredProcedure - - * Test/TestSqlDataReader.cs: test all the CommandTypes - -2002-05-18 Daniel Morgan - - * System.Data.build: took out all excluded - files except the ones in the Test directory - because all files compile now. It does not - mean they all work or have implementations - though. - - * System.Data/DataRelationCollection.cs - * System.Data/DataTableRelationCollection.cs - * System.Data/InternalDataCollectionBase.cs - * System.Data.Common/DbDataPermission.cs - * System.Data.SqlClient/SqlInfoMessageEventArgs.cs - * System.Data.SqlClient/SqlClientPermission.cs - * System.Data.SqlClient/SqlClientPermissionAttribute.cs: changes - to get all System.Data* files to compile. - - * System.Data.SqlClient/SqlCommand.cs: started coding - to prevent SqlConnection and SqlCommand from doing - anyting while fetching data using SqlDataReader. Also, - started coding to undo this prevention once the - SqlDataReader is closed. - - * System.Data.SqlClient/SqlConnection.cs: get database server - version. Started coding to prevent connection from - doing anything while fetching data and undo once the reader - is closed. Include events SqlInfoMessage and StateChange. - - * System.Data.SqlClient/SqlDataReader.cs: start coding to - prevent connection and command from doing anything while - fetching data, and undo when closed. - - * Test/PostgresTest.cs: added test to get ServerVersion - property from SqlConnection - -2002-05-18 Tim Coleman - * System.Data/DataRow.cs: More implementation, - as well as boundary checks and small semantic - repairs - -2002-05-18 Tim Coleman - * System.Data/DataRow.cs: Try to reduce memory - usage by only creating the original and proposed - arrays as required in BeginEdit, and then destroying - proposed during EndEdit, and original during AcceptChanges. - * System.Data.Common/DbDataAdapter.cs: Make the - startRecord and maxRecords parameters work correctly. - -2002-05-18 Tim Coleman - * System.Data/DataRow.cs: Move the null check in - ItemArray set to above the Invalid Cast check, so - that we don't get null reference exceptions. - -2002-05-17 Daniel Morgan - - * System.Data.SqlClient/PostgresLibrary.cs: handle - data value from database being NULL - - * System.Data.SqlClient/SqlCommand.cs: for ExecuteReader, - allow multiple result sets. Added new internal class - SqlResult to pass result set data from SqlCommand - to SqlDataReader. - - * System.Data.SqlClient/SqlDataReader.cs: allow - multiple result sets. - - * System.Data.SqlClient/SqlConnection.cs: moved - things around. Implement IDisposable. - - * Test/TestSqlDataReader.cs: test for execution - of multiple result sets and display the results - of these multiple results sets - - * Test/TestSqlDataAdapter.cs: tweaks - -2002-05-17 Tim Coleman - * System.Data.Common/DbDataAdapter.cs: - - More implementation of Fill methods - - Get rid of isDirty flag, because we can just check - if the table exists - - Do *not* remove DataTables before Filling them - - Implicitly open the connection before doing a Fill - if it does not exist. - * System.Data.SqlClient/SqlDataAdapter.cs: - - Minor fixup - * System.Data/DataTableCollection.cs: - - Add DataSet to internal, undocumented constructor - - When a table is created, set its DataSet property - - Default table name for creation is "Table1" (see .NET) - - Inherit the ArrayList list from InternalDataCollecitonBase - and maintain a hashtable between table names and - DataTables - * System.Data/DataTable.cs: - - Add internal dataSet field. This is used by - DataTableCollection when the DataTable is constructed. - * System.Data/DataSet.cs: - - Pass a reference to the DataSet when constructing the - DataTableCollection. - -2002-05-16 Tim Coleman - * System.Data.Common/DbDataAdapter.cs: - Use table.Rows.Add (itemArray) instead of - table.Rows.Add (thisRow) to provide better - abstraction. - * System.Data/DataRowCollection.cs: - Some implementation of this class. - * System.Data/InternalDataCollectionBase.cs: - Some implementation. Most notably, this now - has an enumerator so we can use foreach (DataRow row in table.Rows) - in the test classes. - * System.Data/DataTable.cs: - Since DataRowCollection now accepts a DataTable in - its internal constructor, we must pass one in. - -2002-05-16 Daniel Morgan - - * Test/TestSqlDataAdapter.cs: added new test - for SqlDataAdapter, DataSet, DataTableCollection, DataTable, - DataRowCollection, and DataRow. It tests retrieving data - based on a SQL SELECT query. This test is based on Tim Coleman's - test he sent to me. - -2002-05-16 Tim Coleman - * System.Data.Common/DbDataAdapter.cs: - Use table.Rows.Add (thisRow) instead of - table.ImportRow (thisRow) - * System.Data/DataRowCollection.cs: - Construct the ArrayList before using it - -2002-05-16 Tim Coleman - * System.Data/DataTable.cs: - Construct the DataRowCollection in the DataTable - constructor. Otherwise, it's a null reference. - -2002-05-16 Tim Coleman - * System.Data.SqlClient/SqlDataReader.cs: - Modify GetValues to use Array.Copy() to copy - the results from fields to values, rather than - an assignment, which results in loss of data. - -2002-05-16 Tim Coleman - * System.Data/DataRow.cs: - More implementation and documentation. It should - work more like expected, although there is no way - to demonstrate this well yet. DataTable requires - more work. - -2002-05-15 Tim Coleman - * System.Data/DataRow.cs: - Minor tweaks as I determine exactly how to - implement this class. - - -2002-05-14 Duncan Mak - - * System.Data/DataTable.cs (NewRow): Added missing paren to fix build. - -2002-05-14 Tim Coleman - * System.Data/DataRow.cs: - * System.Data/DataRowBuilder.cs: - * System.Data/DataTable.cs: - More implementation of these classes. DataRow - can now (possibly) do some useful things. - Still not sure what DataRowBuilder is all about, - other than passing a DataTable in. - -2002-05-14 Tim Coleman - * System.Data/DataRowBuilder.cs: - Add stubb for this internal class. - -2002-05-13 Tim Coleman - * System.Data.Common/DbDataAdapter.cs: - The maxRecords check was not correct. - -2002-05-13 Tim Coleman - * System.Data/DataTableCollection.cs: - Fix an issue when adding a DataTable and size == 0. - Now explicitly checks if size > 0 before doing Array.Copy () - * System.Data.Common/DbDataAdapter.cs: - Move closer to a working implementation. - Make the IDbCommand fields protected so that they can - be inherited. - * System.Data.SqlClient/SqlDataAdapter.cs: - This should inherit the IDbCommands instead of having its - own. An explicit cast is used to force conversion between - IDbCommand and SqlCommand - -2002-05-13 Tim Coleman - * System.Data.Common/DataTableMappingCollection.cs: - Some implementation to allow progress with DbDataAdapter - -2002-05-13 Tim Coleman - * System.Data.Common/DbDataAdapter.cs: - Modify to not break compile. - -2002-05-13 Tim Coleman - * System.Data.build: - include SqlDataAdapter, SqlRowUpdatedEventArgs, - SqlRowUpdatingEventArgs, SqlRowUpdatedEventHandler, - SqlRowUpdatingEventHandler in the build. - -2002-05-13 Tim Coleman - * System.Data.Common/DbDataAdapter.cs: - More implementation. - * System.Data.Common/DataAdapter.cs: - Correction of some of the stubbing, as well as a - little bit more implementation - -2002-05-11 Tim Coleman - * System.Data.SqlClient/SqlDataAdapter.cs: - * System.Data.Common/DbDataAdapter.cs: - Moved methods that weren't supposed to - be in SqlDataAdapter out. They should be implemented - in DbDataAdapter. - - -2002-05-11 Tim Coleman - * System.Data.SqlClient/SqlDataAdapter.cs: - some implementation of this class. Note - that none of the functionality has been - tested yet, but I felt it should be checked - in at this point as it compiles. - * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs: - * System.Data.SqlClient/SqlRowUpdatedEventArgs.cs: - Modified so that they will compile properly. - Needed to include SqlDataAdapter in the build. - -2002-05-11 Rodrigo Moya - - * System.Data/DataTable.cs (Clear): implemented. - (DataTable): removed repeated code in constructors, and call the - basic constructor from the others. - - * System.Data/DataColumn.cs: some tweaks. - - * System.Data/DataRow.cs (RowState): implemented. - (CancelEdit): set rowState property back to Unchanged. - (RejectChanges): call CancelEdit. - (Delete): set rowState to Deleted. - -2002-05-11 Daniel Morgan - - * System.Data.build: added copy of System.Data.dll to Test directory - for easy testing. Also, added clean for it too. - - * System.Data.SqlClient/PostgresLibrary.cs: changed setting of boolean - from PostgreSQL data type to .NET type. - - * System.Data.SqlClient/SqlDataReader.cs: beginnings - handling of a NULL value from the database - - * Test/PostgresTest.cs: added tests for NULL values retrieved - from the database - - * Test/ReadPostgresData.cs - * Test/TestExecuteScalar.cs - * Test/TestSqlDataReader.cs - * Test/TestSqlException.cs - * Test/TestSqlIsolationLevel.cs: updated tests to use databas user - "postgres". These tests may eventually be removed since they - are not flexible. - -2002-05-10 Rodrigo Moya - - * System.Data.build: removed reference to non-existant - TestDataColumn.cs file. - - * System.Data/DataSet.cs: added some implementation. - -2002-05-09 Daniel Morgan - - * System.Data.SqlClient/PostgresLibrary.cs: got - PostgreSQL data types time, date, timestamp (DateTime like) - mapped to .NET System.DateTime working based - on ISO DateTime formatting "YYYY-MM-DD hh:mi:ss.ms" - Also mapped pg type boolean to .net Boolean - - * SqlClient/SqlConnection.cs: run SQL command to set - Date style to ISO - - * Test/PostgresTest.cs: added test for an UPDATE SQL command, - added tests for aggregates min(), max(), sum(), count(). could - not get avg() to work due to some formatting error; someone claimed - that it was my locale settings. added tests for SELECT of columns - of type boolean, float, double, date, time, and timestamp. They - have not been fully tested, but its a start. - -2002-05-09 Tim Coleman - * System.Data.SqlTypes/SqlDecimal.cs: Implementations of - addition, subtraction, and multiplication for the - SqlDecimal type, as well as modification of some other - operations. More to come on this one. - -2002-05-08 Rodrigo Moya - - * Test/System.Data_test.build: excluded TestDataColumn, which - should be replaced with a nunit test. - - * Test/TestDataColumn.cs: added basic test for DataColumn.cs. - -2002-05-07 Tim Coleman - * SqlBinary.cs: - * SqlBoolean.cs: - * SqlByte.cs: - * SqlDateTime.cs: - * SqlDecimal.cs: - * SqlDouble.cs: - * SqlGuid.cs: - * SqlInt16.cs: - * SqlInt32.cs: - * SqlInt64.cs: - * SqlMoney.cs: - * SqlSingle.cs: - * SqlString.cs: - Fix the broken build I made before. Bad - me. - -2002-05-07 Tim Coleman - * SqlString.cs: - Fix a symantic error I made in SqlString - Equals where I copied and pasted wrongly - -2002-05-07 Tim Coleman - * INullable.cs: - * SqlBinary.cs: - * SqlBoolean.cs: - * SqlByte.cs: - * SqlCompareOptions.cs: - * SqlDateTime.cs: - * SqlDecimal.cs: - * SqlDouble.cs: - * SqlGuid.cs: - * SqlInt16.cs: - * SqlInt32.cs: - * SqlInt64.cs: - * SqlMoney.cs: - * SqlSingle.cs: - * SqlString.cs: - Implement CompareTo, Equals, and String conversions - for many types - -2002-05-05 Daniel Morgan - - * Test/PostgresTest.cs: modified to run completely. There - are many TODOs in System.Data, so not all data types are - included in the SELECT SQL query. Also, I made it to where - it would connect - using "host=localhost;dbname=test;user=postgres" - instead of my userid and password. When more types are included, - update this test. - -2002-05-05 Daniel Morgan - - * Test/PostgresTest.cs: added - ported - libgda postgres-test.c originally by - Gonzalo Paniagua Javier - to C#. - -2002-05-05 Tim Coleman - * System.Data.SqlTypes/SqlBinary.cs: - * System.Data.SqlTypes/SqlBoolean.cs: - * System.Data.SqlTypes/SqlByte.cs: - * System.Data.SqlTypes/SqlDateTime.cs: - * System.Data.SqlTypes/SqlDecimal.cs: - * System.Data.SqlTypes/SqlDouble.cs: - * System.Data.SqlTypes/SqlGuid.cs: - * System.Data.SqlTypes/SqlInt16.cs: - * System.Data.SqlTypes/SqlInt32.cs: - * System.Data.SqlTypes/SqlInt64.cs: - * System.Data.SqlTypes/SqlMoney.cs: - * System.Data.SqlTypes/SqlSingle.cs: - * System.Data.SqlTypes/SqlString.cs: - More implementation, and code clean-up for consistency. - Also, I had implemented many conversions as explicit - that should have been implicit. This should remove - many of the red X's and green pluses from the - System.Data.SqlTypes namespace. - -2002-05-05 Miguel de Icaza - - * System.Data/DataSet.cs: Remove [Serializable] attributes from - methods, those only apply to structs or classes. - - Stub out ISerializable, ISupportInitialize, and IListSource methods - - * System.Data/DataRowView.cs: Stub out interface methods for - IEditableObject, ICustomTypeDescriptor and IDataErrorInfo - - * System.Data/DataView.cs: Comment out non-implemented - interfaces. - - * System.Data/DataViewSettingsCollection.cs: Type cast variables - to the correct type to make it compile. - - * System.Data/DataViewSettings.cs: remove reference to - non-existance type ApplyDefaultSort, it is a boolean. - - -2002-05-05 Tim Coleman - * System.Data.SqlTypes/SqlBinary.cs: - * System.Data.SqlTypes/SqlBoolean.cs: - * System.Data.SqlTypes/SqlByte.cs: - * System.Data.SqlTypes/SqlDecimal.cs: - * System.Data.SqlTypes/SqlDouble.cs: - * System.Data.SqlTypes/SqlGuid.cs: - * System.Data.SqlTypes/SqlInt16.cs: - * System.Data.SqlTypes/SqlInt32.cs: - * System.Data.SqlTypes/SqlInt64.cs: - * System.Data.SqlTypes/SqlMoney.cs: - * System.Data.SqlTypes/SqlSingle.cs: - * System.Data.SqlTypes/SqlString.cs: - Various fixes, including adding the SqlNullValueException - when trying to retrieve the value of a null SqlType, - and when casting values, a Null of type A converts to a - Null of type B. - -2002-05-04 Daniel Morgan - - * System.Data.SqlClient/PostgresLibrary.cs - * System.Data.SqlClient/SqlCommand.cs - * System.Data.SqlClient/SqlConnection.cs - * System.Data.SqlClient/SqlDataReader.cs - oid should not be hard coded because they - can change from one version of PostgreSQL - to the next. Use the typname's instead. - The PostgreSQL type data retrieves - at database connection time. Any unimplemented - types just default to string. These were things - suggested by Gonzalo. - - * Test/ReadPostgresData.cs - stuff - * Test/TestSqlDataReader.cs - stuff - - * System.Data.SqlTypes/SqlInt32.cs - added a using - -2002-05-03 Tim Coleman - * System.Data.build: Fix the build so that test depends on build - -2002-05-03 Tim Coleman - * System.Data.SqlTypes/SqlByte.cs: - * System.Data.SqlTypes/SqlDateTime.cs: - * System.Data.SqlTypes/SqlDecimal.cs: - * System.Data.SqlTypes/SqlDouble.cs: - * System.Data.SqlTypes/SqlGuid.cs: - * System.Data.SqlTypes/SqlInt16.cs: - * System.Data.SqlTypes/SqlInt64.cs: - * System.Data.SqlTypes/SqlMoney.cs: - * System.Data.SqlTypes/SqlSingle.cs: - These files were mysteriously excluded from the last - patch I made and sent to Rodrigo - * System.Data.build: include the System.Data.SqlTypes in the build - -2002-05-03 Daniel Morgan - - * System.Data.build: removed comments - - * System.Data.SqlClient/PostgresLibrary.cs: changed - the hard-coded PostgreSQL oid type int's to using an - enum. Also, added PostgreSQL bpchar (character) type. - - * Test/TestSqlDataReader.cs: updated test - to include new bpchar PostgreSQL type - -2002-05-03 Rodrigo Moya - - * System.Data.SqlTypes/SqlBinary.cs: - * System.Data.SqlTypes/SqlBoolean.cs: - * System.Data.SqlTypes/SqlInt32.cs: - * System.Data.SqlTypes/SqlString.cs: more implementation, by - Tim Coleman . - -2002-05-03 Daniel Morgan - - * Test/TestExecuteScalar.cs: added test for - method ExecuteScalar in class SqlCommand. - - * System.Data/DataColumnCollection.cs - it should - inherit properties from base InternalDataCollectionBase - and use them instead of overriding them, such as, List. - - * System.Data/DataColumn.cs - * System.Data/DataTable.cs: tweaks to retrieve - meta data from the database - - * System.Data.SqlClient/PostgresLibrary.cs - - added method OidToType to convert PostgreSQL oid type - to System.Type. Renamed method OidTypeToSystem - to ConvertPgTypeToSystem for converting the data value - from a PostgreSQL type to a .NET System type. - - * System.Data.SqlClient/SqlCommand.cs: implemented - method ExecuteReader which returns a SqlDataReader - for a light forward only read only result set. - It works on types int4 ==> Int32 and - varchar ==> String. Other types - will come later. - - * System.Data.SqlClient/SqlConnection.cs: added comment - - * System.Data.SqlClient/SqlDataReader.cs: implemented - class. It works, but still lots to do. - - * Test/ReadPostgresData.cs: stuff - - * Test/TestSqlDataReader.cs: updated test for SqlDataReader - to display meta data and the data - -2002-05-03 Duncan Mak - - * TODO: Took out all the Exceptions. They should be all done now. - - * System.Data/ConstraintException.cs: - * System.Data/DBConcurrencyException.cs: - * System.Data/DataException.cs: - * System.Data/DeletedRowInaccessibleException.cs: - * System.Data/DuplicateNameException.cs: - * System.Data/EvaluateException.cs: - * System.Data/InRowChangingEventException.cs: - * System.Data/InvalidConstraintException.cs: - * System.Data/InvalidExpressionException.cs: - * System.Data/MissingPrimaryKeyException.cs: - * System.Data/NoNullAllowedException.cs: - * System.Data/ReadOnlyException.cs: - * System.Data/RowNotInTableException.cs: - * System.Data/StrongTypingException.cs: - * System.Data/SyntaxErrorException.cs: - * System.Data/TypeDataSetGeneratorException.cs: - * System.Data/VersionNotFoundException.cs: Added to CVS. - - * System.Data.SqlTypes/SqlNullValueException.cs: - * System.Data.SqlTypes/SqlTruncateException.cs: - * System.Data.SqlTypes/SqlTypeException.cs: Added to CVS. - -2002-05-02 Rodrigo Moya - - * System.Data/DataViewSettingCollection.cs: implemented. - - * System.Data/DataRowView.cs: new stubs. - - * System.Data.SqlTypes/SqlByte.cs: - * System.Data.SqlTypes/SqlDateTime.cs: - * System.Data.SqlTypes/SqlDecimal.cs: - * System.Data.SqlTypes/SqlDouble.cs: - * System.Data.SqlTypes/SqlGuid.cs: - * System.Data.SqlTypes/SqlInt16.cs: - * System.Data.SqlTypes/SqlInt64.cs: - * System.Data.SqlTypes/SqlMoney.cs: - * System.Data.SqlTypes/SqlSingle.cs: new stubs, contributed - by Tim Coleman - - * System.Data.build: excluded newly-added files. - -2002-05-02 Daniel Morgan - - * System.Data.SqlClient/PostgresLibrary.cs: included new - internal class that will be a helper class in using - PostgreSQL. PostgresLibrary is used for the - pinvoke methods to the PostgreSQL Client - native C library libpq while the class PostgresHelper - is used for wrapper or helper methods. It currently only - has one static method OidTypeToSystem in converting - PostgreSQL types to .NET System.s, such as, - a PostgreSQL int8 becomes a .NET System.Int64. - Only a few types have been added, such as, int2, - int4, int8, varchar, text, bool, and char. Other types - will come later. - - * System.Data.SqlClient/SqlCommand.cs: implemented - method ExecuteScalar which allows us to do aggregate - functions, such as, count, avg, min, max, and sum. We - also are able to retrieve the result, convert it to the .NET type - as an object. The user of the returned object must explicitly cast. - - * Test/ReadPostgresData.cs: updated sample - to help us learn to retrieve data in System.Data.SqlClient - classes - -2002-05-01 Daniel Morgan - - * System.Data.build: added /nowarn: nnnn arguments - so you will not get a ton of warnings. The warnings - being excluded are: 1595, 0067, 0109, 0169, and 0649 - -2002-05-01 Daniel Morgan - - * System.Data.build: modified to exclude more - files from the build - -2002-05-01 Rodrigo Moya - - * System.Data.SqlClient/SqlClientPermission.cs: added missing - 'using's. - - * System.Data/MergeFailedEventArgs.cs: new class, contributed - by John Dugaw . - - * System.Data.build: excluded new files from build. - -2002-04-29 Daniel Morgan - - * Test/ReadPostgresData.cs: added - Uses the - PostgresLibrary to retrieve a recordset. - This is not meant to be used in Production, but as a - learning aid in coding - class System.Data.SqlClient.SqlDataReader. - This sample does work. - - * Test/TestSqlDataReader.cs: added - used - to test SqlDataReader (does not work yet) - Forgot to add to ChangeLog on last commit. - -2002-04-28 Rodrigo Moya - - * System.Data/DataViewSetting.cs: new class. - -2002-04-28 Rodrigo Moya - - * System.Data/DataViewManager.cs: new class. - - * System.Data.SqlTypes/INullable.cs: properties for interfaces - don't have implementation. - - * System.Data.SqlTypes/SqlInt32.cs: - * System.Data.SqlTypes/SqlString.cs: - * System.Data.SqlTypes/SqlBoolean.cs: removed destructor, since - these are strctures. - - * System.Data.SqlClient/SqlClientPermissionAttribute.cs: added - missing 'using's. - -2002-04-28 Rodrigo Moya - - * System.Data/DataTableRelationCollection.cs: use 'new' keyword - for correctly hiding parent class' members. - (AddRange): use 'override' keyword on overriden method. - (Clear): likewise. - (Contains): likewise. - (IndexOf): likewise. - (OnCollectionChanged): likewise. - (OnCollectionChanging): likewise. - (RemoveCore): likewise. - - * System.Data/DataColumnCollection.cs: use 'new' keyword. - - * System.Data/DataSet.cs: added missing 'using's. - -2002-04-28 Rodrigo Moya - - * System.Data/DataSet.cs: - * System.Data/DataTableCollection.cs: - * System.Data/DataView.cs: compilation fixes on Linux. - -2002-04-28 Daniel Morgan - - * System.Data/DataRelation.cs - * System.Data/ForeignKeyConstraint.cs - * System.Data/UniqueConstraint.cs: added more stubs - - * System.Data/DataTableRelationCollection.cs: added back to cvs - and modified for compile errors. DataRelationCollection is an - abstract class and there must be a class that implements for - DataTable/DataSet. DataTableRelationCollection was changed - to an internal class. - - * System.Data.build: modified - new files added - also wanted to include files/classes in the build - so we can get a compilable forward read only result set. - It compiles now using csc/nant with warnings, but this - is a start for adding functionality for the result set. - Classes associated with/and DataSet are still excluded. - - * TODO: modified - updated to do list for System.Data - - * System.Data/Constraint.cs - * System.Data/ConstraintCollection.cs - * System.Data/DataRelationCollection.cs - * System.Data/DataRow.cs - * System.Data/DataRowChangeEventArgs.cs - * System.Data/DataRowCollection.cs - * System.Data/DataTable.cs - * System.Data/DataTableCollection.cs - * System.Data/InternalDataCollectionBase.cs - * System.Data/PropertyCollection.cs: modified - - changes to compile SqlDataReader/DataTable and - dependencies - - * System.Data/IDbCommand.cs - * System.Data.SqlClient/SqlCommand.cs: modified - - un-commented overloaded methods ExecuteReader - which returns a SqlDataReader - -2002-04-28 Rodrigo Moya - - * System.Data/DataTableCollection.cs: more implementation. - (Count): added 'override' keyword, as pointer out by Martin. - - * System.Data.Common/DataColumnMappingCollection.cs (Add, AddRange): - only call Array.Copy when there is really stuff to be copied. - (CopyTo): don't create the temporary array, it's not needed. - - * System.Data.build: excluded newly added file from build. - -2002-04-27 Rodrigo Moya - - * System.Data/DataTableRelationCollection.cs: removed, it's not - on MS SDK documentation. - - * System.Data/DataTableCollection.cs: new class. - -2002-04-27 Daniel Morgan - - * System.Data/DataRowChangeEventArgs.cs - * System.Data/DataRowCollection.cs - * System.Data/DataView.cs - * System.Data/PropertyCollection.cs: added new stubs - - * System.Data.build: modified - added new files to exclude - from build - - * TODO: modified - removed files from TODO list - that were stubbed above - - * System.Data/DataColumn.cs - * System.Data/DataRow.cs: modified - various tweaks - and added internal method SetTable to set the reference - to a DataTable - - * System.Data/DataSet.cs: modified - class was not - completely stubbed. - - * System.Data/DataTable.cs: modified - temporarily commented - DataSet and DataView references - trying to compile a SqlDataReader, - DataTable, and dependencies for a forward read-only result set. - SqlDataAdapter, DataSet, and DataView will come later once we can get - a forward read only result set working. - - * System.Data/IDataRecord.cs: modified - source code lines should - not be > 80 - - * System.Data/InternalDataCollectionBase.cs: modified - started - implementing this base class for collection of data rows, - columns, tables, relations, and constraints - - * System.Data.SqlClient/SqlException.cs: modified - - call base(message) so a unhandled exception displays - the message of a SQL error instead of the - default SystemException message - - * Test/TestSqlException.cs: modified - - handle the rollback properly for a SqlException on a - failure to connect - -2002-04-23 Daniel Morgan - - * System.Data.build: modified - added new - files to exclude from build - - * System.Data/Constraint.cs - * System.Data/ConstraintCollection.cs - * System.Data/InternalDataCollectionBase.cs: added - - stubs which are needed to build DataTable.cs - - * TODO: modified - added more classes TODO and - added more stuff TODO, such as, create script - to create test database monotestdb for testing - classes in System.Data - -2002-04-23 Rodrigo Moya - - * System.Data.Common/DataAdapter.cs: - * System.Data.Common/DataColumnMappingCollection.cs: - * System.Data.Common/DataTableMappingCollection.cs: - * System.Data.Common/DbDataPermission.cs: - * System.Data.Common/DbDataPermissionAttribute.cs: some - compilation errors fixed. - -2002-04-23 Daniel Morgan - - * TODO: modified - added classes TODO, and - a poor attempt at System.Data plan - -2002-04-23 Daniel Morgan - - * ChangeLog: modified - put tabs where they belong - - * System.Data.SqlClient/SqlDataReader.cs - * System.Data/DataColumn.cs: modified - compile errors - trying to compile SqlDataAdapter and dependencies - -2002-04-23 Daniel Morgan - - * System.Data.SqlTypes/SqlBoolean.cs - * System.Data.SqlTypes/SqlCompareOptions.cs - * System.Data.SqlTypes/SqlInt32.cs - * System.Data.SqlTypes/SqlString.cs: added - new stubs - - * System.Data/DataTable.cs - * System.Data.SqlClient/SqlCommand.cs - * System.Data.SqlClient/SqlConnection.cs - * System.Data.SqlClient/SqlError.cs - * System.Data.SqlClient/SqlTransaction.cs: modified - - misc. tweaks - - * System.Data.SqlClient/SqlException.cs: modified - - missing Message on indexer for Message property - -2002-04-21 Daniel Morgan - - * System.Data.SqlClient/SqlCommand.cs: modified - to - compile using mcs. This problem is - returning a stronger type in csc vs. msc - - * System.Data.SqlClient/SqlConnection.cs: modified - msc - can not do a using PGconn = IntPtr; and then declare - with PGconn pgConn = IntPtr.Zero; - Thiw works under csc though. Had to comment using and - changed declaration to IntPtr pgConn = IntPtr.Zero; - Also, got rid of compile warnings for hostaddr and port. - - * System.Data.SqlClient/SqlErrorCollection.cs: modified - got - rid of compile warnings. Commented MonoTODO attribute because mcs - doesn't seem to work with C# array property indexer (Item) - this[int index] - - * System.Data.SqlClient/SqlParameterCollection.cs: modified - - commented MonoTODO attribute for indexer for mcs compiling - - * Test/TestSqlIsolationLevel.cs: - * Test/TestSqlInsert.cs: - * Test/TestSqlException.cs: modified - - removed extra ExecuteNonQuery which caused two inserted rows - -2002-04-20 Daniel Morgan - - * System.Data/StateChangeEventArgs.cs - added - needed to compile System.Data.dll with mcs. - -2002-04-20 Daniel Morgan - - * System.Data.OleDb: added directory - for OleDb database - provider classes - - * System.Data.SqlClient/SqlClientPermission.cs - * System.Data.SqlClient/SqlClientPermissionAttribute.cs - * System.Data.SqlClient/SqlCommandBuilder.cs - * System.Data.SqlClient/SqlInfoMessageEventHandler.cs - * System.Data.SqlClient/SqlRowUpdatedEventArgs.cs - * System.Data.SqlClient/SqlRowUpdatedEventHandler.cs - * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs - * System.Data.SqlClient/SqlRowUpdatingEventHandler.cs - * Test/TestSqlException.cs - * Test/TestSqlIsolationLevel.cs: added - more tests - - * System.Data.build: modified - added new files - excludes these too - - * System.Data.SqlClient/PostgresLibrary.cs - modified - comment - - * System.Data.SqlClient/SqlConnection.cs - * System.Data.SqlClient/SqlCommand.cs - * System.Data.SqlClient/SqlTransaction.cs - * System.Data.SqlClient/SqlException.cs - * System.Data.SqlClient/SqlErrorCollection.cs - * System.Data.SqlClient/SqlError.cs: modified - transaction and - exception/error handling. SqlConnection(connectionString) - constructor should not automatically connect. - - * System.Data.SqlClient/SqlDataReader.cs - * System.Data.SqlClient/SqlDataAdapter.cs - * System.Data.SqlClient/SqlParameter.cs - * System.Data.SqlClient/SqlParameterCollection.cs: modified - - added using System.ComponentModel; - - * Test/TestSqlInsert.cs: modified - to use transaction - -2002-04-17 Rodrigo Moya - - * System.Data/DataRow.cs: new skeletons. - - * System.Data.Common/DataAdapter.cs: - * System.Data.Common/DataColumnMapping.cs: - * System.Data.Common/DataColumnMappingCollection.cs: - * System.Data.Common/DataTableMapping.cs: - * System.Data.Common/DataTableMappingCollection.cs: - * System.Data.Common/DbDataAdapter.cs: - * System.Data.Common/RowUpdatedEventArgs.cs: - * System.Data.SqlClient/SqlDataAdapter.cs: - * System.Data.SqlClient/SqlInfoMessageEventArgs.cs: compilation - fixes for Linux. - - * System.Data.Common/DbDataRecord.cs: - * System.Data.Common/DbEnumerator.cs: removed MS implementation - internal classes. - -2002-04-17 Daniel Morgan - - * Test/TestSqlInsert.cs: modified - do - a SQL DELETE before SQL INSERT of row so you can use this - test over and over. - - * System.Data.SqlClient/SqlTransaction.cs: modified - default - IsolationLevel for PostgreSQL is ReadCommitted. However, - PostgreSQL allows Serializable as well. - (Thanks to Gonzalo for that!) - - * System.Data.SqlClient/SqlConnection.cs: modified - * System.Data.SqlClient/SqlCommand.cs: modified - * System.Data.SqlClient/SqlTransaction.cs: modified - got transactions - working; however, we still need to implement SQL errors - and exceptions to properly handle transactions. Also, added - status and error message support from the PostgreSQL database. - Currently, this does a Console.WriteLine() to display the - status and error messages, but this is a TODO - for SQL errors and exceptions. - - * System.Data/TODOAttribute.cs: added - needed MonoTODO - attribute for System.Data.dll assembly - - * System.Data/IDbCommand.cs: modified - commented - overloaded method ExecuteReader - so System.Data.SqlClient.SqlCommand can compile - - * System.Data/IDbCommand.cs: modified - * System.Data/IDbConnection.cs: modified - added using System; - * System.Data/IDataParameter.cs - - * System.Data.build: modified - build classes - in System.Data.SqlClient and exclude others in System.Data - - * System.Data.SqlClient/PostgresLibrary.cs: modified - change - parameter data type from IntPtr to enum ExecStatusType - - * ChangeLog: modified - corrected previous entries in log - -2002-04-16 Rodrigo Moya - - * System.Data.Common/DataColumnMappingCollection.cs: added basic - implementation. Still missing some stuff. - -2002-04-16 Daniel Morgan - - * System.Data.SqlClient/SqlConnection.cs: modified - got - to compile, run, and connect to PostgreSQL database - - * System.Data.SqlClient/SqlCommand.cs: modified - got - to compile, run, and execute a SQL INSERT command - which successfully inserted a row - into the PostgreSQL database - - * System.Data.SqlClient/SqlTransaction.cs: modified - * System.Data.SqlClient/SqlParameter.cs: modified - * System.Data.SqlClient/SqlParameterCollection.cs: modified - * System.Data.SqlClient/SqlError.cs: modified - * System.Data.SqlClient/SqlErrorCollection.cs: modified - * System.Data.SqlClient/SqlException.cs: modified - * System.Data.SqlClient/PostgresLibrary.cs: modified - to compile - - * System.Data.SqlClient/SqlAdapter: modified - * System.Data.SqlClient/SqlReader: modified - add more stubs - -2002-04-16 Daniel Morgan - - * Test/TestSqlInsert.cs: added - -2002-04-15 Daniel Morgan - - * System.Data.SqlClient/SqlInfoMessageEventArgs.cs: added - using in - class SqlConnecition - * System.Data.SqlClient/SqlErrorCollection.cs: added - * System.Data.SqlClient/SqlErrors.cs: removed - no such class SqlErrors - -2002-04-15 Christopher Podurgiel - - * System.Data.IDbDataParameter: Added Interface to IDataParameter. - * System.Data.IDbTransaction: Added Interface to IDisposable. - * System.Data.IDbCommand: Fixed Capitalization of class name. - * System.Data.IDbConnection: Fixed Capitalization of class name. - -2002-04-15 Rodrigo Moya - - * System.Data.Common/DbDataPermissionAttribute.cs: - * System.Data.Common/DataAdapter.cs: - * System.Data.Common/DataColumnMapping.cs: - * System.Data.Common/DbDataPermission.cs: added some implementation. - -2002-04-15 Rodrigo Moya - - * System.Data.SqlClient/SqlConnection.cs: fixed constructor chaining - syntax, as pointed out by Levent Camlibel. - -2002-04-14 Rodrigo Moya - - * System.Data.SqlTypes/SqlBinary.cs: - * System.Data.SqlTypes/INullable.cs: new skeletons. - -2002-04-14 Daniel Morgan - - * System.Data.SqlClient/PostgresLibrary.cs: new internal class, which - contains all calls the the PostgreSQL client library, to be used - everywhere in System.Data.SqlClient. - -2002-03-30 Rodrigo Moya - - * System.Data.SqlClient/SqlConnection.cs: implemented basic - constructors. - - * System.Data.SqlTypes/SqlNullValueException.cs: new skeletons. - -2002-03-29 Rodrigo Moya - - * System.Data.Common/DbDataRecord.cs: - * System.Data.Common/DbEnumerator.cs: - * System.Data.Common/RowUpdatedEventArgs.cs: - * System.Data.Common/RowUpdatingEventArgs.cs: - * System.Data.Common/DbDataPermissionAttribute.cs: new skeletons. - -2002-03-28 Rodrigo Moya - - * System.Data.Common/DataTableMappingCollection.cs: - * System.Data.Common/DbDataAdapter.cs: - * System.Data.Common/DbDataPermission.cs: - * System.Data.Common/DataTableMapping.cs: new skeletons. - - * System.Data.SqlClient/SqlDataAdapter.cs: - * System.Data.SqlClient/SqlDataReader.cs: - * System.Data.SqlClient/SqlErrors.cs: - * System.Data.SqlClient/SqlError.cs: - * System.Data.SqlClient/SqlException.cs: - * System.Data.SqlClient/SqlParameter.cs: - * System.Data.SqlClient/SqlParameterCollection.cs: - * System.Data.SqlClient/SqlTransaction.cs: - * System.Data.SqlClient/SqlCommand.cs: fixed skeletons. - -2002-03-27 Rodrigo Moya - - * System.Data.Common/DataColumnMapping.cs: - * System.Data.Common/DataColumnMappingCollection.cs: - * System.Data.Common/DataAdapter.cs: created skeletons. - - * System.Data.build: exclude new directories from build. - -2002-03-27 Rodrigo Moya - - * System.Data.SqlClient/SqlTransaction.cs: started implementation. - - * System.Data.SqlClient/SqlConnection.cs (BeginTransaction): - implemented (2 methods). - -2002-03-24 Duncan Mak - - * System.Data.build: Excluded System.Data.SqlClient from the build. - The stubs are incomplete and they are stopping the build. - - * System.Data.SqlClient/SqlCommand.cs: Replaced 'implements' with ':'. - -2002-03-24 Rodrigo Moya - - * System.Data.SqlClient/*: added skeletons for the SQL managed - provider for ADO.Net, to be based initially in PostgreSQL. - -2002-03-15 Christopher Podurgiel - - Changed the Namespace on some Enums from mono.System.Data to System.Data - -2002-03-01 Christopher Podurgiel - - * DataColumnCollection.cs : When an existing DataColumn is added, will now Assign a - default name if the ColumnName is null. - * DataSet.cs : Added - * DataTable.cs : Added - * DataRelationCollection.cs : Added - * DataTableRelationCollection.cs : Added - * DataColumn : Added - -2002-02-11 Christopher Podurgiel - - * DataColumnChangeEventArgs.cs : Added - * DataColumnCollection.cs : Added - -2002-02-10 Christopher Podurgiel - - * Removed *.cs from System.Data as the correct files are in mcs/class/System.Data/System.Data - * Updated all Enums, Interfaces, and Delegates in System.Data diff --git a/mcs/class/System.Data/System.Data.Common/ChangeLog b/mcs/class/System.Data/System.Data.Common/ChangeLog deleted file mode 100755 index f0950b30657f7..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/ChangeLog +++ /dev/null @@ -1,10 +0,0 @@ -2002-05-05 Miguel de Icaza - - * DataTableMapping.cs, DataTableMappingCollection.cs: comment out - interfaces we do not implement yet. - - * DbDataAdapter.cs: Stub IEnumerable, comment out interfaces - we do not implement yet. - - * DbDataPermissionAttribute.cs: call base constructor. - diff --git a/mcs/class/System.Data/System.Data.Common/DataAdapter.cs b/mcs/class/System.Data/System.Data.Common/DataAdapter.cs deleted file mode 100644 index 2ec749be1c0be..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DataAdapter.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// System.Data.Common.DataAdapter -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc -// Copyright (C) 2002 Tim Coleman -// - -using System.ComponentModel; -using System.Data; - -namespace System.Data.Common -{ - /// - /// Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source. - /// - public abstract class DataAdapter : Component, IDataAdapter - { - #region Fields - - private bool acceptChangesDuringFill; - private bool continueUpdateOnError; - private MissingMappingAction missingMappingAction; - private MissingSchemaAction missingSchemaAction; - private DataTableMappingCollection tableMappings; - - #endregion - - #region Constructors - - protected DataAdapter () - { - acceptChangesDuringFill = true; - continueUpdateOnError = false; - missingMappingAction = MissingMappingAction.Passthrough; - missingSchemaAction = MissingSchemaAction.Add; - tableMappings = new DataTableMappingCollection (); - } - - #endregion - - #region Properties - - public bool AcceptChangesDuringFill { - get { return acceptChangesDuringFill; } - set { acceptChangesDuringFill = value; } - } - - public bool ContinueUpdateOnError { - get { return continueUpdateOnError; } - set { continueUpdateOnError = value; } - } - - public MissingMappingAction MissingMappingAction { - get { return missingMappingAction; } - set { missingMappingAction = value; } - } - - public MissingSchemaAction MissingSchemaAction { - get { return missingSchemaAction; } - set { missingSchemaAction = value; } - } - - public DataTableMappingCollection TableMappings { - get { return tableMappings; } - } - - ITableMappingCollection IDataAdapter.TableMappings { - get { return TableMappings; } - } - - #endregion - - #region Methods - - - [MonoTODO] - protected virtual DataAdapter CloneInternals () - { - throw new NotImplementedException (); - } - - protected virtual DataTableMappingCollection CreateTableMappings () - { - tableMappings = new DataTableMappingCollection (); - return tableMappings; - } - - [MonoTODO] - protected override void Dispose (bool disposing) - { - throw new NotImplementedException (); - } - - public abstract int Fill (DataSet dataSet); - public abstract DataTable[] FillSchema (DataSet dataSet, SchemaType schemaType); - public abstract IDataParameter[] GetFillParameters (); - - [MonoTODO] - protected virtual bool ShouldSerializeTableMappings () - { - throw new NotImplementedException (); - } - - public abstract int Update (DataSet dataSet); - - #endregion - - } -} diff --git a/mcs/class/System.Data/System.Data.Common/DataColumnMapping.cs b/mcs/class/System.Data/System.Data.Common/DataColumnMapping.cs deleted file mode 100644 index b38f62532ec40..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DataColumnMapping.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// System.Data.Common.DataColumnMapping -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc -// - -using System.Data; - -namespace System.Data.Common -{ - /// - /// Contains a generic column mapping for an object that inherits from DataAdapter. This class cannot be inherited. - /// - public sealed class DataColumnMapping : MarshalByRefObject, IColumnMapping, ICloneable - { - private string srcColumn; - private string dsColumn; - - public DataColumnMapping () { - srcColumn = null; - dsColumn = null; - } - - public DataColumnMapping(string sc, string dc) { - srcColumn = sc; - dsColumn = dc; - } - - [MonoTODO] - public DataColumn GetDataColumnBySchemaAction ( - DataTable dataTable, - Type dataType, - MissingSchemaAction schemaAction) { - throw new NotImplementedException (); - } - - public string DataSetColumn { - get { - return this.dsColumn; - } - set { - this.dsColumn = value; - } - } - - [MonoTODO] - object ICloneable.Clone () - { - throw new NotImplementedException (); - } - - public string SourceColumn { - get { - return this.srcColumn; - } - set { - this.srcColumn = value; - } - } - } -} diff --git a/mcs/class/System.Data/System.Data.Common/DataColumnMappingCollection.cs b/mcs/class/System.Data/System.Data.Common/DataColumnMappingCollection.cs deleted file mode 100644 index cf3a7ac7a8f0d..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DataColumnMappingCollection.cs +++ /dev/null @@ -1,219 +0,0 @@ -// -// System.Data.Common.DataColumnCollection -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc -// - -using System; -using System.Collections; -using System.Data; - -namespace System.Data.Common -{ - /// - /// Contains a collection of DataColumnMapping objects. This class cannot be inherited. - /// - public sealed class DataColumnMappingCollection : MarshalByRefObject, IColumnMappingCollection , IList, ICollection, IEnumerable - { - #region Fields - - ArrayList list; - Hashtable sourceColumns; - Hashtable dataSetColumns; - - #endregion - - #region Constructors - - public DataColumnMappingCollection () - { - list = new ArrayList (); - sourceColumns = new Hashtable (); - dataSetColumns = new Hashtable (); - } - - #endregion - - #region Properties - - public int Count { - get { return list.Count; } - } - - public DataColumnMapping this[int index] { - get { return (DataColumnMapping)(list[index]); } - set { - DataColumnMapping mapping = (DataColumnMapping)(list[index]); - sourceColumns[mapping] = value; - dataSetColumns[mapping] = value; - list[index] = value; - } - } - - public DataColumnMapping this[string sourceColumn] { - get { return (DataColumnMapping)(sourceColumns[sourceColumn]); } - set { this[list.IndexOf (sourceColumns[sourceColumn])] = value; } - } - - object ICollection.SyncRoot { - get { return list.SyncRoot; } - } - - bool ICollection.IsSynchronized { - get { return list.IsSynchronized; } - } - - object IColumnMappingCollection.this[string sourceColumn] { - get { return this[sourceColumn]; } - set { - if (!(value is DataColumnMapping)) - throw new ArgumentException (); - this[sourceColumn] = (DataColumnMapping)value; - } - } - - object IList.this[int index] { - get { return this[index]; } - set { - if (!(value is DataColumnMapping)) - throw new ArgumentException (); - this[index] = (DataColumnMapping)value; - } - } - - bool IList.IsReadOnly { - get { return false; } - } - - bool IList.IsFixedSize { - get { return false; } - } - - - #endregion - - #region Methods - - public int Add (object value) - { - if (!(value is DataColumnMapping)) - throw new InvalidCastException (); - - list.Add (value); - sourceColumns[((DataColumnMapping)value).SourceColumn] = value; - dataSetColumns[((DataColumnMapping)value).DataSetColumn] = value; - return list.IndexOf (value); - } - - public DataColumnMapping Add (string sourceColumn, string dataSetColumn) - { - DataColumnMapping mapping = new DataColumnMapping (sourceColumn, dataSetColumn); - Add (mapping); - return mapping; - } - - public void AddRange (DataColumnMapping[] values) - { - foreach (DataColumnMapping mapping in values) - Add (mapping); - } - - public void Clear () - { - list.Clear (); - } - - public bool Contains (object value) - { - return (list.Contains (value)); - } - - public bool Contains (string value) - { - return (sourceColumns.Contains (value)); - } - - public void CopyTo (Array array, int index) - { - ((DataColumn[])(list.ToArray())).CopyTo (array, index); - } - - public DataColumnMapping GetByDataSetColumn (string value) - { - return (DataColumnMapping)(dataSetColumns[value]); - } - - public static DataColumnMapping GetColumnMappingBySchemaAction (DataColumnMappingCollection columnMappings, string sourceColumn, MissingMappingAction mappingAction) - { - if (columnMappings.Contains (sourceColumn)) - return columnMappings[sourceColumn]; - - if (mappingAction == MissingMappingAction.Ignore) - return null; - - if (mappingAction == MissingMappingAction.Error) - throw new SystemException (); - - return new DataColumnMapping (sourceColumn, sourceColumn); - } - - public IEnumerator GetEnumerator () - { - return list.GetEnumerator (); - } - - IColumnMapping IColumnMappingCollection.Add (string sourceColumnName, string dataSetColumnName) - { - return Add (sourceColumnName, dataSetColumnName); - } - - IColumnMapping IColumnMappingCollection.GetByDataSetColumn (string dataSetColumnName) - { - return GetByDataSetColumn (dataSetColumnName); - } - - public int IndexOf (object value) - { - return list.IndexOf (value); - } - - public int IndexOf (string sourceColumn) - { - return list.IndexOf (sourceColumns[sourceColumn]); - } - - public int IndexOfDataSetColumn (string value) - { - return list.IndexOf (dataSetColumns[value]); - } - - public void Insert (int index, object value) - { - list.Insert (index, value); - sourceColumns[((DataColumnMapping)value).SourceColumn] = value; - dataSetColumns[((DataColumnMapping)value).DataSetColumn] = value; - } - - public void Remove (object value) - { - sourceColumns.Remove(((DataColumnMapping)value).SourceColumn); - dataSetColumns.Remove(((DataColumnMapping)value).DataSetColumn); - list.Remove (value); - } - - public void RemoveAt (int index) - { - Remove (list[index]); - } - - public void RemoveAt (string sourceColumn) - { - RemoveAt (list.IndexOf (sourceColumns[sourceColumn])); - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.Common/DataTableMapping.cs b/mcs/class/System.Data/System.Data.Common/DataTableMapping.cs deleted file mode 100644 index 426406e958d39..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DataTableMapping.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// System.Data.Common.DataTableMapping.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc -// - -using System.Data; - -namespace System.Data.Common -{ - /// - /// Contains a description of a mapped relationship between a source table and a DataTable. This class is used by a DataAdapter when populating a DataSet. - /// - public sealed class DataTableMapping : MarshalByRefObject, ITableMapping, ICloneable - { - #region Fields - - string sourceTable; - string dataSetTable; - DataColumnMappingCollection columnMappings; - - #endregion - - #region Constructors - - public DataTableMapping () - { - dataSetTable = String.Empty; - sourceTable = String.Empty; - columnMappings = new DataColumnMappingCollection (); - } - - public DataTableMapping (string sourceTable, string dataSetTable) - : this () - { - this.sourceTable = sourceTable; - this.dataSetTable = dataSetTable; - } - - public DataTableMapping (string sourceTable, string dataSetTable, DataColumnMapping[] columnMappings) - : this (sourceTable, dataSetTable) - { - this.columnMappings.AddRange (columnMappings); - } - - #endregion - - #region Properties - - public DataColumnMappingCollection ColumnMappings { - get { return columnMappings; } - } - - public string DataSetTable { - get { return dataSetTable; } - set { dataSetTable = value; } - } - - public string SourceTable { - get { return sourceTable; } - set { sourceTable = value; } - } - - IColumnMappingCollection ITableMapping.ColumnMappings { - get { return ColumnMappings; } - } - - #endregion - - #region Methods - - public DataColumnMapping GetColumnMappingBySchemaAction (string sourceColumn, MissingMappingAction mappingAction) - { - return DataColumnMappingCollection.GetColumnMappingBySchemaAction (columnMappings, sourceColumn, mappingAction); - } - - [MonoTODO] - public DataTable GetDataTableBySchemaAction (DataSet dataSet, MissingSchemaAction schemaAction) - { - throw new NotImplementedException (); - } - - [MonoTODO] - object ICloneable.Clone () - { - throw new NotImplementedException (); - } - - public override string ToString () - { - return SourceTable; - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs b/mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs deleted file mode 100644 index 614b979a1b975..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs +++ /dev/null @@ -1,225 +0,0 @@ -// -// System.Data.Common.DataTableMappingCollection.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc -// Copyright (C) 2002 Tim Coleman -// - -using System; -using System.Collections; - -namespace System.Data.Common -{ - /// - /// A collection of DataTableMapping objects. This class cannot be inherited. - /// - public sealed class DataTableMappingCollection : MarshalByRefObject, ITableMappingCollection, IList, ICollection, IEnumerable - { - #region Fields - - ArrayList mappings; - Hashtable sourceTables; - Hashtable dataSetTables; - - #endregion - - #region Constructors - - public DataTableMappingCollection() - { - mappings = new ArrayList (); - sourceTables = new Hashtable (); - dataSetTables = new Hashtable (); - } - - #endregion - - #region Properties - - public int Count - { - get { return mappings.Count; } - } - - public DataTableMapping this[int index] { - get { return (DataTableMapping)(mappings[index]); } - set { - DataTableMapping mapping = (DataTableMapping)(mappings[index]); - sourceTables[mapping.SourceTable] = value; - dataSetTables[mapping.DataSetTable] = value; - mappings[index] = value; - } - } - - [MonoTODO] - public DataTableMapping this[string sourceTable] { - get { return (DataTableMapping)(sourceTables[sourceTable]); } - set { this[mappings.IndexOf(sourceTables[sourceTable])] = value; } - } - - - object IList.this[int index] { - get { return (object)(this[index]); } - set { - if (!(value is DataTableMapping)) - throw new ArgumentException (); - this[index] = (DataTableMapping)value; - } - } - - bool IList.IsReadOnly { - get { return false; } - } - - bool IList.IsFixedSize { - get { return false; } - } - - object ICollection.SyncRoot { - get { return mappings.SyncRoot; } - } - - bool ICollection.IsSynchronized { - get { return mappings.IsSynchronized; } - } - - object ITableMappingCollection.this[string sourceTable] { - get { return this[sourceTable]; } - set { - if (!(value is DataTableMapping)) - throw new ArgumentException (); - this[sourceTable] = (DataTableMapping)(value); - } - } - - #endregion - - #region Methods - - public int Add (object value) - { - if (!(value is System.Data.Common.DataTableMapping)) - throw new SystemException ("The object passed in was not a DataTableMapping object."); - - sourceTables[((DataTableMapping)value).SourceTable] = value; - dataSetTables[((DataTableMapping)value).DataSetTable] = value; - return mappings.Add (value); - } - - public DataTableMapping Add (string sourceTable, string dataSetTable) - { - DataTableMapping mapping = new DataTableMapping (sourceTable, dataSetTable); - Add (mapping); - return mapping; - } - - public void AddRange(DataTableMapping[] values) - { - foreach (DataTableMapping dataTableMapping in values) - this.Add (dataTableMapping); - } - - public void Clear() - { - sourceTables.Clear (); - dataSetTables.Clear (); - mappings.Clear (); - } - - public bool Contains (object value) - { - return mappings.Contains (value); - } - - public bool Contains (string value) - { - return sourceTables.Contains (value); - } - - [MonoTODO] - public void CopyTo(Array array, int index) - { - throw new NotImplementedException (); - } - - public DataTableMapping GetByDataSetTable (string dataSetTable) - { - return (DataTableMapping)(dataSetTables[dataSetTable]); - } - - public static DataTableMapping GetTableMappingBySchemaAction (DataTableMappingCollection tableMappings, string sourceTable, string dataSetTable, MissingMappingAction mappingAction) - { - if (tableMappings.Contains (sourceTable)) - return tableMappings[sourceTable]; - if (mappingAction == MissingMappingAction.Error) - throw new InvalidOperationException (); - if (mappingAction == MissingMappingAction.Ignore) - return null; - return new DataTableMapping (sourceTable, dataSetTable); - } - - public IEnumerator GetEnumerator () - { - return mappings.GetEnumerator (); - } - - public int IndexOf (object value) - { - return mappings.IndexOf (value); - } - - public int IndexOf (string sourceTable) - { - return IndexOf (sourceTables[sourceTable]); - } - - public int IndexOfDataSetTable (string dataSetTable) - { - return IndexOf ((DataTableMapping)(dataSetTables[dataSetTable])); - } - - [MonoTODO] - public void Insert (int index, object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - ITableMapping ITableMappingCollection.Add (string sourceTableName, string dataSetTableName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - ITableMapping ITableMappingCollection.GetByDataSetTable (string dataSetTableName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Remove (object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt (int index) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt (string index) - { - throw new NotImplementedException (); - } - - - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs b/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs deleted file mode 100644 index a6af3ff84abda..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs +++ /dev/null @@ -1,310 +0,0 @@ -// -// System.Data.Common.DbDataAdapter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc -// Copyright (C) 2002 Tim Coleman -// - -using System.Collections; -using System.Data; - -namespace System.Data.Common -{ - /// - /// Aids implementation of the IDbDataAdapter interface. Inheritors of DbDataAdapter implement a set of functions to provide strong typing, but inherit most of the functionality needed to fully implement a DataAdapter. - /// - public abstract class DbDataAdapter : DataAdapter, ICloneable - { - #region Fields - - public const string DefaultSourceTableName = "Table"; - - #endregion - - #region Constructors - - protected DbDataAdapter() - { - } - - #endregion - - #region Properties - - IDbCommand DeleteCommand { - get { return ((IDbDataAdapter)this).DeleteCommand; } - } - - IDbCommand InsertCommand { - get { return ((IDbDataAdapter)this).InsertCommand; } - } - - IDbCommand SelectCommand { - get { return ((IDbDataAdapter)this).SelectCommand; } - } - - - IDbCommand UpdateCommand { - get { return ((IDbDataAdapter)this).UpdateCommand; } - } - - #endregion - - #region Methods - - protected abstract RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping); - protected abstract RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping); - - [MonoTODO] - protected override void Dispose (bool disposing) - { - throw new NotImplementedException (); - } - - public override int Fill (DataSet dataSet) - { - return Fill (dataSet, DefaultSourceTableName); - } - - public int Fill (DataTable dataTable) - { - return Fill (dataTable.DataSet, dataTable.TableName); - } - - public int Fill (DataSet dataSet, string srcTable) - { - return Fill (dataSet, 0, 0, srcTable); - } - - protected virtual int Fill (DataTable dataTable, IDataReader dataReader) - { - return Fill (dataTable.DataSet, dataTable.TableName, dataReader, 0, 0); - } - - protected virtual int Fill (DataTable dataTable, IDbCommand command, CommandBehavior behavior) - { - return Fill (dataTable.DataSet, 0, 0, dataTable.TableName, command, behavior); - } - - public int Fill (DataSet dataSet, int startRecord, int maxRecords, string srcTable) - { - return this.Fill (dataSet, startRecord, maxRecords, srcTable, SelectCommand, CommandBehavior.Default); - } - - protected virtual int Fill (DataSet dataSet, string srcTable, IDataReader dataReader, int startRecord, int maxRecords) - { - if (startRecord < 0) - throw new ArgumentException ("The startRecord parameter was less than 0."); - if (maxRecords < 0) - throw new ArgumentException ("The maxRecords parameter was less than 0."); - - DataTable table; - int readCount = 0; - int resultCount = 0; - - string tableName = srcTable; - string baseColumnName; - string columnName; - ArrayList primaryKey; - bool resultsFound; - object[] itemArray; - DataTableMapping tableMapping; - - DataRow row; // FIXME needed for incorrect operation below. - - do - { - if (dataSet.Tables.Contains (tableName)) - table = dataSet.Tables[tableName]; - else - table = new DataTable (tableName); - - primaryKey = new ArrayList (); - - foreach (DataRow schemaRow in dataReader.GetSchemaTable ().Rows) - { - // generate a unique column name in the dataset table. - baseColumnName = (string)(schemaRow["BaseColumnName"]); - if (baseColumnName == "") - baseColumnName = "Column"; - - columnName = baseColumnName; - - for (int i = 1; table.Columns.Contains (columnName); i += 1) - columnName = String.Format ("{0}{1}", baseColumnName, i); - - - tableMapping = DataTableMappingCollection.GetTableMappingBySchemaAction (TableMappings, tableName, (string)(schemaRow["BaseTableName"]), MissingMappingAction); - - // check to see if the column mapping exists - if (tableMapping.ColumnMappings.IndexOfDataSetColumn (baseColumnName) < 0) - { - if (MissingSchemaAction == MissingSchemaAction.Error) - throw new SystemException (); - - table.Columns.Add (columnName, Type.GetType ((string)(schemaRow["DataType"]))); - tableMapping.ColumnMappings.Add (columnName, baseColumnName); - - } - - if (!TableMappings.Contains (tableMapping)) - TableMappings.Add (tableMapping); - - if ((schemaRow["IsKey"]).Equals(DBNull.Value) == false) - if ((bool)(schemaRow["IsKey"])) - primaryKey.Add (table.Columns[columnName]); - } - - if (MissingSchemaAction == MissingSchemaAction.AddWithKey && primaryKey.Count > 0) - table.PrimaryKey = (DataColumn[])(primaryKey.ToArray()); - - - for (int k = 0; k < startRecord; k += 1) - dataReader.Read (); - - resultsFound = false; - - itemArray = new object[dataReader.FieldCount]; - - while (dataReader.Read () && !(maxRecords > 0 && readCount >= maxRecords)) - { - dataReader.GetValues (itemArray); - row = table.Rows.Add (itemArray); - if (AcceptChangesDuringFill) - row.AcceptChanges (); - - /* FIXME - - this is the way it should be done, but LoadDataRow has not been implemented yet. - - table.BeginLoadData (); - table.LoadDataRow (itemArray, AcceptChangesDuringFill); - table.EndLoadData (); - */ - - readCount += 1; - resultsFound = true; - } - - if (resultsFound) - { - dataSet.Tables.Add (table); - tableName = String.Format ("{0}{1}", srcTable, ++resultCount); - } - - - startRecord = 0; - maxRecords = 0; - } while (dataReader.NextResult ()); - - dataReader.Close (); - return readCount; - } - - protected virtual int Fill (DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior) - { - if (command.Connection.State == ConnectionState.Closed) - { - command.Connection.Open (); - behavior |= CommandBehavior.CloseConnection; - } - - return this.Fill (dataSet, srcTable, command.ExecuteReader (behavior), startRecord, maxRecords); - } - - [MonoTODO] - public override DataTable[] FillSchema (DataSet dataSet, SchemaType schemaType) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DataTable FillSchema (DataTable dataTable, SchemaType schemaType) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DataTable[] FillSchema (DataSet dataSet, SchemaType schemaType, string srcTable) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual DataTable FillSchema (DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual DataTable[] FillSchema (DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IDataParameter[] GetFillParameters () - { - throw new NotImplementedException (); - } - - [MonoTODO] - object ICloneable.Clone () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int Update (DataRow[] dataRows) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override int Update (DataSet ds) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int Update (DataTable dt) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual int Update (DataRow[] row, DataTableMapping dtm) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int Update (DataSet ds, string s) - { - throw new NotImplementedException (); - } - - - - [MonoTODO] - protected virtual void OnFillError (FillErrorEventArgs value) - { - throw new NotImplementedException (); - } - - protected abstract void OnRowUpdated (RowUpdatedEventArgs value); - protected abstract void OnRowUpdating (RowUpdatingEventArgs value); - - #endregion - - #region Events - - public event FillErrorEventHandler FillError; - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs b/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs deleted file mode 100644 index 72f92da0d8a7d..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// System.Data.Common.DbDataAdapter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc -// - -using System.Security; -using System.Security.Permissions; - -namespace System.Data.Common -{ - /// - /// Provides the capability for a .NET data provider to ensure that a user has a security level adequate for accessing data. - /// - public abstract class DBDataPermission : CodeAccessPermission, - IUnrestrictedPermission - { - private bool allowBlankPassword; - private PermissionState permissionState; - - protected DBDataPermission () { - allowBlankPassword = false; - permissionState = PermissionState.None; - } - - protected DBDataPermission (PermissionState state) { - allowBlankPassword = false; - permissionState = state; - } - - public DBDataPermission (PermissionState state, bool abp) { - allowBlankPassword = abp; - permissionState = state; - } - - public override IPermission Copy () { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void FromXml (SecurityElement securityElement) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Intersect (IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override bool IsSubsetOf (IPermission target) { - throw new NotImplementedException (); - } - - public bool IsUnrestricted () { - if (permissionState == PermissionState.Unrestricted) - return true; - return false; - } - - [MonoTODO] - public override SecurityElement ToXml () { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Union (IPermission target) { - throw new NotImplementedException (); - } - - public bool AllowBlankPassword { - get { - return allowBlankPassword; - } - set { - allowBlankPassword = value; - } - } - } -} diff --git a/mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs b/mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs deleted file mode 100644 index 6968ba77ec36a..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -// System.Data.Common.DbDataPermissionAttribute.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc -// - -using System.Security.Permissions; - -namespace System.Data.Common -{ - /// - /// Associates a security action with a custom security attribute. - /// - public abstract class DBDataPermissionAttribute : CodeAccessSecurityAttribute - { - private SecurityAction securityAction; - private bool allowBlankPassword; - - protected DBDataPermissionAttribute (SecurityAction action) : base (action) { - securityAction = action; - allowBlankPassword = false; - } - - public bool AllowBlankPassword { - get { - return allowBlankPassword; - } - set { - allowBlankPassword = value; - } - } - } -} diff --git a/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs b/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs deleted file mode 100644 index ab3aebe4451bd..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// System.Data.Common.RowUpdatedEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc -// - -using System.Data; - -namespace System.Data.Common -{ - /// - /// Provides data for the RowUpdated event of a .NET data provider. - /// - public abstract class RowUpdatedEventArgs : EventArgs - { - [MonoTODO] - protected RowUpdatedEventArgs(DataRow dataRow, - IDbCommand command, - StatementType statementType, - DataTableMapping tableMapping) { - throw new NotImplementedException (); - } - - [MonoTODO] - public IDbCommand Command { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public Exception Errors { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public int RecordsAffected { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public DataRow Row { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public StatementType StatementType { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public UpdateStatus Status { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public DataTableMapping TableMapping { - get { throw new NotImplementedException (); } - } - } -} diff --git a/mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs b/mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs deleted file mode 100644 index 6d5eae65d84a1..0000000000000 --- a/mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// System.Data.Common.RowUpdatingEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc -// - -namespace System.Data.Common -{ - /// - /// Provides the data for the RowUpdating event of a .NET data provider. - /// - public abstract class RowUpdatingEventArgs : EventArgs - { - [MonoTODO] - protected RowUpdatingEventArgs(DataRow dataRow, - IDbCommand command, - StatementType statementType, - DataTableMapping tableMapping) { - throw new NotImplementedException (); - } - - [MonoTODO] - public IDbCommand Command { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public Exception Errors { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public DataRow Row { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public StatementType StatementType { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public UpdateStatus Status { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public DataTableMapping TableMapping { - get { throw new NotImplementedException (); } - } - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbCommand.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbCommand.cs deleted file mode 100644 index dffde2cf33a63..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbCommand.cs +++ /dev/null @@ -1,326 +0,0 @@ -// -// System.Data.OleDb.OleDbCommand -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Collections; -using System.Runtime.InteropServices; - -namespace System.Data.OleDb -{ - /// - /// Represents an SQL statement or stored procedure to execute against a data source. - /// - public sealed class OleDbCommand : Component, ICloneable, IDbCommand - { - #region Fields - - string commandText; - int timeout; - CommandType commandType; - OleDbConnection connection; - OleDbParameterCollection parameters; - OleDbTransaction transaction; - bool designTimeVisible; - OleDbDataReader dataReader; - CommandBehavior behavior; - IntPtr gdaCommand; - - #endregion // Fields - - #region Constructors - - public OleDbCommand () - { - commandText = String.Empty; - timeout = 30; // default timeout per .NET - commandType = CommandType.Text; - connection = null; - parameters = new OleDbParameterCollection (); - transaction = null; - designTimeVisible = false; - dataReader = null; - behavior = CommandBehavior.Default; - gdaCommand = IntPtr.Zero; - } - - public OleDbCommand (string cmdText) : this () - { - CommandText = cmdText; - } - - public OleDbCommand (string cmdText, OleDbConnection connection) - : this (cmdText) - { - Connection = connection; - } - - public OleDbCommand (string cmdText, - OleDbConnection connection, - OleDbTransaction transaction) : this (cmdText, connection) - { - this.transaction = transaction; - } - - #endregion // Constructors - - #region Properties - - public string CommandText - { - get { - return commandText; - } - set { - commandText = value; - } - } - - public int CommandTimeout { - get { - return timeout; - } - set { - timeout = value; - } - } - - public CommandType CommandType { - get { - return commandType; - } - set { - commandType = value; - } - } - - public OleDbConnection Connection { - get { - return connection; - } - set { - connection = value; - } - } - - public bool DesignTimeVisible { - get { - return designTimeVisible; - } - set { - designTimeVisible = value; - } - } - - public OleDbParameterCollection Parameters { - get { - return parameters; - } - set { - parameters = value; - } - } - - public OleDbTransaction Transaction { - get { - return transaction; - } - set { - transaction = value; - } - } - - public UpdateRowSource UpdatedRowSource { - [MonoTODO] - get { - throw new NotImplementedException (); - } - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - IDbConnection IDbCommand.Connection { - get { - return Connection; - } - set { - Connection = (OleDbConnection) value; - } - } - - IDataParameterCollection IDbCommand.Parameters { - get { - return Parameters; - } - } - - IDbTransaction IDbCommand.Transaction { - get { - return Transaction; - } - set { - Transaction = (OleDbTransaction) value; - } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public void Cancel () - { - throw new NotImplementedException (); - } - - public OleDbParameter CreateParameter () - { - return new OleDbParameter (); - } - - IDbDataParameter IDbCommand.CreateParameter () - { - return CreateParameter (); - } - - [MonoTODO] - protected override void Dispose (bool disposing) - { - throw new NotImplementedException (); - } - - private void SetupGdaCommand () - { - GdaCommandType type; - - switch (commandType) { - case CommandType.TableDirect : - type = GdaCommandType.Table; - break; - case CommandType.StoredProcedure : - type = GdaCommandType.Procedure; - break; - case CommandType.Text : - default : - type = GdaCommandType.Sql; - break; - } - - if (gdaCommand != IntPtr.Zero) { - libgda.gda_command_set_text (gdaCommand, commandText); - libgda.gda_command_set_command_type (gdaCommand, type); - } else { - gdaCommand = libgda.gda_command_new (commandText, type, 0); - } - - //libgda.gda_command_set_transaction - } - - public int ExecuteNonQuery () - { - if (connection == null) - throw new InvalidOperationException (); - if (connection.State == ConnectionState.Closed) - throw new InvalidOperationException (); - // FIXME: a third check is mentioned in .NET docs - - IntPtr gdaConnection = connection.GdaConnection; - IntPtr gdaParameterList = parameters.GdaParameterList; - - SetupGdaCommand (); - return libgda.gda_connection_execute_non_query (gdaConnection, - (IntPtr) gdaCommand, - gdaParameterList); - } - - public OleDbDataReader ExecuteReader () - { - return ExecuteReader (CommandBehavior.Default); - } - - IDataReader IDbCommand.ExecuteReader () - { - return ExecuteReader (); - } - - public OleDbDataReader ExecuteReader (CommandBehavior behavior) - { - ArrayList results = new ArrayList (); - IntPtr rs_list; - GdaList glist_node; - - if (connection.State != ConnectionState.Open) - throw new InvalidOperationException (); - - this.behavior = behavior; - - IntPtr gdaConnection = connection.GdaConnection; - IntPtr gdaParameterList = parameters.GdaParameterList; - - /* execute the command */ - SetupGdaCommand (); - rs_list = libgda.gda_connection_execute_command ( - gdaConnection, - gdaCommand, - gdaParameterList); - if (rs_list != IntPtr.Zero) { - glist_node = (GdaList) Marshal.PtrToStructure (rs_list, typeof (GdaList)); - - while (glist_node != null) { - results.Add (glist_node.data); - if (glist_node.next == IntPtr.Zero) - break; - - glist_node = (GdaList) Marshal.PtrToStructure (glist_node.next, - typeof (GdaList)); - } - dataReader = new OleDbDataReader (this, results); - dataReader.NextResult (); - } - - return dataReader; - } - - IDataReader IDbCommand.ExecuteReader (CommandBehavior behavior) - { - return ExecuteReader (behavior); - } - - public object ExecuteScalar () - { - SetupGdaCommand (); - OleDbDataReader reader = ExecuteReader (); - return reader.GetValue (0); - } - - [MonoTODO] - object ICloneable.Clone () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Prepare () - { - throw new NotImplementedException (); - } - - public void ResetCommandTimeout () - { - timeout = 30; - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbCommandBuilder.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbCommandBuilder.cs deleted file mode 100644 index bc43072474289..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbCommandBuilder.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// System.Data.OleDb.OleDbCommandBuilder -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - /// - /// Provides a means of automatically generating single-table commands used to reconcile changes made to a DataSet with the associated database. This class cannot be inherited. - /// - public sealed class OleDbCommandBuilder : Component - { - #region Fields - - OleDbDataAdapter adapter; - string quotePrefix; - string quoteSuffix; - - #endregion // Fields - - #region Constructors - - public OleDbCommandBuilder () - { - adapter = null; - quotePrefix = String.Empty; - quoteSuffix = String.Empty; - } - - public OleDbCommandBuilder (OleDbDataAdapter adapter) - : this () - { - this.adapter = adapter; - } - - #endregion // Constructors - - #region Properties - - public OleDbDataAdapter DataAdapter { - get { return adapter; } - set { adapter = value; } - } - - public string QuotePrefix { - get { return quotePrefix; } - set { quotePrefix = value; } - } - - public string QuoteSuffix { - get { return quoteSuffix; } - set { quoteSuffix = value; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public static void DeriveParameters (OleDbCommand command) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void Dispose (bool disposing) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public OleDbCommand GetDeleteCommand () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public OleDbCommand GetInsertCommand () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public OleDbCommand GetUpdatetCommand () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RefreshSchema () - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbConnection.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbConnection.cs deleted file mode 100644 index a172246bfc5e7..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbConnection.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// System.Data.OleDb.OleDbConnection -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbConnection : Component, ICloneable, IDbConnection - { - #region Fields - - string connectionString; - int connectionTimeout; - OleDbDataReader dataReader; - bool dataReaderOpen; - IntPtr gdaConnection; - - #endregion - - #region Constructors - - public OleDbConnection () - { - libgda.gda_init ("System.Data.OleDb", "1.0", 0, new string [0]); - gdaConnection = IntPtr.Zero; - connectionTimeout = 15; - connectionString = null; - } - - public OleDbConnection (string connectionString) : this () - { - this.connectionString = connectionString; - } - - #endregion // Constructors - - #region Properties - - public string ConnectionString { - get { - return connectionString; - } - set { - connectionString = value; - } - } - - public int ConnectionTimeout { - get { - return connectionTimeout; - } - } - - public string Database { - get { - if (gdaConnection != IntPtr.Zero - && libgda.gda_connection_is_open (gdaConnection)) { - return libgda.gda_connection_get_database (gdaConnection); - } - - return null; - } - } - - public string DataSource { - get { - if (gdaConnection != IntPtr.Zero - && libgda.gda_connection_is_open (gdaConnection)) { - return libgda.gda_connection_get_dsn (gdaConnection); - } - - return null; - } - } - - public string Provider { - get { - if (gdaConnection != IntPtr.Zero - && libgda.gda_connection_is_open (gdaConnection)) { - return libgda.gda_connection_get_provider (gdaConnection); - } - - return null; - } - } - - public string ServerVersion { - get { - if (gdaConnection != IntPtr.Zero - && libgda.gda_connection_is_open (gdaConnection)) { - return libgda.gda_connection_get_server_version (gdaConnection); - } - - return null; - } - } - - public ConnectionState State - { - get { - if (gdaConnection != IntPtr.Zero) { - if (libgda.gda_connection_is_open (gdaConnection)) - return ConnectionState.Open; - } - - return ConnectionState.Closed; - } - } - - internal IntPtr GdaConnection - { - get { - return gdaConnection; - } - } - - #endregion // Properties - - #region Methods - - public OleDbTransaction BeginTransaction () - { - if (gdaConnection != IntPtr.Zero) - return new OleDbTransaction (this); - - return null; - } - - IDbTransaction IDbConnection.BeginTransaction () - { - return BeginTransaction (); - } - - public OleDbTransaction BeginTransaction (IsolationLevel level) - { - if (gdaConnection != IntPtr.Zero) - return new OleDbTransaction (this, level); - - return null; - } - - IDbTransaction IDbConnection.BeginTransaction (IsolationLevel level) - { - return BeginTransaction (level); - } - - public void ChangeDatabase (string name) - { - if (gdaConnection == IntPtr.Zero) - throw new ArgumentException (); - if (State != ConnectionState.Open) - throw new InvalidOperationException (); - - if (!libgda.gda_connection_change_database (gdaConnection, name)) - throw new OleDbException (this); - } - - public void Close () - { - if (gdaConnection != IntPtr.Zero) { - libgda.gda_connection_close (gdaConnection); - gdaConnection = IntPtr.Zero; - } - } - - public OleDbCommand CreateCommand () - { - if (gdaConnection != IntPtr.Zero - && libgda.gda_connection_is_open (gdaConnection)) - return new OleDbCommand (null, this); - - return null; - } - - [MonoTODO] - protected override void Dispose (bool disposing) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DataTable GetOleDbSchemaTable (Guid schema, object[] restrictions) - { - throw new NotImplementedException (); - } - - [MonoTODO] - object ICloneable.Clone () - { - throw new NotImplementedException(); - } - - IDbCommand IDbConnection.CreateCommand () - { - return CreateCommand (); - } - - public void Open () - { - if (State == ConnectionState.Open) - throw new InvalidOperationException (); - - gdaConnection = libgda.gda_client_open_connection (libgda.GdaClient, - connectionString, - "", ""); - } - - [MonoTODO] - public static void ReleaseObjectPool () - { - throw new NotImplementedException (); - } - - #endregion - - #region Events and Delegates - - public event OleDbInfoMessageEventHandler InfoMessage; - public event StateChangeEventHandler StateChange; - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbDataAdapter.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbDataAdapter.cs deleted file mode 100644 index d148b2c8329d9..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbDataAdapter.cs +++ /dev/null @@ -1,179 +0,0 @@ -// -// System.Data.OleDb.OleDbDataAdapter -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbDataAdapter : DbDataAdapter, IDbDataAdapter - { - #region Fields - - OleDbCommand deleteCommand; - OleDbCommand insertCommand; - OleDbCommand selectCommand; - OleDbCommand updateCommand; - MissingMappingAction missingMappingAction; - MissingSchemaAction missingSchemaAction; - - static readonly object EventRowUpdated = new object (); - static readonly object EventRowUpdating = new object (); - - #endregion - - #region Constructors - - public OleDbDataAdapter () - : this (new OleDbCommand ()) - { - } - - public OleDbDataAdapter (OleDbCommand selectCommand) - { - DeleteCommand = new OleDbCommand (); - InsertCommand = new OleDbCommand (); - SelectCommand = selectCommand; - UpdateCommand = new OleDbCommand (); - } - - public OleDbDataAdapter (string selectCommandText, OleDbConnection selectConnection) - : this (new OleDbCommand (selectCommandText, selectConnection)) - { - } - - public OleDbDataAdapter (string selectCommandText, string selectConnectionString) - : this (selectCommandText, new OleDbConnection (selectConnectionString)) - { - } - - #endregion // Fields - - #region Properties - - public OleDbCommand DeleteCommand { - get { return deleteCommand; } - set { deleteCommand = value; } - } - - public OleDbCommand InsertCommand { - get { return insertCommand; } - set { insertCommand = value; } - } - - public OleDbCommand SelectCommand { - get { return selectCommand; } - set { selectCommand = value; } - } - - public OleDbCommand UpdateCommand { - get { return updateCommand; } - set { updateCommand = value; } - } - - IDbCommand IDbDataAdapter.DeleteCommand { - get { return DeleteCommand; } - set { - if (!(value is OleDbCommand)) - throw new ArgumentException (); - DeleteCommand = (OleDbCommand)value; - } - } - - IDbCommand IDbDataAdapter.InsertCommand { - get { return InsertCommand; } - set { - if (!(value is OleDbCommand)) - throw new ArgumentException (); - InsertCommand = (OleDbCommand)value; - } - } - - IDbCommand IDbDataAdapter.SelectCommand { - get { return SelectCommand; } - set { - if (!(value is OleDbCommand)) - throw new ArgumentException (); - SelectCommand = (OleDbCommand)value; - } - } - - MissingMappingAction IDataAdapter.MissingMappingAction { - get { return missingMappingAction; } - set { missingMappingAction = value; } - } - - MissingSchemaAction IDataAdapter.MissingSchemaAction { - get { return missingSchemaAction; } - set { missingSchemaAction = value; } - } - - IDbCommand IDbDataAdapter.UpdateCommand { - get { return UpdateCommand; } - set { - if (!(value is OleDbCommand)) - throw new ArgumentException (); - UpdateCommand = (OleDbCommand)value; - } - } - - ITableMappingCollection IDataAdapter.TableMappings { - get { return TableMappings; } - } - - #endregion // Properties - - #region Methods - - protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new OleDbRowUpdatedEventArgs (dataRow, command, statementType, tableMapping); - } - - protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new OleDbRowUpdatingEventArgs (dataRow, command, statementType, tableMapping); - } - - protected override void OnRowUpdated (RowUpdatedEventArgs value) - { - OleDbRowUpdatedEventHandler handler = (OleDbRowUpdatedEventHandler) Events[EventRowUpdated]; - if ((handler != null) && (value is OleDbRowUpdatedEventArgs)) - handler (this, (OleDbRowUpdatedEventArgs) value); - } - - protected override void OnRowUpdating (RowUpdatingEventArgs value) - { - OleDbRowUpdatingEventHandler handler = (OleDbRowUpdatingEventHandler) Events[EventRowUpdated]; - if ((handler != null) && (value is OleDbRowUpdatingEventArgs)) - handler (this, (OleDbRowUpdatingEventArgs) value); - } - - #endregion // Methods - - #region Events and Delegates - - public event OleDbRowUpdatedEventHandler RowUpdated { - add { Events.AddHandler (EventRowUpdated, value); } - remove { Events.RemoveHandler (EventRowUpdated, value); } - } - - public event OleDbRowUpdatedEventHandler RowUpdating { - add { Events.AddHandler (EventRowUpdating, value); } - remove { Events.RemoveHandler (EventRowUpdating, value); } - } - - #endregion // Events and Delegates - - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbDataReader.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbDataReader.cs deleted file mode 100644 index 4375949eb9deb..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbDataReader.cs +++ /dev/null @@ -1,503 +0,0 @@ -// -// System.Data.OleDb.OleDbDataReader -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; - -namespace System.Data.OleDb -{ - public sealed class OleDbDataReader : MarshalByRefObject, IDataReader, IDisposable, IDataRecord, IEnumerable - { - #region Fields - - private OleDbCommand command; - private bool open; - private ArrayList gdaResults; - private int currentResult; - private int currentRow; - - #endregion - - #region Constructors - - internal OleDbDataReader (OleDbCommand command, ArrayList results) - { - this.command = command; - open = true; - if (results != null) - gdaResults = results; - else - gdaResults = new ArrayList (); - currentResult = -1; - currentRow = -1; - } - - #endregion - - #region Properties - - public int Depth { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public int FieldCount { - get { - if (currentResult < 0 || - currentResult >= gdaResults.Count) - return 0; - - return libgda.gda_data_model_get_n_columns ( - (IntPtr) gdaResults[currentResult]); - } - } - - public bool IsClosed { - get { - return !open; - } - } - - public object this[string name] { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public object this[int index] { - get { - return (object) GetValue (index); - } - } - - public int RecordsAffected { - get { - int total_rows; - - if (currentResult < 0 || - currentResult >= gdaResults.Count) - return 0; - - total_rows = libgda.gda_data_model_get_n_rows ( - (IntPtr) gdaResults[currentResult]); - if (total_rows > 0) { - if (FieldCount > 0) { - // It's a SELECT statement - return -1; - } - } - - return FieldCount > 0 ? -1 : total_rows; - } - } - - #endregion - - #region Methods - - public void Close () - { - for (int i = 0; i < gdaResults.Count; i++) { - IntPtr obj = (IntPtr) gdaResults[i]; - libgda.FreeObject (obj); - gdaResults = null; - } - - gdaResults.Clear (); - - open = false; - currentResult = -1; - currentRow = -1; - } - - ~OleDbDataReader () - { - if (open) - Close (); - } - - public bool GetBoolean (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Boolean) - throw new InvalidCastException (); - return libgda.gda_value_get_boolean (value); - } - - public byte GetByte (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Tinyint) - throw new InvalidCastException (); - return libgda.gda_value_get_tinyint (value); - } - - [MonoTODO] - public long GetBytes (int ordinal, long dataIndex, byte[] buffer, int bufferIndex, int length) - { - throw new NotImplementedException (); - } - - public char GetChar (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Tinyint) - throw new InvalidCastException (); - return (char) libgda.gda_value_get_tinyint (value); - } - - [MonoTODO] - public long GetChars (int ordinal, long dataIndex, char[] buffer, int bufferIndex, int length) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public OleDbDataReader GetData (int ordinal) - { - throw new NotImplementedException (); - } - - public string GetDataTypeName (int index) - { - IntPtr attrs; - GdaValueType type; - - if (currentResult == -1) - return "unknown"; - - - attrs = libgda.gda_data_model_describe_column ((IntPtr) gdaResults[currentResult], - index); - if (attrs == IntPtr.Zero) - return "unknown"; - - type = libgda.gda_field_attributes_get_gdatype (attrs); - libgda.gda_field_attributes_free (attrs); - - return libgda.gda_type_to_string (type); - } - - public DateTime GetDateTime (int ordinal) - { - IntPtr value; - DateTime dt; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) == GdaValueType.Date) { - GdaDate gdt; - - gdt = (GdaDate) Marshal.PtrToStructure (libgda.gda_value_get_date (value), - typeof (GdaDate)); - return new DateTime ((int) gdt.year, (int) gdt.month, (int) gdt.day); - } else if (libgda.gda_value_get_vtype (value) == GdaValueType.Time) { - GdaTime gdt; - - gdt = (GdaTime) Marshal.PtrToStructure (libgda.gda_value_get_time (value), - typeof (GdaTime)); - return new DateTime (0, 0, 0, (int) gdt.hour, (int) gdt.minute, (int) gdt.second, 0); - } else if (libgda.gda_value_get_vtype (value) == GdaValueType.Timestamp) { - GdaTimestamp gdt; - - gdt = (GdaTimestamp) Marshal.PtrToStructure (libgda.gda_value_get_timestamp (value), - typeof (GdaTimestamp)); - - return new DateTime ((int) gdt.year, (int) gdt.month, (int) gdt.day, - (int) gdt.hour, (int) gdt.minute, (int) gdt.second, - (int) gdt.fraction); - } - - throw new InvalidCastException (); - } - - [MonoTODO] - public decimal GetDecimal (int ordinal) - { - throw new NotImplementedException (); - } - - public double GetDouble (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Double) - throw new InvalidCastException (); - return libgda.gda_value_get_double (value); - } - - [MonoTODO] - public Type GetFieldType (int index) - { - throw new NotImplementedException (); - } - - public float GetFloat (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Single) - throw new InvalidCastException (); - return libgda.gda_value_get_single (value); - } - - [MonoTODO] - public Guid GetGuid (int ordinal) - { - throw new NotImplementedException (); - } - - public short GetInt16 (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Smallint) - throw new InvalidCastException (); - return (short) libgda.gda_value_get_smallint (value); - } - - public int GetInt32 (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Integer) - throw new InvalidCastException (); - return libgda.gda_value_get_integer (value); - } - - public long GetInt64 (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.Bigint) - throw new InvalidCastException (); - return libgda.gda_value_get_bigint (value); - } - - public string GetName (int index) - { - if (currentResult == -1) - return null; - - return libgda.gda_data_model_get_column_title ( - (IntPtr) gdaResults[currentResult], index); - } - - public int GetOrdinal (string name) - { - if (currentResult == -1) - throw new IndexOutOfRangeException (); - - for (int i = 0; i < FieldCount; i++) { - if (GetName (i) == name) - return i; - } - - throw new IndexOutOfRangeException (); - } - - [MonoTODO] - public DataTable GetSchemaTable () - { - throw new NotImplementedException (); - } - - public string GetString (int ordinal) - { - IntPtr value; - - if (currentResult == -1) - throw new InvalidCastException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new InvalidCastException (); - - if (libgda.gda_value_get_vtype (value) != GdaValueType.String) - throw new InvalidCastException (); - return libgda.gda_value_get_string (value); - } - - [MonoTODO] - public TimeSpan GetTimeSpan (int ordinal) - { - throw new NotImplementedException (); - } - - public object GetValue (int ordinal) - { - IntPtr value; - GdaValueType type; - - if (currentResult == -1) - throw new IndexOutOfRangeException (); - - value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult], - ordinal, currentRow); - if (value == IntPtr.Zero) - throw new IndexOutOfRangeException (); - - type = libgda.gda_value_get_vtype (value); - switch (type) { - case GdaValueType.Bigint : return GetInt64 (ordinal); - case GdaValueType.Boolean : return GetBoolean (ordinal); - case GdaValueType.Date : return GetDateTime (ordinal); - case GdaValueType.Double : return GetDouble (ordinal); - case GdaValueType.Integer : return GetInt32 (ordinal); - case GdaValueType.Single : return GetFloat (ordinal); - case GdaValueType.Smallint : return GetByte (ordinal); - case GdaValueType.String : return GetString (ordinal); - case GdaValueType.Time : return GetDateTime (ordinal); - case GdaValueType.Timestamp : return GetDateTime (ordinal); - case GdaValueType.Tinyint : return GetByte (ordinal); - } - - return (object) libgda.gda_value_stringify (value); - } - - [MonoTODO] - public int GetValues (object[] values) - { - throw new NotImplementedException (); - } - - [MonoTODO] - IDataReader IDataRecord.GetData (int ordinal) - { - throw new NotImplementedException (); - } - - [MonoTODO] - void IDisposable.Dispose () - { - throw new NotImplementedException (); - } - - [MonoTODO] - IEnumerator IEnumerable.GetEnumerator () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool IsDBNull (int ordinal) - { - throw new NotImplementedException (); - } - - public bool NextResult () - { - int i = currentResult + 1; - if (i >= 0 && i < gdaResults.Count) { - currentResult++; - return true; - } - - return false; - } - - public bool Read () - { - if (currentResult < 0 || - currentResult >= gdaResults.Count) - return false; - - currentRow++; - if (currentRow < - libgda.gda_data_model_get_n_rows ((IntPtr) gdaResults[currentResult])) - return true; - - return false; - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbError.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbError.cs deleted file mode 100644 index b672820a0956d..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbError.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// System.Data.OleDb.OleDbError -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbError - { - private string errorMessage; - private int nativeError; - private string errorSource; - private string sqlState; - - #region Constructors - - internal OleDbError (string msg, int code, string source, string sql) - { - errorMessage = msg; - nativeError = code; - errorSource = source; - sqlState = sql; - } - - #endregion // Constructors - - #region Properties - - public string Message { - get { - return errorMessage; - } - } - - public int NativeError { - get { - return nativeError; - } - } - - public string Source { - get { - return errorSource; - } - } - - public string SqlState { - get { - return sqlState; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override string ToString () - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbErrorCollection.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbErrorCollection.cs deleted file mode 100644 index 8768459bc2edf..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbErrorCollection.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// System.Data.OleDb.OleDbErrorCollection -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbErrorCollection : ICollection, IEnumerable - { - #region Fields - - ArrayList list; - - #endregion // Fields - - #region Properties - - public int Count { - get { - return list.Count; - } - } - - public OleDbError this[int index] { - get { - return (OleDbError) list[index]; - } - } - - object ICollection.SyncRoot { - get { - return list.SyncRoot; - } - } - - bool ICollection.IsSynchronized { - get { - return list.IsSynchronized; - } - } - - #endregion // Properties - - #region Methods - - internal void Add (OleDbError error) - { - list.Add ((object) error); - } - - [MonoTODO] - public void CopyTo (Array array, int index) - { - ((OleDbError[])(list.ToArray ())).CopyTo (array, index); - throw new NotImplementedException (); - } - - public IEnumerator GetEnumerator () - { - return list.GetEnumerator (); - } - - IEnumerator IEnumerable.GetEnumerator () - { - return GetEnumerator (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbException.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbException.cs deleted file mode 100644 index ad66403bd7e34..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbException.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// System.Data.OleDb.OleDbException -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; - -namespace System.Data.OleDb -{ - [Serializable] - public sealed class OleDbException : ExternalException - { - private OleDbConnection connection; - - #region Constructors - - internal OleDbException (OleDbConnection cnc) - { - connection = cnc; - } - - #endregion // Constructors - - #region Properties - - public override int ErrorCode { - get { - GdaList glist; - IntPtr errors; - - errors = libgda.gda_connection_get_errors (connection.GdaConnection); - if (errors != IntPtr.Zero) { - glist = (GdaList) Marshal.PtrToStructure (errors, typeof (GdaList)); - return (int) libgda.gda_error_get_number (glist.data); - } - - return -1; - } - } - - public OleDbErrorCollection Errors { - get { - GdaList glist; - IntPtr errors; - OleDbErrorCollection col = new OleDbErrorCollection (); - - errors = libgda.gda_connection_get_errors (connection.GdaConnection); - if (errors != IntPtr.Zero) { - glist = (GdaList) Marshal.PtrToStructure (errors, typeof (GdaList)); - while (glist != null) { - col.Add (new OleDbError ( - libgda.gda_error_get_description (glist.data), - (int) libgda.gda_error_get_number (glist.data), - libgda.gda_error_get_source (glist.data), - libgda.gda_error_get_sqlstate (glist.data))); - glist = (GdaList) Marshal.PtrToStructure (glist.next, - typeof (GdaList)); - } - } - - return col; - } - } - - public override string Message { - get { - GdaList glist; - IntPtr errors; - string msg = ""; - - errors = libgda.gda_connection_get_errors (connection.GdaConnection); - if (errors != IntPtr.Zero) { - glist = (GdaList) Marshal.PtrToStructure (errors, typeof (GdaList)); - while (glist != null) { - msg = msg + ";" + libgda.gda_error_get_description (glist.data); - glist = (GdaList) Marshal.PtrToStructure (glist.next, - typeof (GdaList)); - } - - return msg; - } - - return null; - } - } - - public override string Source { - get { - GdaList glist; - IntPtr errors; - - errors = libgda.gda_connection_get_errors (connection.GdaConnection); - if (errors != IntPtr.Zero) { - glist = (GdaList) Marshal.PtrToStructure (errors, typeof (GdaList)); - return libgda.gda_error_get_source (glist.data); - } - - return null; - } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override void GetObjectData (SerializationInfo si, StreamingContext context) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventArgs.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventArgs.cs deleted file mode 100644 index 9c0b5fa89bf75..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventArgs.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// System.Data.OleDb.OleDbInfoMessageEventArgs -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbInfoMessageEventArgs : EventArgs - { - #region Properties - - public int ErrorCode { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public OleDbErrorCollection Errors { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public string Message { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public string Source { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override string ToString () - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventHandler.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventHandler.cs deleted file mode 100644 index 60fd9c9633930..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventHandler.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// System.Data.OleDb.OleDbInfoMessageEventHandler -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - [Serializable] - public delegate void OleDbInfoMessageEventHandler (object sender, OleDbInfoMessageEventArgs e); -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbLiteral.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbLiteral.cs deleted file mode 100644 index b9b2da42d27e1..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbLiteral.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// System.Data.OleDb.OleDbLiteral -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public enum OleDbLiteral { - Binary_Literal, - Catalog_Name, - Catalog_Separator, - Char_Literal, - Column_Alias, - Column_Name, - Correlation_Name, - Cube_Name, - Cursor_Name, - Dimension_Name, - Escape_Percent_Prefix, - Escape_Percent_Suffix, - Escape_Underscore_Prefix, - Escape_Underscore_Suffix, - Hierarchy_Name, - Index_Name, - Invalid, - Level_Name, - Like_Percent, - Like_Underscore, - Member_Name, - Procedure_Name, - Property_Name, - Quote_Prefix, - Quote_Suffix, - Schema_Name, - Schema_Separator, - Table_Name, - Text_Command, - User_Name, - View_Name - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs deleted file mode 100644 index fc9d2aa486149..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs +++ /dev/null @@ -1,364 +0,0 @@ -// -// System.Data.OleDb.OleDbParameter -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbParameter : MarshalByRefObject, IDbDataParameter, IDataParameter, ICloneable - { - #region Fields - - string name; - object value; - int size; - bool isNullable; - byte precision; - byte scale; - DataRowVersion sourceVersion; - string sourceColumn; - ParameterDirection direction; - OleDbType oleDbType; - DbType dbType; - - IntPtr gdaParameter; - - #endregion - - #region Constructors - - public OleDbParameter () - { - name = String.Empty; - value = null; - size = 0; - isNullable = true; - precision = 0; - scale = 0; - sourceColumn = String.Empty; - gdaParameter = IntPtr.Zero; - } - - public OleDbParameter (string name, object value) - : this () - { - this.name = name; - this.value = value; - OleDbType = GetOleDbType (value); - } - - public OleDbParameter (string name, OleDbType dataType) - : this () - { - this.name = name; - OleDbType = dataType; - } - - public OleDbParameter (string name, OleDbType dataType, int size) - : this (name, dataType) - { - this.size = size; - } - - public OleDbParameter (string name, OleDbType dataType, int size, string srcColumn) - : this (name, dataType, size) - { - this.sourceColumn = srcColumn; - } - - public OleDbParameter(string name, OleDbType dataType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string srcColumn, DataRowVersion srcVersion, object value) - : this (name, dataType, size, srcColumn) - { - this.direction = direction; - this.isNullable = isNullable; - this.precision = precision; - this.scale = scale; - this.sourceVersion = srcVersion; - this.value = value; - } - - #endregion - - #region Properties - - public DbType DbType { - get { return dbType; } - set { - dbType = value; - oleDbType = DbTypeToOleDbType (value); - } - } - - public ParameterDirection Direction { - get { return direction; } - set { direction = value; } - } - - public bool IsNullable { - get { return isNullable; } - } - - public OleDbType OleDbType { - get { return oleDbType; } - set { - oleDbType = value; - dbType = OleDbTypeToDbType (value); - } - } - - public string ParameterName { - get { return name; } - set { name = value; } - } - - public byte Precision { - get { return precision; } - set { precision = value; } - } - - public byte Scale { - get { return scale; } - set { scale = value; } - } - - public int Size { - get { return size; } - set { size = value; } - } - - public string SourceColumn { - get { return sourceColumn; } - set { sourceColumn = value; } - } - - public DataRowVersion SourceVersion { - get { return sourceVersion; } - set { sourceVersion = value; } - } - - public object Value { - get { return value; } - set { this.value = value; } - } - - #endregion // Properties - - #region Internal Properties - - internal IntPtr GdaParameter { - get { return gdaParameter; } - } - - #endregion // Internal Properties - - #region Methods - - [MonoTODO] - object ICloneable.Clone () - { - throw new NotImplementedException (); - } - - public override string ToString () - { - return ParameterName; - } - - private OleDbType DbTypeToOleDbType (DbType dbType) - { - switch (dbType) { - case DbType.AnsiString : - return OleDbType.VarChar; - case DbType.AnsiStringFixedLength : - return OleDbType.Char; - case DbType.Binary : - return OleDbType.Binary; - case DbType.Boolean : - return OleDbType.Boolean; - case DbType.Byte : - return OleDbType.UnsignedTinyInt; - case DbType.Currency : - return OleDbType.Currency; - case DbType.Date : - return OleDbType.Date; - case DbType.DateTime : - throw new NotImplementedException (); - case DbType.Decimal : - return OleDbType.Decimal; - case DbType.Double : - return OleDbType.Double; - case DbType.Guid : - return OleDbType.Guid; - case DbType.Int16 : - return OleDbType.SmallInt; - case DbType.Int32 : - return OleDbType.Integer; - case DbType.Int64 : - return OleDbType.BigInt; - case DbType.Object : - return OleDbType.Variant; - case DbType.SByte : - return OleDbType.TinyInt; - case DbType.Single : - return OleDbType.Single; - case DbType.String : - return OleDbType.WChar; - case DbType.StringFixedLength : - return OleDbType.VarWChar; - case DbType.Time : - throw new NotImplementedException (); - case DbType.UInt16 : - return OleDbType.UnsignedSmallInt; - case DbType.UInt32 : - return OleDbType.UnsignedInt; - case DbType.UInt64 : - return OleDbType.UnsignedBigInt; - case DbType.VarNumeric : - return OleDbType.VarNumeric; - } - return OleDbType.Variant; - } - - private DbType OleDbTypeToDbType (OleDbType oleDbType) - { - switch (oleDbType) { - case OleDbType.BigInt : - return DbType.Int64; - case OleDbType.Binary : - return DbType.Binary; - case OleDbType.Boolean : - return DbType.Boolean; - case OleDbType.BSTR : - return DbType.AnsiString; - case OleDbType.Char : - return DbType.AnsiStringFixedLength; - case OleDbType.Currency : - return DbType.Currency; - case OleDbType.Date : - return DbType.DateTime; - case OleDbType.DBDate : - return DbType.DateTime; - case OleDbType.DBTime : - throw new NotImplementedException (); - case OleDbType.DBTimeStamp : - return DbType.DateTime; - case OleDbType.Decimal : - return DbType.Decimal; - case OleDbType.Double : - return DbType.Double; - case OleDbType.Empty : - throw new NotImplementedException (); - case OleDbType.Error : - throw new NotImplementedException (); - case OleDbType.Filetime : - return DbType.DateTime; - case OleDbType.Guid : - return DbType.Guid; - case OleDbType.IDispatch : - return DbType.Object; - case OleDbType.Integer : - return DbType.Int32; - case OleDbType.IUnknown : - return DbType.Object; - case OleDbType.LongVarBinary : - return DbType.Binary; - case OleDbType.LongVarChar : - return DbType.AnsiString; - case OleDbType.LongVarWChar : - return DbType.String; - case OleDbType.Numeric : - return DbType.Decimal; - case OleDbType.PropVariant : - return DbType.Object; - case OleDbType.Single : - return DbType.Single; - case OleDbType.SmallInt : - return DbType.Int16; - case OleDbType.TinyInt : - return DbType.SByte; - case OleDbType.UnsignedBigInt : - return DbType.UInt64; - case OleDbType.UnsignedInt : - return DbType.UInt32; - case OleDbType.UnsignedSmallInt : - return DbType.UInt16; - case OleDbType.UnsignedTinyInt : - return DbType.Byte; - case OleDbType.VarBinary : - return DbType.Binary; - case OleDbType.VarChar : - return DbType.AnsiString; - case OleDbType.Variant : - return DbType.Object; - case OleDbType.VarNumeric : - return DbType.VarNumeric; - case OleDbType.VarWChar : - return DbType.StringFixedLength; - case OleDbType.WChar : - return DbType.String; - } - return DbType.Object; - } - - private OleDbType GetOleDbType (object value) - { - if (value is Guid) return OleDbType.Guid; - if (value is TimeSpan) return OleDbType.DBTime; - - switch (Type.GetTypeCode (value.GetType ())) { - case TypeCode.Boolean : - return OleDbType.Boolean; - case TypeCode.Byte : - if (value.GetType().IsArray) - return OleDbType.Binary; - else - return OleDbType.UnsignedTinyInt; - case TypeCode.Char : - return OleDbType.Char; - case TypeCode.DateTime : - return OleDbType.Date; - case TypeCode.DBNull : - return OleDbType.Empty; - case TypeCode.Decimal : - return OleDbType.Decimal; - case TypeCode.Double : - return OleDbType.Double; - case TypeCode.Empty : - return OleDbType.Empty; - case TypeCode.Int16 : - return OleDbType.SmallInt; - case TypeCode.Int32 : - return OleDbType.Integer; - case TypeCode.Int64 : - return OleDbType.BigInt; - case TypeCode.SByte : - return OleDbType.TinyInt; - case TypeCode.String : - return OleDbType.VarChar; - case TypeCode.Single : - return OleDbType.Single; - case TypeCode.UInt64 : - return OleDbType.UnsignedBigInt; - case TypeCode.UInt32 : - return OleDbType.UnsignedInt; - case TypeCode.UInt16 : - return OleDbType.UnsignedSmallInt; - case TypeCode.Object : - return OleDbType.Variant; - } - return OleDbType.IUnknown; - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbParameterCollection.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbParameterCollection.cs deleted file mode 100644 index 8d09e465c16d2..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbParameterCollection.cs +++ /dev/null @@ -1,208 +0,0 @@ -// -// System.Data.OleDb.OleDbParameterCollection -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbParameterCollection : MarshalByRefObject, - IDataParameterCollection, IList, ICollection, IEnumerable - { - #region Fields - - ArrayList list = new ArrayList (); - - #endregion // Fields - - #region Properties - - public int Count { - get { return list.Count; } - } - - public OleDbParameter this[int index] { - get { return (OleDbParameter) list[index]; } - set { list[index] = value; } - } - - public OleDbParameter this[string parameterName] { - [MonoTODO] - get { throw new NotImplementedException (); } - [MonoTODO] - set { throw new NotImplementedException (); } - } - - int ICollection.Count { - get { return list.Count; } - } - - bool IList.IsFixedSize { - get { return false; } - } - - bool IList.IsReadOnly { - get { return false; } - } - - bool ICollection.IsSynchronized { - get { return list.IsSynchronized; } - } - - object ICollection.SyncRoot { - get { return list.SyncRoot; } - } - - object IList.this[int index] { - get { return list[index]; } - set { list[index] = value; } - } - - object IDataParameterCollection.this[string name] - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - internal IntPtr GdaParameterList { - [MonoTODO] - get { - IntPtr param_list; - - param_list = libgda.gda_parameter_list_new (); - // FIXME: add parameters to list - - return param_list; - } - } - - #endregion // Properties - - #region Methods - - - public OleDbParameter Add (OleDbParameter parameter) - { - list.Add (parameter); - return parameter; - } - - public OleDbParameter Add (string name, object value) - { - OleDbParameter parameter = new OleDbParameter (name, value); - list.Add (parameter); - return parameter; - } - - public OleDbParameter Add (string name, OleDbType type) - { - OleDbParameter parameter = new OleDbParameter (name, type); - list.Add (parameter); - return parameter; - } - - public OleDbParameter Add (string name, OleDbType type, int width) - { - OleDbParameter parameter = new OleDbParameter (name, type, width); - list.Add (parameter); - return parameter; - } - - public OleDbParameter Add (string name, OleDbType type, - int width, string src_col) - { - OleDbParameter parameter = new OleDbParameter (name, type, width, src_col); - list.Add (parameter); - return parameter; - } - - int IList.Add (object value) - { - if (!(value is IDataParameter)) - throw new InvalidCastException (); - - list.Add (value); - return list.IndexOf (value); - } - - void IList.Clear () - { - list.Clear (); - } - - bool IList.Contains (object value) - { - return list.Contains (value); - } - - bool IDataParameterCollection.Contains (string value) - { - for (int i = 0; i < list.Count; i++) { - IDataParameter parameter; - - parameter = (IDataParameter) list[i]; - if (parameter.ParameterName == value) - return true; - } - - return false; - } - - void ICollection.CopyTo (Array array, int index) - { - ((OleDbParameter[])(list.ToArray ())).CopyTo (array, index); - } - - IEnumerator IEnumerable.GetEnumerator () - { - return list.GetEnumerator (); - } - - int IList.IndexOf (object value) - { - return list.IndexOf (value); - } - - int IDataParameterCollection.IndexOf (string name) - { - return list.IndexOf (((IDataParameterCollection) this)[name]); - } - - void IList.Insert (int index, object value) - { - list.Insert (index, value); - } - - void IList.Remove (object value) - { - list.Remove (value); - } - - void IList.RemoveAt (int index) - { - list.Remove ((object) list[index]); - } - - void IDataParameterCollection.RemoveAt (string name) - { - list.Remove (((IDataParameterCollection) this)[name]); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbPermission.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbPermission.cs deleted file mode 100644 index 2bf95972a5e43..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbPermission.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// System.Data.OleDb.OleDbPermission -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.OleDb -{ - [Serializable] - public sealed class OleDbPermission : DBDataPermission - { - #region Constructors - - [MonoTODO] - public OleDbPermission () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public OleDbPermission (PermissionState state) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public OleDbPermission (PermissionState state, bool allowBlankPassword) - { - throw new NotImplementedException (); - } - - #endregion - - #region Properties - - public string Provider { - [MonoTODO] - get { throw new NotImplementedException (); } - [MonoTODO] - set { throw new NotImplementedException (); } - } - - #endregion - - #region Methods - - [MonoTODO] - public override IPermission Copy () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void FromXml (SecurityElement securityElement) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Intersect (IPermission target) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override bool IsSubsetOf (IPermission target) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override SecurityElement ToXml () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Union (IPermission target) - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbPermissionAttribute.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbPermissionAttribute.cs deleted file mode 100644 index 1de7a88e6eaab..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbPermissionAttribute.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// System.Data.OleDb.OleDbPermissionAttribute -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.OleDb -{ - [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class - | AttributeTargets.Struct | AttributeTargets.Constructor | - AttributeTargets.Method)] - [Serializable] - public sealed class OleDbPermissionAttribute : DBDataPermissionAttribute - { - - #region Constructors - - [MonoTODO] - OleDbPermissionAttribute (SecurityAction action) - : base (action) - { - } - - #endregion - - #region Properties - - [MonoTODO] - public string Provider { - [MonoTODO] - get { - throw new NotImplementedException (); - } - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override IPermission CreatePermission () - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventArgs.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventArgs.cs deleted file mode 100644 index 036e31bfaad8a..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventArgs.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// System.Data.OleDb.OleDbRowUpdatedEventArgs -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbRowUpdatedEventArgs : RowUpdatedEventArgs - { - #region Fields - - OleDbCommand command; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public OleDbRowUpdatedEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (dataRow, command, statementType, tableMapping) - - { - this.command = (OleDbCommand) command; - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public new OleDbCommand Command { - get { return command; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventHandler.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventHandler.cs deleted file mode 100644 index fc911b7c6c65b..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventHandler.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Data.OleDb.OleDbRowUpdatedEventHandler -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - [Serializable] - public delegate void OleDbRowUpdatedEventHandler ( - object sender, - OleDbRowUpdatedEventArgs e); -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventArgs.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventArgs.cs deleted file mode 100644 index 8cf9aedafd23e..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventArgs.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// System.Data.OleDb.OleDbRowUpdatingEventArgs -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbRowUpdatingEventArgs : RowUpdatingEventArgs - { - - #region Fields - - OleDbCommand command = null; - - #endregion - - #region Constructors - - [MonoTODO] - public OleDbRowUpdatingEventArgs (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (dataRow, command, statementType, tableMapping) - - { - this.command = (OleDbCommand) command; - throw new NotImplementedException (); - } - - #endregion - - #region Properties - - public new OleDbCommand Command { - get { return command; } - set { command = value; } - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventHandler.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventHandler.cs deleted file mode 100644 index 42e42fcc62853..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventHandler.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Data.OleDb.OleDbRowUpdatingEventHandler -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - [Serializable] - public delegate void OleDbRowUpdatingEventHandler ( - object sender, - OleDbRowUpdatingEventArgs e); -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbSchemaGuid.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbSchemaGuid.cs deleted file mode 100644 index 1250ee96e57a5..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbSchemaGuid.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// System.Data.OleDb.OleDbSchemaGuid -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbSchemaGuid - { - #region Fields - - public static readonly Guid Assertions = new Guid ("df855bea-fb95-4abc-8932-e57e45c7ddae"); - public static readonly Guid Catalogs = new Guid ("e4a67334-f03c-45af-8b1d-531f99268045"); - public static readonly Guid Character_Sets = new Guid ("e4533bdb-0b55-48ee-986d-17d07143657d"); - public static readonly Guid Check_Constraints = new Guid ("fedf7f5d-cfb4-4635-af02-45eb4bb4e8f3"); - public static readonly Guid Check_Constraints_By_Table = new Guid ("d76547ef-837d-413c-8d76-bab1d7bb014a"); - public static readonly Guid Collations = new Guid ("5145b85c-c448-4b9e-8929-4c2de31ffa30"); - public static readonly Guid Columns = new Guid ("86dcd6e2-9a8c-4c6d-bc1c-e0e334c727c9"); - public static readonly Guid Column_Domain_Usage = new Guid ("058acb5e-eb1d-4b6e-8e98-a7d59a959ff1"); - public static readonly Guid Column_Privileges = new Guid ("43152796-f3b4-4342-9647-008f1060e352"); - public static readonly Guid Constraint_Column_Usage = new Guid ("3a39f999-f481-4293-8b9f-af7e91b4ee7d"); - public static readonly Guid Constraint_Table_Usage = new Guid ("d689719b-24b0-4963-a635-097c480edcd2"); - public static readonly Guid DbInfoLiterals = new Guid ("7a564da6-f3bc-474b-9e66-71cb47bde5b0"); - public static readonly Guid Foreign_Keys = new Guid ("d9e547ce-e62d-4200-b849-566bc3dc29de"); - public static readonly Guid Indexes = new Guid ("69d8523c-96ad-40cb-a89a-ee98d2d6fcec"); - public static readonly Guid Key_Column_Usage = new Guid ("65423211-805e-4822-8eb4-f4f6d540056e"); - public static readonly Guid Primary_Keys = new Guid ("c6e5b174-fbd8-4055-b757-8585040e463f"); - public static readonly Guid Procedures = new Guid ("61f276ad-4f25-4c26-b4ae-8238e06d56db"); - public static readonly Guid Procedure_Columns = new Guid ("7148080d-e053-4ada-b79a-9a2ff614a3d4"); - public static readonly Guid Procedure_Parameters = new Guid ("984af700-8fe7-476f-81c2-4b814df67907"); - public static readonly Guid Provider_Types = new Guid ("0bc2da44-d834-4136-9ff0-3cef477784b9"); - public static readonly Guid Referential_Constraints = new Guid ("d2eab85e-49a7-462d-aa22-1d97c74178ae"); - public static readonly Guid Schemata = new Guid ("2fbd7503-0af3-43d2-92c6-51e78b84dd37"); - public static readonly Guid Sql_Languages = new Guid ("d60a511d-a07f-4e59-aac2-71c25fab5b02"); - public static readonly Guid Statistics = new Guid ("03ed9f7d-35bc-45fe-993f-ee7a5f29fb74"); - public static readonly Guid Tables = new Guid ("ceac88ba-240c-4bb4-821e-4a49fc013371"); - public static readonly Guid Tables_Info = new Guid ("9ff81c59-2b1e-4371-a08b-3a2d373189fa"); - public static readonly Guid Table_Constraints = new Guid ("62883c55-082d-42cb-bb00-747985ca6047"); - public static readonly Guid Table_Privileges = new Guid ("1a73f478-8c8e-4ede-b3ec-22ba13ab55a0"); - public static readonly Guid Table_Statistics = new Guid ("9c944744-cd51-448a-8be4-7095f039d0ef"); - public static readonly Guid Translations = new Guid ("5578b57e-a682-4f1b-bdb4-f8a14ad6f61e"); - public static readonly Guid Trustee = new Guid ("521207e2-3a23-42b6-ac78-810a3fce3271"); - public static readonly Guid Usage_Privileges = new Guid ("f8113a2b-2934-4c67-ab7b-adbe3ab74973"); - public static readonly Guid Views = new Guid ("9a6345b6-61a0-40fd-9b45-402f3c9c9c3e"); - public static readonly Guid View_Column_Usage = new Guid ("2c91ef91-02d8-4d38-ae5a-1e826873d6ea"); - public static readonly Guid View_Table_Usage = new Guid ("7dcb7f53-1045-4fdf-86a1-d3caaf27c7f5"); - - #endregion - - #region Constructors - - public OleDbSchemaGuid () - { - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbTransaction.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbTransaction.cs deleted file mode 100644 index 5a61cb9c6a8e9..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbTransaction.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// System.Data.OleDb.OleDbTransaction -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public sealed class OleDbTransaction : MarshalByRefObject, IDbTransaction, IDisposable - { - #region Fields - - OleDbConnection connection; - IsolationLevel isolationLevel; - IntPtr gdaTransaction; - int depth; - - #endregion // Fields - - #region Constructors - - internal OleDbTransaction (OleDbConnection connection, int depth) - { - this.connection = connection; - isolationLevel = IsolationLevel.ReadCommitted; - - gdaTransaction = libgda.gda_transaction_new (depth.ToString ()); - libgda.gda_connection_begin_transaction (connection.GdaConnection, gdaTransaction); - } - - internal OleDbTransaction (OleDbConnection connection) - : this (connection, 1) - { - } - - internal OleDbTransaction (OleDbConnection connection, int depth, IsolationLevel isolevel) - : this (connection, depth) - { - isolationLevel = isolevel; - } - - internal OleDbTransaction (OleDbConnection connection, IsolationLevel isolevel) - : this (connection, 1, isolevel) - { - } - - - #endregion // Constructors - - #region Properties - - public OleDbConnection Connection { - get { - return connection; - } - } - - IDbConnection IDbTransaction.Connection { - get { - return connection; - } - } - - public IsolationLevel IsolationLevel { - get { - return isolationLevel; - } - } - - #endregion // Properties - - #region Methods - - public OleDbTransaction Begin () - { - return new OleDbTransaction (connection, depth + 1); - } - - public OleDbTransaction Begin (IsolationLevel isolevel) - { - return new OleDbTransaction (connection, depth + 1, isolevel); - } - - public void Commit () - { - if (!libgda.gda_connection_commit_transaction (connection.GdaConnection, - gdaTransaction)) - throw new InvalidOperationException (); - } - - [MonoTODO] - ~OleDbTransaction () - { - } - - [MonoTODO] - void IDisposable.Dispose () - { - throw new NotImplementedException (); - } - - public void Rollback () - { - if (!libgda.gda_connection_rollback_transaction (connection.GdaConnection, - gdaTransaction)) - throw new InvalidOperationException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/OleDbType.cs b/mcs/class/System.Data/System.Data.OleDb/OleDbType.cs deleted file mode 100644 index fcd3ae46efd7e..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/OleDbType.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// System.Data.OleDb.OleDbType -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; - -namespace System.Data.OleDb -{ - public enum OleDbType { - BigInt, - Binary, - Boolean, - BSTR, - Char, - Currency, - Date, - DBDate, - DBTime, - DBTimeStamp, - Decimal, - Double, - Empty, - Error, - Filetime, - Guid, - IDispatch, - Integer, - IUnknown, - LongVarBinary, - LongVarChar, - LongVarWChar, - Numeric, - PropVariant, - Single, - SmallInt, - TinyInt, - UnsignedBigInt, - UnsignedInt, - UnsignedSmallInt, - UnsignedTinyInt, - VarBinary, - VarChar, - Variant, - VarNumeric, - VarWChar, - WChar - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/TestGDA.cs b/mcs/class/System.Data/System.Data.OleDb/TestGDA.cs deleted file mode 100644 index 19eea66394949..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/TestGDA.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Data.OleDb; - -namespace Mono.Data.GDA.Test -{ - public class TestGDA - { - private IntPtr m_gdaClient = IntPtr.Zero; - private IntPtr m_gdaConnection = IntPtr.Zero; - - static void Main (string[] args) - { - TestGDA test = new TestGDA (); - - /* initialization */ - libgda.gda_init ("TestGDA#", "0.1", args.Length, args); - test.m_gdaClient = libgda.gda_client_new (); - - /* open connection */ - test.m_gdaConnection = libgda.gda_client_open_connection ( - test.m_gdaClient, - "PostgreSQL", - "", ""); - if (test.m_gdaConnection != IntPtr.Zero) { - System.Console.Write ("Connection successful!"); - - /* close connection */ - libgda.gda_connection_close (test.m_gdaConnection); - } - } - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/TestOleDb.cs b/mcs/class/System.Data/System.Data.OleDb/TestOleDb.cs deleted file mode 100644 index e53495a88aaf2..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/TestOleDb.cs +++ /dev/null @@ -1,107 +0,0 @@ -using System; -using System.Data.OleDb; - -namespace System.Data.OleDb.Test -{ - public class TestOleDb - { - private OleDbConnection m_cnc; - - private TestOleDb () - { - OleDbCommand cmd; - - m_cnc = new OleDbConnection ("PostgreSQL"); - m_cnc.Open (); - - Console.WriteLine ("Connected to:"); - Console.WriteLine (" Data Source: " + m_cnc.DataSource); - Console.WriteLine (" Database: " + m_cnc.Database); - Console.WriteLine (" Connection string: " + m_cnc.ConnectionString); - Console.WriteLine (" Provider: " + m_cnc.Provider); - Console.WriteLine (" Server version:" + m_cnc.ServerVersion); - - /* create temporary table */ - Console.WriteLine ("Creating temporary table..."); - cmd = new OleDbCommand ("CREATE TABLE mono_test_table ( " + - " name varchar(25), email varchar(50), date_entered timestamp)", - m_cnc); - cmd.ExecuteNonQuery (); - InsertRow ("Mike Smith", "mike@smiths.com"); - InsertRow ("Julie Andrews", "julie@hollywood.com"); - InsertRow ("Michael Jordan", "michael@bulls.com"); - } - - void InsertRow (string name, string email) - { - OleDbCommand cmd; - - cmd = new OleDbCommand ("INSERT INTO mono_test_table (name, email, date_entered) VALUES ('" + - name + "', '" + email +"', date 'now')", m_cnc); - Console.WriteLine ("Executing command '" + cmd.CommandText + "'"); - cmd.ExecuteNonQuery (); - - } - - void DisplayRow (OleDbDataReader reader) - { - for (int i = 0; i < reader.FieldCount; i++) { - Console.WriteLine (" " + reader.GetDataTypeName (i) + ": " + - reader.GetValue (i).ToString ()); - } - } - - void TestDataReader () - { - int i = 0; - string sql = "SELECT * FROM mono_test_table"; - - Console.WriteLine ("Executing SELECT command..."); - OleDbCommand cmd = new OleDbCommand (sql, m_cnc); - OleDbDataReader reader = cmd.ExecuteReader (); - - Console.WriteLine (" Recordset description:"); - for (i = 0; i < reader.FieldCount; i++) { - Console.WriteLine (" Field " + i + ": " + - reader.GetName (i) + " (" + - reader.GetDataTypeName (i) + ")"); - } - - Console.WriteLine ("Reading data..."); - i = 0; - while (reader.Read ()) { - Console.WriteLine ("Row " + i + ":"); - DisplayRow (reader); - i++; - } - } - - void TestTransaction () - { - Console.WriteLine ("Starting transaction..."); - OleDbTransaction xaction = m_cnc.BeginTransaction (); - - Console.WriteLine ("Aborting transaction..."); - xaction.Rollback (); - } - - void Close () - { - OleDbCommand cmd = new OleDbCommand ("DROP TABLE mono_test_table", m_cnc); - cmd.ExecuteNonQuery (); - m_cnc.Close (); - } - - static void Main (string[] args) - { - try { - TestOleDb test = new TestOleDb (); - test.TestDataReader (); - test.TestTransaction (); - test.Close (); - } catch (Exception e) { - Console.WriteLine ("An error has occured: {0}", e.ToString ()); - } - } - } -} diff --git a/mcs/class/System.Data/System.Data.OleDb/libgda.cs b/mcs/class/System.Data/System.Data.OleDb/libgda.cs deleted file mode 100644 index 3011f6bda9cee..0000000000000 --- a/mcs/class/System.Data/System.Data.OleDb/libgda.cs +++ /dev/null @@ -1,270 +0,0 @@ -// -// System.Data.OleDb.libgda -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Rodrigo Moya, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; - -namespace System.Data.OleDb -{ - internal enum GdaCommandOptions { - IgnoreErrors = 1, - StopOnErrors = 1 << 1, - BadOption = 1 << 2, - }; - - internal enum GdaCommandType { - Sql = 0, - Xml = 1, - Procedure = 2, - Table = 3, - Schema = 4, - Invalid = 5 - }; - - internal enum GdaValueType { - Null = 0, - Bigint = 1, - Binary = 2, - Boolean = 3, - Date = 4, - Double = 5, - GeometricPoint = 6, - Integer = 7, - List = 8, - Numeric = 9, - Single = 10, - Smallint = 11, - String = 12, - Time = 13, - Timestamp = 14, - Tinyint = 15, - Type = 16, - Unknown = 17 - }; - - [StructLayout(LayoutKind.Sequential)] - internal class GdaDate - { - public short year; - public ushort month; - public ushort day; - } - - [StructLayout(LayoutKind.Sequential)] - internal class GdaTime - { - public ushort hour; - public ushort minute; - public ushort second; - public long timezone; - } - - [StructLayout(LayoutKind.Sequential)] - internal class GdaTimestamp - { - public short year; - public ushort month; - public ushort day; - public ushort hour; - public ushort minute; - public ushort second; - public ulong fraction; - public long timezone; - } - - [StructLayout(LayoutKind.Sequential)] - internal class GdaList - { - public IntPtr data; - public IntPtr next; - public IntPtr prev; - } - - sealed internal class libgda - { - private static IntPtr gdaClient = IntPtr.Zero; - - public static IntPtr GdaClient - { - get { - if (gdaClient == IntPtr.Zero) - gdaClient = gda_client_new (); - - return gdaClient; - } - } - - [DllImport("gobject-2.0", - EntryPoint="g_object_unref")] - public static extern void FreeObject (IntPtr obj); - - [DllImport("gda-2")] - public static extern void gda_init (string app_id, string version, int nargs, string[] args); - - [DllImport("gda-2")] - public static extern GdaValueType gda_value_get_vtype (IntPtr value); - - [DllImport("gda-2")] - public static extern long gda_value_get_bigint (IntPtr value); - - [DllImport("gda-2")] - public static extern bool gda_value_get_boolean (IntPtr value); - - [DllImport("gda-2")] - public static extern IntPtr gda_value_get_date (IntPtr value); - - [DllImport("gda-2")] - public static extern double gda_value_get_double (IntPtr value); - - [DllImport("gda-2")] - public static extern int gda_value_get_integer (IntPtr value); - - [DllImport("gda-2")] - public static extern float gda_value_get_single (IntPtr value); - - [DllImport("gda-2")] - public static extern int gda_value_get_smallint (IntPtr value); - - [DllImport("gda-2")] - public static extern string gda_value_get_string (IntPtr value); - - [DllImport("gda-2")] - public static extern IntPtr gda_value_get_time (IntPtr value); - - [DllImport("gda-2")] - public static extern IntPtr gda_value_get_timestamp (IntPtr value); - - [DllImport("gda-2")] - public static extern byte gda_value_get_tinyint (IntPtr value); - - [DllImport("gda-2")] - public static extern string gda_value_stringify (IntPtr value); - - [DllImport("gda-2")] - public static extern IntPtr gda_parameter_list_new (); - - [DllImport("gda-2")] - public static extern string gda_type_to_string (GdaValueType type); - - [DllImport("gda-2")] - public static extern int gda_data_model_get_n_rows (IntPtr model); - - [DllImport("gda-2")] - public static extern int gda_data_model_get_n_columns (IntPtr model); - - [DllImport("gda-2")] - public static extern IntPtr gda_data_model_get_value_at (IntPtr model, int col, int row); - - [DllImport("gda-2")] - public static extern string gda_data_model_get_column_title (IntPtr model, int col); - - [DllImport("gda-2")] - public static extern IntPtr gda_data_model_describe_column (IntPtr model, int col); - - [DllImport("gda-2")] - public static extern void gda_field_attributes_free (IntPtr fa); - - [DllImport("gda-2")] - public static extern string gda_field_attributes_get_name (IntPtr fa); - - [DllImport("gda-2")] - public static extern GdaValueType gda_field_attributes_get_gdatype (IntPtr fa); - - [DllImport("gda-2")] - public static extern IntPtr gda_client_new (); - - [DllImport("gda-2")] - public static extern IntPtr gda_client_open_connection (IntPtr client, string dsn, string username, string password); - - [DllImport("gda-2")] - public static extern bool gda_connection_is_open (IntPtr cnc); - - [DllImport("gda-2")] - public static extern bool gda_connection_close (IntPtr cnc); - - [DllImport("gda-2")] - public static extern string gda_connection_get_server_version (IntPtr cnc); - - [DllImport("gda-2")] - public static extern string gda_connection_get_database (IntPtr cnc); - - [DllImport("gda-2")] - public static extern string gda_connection_get_dsn (IntPtr cnc); - - [DllImport("gda-2")] - public static extern string gda_connection_get_cnc_string (IntPtr cnc); - - [DllImport("gda-2")] - public static extern string gda_connection_get_provider (IntPtr cnc); - - [DllImport("gda-2")] - public static extern string gda_connection_get_username (IntPtr cnc); - - [DllImport("gda-2")] - public static extern string gda_connection_get_password (IntPtr cnc); - - [DllImport("gda-2")] - public static extern bool gda_connection_change_database (IntPtr cnc, string name); - - [DllImport("gda-2")] - public static extern IntPtr gda_transaction_new (string name); - - [DllImport("gda-2")] - public static extern IntPtr gda_transaction_get_name (IntPtr xaction); - - [DllImport("gda-2")] - public static extern IntPtr gda_transaction_set_name (IntPtr xaction, string name); - - [DllImport("gda-2")] - public static extern bool gda_connection_begin_transaction (IntPtr cnc, IntPtr xaction); - - [DllImport("gda-2")] - public static extern bool gda_connection_commit_transaction (IntPtr cnc, IntPtr xaction); - - [DllImport("gda-2")] - public static extern bool gda_connection_rollback_transaction (IntPtr cnc, IntPtr xaction); - - [DllImport("gda-2")] - public static extern IntPtr gda_connection_execute_command (IntPtr cnc, IntPtr cmd, IntPtr parameterList); - - [DllImport("gda-2")] - public static extern int gda_connection_execute_non_query (IntPtr cnc, IntPtr command, IntPtr parameterList); - - [DllImport("gda-2")] - public static extern IntPtr gda_connection_execute_single_command (IntPtr cnc, IntPtr command, IntPtr parameterList); - - [DllImport("gda-2")] - public static extern IntPtr gda_connection_get_errors (IntPtr cnc); - - [DllImport("gda-2")] - public static extern IntPtr gda_command_new (string text, GdaCommandType type, GdaCommandOptions options); - - [DllImport("gda-2")] - public static extern void gda_command_set_text (IntPtr cmd, string text); - - [DllImport("gda-2")] - public static extern void gda_command_set_command_type (IntPtr cmd, GdaCommandType type); - - [DllImport("gda-2")] - public static extern string gda_error_get_description (IntPtr error); - - [DllImport("gda-2")] - public static extern long gda_error_get_number (IntPtr error); - - [DllImport("gda-2")] - public static extern string gda_error_get_source (IntPtr error); - - [DllImport("gda-2")] - public static extern string gda_error_get_sqlstate (IntPtr error); - - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/ParmUtil.cs b/mcs/class/System.Data/System.Data.SqlClient/ParmUtil.cs deleted file mode 100644 index 3dabac7853ee5..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/ParmUtil.cs +++ /dev/null @@ -1,176 +0,0 @@ -// -// ParmUtil.cs - utility to bind variables in a SQL statement to parameters in C# code -// This is in the PostgreSQL .NET Data provider in Mono -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// - -// comment DEBUG_ParmUtil for production, for debug messages, uncomment -//#define DEBUG_ParmUtil - -using System; -using System.Data; -using System.Text; - -namespace System.Data.SqlClient { - - enum PostgresBindVariableCharacter { - Semicolon, - At, - QuestionMark - } - - public class ParmUtil { - - private string sql = ""; - private string resultSql = ""; - private SqlParameterCollection parmsCollection = null; - - static private PostgresBindVariableCharacter PgbindChar = PostgresBindVariableCharacter.Semicolon; - static char bindChar; - - // static constructor - static ParmUtil() { - switch(PgbindChar) { - case PostgresBindVariableCharacter.Semicolon: - bindChar = ':'; - break; - case PostgresBindVariableCharacter.At: - bindChar = '@'; - break; - case PostgresBindVariableCharacter.QuestionMark: - // this doesn't have named parameters, - // they must be in order - bindChar = '?'; - break; - } - } - - public ParmUtil(string query, SqlParameterCollection parms) { - sql = query; - parmsCollection = parms; - } - - public string ResultSql { - get { - return resultSql; - } - } - - // TODO: currently only works for input variables, - // need to do input/output, output, and return - public string ReplaceWithParms() { - - StringBuilder result = new StringBuilder(); - char[] chars = sql.ToCharArray(); - bool bStringConstFound = false; - - for(int i = 0; i < chars.Length; i++) { - if(chars[i] == '\'') { - if(bStringConstFound == true) - bStringConstFound = false; - else - bStringConstFound = true; - - result.Append(chars[i]); - } - else if(chars[i] == bindChar && - bStringConstFound == false) { -#if DEBUG_ParmUtil - Console.WriteLine("Bind Variable character found..."); -#endif - StringBuilder parm = new StringBuilder(); - i++; - while(i <= chars.Length) { - char ch; - if(i == chars.Length) - ch = ' '; // a space - else - ch = chars[i]; - -#if DEBUG_ParmUtil - Console.WriteLine("Is char Letter or digit?"); -#endif - if(Char.IsLetterOrDigit(ch)) { -#if DEBUG_ParmUtil - Console.WriteLine("Char IS letter or digit. " + - "Now, append char to parm StringBuilder"); -#endif - parm.Append(ch); - } - else { -#if DEBUG_ParmUtil - Console.WriteLine("Char is NOT letter or char. " + - "thus we got rest of bind variable name. "); - - // replace bind variable placeholder - // with data value constant - Console.WriteLine("parm StringBuilder to string p..."); -#endif - string p = parm.ToString(); -#if DEBUG_ParmUtil - Console.WriteLine("calling BindReplace..."); -#endif - bool found = BindReplace(result, p); -#if DEBUG_ParmUtil - Console.WriteLine(" Found = " + found); -#endif - if(found == true) - break; - else { - // *** Error Handling - Console.WriteLine("Error: parameter not found: " + p); - return ""; - } - } - i++; - } - i--; - } - else - result.Append(chars[i]); - } - - resultSql = result.ToString(); - return resultSql; - } - - public bool BindReplace (StringBuilder result, string p) { - // bind variable - bool found = false; - -#if DEBUG_ParmUtil - Console.WriteLine("Does the parmsCollection contain the parameter???: " + p); -#endif - if(parmsCollection.Contains(p) == true) { - // parameter found -#if DEBUG_ParmUtil - Console.WriteLine("Parameter Found: " + p); -#endif - SqlParameter prm = parmsCollection[p]; - -#if DEBUG_ParmUtil - // DEBUG - Console.WriteLine(" Value: " + prm.Value); - Console.WriteLine(" Direction: " + prm.Direction); -#endif - // convert object to string and place - // into SQL - if(prm.Direction == ParameterDirection.Input) { - string strObj = PostgresHelper. - ObjectToString(prm.DbType, - prm.Value); - result.Append(strObj); - } - else - result.Append(bindChar + p); - - found = true; - } - return found; - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/PostgresLibrary.cs b/mcs/class/System.Data/System.Data.SqlClient/PostgresLibrary.cs deleted file mode 100644 index 493afcd49e274..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/PostgresLibrary.cs +++ /dev/null @@ -1,475 +0,0 @@ -// -// System.Data.SqlClient.PostgresLibrary.cs -// -// PInvoke methods to libpq -// which is PostgreSQL client library -// -// May also contain enumerations, -// data types, or wrapper methods. -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -// *** uncomment #define to get debug messages, comment for production *** -//#define DEBUG_PostgresLibrary - -using System; -using System.Data; -using System.Runtime.InteropServices; -using System.Diagnostics; -using System.Collections; - -namespace System.Data.SqlClient { - - /* IMPORTANT: DO NOT CHANGE ANY OF THESE ENUMS BELOW */ - - internal enum ConnStatusType - { - CONNECTION_OK, - CONNECTION_BAD, - CONNECTION_STARTED, - CONNECTION_MADE, - CONNECTION_AWAITING_RESPONSE, - CONNECTION_AUTH_OK, - CONNECTION_SETENV - } - - internal enum PostgresPollingStatusType - { - PGRES_POLLING_FAILED = 0, - PGRES_POLLING_READING, - PGRES_POLLING_WRITING, - PGRES_POLLING_OK, - PGRES_POLLING_ACTIVE - } - - internal enum ExecStatusType - { - PGRES_EMPTY_QUERY = 0, - PGRES_COMMAND_OK, - PGRES_TUPLES_OK, - PGRES_COPY_OUT, - PGRES_COPY_IN, - PGRES_BAD_RESPONSE, - PGRES_NONFATAL_ERROR, - PGRES_FATAL_ERROR - } - - sealed internal class PostgresLibrary - { - #region PInvoke Functions - - // pinvoke prototypes to PostgreSQL client library - // pq.dll on windows and libpq.so on linux - - [DllImport("pq")] - public static extern IntPtr PQconnectStart (string conninfo); - // PGconn *PQconnectStart(const char *conninfo); - - [DllImport("pq")] - public static extern PostgresPollingStatusType PQconnectPoll (IntPtr conn); - // PostgresPollingStatusType PQconnectPoll(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQconnectdb (string conninfo); - // PGconn *PQconnectdb(const char *conninfo); - - [DllImport("pq")] - public static extern IntPtr PQsetdbLogin (string pghost, - string pgport, string pgoptions, - string pgtty, string dbName, - string login, string pwd); - // PGconn *PQsetdbLogin(const char *pghost, - // const char *pgport, const char *pgoptions, - // const char *pgtty, const char *dbName, - // const char *login, const char *pwd); - - [DllImport("pq")] - public static extern void PQfinish (IntPtr conn); - // void PQfinish(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQconndefaults (); - // PQconninfoOption *PQconndefaults(void); - - [DllImport("pq")] - public static extern void PQconninfoFree (IntPtr connOptions); - // void PQconninfoFree(PQconninfoOption *connOptions); - - [DllImport("pq")] - public static extern int PQresetStart (IntPtr conn); - // int PQresetStart(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQresetPoll (IntPtr conn); - // PostgresPollingStatusType PQresetPoll(PGconn *conn); - - [DllImport("pq")] - public static extern void PQreset (IntPtr conn); - // void PQreset(PGconn *conn); - - [DllImport("pq")] - public static extern int PQrequestCancel (IntPtr conn); - // int PQrequestCancel(PGconn *conn); - - [DllImport("pq")] - public static extern string PQdb (IntPtr conn); - // char *PQdb(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQuser (IntPtr conn); - // char *PQuser(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQpass (IntPtr conn); - // char *PQpass(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQhost (IntPtr conn); - // char *PQhost(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQport (IntPtr conn); - // char *PQport(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQtty (IntPtr conn); - // char *PQtty(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQoptions (IntPtr conn); - // char *PQoptions(const PGconn *conn); - - [DllImport("pq")] - public static extern ConnStatusType PQstatus (IntPtr conn); - // ConnStatusType PQstatus(const PGconn *conn); - - [DllImport("pq")] - public static extern string PQerrorMessage (IntPtr conn); - // char *PQerrorMessage(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQsocket (IntPtr conn); - // int PQsocket(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQbackendPID (IntPtr conn); - // int PQbackendPID(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQclientEncoding (IntPtr conn); - // int PQclientEncoding(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQsetClientEncoding (IntPtr conn, - string encoding); - // int PQsetClientEncoding(PGconn *conn, - // const char *encoding); - - //FIXME: when loading, causes runtime exception - //[DllImport("pq")] - //public static extern IntPtr PQgetssl (IntPtr conn); - // SSL *PQgetssl(PGconn *conn); - - [DllImport("pq")] - public static extern void PQtrace (IntPtr conn, - IntPtr debug_port); - // void PQtrace(PGconn *conn, - // FILE *debug_port); - - [DllImport("pq")] - public static extern void PQuntrace (IntPtr conn); - // void PQuntrace(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQsetNoticeProcessor (IntPtr conn, - IntPtr proc, IntPtr arg); - // PQnoticeProcessor PQsetNoticeProcessor(PGconn *conn, - // PQnoticeProcessor proc, void *arg); - - [DllImport("pq")] - public static extern int PQescapeString (string to, - string from, int length); - // size_t PQescapeString(char *to, - // const char *from, size_t length); - - [DllImport("pq")] - public static extern string PQescapeBytea (string bintext, - int binlen, IntPtr bytealen); - // unsigned char *PQescapeBytea(unsigned char *bintext, - // size_t binlen, size_t *bytealen); - - [DllImport("pq")] - public static extern IntPtr PQexec (IntPtr conn, - string query); - // PGresult *PQexec(PGconn *conn, - // const char *query); - - [DllImport("pq")] - public static extern IntPtr PQnotifies (IntPtr conn); - // PGnotify *PQnotifies(PGconn *conn); - - [DllImport("pq")] - public static extern void PQfreeNotify (IntPtr notify); - // void PQfreeNotify(PGnotify *notify); - - [DllImport("pq")] - public static extern int PQsendQuery (IntPtr conn, - string query); - // int PQsendQuery(PGconn *conn, - // const char *query); - - [DllImport("pq")] - public static extern IntPtr PQgetResult (IntPtr conn); - // PGresult *PQgetResult(PGconn *conn); - - [DllImport("pq")] - public static extern int PQisBusy (IntPtr conn); - // int PQisBusy(PGconn *conn); - - [DllImport("pq")] - public static extern int PQconsumeInput (IntPtr conn); - // int PQconsumeInput(PGconn *conn); - - [DllImport("pq")] - public static extern int PQgetline (IntPtr conn, - string str, int length); - // int PQgetline(PGconn *conn, - // char *string, int length); - - [DllImport("pq")] - public static extern int PQputline (IntPtr conn, - string str); - // int PQputline(PGconn *conn, - // const char *string); - - [DllImport("pq")] - public static extern int PQgetlineAsync (IntPtr conn, - string buffer, int bufsize); - // int PQgetlineAsync(PGconn *conn, char *buffer, - // int bufsize); - - [DllImport("pq")] - public static extern int PQputnbytes (IntPtr conn, - string buffer, int nbytes); - // int PQputnbytes(PGconn *conn, - //const char *buffer, int nbytes); - - [DllImport("pq")] - public static extern int PQendcopy (IntPtr conn); - // int PQendcopy(PGconn *conn); - - [DllImport("pq")] - public static extern int PQsetnonblocking (IntPtr conn, - int arg); - // int PQsetnonblocking(PGconn *conn, int arg); - - [DllImport("pq")] - public static extern int PQisnonblocking (IntPtr conn); - // int PQisnonblocking(const PGconn *conn); - - [DllImport("pq")] - public static extern int PQflush (IntPtr conn); - // int PQflush(PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQfn (IntPtr conn, int fnid, - IntPtr result_buf, IntPtr result_len, - int result_is_int, IntPtr args, - int nargs); - // PGresult *PQfn(PGconn *conn, int fnid, - // int *result_buf, int *result_len, - // int result_is_int, const PQArgBlock *args, - // int nargs); - - [DllImport("pq")] - public static extern ExecStatusType PQresultStatus (IntPtr res); - // ExecStatusType PQresultStatus(const PGresult *res); - - [DllImport("pq")] - public static extern string PQresStatus (ExecStatusType status); - // char *PQresStatus(ExecStatusType status); - - [DllImport("pq")] - public static extern string PQresultErrorMessage (IntPtr res); - // char *PQresultErrorMessage(const PGresult *res); - - [DllImport("pq")] - public static extern int PQntuples (IntPtr res); - // int PQntuples(const PGresult *res); - - [DllImport("pq")] - public static extern int PQnfields (IntPtr res); - // int PQnfields(const PGresult *res); - - [DllImport("pq")] - public static extern int PQbinaryTuples (IntPtr res); - // int PQbinaryTuples(const PGresult *res); - - [DllImport("pq")] - public static extern string PQfname (IntPtr res, - int field_num); - // char *PQfname(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfnumber (IntPtr res, - string field_name); - // int PQfnumber(const PGresult *res, - // const char *field_name); - - [DllImport("pq")] - public static extern int PQftype (IntPtr res, - int field_num); - // Oid PQftype(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfsize (IntPtr res, - int field_num); - // int PQfsize(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfmod (IntPtr res, int field_num); - // int PQfmod(const PGresult *res, int field_num); - - [DllImport("pq")] - public static extern string PQcmdStatus (IntPtr res); - // char *PQcmdStatus(PGresult *res); - - [DllImport("pq")] - public static extern string PQoidStatus (IntPtr res); - // char *PQoidStatus(const PGresult *res); - - [DllImport("pq")] - public static extern int PQoidValue (IntPtr res); - // Oid PQoidValue(const PGresult *res); - - [DllImport("pq")] - public static extern string PQcmdTuples (IntPtr res); - // char *PQcmdTuples(PGresult *res); - - [DllImport("pq")] - public static extern string PQgetvalue (IntPtr res, - int tup_num, int field_num); - // char *PQgetvalue(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetlength (IntPtr res, - int tup_num, int field_num); - // int PQgetlength(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetisnull (IntPtr res, - int tup_num, int field_num); - // int PQgetisnull(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern void PQclear (IntPtr res); - // void PQclear(PGresult *res); - - [DllImport("pq")] - public static extern IntPtr PQmakeEmptyPGresult (IntPtr conn, - IntPtr status); - // PGresult *PQmakeEmptyPGresult(PGconn *conn, - // ExecStatusType status); - - [DllImport("pq")] - public static extern void PQprint (IntPtr fout, - IntPtr res, IntPtr ps); - // void PQprint(FILE *fout, - // const PGresult *res, const PQprintOpt *ps); - - [DllImport("pq")] - public static extern void PQdisplayTuples (IntPtr res, - IntPtr fp, int fillAlign, string fieldSep, - int printHeader, int quiet); - // void PQdisplayTuples(const PGresult *res, - // FILE *fp, int fillAlign, const char *fieldSep, - // int printHeader, int quiet); - - [DllImport("pq")] - public static extern void PQprintTuples (IntPtr res, - IntPtr fout, int printAttName, int terseOutput, - int width); - // void PQprintTuples(const PGresult *res, - // FILE *fout, int printAttName, int terseOutput, - // int width); - - [DllImport("pq")] - public static extern int lo_open (IntPtr conn, - int lobjId, int mode); - // int lo_open(PGconn *conn, - // Oid lobjId, int mode); - - [DllImport("pq")] - public static extern int lo_close (IntPtr conn, int fd); - // int lo_close(PGconn *conn, int fd); - - [DllImport("pq")] - public static extern int lo_read (IntPtr conn, - int fd, string buf, int len); - // int lo_read(PGconn *conn, - // int fd, char *buf, size_t len); - - [DllImport("pq")] - public static extern int lo_write (IntPtr conn, - int fd, string buf, int len); - // int lo_write(PGconn *conn, - // int fd, char *buf, size_t len); - - [DllImport("pq")] - public static extern int lo_lseek (IntPtr conn, - int fd, int offset, int whence); - // int lo_lseek(PGconn *conn, - // int fd, int offset, int whence); - - [DllImport("pq")] - public static extern int lo_creat (IntPtr conn, - int mode); - // Oid lo_creat(PGconn *conn, - // int mode); - - [DllImport("pq")] - public static extern int lo_tell (IntPtr conn, int fd); - // int lo_tell(PGconn *conn, int fd); - - [DllImport("pq")] - public static extern int lo_unlink (IntPtr conn, - int lobjId); - // int lo_unlink(PGconn *conn, - // Oid lobjId); - - [DllImport("pq")] - public static extern int lo_import (IntPtr conn, - string filename); - // Oid lo_import(PGconn *conn, - // const char *filename); - - [DllImport("pq")] - public static extern int lo_export (IntPtr conn, - int lobjId, string filename); - // int lo_export(PGconn *conn, - // Oid lobjId, const char *filename); - - [DllImport("pq")] - public static extern int PQmblen (string s, - int encoding); - // int PQmblen(const unsigned char *s, - // int encoding); - - [DllImport("pq")] - public static extern int PQenv2encoding (); - // int PQenv2encoding(void); - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/PostgresTypes.cs b/mcs/class/System.Data/System.Data.SqlClient/PostgresTypes.cs deleted file mode 100644 index 6a086a82a4232..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/PostgresTypes.cs +++ /dev/null @@ -1,512 +0,0 @@ -// -// PostgresTypes.cs - holding methods to convert -// between PostgreSQL types and .NET types -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// - -// Note: this might become PostgresType and PostgresTypeCollection -// also, the PostgresTypes that exist as an inner internal class -// within SqlConnection maybe moved here in the future - -using System; -using System.Collections; -using System.Data; -using System.Data.Common; -using System.Data.SqlClient; -using System.Text; - -namespace System.Data.SqlClient { - - internal struct PostgresType { - public int oid; - public string typname; - public DbType dbType; - } - - sealed internal class PostgresHelper { - - // translates the PostgreSQL typname to System.Data.DbType - public static DbType TypnameToSqlDbType(string typname) { - DbType sqlType; - - // FIXME: use hashtable here? - - switch(typname) { - - case "abstime": - sqlType = DbType.Int32; - break; - - case "aclitem": - sqlType = DbType.String; - break; - - case "bit": - sqlType = DbType.String; - break; - - case "bool": - sqlType = DbType.Boolean; - break; - - case "box": - sqlType = DbType.String; - break; - - case "bpchar": - sqlType = DbType.String; - break; - - case "bytea": - sqlType = DbType.String; - break; - - case "char": - sqlType = DbType.String; - break; - - case "cidr": - sqlType = DbType.String; - break; - - case "circle": - sqlType = DbType.String; - break; - - case "date": - sqlType = DbType.Date; - break; - - case "float4": - sqlType = DbType.Single; - break; - - case "float8": - sqlType = DbType.Double; - break; - - case "inet": - sqlType = DbType.String; - break; - - case "int2": - sqlType = DbType.Int16; - break; - - case "int4": - sqlType = DbType.Int32; - break; - - case "int8": - sqlType = DbType.Int64; - break; - - case "interval": - sqlType = DbType.String; - break; - - case "line": - sqlType = DbType.String; - break; - - case "lseg": - sqlType = DbType.String; - break; - - case "macaddr": - sqlType = DbType.String; - break; - - case "money": - sqlType = DbType.Decimal; - break; - - case "name": - sqlType = DbType.String; - break; - - case "numeric": - sqlType = DbType.Decimal; - break; - - case "oid": - sqlType = DbType.Int32; - break; - - case "path": - sqlType = DbType.String; - break; - - case "point": - sqlType = DbType.String; - break; - - case "polygon": - sqlType = DbType.String; - break; - - case "refcursor": - sqlType = DbType.String; - break; - - case "reltime": - sqlType = DbType.String; - break; - - case "text": - sqlType = DbType.String; - break; - - case "time": - sqlType = DbType.Time; - break; - - case "timestamp": - sqlType = DbType.DateTime; - break; - - case "timestamptz": - sqlType = DbType.DateTime; - break; - - case "timetz": - sqlType = DbType.DateTime; - break; - - case "tinterval": - sqlType = DbType.String; - break; - - case "varbit": - sqlType = DbType.String; - break; - - case "varchar": - sqlType = DbType.String; - break; - - default: - sqlType = DbType.String; - break; - } - return sqlType; - } - - // Converts data value from database to .NET System type. - public static object ConvertDbTypeToSystem (DbType typ, String value) { - object obj = null; - - // FIXME: more types need - // to be converted - // from PostgreSQL oid type - // to .NET System. - - // FIXME: need to handle a NULL for each type - // maybe setting obj to System.DBNull.Value ? - - - if(value == null) { - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value is null"); - return null; - } - else if(value.Equals("")) { - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value is string empty"); - return null; - } - - //Console.WriteLine("ConvertDbTypeToSystemDbType typ: " + - // typ + " value: " + value); - - // Date, Time, and DateTime - // are parsed based on ISO format - // "YYYY-MM-DD hh:mi:ss.ms" - - switch(typ) { - case DbType.String: - obj = String.Copy(value); - break; - case DbType.Boolean: - obj = value.Equals("t"); - break; - case DbType.Int16: - obj = Int16.Parse(value); - break; - case DbType.Int32: - obj = Int32.Parse(value); - break; - case DbType.Int64: - obj = Int64.Parse(value); - break; - case DbType.Decimal: - obj = Decimal.Parse(value); - break; - case DbType.Single: - obj = Single.Parse(value); - break; - case DbType.Double: - obj = Double.Parse(value); - break; - case DbType.Date: - String[] sd = value.Split(new Char[] {'-'}); - obj = new DateTime( - Int32.Parse(sd[0]), Int32.Parse(sd[1]), Int32.Parse(sd[2]), - 0,0,0); - break; - case DbType.Time: - String[] st = value.Split(new Char[] {':'}); - obj = new DateTime(0001,01,01, - Int32.Parse(st[0]),Int32.Parse(st[1]),Int32.Parse(st[2])); - break; - case DbType.DateTime: - Int32 YYYY,MM,DD,hh,mi,ss,ms; - YYYY = Int32.Parse(value.Substring(0,4)); - MM = Int32.Parse(value.Substring(5,2)); - DD = Int32.Parse(value.Substring(8,2)); - hh = Int32.Parse(value.Substring(11,2)); - mi = Int32.Parse(value.Substring(14,2)); - ss = Int32.Parse(value.Substring(17,2)); - ms = Int32.Parse(value.Substring(20,2)); - obj = new DateTime(YYYY,MM,DD,hh,mi,ss,ms); - break; - default: - obj = String.Copy(value); - break; - } - - return obj; - } - - // Translates System.Data.DbType to System.Type - public static Type DbTypeToSystemType (DbType dType) { - // FIXME: more types need - // to be mapped - // from PostgreSQL oid type - // to .NET System. - - Type typ = null; - - switch(dType) { - case DbType.String: - typ = typeof(String); - break; - case DbType.Boolean: - typ = typeof(Boolean); - break; - case DbType.Int16: - typ = typeof(Int16); - break; - case DbType.Int32: - typ = typeof(Int32); - break; - case DbType.Int64: - typ = typeof(Int64); - break; - case DbType.Decimal: - typ = typeof(Decimal); - break; - case DbType.Single: - typ = typeof(Single); - break; - case DbType.Double: - typ = typeof(Double); - break; - case DbType.Date: - case DbType.Time: - case DbType.DateTime: - typ = typeof(DateTime); - break; - default: - typ = typeof(String); - break; - } - return typ; - } - - // Find DbType for oid - // which requires a look up of PostgresTypes - // DbType <-> typname <-> oid - public static string OidToTypname (int oid, ArrayList pgTypes) { - // FIXME: more types need - // to be mapped - // from PostgreSQL oid type - // to .NET System. - - string typname = "text"; // default - int i; - for(i = 0; i < pgTypes.Count; i++) { - PostgresType pt = (PostgresType) pgTypes[i]; - if(pt.oid == oid) { - typname = pt.typname; - break; - } - } - - return typname; - } - - // Convert a .NET System value type (Int32, String, Boolean, etc) - // to a string that can be included within a SQL statement. - // This is to methods provides the parameters support - // for the PostgreSQL .NET Data provider - public static string ObjectToString(DbType dbtype, object obj) { - - // TODO: how do we handle a NULL? - //if(isNull == true) - // return "NULL"; - - string s; - - // Date, Time, and DateTime are expressed in ISO format - // which is "YYYY-MM-DD hh:mm:ss.ms"; - DateTime dt; - StringBuilder sb; - - const string zero = "0"; - - switch(dbtype) { - case DbType.String: - s = "'" + obj + "'"; - break; - case DbType.Boolean: - if((bool)obj == true) - s = "'t'"; - else - s = "'f'"; - break; - case DbType.Int16: - s = obj.ToString(); - break; - case DbType.Int32: - s = obj.ToString(); - break; - case DbType.Int64: - s = obj.ToString(); - break; - case DbType.Decimal: - s = obj.ToString(); - break; - case DbType.Single: - s = obj.ToString(); - break; - case DbType.Double: - s = obj.ToString(); - break; - case DbType.Date: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // year - if(dt.Year < 10) - sb.Append("000" + dt.Year); - else if(dt.Year < 100) - sb.Append("00" + dt.Year); - else if(dt.Year < 1000) - sb.Append("0" + dt.Year); - else - sb.Append(dt.Year); - sb.Append("-"); - // month - if(dt.Month < 10) - sb.Append(zero + dt.Month); - else - sb.Append(dt.Month); - sb.Append("-"); - // day - if(dt.Day < 10) - sb.Append(zero + dt.Day); - else - sb.Append(dt.Day); - sb.Append('\''); - s = sb.ToString(); - break; - case DbType.Time: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // hour - if(dt.Hour < 10) - sb.Append(zero + dt.Hour); - else - sb.Append(dt.Hour); - sb.Append(":"); - // minute - if(dt.Minute < 10) - sb.Append(zero + dt.Minute); - else - sb.Append(dt.Minute); - sb.Append(":"); - // second - if(dt.Second < 10) - sb.Append(zero + dt.Second); - else - sb.Append(dt.Second); - sb.Append('\''); - s = sb.ToString(); - break; - case DbType.DateTime: - dt = (DateTime) obj; - sb = new StringBuilder(); - sb.Append('\''); - // year - if(dt.Year < 10) - sb.Append("000" + dt.Year); - else if(dt.Year < 100) - sb.Append("00" + dt.Year); - else if(dt.Year < 1000) - sb.Append("0" + dt.Year); - else - sb.Append(dt.Year); - sb.Append("-"); - // month - if(dt.Month < 10) - sb.Append(zero + dt.Month); - else - sb.Append(dt.Month); - sb.Append("-"); - // day - if(dt.Day < 10) - sb.Append(zero + dt.Day); - else - sb.Append(dt.Day); - sb.Append(" "); - // hour - if(dt.Hour < 10) - sb.Append(zero + dt.Hour); - else - sb.Append(dt.Hour); - sb.Append(":"); - // minute - if(dt.Minute < 10) - sb.Append(zero + dt.Minute); - else - sb.Append(dt.Minute); - sb.Append(":"); - // second - if(dt.Second < 10) - sb.Append(zero + dt.Second); - else - sb.Append(dt.Second); - sb.Append("."); - // millisecond - if(dt.Millisecond < 10) - sb.Append(zero + dt.Millisecond); - else - sb.Append(dt.Millisecond); - sb.Append('\''); - s = sb.ToString(); - break; - default: - // default to DbType.String - s = "'" + obj + "'"; - break; - } - return s; - } - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlClientPermission.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlClientPermission.cs deleted file mode 100644 index 20b9e02a6d0d6..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlClientPermission.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// System.Data.SqlClient.SqlClientPermission.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.SqlClient { - - public sealed class SqlClientPermission : DBDataPermission { - - [MonoTODO] - public SqlClientPermission() { - // FIXME: do constructor - } - - [MonoTODO] - public SqlClientPermission(PermissionState state) { - // FIXME: do constructor - } - - [MonoTODO] - public SqlClientPermission(PermissionState state, - bool allowBlankPassword) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Copy() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void FromXml(SecurityElement - securityElement) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Intersect(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override bool IsSubsetOf(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - public override string ToString() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override SecurityElement ToXml() { - throw new NotImplementedException (); - } - - [MonoTODO] - public override IPermission Union(IPermission target) { - throw new NotImplementedException (); - } - - [MonoTODO] - ~SqlClientPermission() { - // FIXME: destructor to release resources - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlClientPermissionAttribute.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlClientPermissionAttribute.cs deleted file mode 100644 index 149613c5f2ecb..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlClientPermissionAttribute.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// System.Data.SqlClient.SqlClientPermissionAttribute.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; -using System.Security; -using System.Security.Permissions; - -namespace System.Data.SqlClient { - - [AttributeUsage(AttributeTargets.Assembly | - AttributeTargets.Class | - AttributeTargets.Struct | - AttributeTargets.Constructor | - AttributeTargets.Method)] - [Serializable] - public sealed class SqlClientPermissionAttribute : - DBDataPermissionAttribute { - - [MonoTODO] - public SqlClientPermissionAttribute(SecurityAction action) : - base(action) - { - // FIXME: do constructor - } - - [MonoTODO] - public override IPermission CreatePermission() { - throw new NotImplementedException (); - } - - //[MonoTODO] - //~SqlClientPermissionAttribute() { - // // FIXME: destructor to release resources - //} - } - -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs deleted file mode 100644 index af2771c3fa2f2..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs +++ /dev/null @@ -1,928 +0,0 @@ -// -// System.Data.SqlClient.SqlCommand.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc 2002 http://www.ximian.com/ -// (C) Daniel Morgan, 2002 -// (C) Copyright 2002 Tim Coleman -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// use #define DEBUG_SqlCommand if you want to spew debug messages -// #define DEBUG_SqlCommand - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; -using System.Xml; - -namespace System.Data.SqlClient { - /// - /// Represents a SQL statement that is executed - /// while connected to a SQL database. - /// - // public sealed class SqlCommand : Component, IDbCommand, ICloneable - public sealed class SqlCommand : IDbCommand { - - #region Fields - - private string sql = ""; - private int timeout = 30; - // default is 30 seconds - // for command execution - - private SqlConnection conn = null; - private SqlTransaction trans = null; - private CommandType cmdType = CommandType.Text; - private bool designTime = false; - private SqlParameterCollection parmCollection = new - SqlParameterCollection(); - - // SqlDataReader state data for ExecuteReader() - private SqlDataReader dataReader = null; - private string[] queries = null; - private int currentQuery = -1; - private CommandBehavior cmdBehavior = CommandBehavior.Default; - - private ParmUtil parmUtil = null; - - #endregion // Fields - - #region Constructors - - public SqlCommand() { - sql = ""; - } - - public SqlCommand (string cmdText) { - sql = cmdText; - } - - public SqlCommand (string cmdText, SqlConnection connection) { - sql = cmdText; - conn = connection; - } - - public SqlCommand (string cmdText, SqlConnection connection, - SqlTransaction transaction) { - sql = cmdText; - conn = connection; - trans = transaction; - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public void Cancel () { - // FIXME: use non-blocking Exec for this - throw new NotImplementedException (); - } - - // FIXME: is this the correct way to return a stronger type? - [MonoTODO] - IDbDataParameter IDbCommand.CreateParameter () { - return CreateParameter (); - } - - [MonoTODO] - public SqlParameter CreateParameter () { - return new SqlParameter (); - } - - public int ExecuteNonQuery () { - IntPtr pgResult; // PGresult - int rowsAffected = -1; - ExecStatusType execStatus; - String rowsAffectedString; - string query; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - query = TweakQuery(sql, cmdType); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == ExecStatusType.PGRES_COMMAND_OK || - execStatus == ExecStatusType.PGRES_TUPLES_OK ) { - - rowsAffectedString = PostgresLibrary. - PQcmdTuples (pgResult); - - if(rowsAffectedString != null) - if(rowsAffectedString.Equals("") == false) - rowsAffected = int.Parse(rowsAffectedString); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - - return rowsAffected; - } - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader () { - return ExecuteReader (); - } - - [MonoTODO] - public SqlDataReader ExecuteReader () { - return ExecuteReader(CommandBehavior.Default); - } - - [MonoTODO] - IDataReader IDbCommand.ExecuteReader ( - CommandBehavior behavior) { - return ExecuteReader (behavior); - } - - [MonoTODO] - public SqlDataReader ExecuteReader (CommandBehavior behavior) - { - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnectionState is not Open"); - - cmdBehavior = behavior; - - queries = null; - currentQuery = -1; - dataReader = new SqlDataReader(this); - - queries = sql.Split(new Char[] {';'}); - - dataReader.NextResult(); - - return dataReader; - } - - internal SqlResult NextResult() - { - SqlResult res = new SqlResult(); - res.Connection = this.Connection; - res.Behavior = cmdBehavior; - string statement; - - currentQuery++; - - res.CurrentQuery = currentQuery; - - if(currentQuery < queries.Length && queries[currentQuery].Equals("") == false) { - res.SQL = queries[currentQuery]; - statement = TweakQuery(queries[currentQuery], cmdType); - ExecuteQuery(statement, res); - res.ResultReturned = true; - } - else { - res.ResultReturned = false; - } - - return res; - } - - private string TweakQuery(string query, CommandType commandType) { - string statement = ""; - StringBuilder td; - -#if DEBUG_SqlCommand - Console.WriteLine("---------[][] TweakQuery() [][]--------"); - Console.WriteLine("CommandType: " + commandType + " CommandBehavior: " + cmdBehavior); - Console.WriteLine("SQL before command type: " + query); -#endif - // finish building SQL based on CommandType - switch(commandType) { - case CommandType.Text: - statement = query; - break; - case CommandType.StoredProcedure: - statement = - "SELECT " + query + "()"; - break; - case CommandType.TableDirect: - // NOTE: this is for the PostgreSQL provider - // and for OleDb, according to the docs, - // an exception is thrown if you try to use - // this with SqlCommand - string[] directTables = query.Split( - new Char[] {','}); - - td = new StringBuilder("SELECT * FROM "); - - for(int tab = 0; tab < directTables.Length; tab++) { - if(tab > 0) - td.Append(','); - td.Append(directTables[tab]); - // FIXME: if multipe tables, how do we - // join? based on Primary/Foreign Keys? - // Otherwise, a Cartesian Product happens - } - statement = td.ToString(); - break; - default: - // FIXME: throw an exception? - statement = query; - break; - } -#if DEBUG_SqlCommand - Console.WriteLine("SQL after command type: " + statement); -#endif - // TODO: this parameters utility - // currently only support input variables - // need todo output, input/output, and return. -#if DEBUG_SqlCommand - Console.WriteLine("using ParmUtil in TweakQuery()..."); -#endif - parmUtil = new ParmUtil(statement, parmCollection); -#if DEBUG_SqlCommand - Console.WriteLine("ReplaceWithParms..."); -#endif - - statement = parmUtil.ReplaceWithParms(); - -#if DEBUG_SqlCommand - Console.WriteLine("SQL after ParmUtil: " + statement); -#endif - return statement; - } - - private void ExecuteQuery (string query, SqlResult res) - { - IntPtr pgResult; - - ExecStatusType execStatus; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnectionState is not Open"); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - res.ExecStatus = execStatus; - - if(execStatus == ExecStatusType.PGRES_TUPLES_OK || - execStatus == ExecStatusType.PGRES_COMMAND_OK) { - - res.BuildTableSchema(pgResult); - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - } - - // since SqlCommand has resources so SqlDataReader - // can do Read() and NextResult(), need to free - // those resources. Also, need to allow this SqlCommand - // and this SqlConnection to do things again. - internal void CloseReader() { - dataReader = null; - queries = null; - - if((cmdBehavior & CommandBehavior.CloseConnection) == CommandBehavior.CloseConnection) { - conn.CloseReader(true); - } - else { - conn.CloseReader(false); - } - } - - // only meant to be used between SqlConnectioin, - // SqlCommand, and SqlDataReader - internal void OpenReader(SqlDataReader reader) { - conn.OpenReader(reader); - } - - /// - /// ExecuteScalar is used to retrieve one object - /// from one result set - /// that has one row and one column. - /// It is lightweight compared to ExecuteReader. - /// - [MonoTODO] - public object ExecuteScalar () { - IntPtr pgResult; // PGresult - ExecStatusType execStatus; - object obj = null; // return - int nRow = 0; // first row - int nCol = 0; // first column - String value; - int nRows; - int nFields; - string query; - - if(conn.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - query = TweakQuery(sql, cmdType); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (conn.PostgresConnection, query); - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - if(execStatus == ExecStatusType.PGRES_COMMAND_OK) { - // result was a SQL Command - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - return null; // return null reference - } - else if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - // result was a SQL Query - - nRows = PostgresLibrary. - PQntuples(pgResult); - - nFields = PostgresLibrary. - PQnfields(pgResult); - - if(nRows > 0 && nFields > 0) { - - // get column name - //String fieldName; - //fieldName = PostgresLibrary. - // PQfname(pgResult, nCol); - - int oid; - string sType; - DbType dbType; - // get PostgreSQL data type (OID) - oid = PostgresLibrary. - PQftype(pgResult, nCol); - sType = PostgresHelper. - OidToTypname (oid, conn.Types); - dbType = PostgresHelper. - TypnameToSqlDbType(sType); - - int definedSize; - // get defined size of column - definedSize = PostgresLibrary. - PQfsize(pgResult, nCol); - - // get data value - value = PostgresLibrary. - PQgetvalue( - pgResult, - nRow, nCol); - - int columnIsNull; - // is column NULL? - columnIsNull = PostgresLibrary. - PQgetisnull(pgResult, - nRow, nCol); - - int actualLength; - // get Actual Length - actualLength = PostgresLibrary. - PQgetlength(pgResult, - nRow, nCol); - - obj = PostgresHelper. - ConvertDbTypeToSystem ( - dbType, - value); - } - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - conn.DataSource, "SqlCommand", 0); - } - - return obj; - } - - [MonoTODO] - public XmlReader ExecuteXmlReader () { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Prepare () { - // FIXME: parameters have to be implemented for this - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand Clone () { - throw new NotImplementedException (); - } - - #endregion // Methods - - #region Properties - - public string CommandText { - get { - return sql; - } - - set { - sql = value; - } - } - - public int CommandTimeout { - get { - return timeout; - } - - set { - // FIXME: if value < 0, throw - // ArgumentException - // if (value < 0) - // throw ArgumentException; - timeout = value; - } - } - - public CommandType CommandType { - get { - return cmdType; - } - - set { - cmdType = value; - } - } - - // FIXME: for property Connection, is this the correct - // way to handle a return of a stronger type? - IDbConnection IDbCommand.Connection { - get { - return Connection; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during a - // transaction in progress - - // csc - Connection = (SqlConnection) value; - // mcs - // Connection = value; - - // FIXME: set Transaction property to null - } - } - - public SqlConnection Connection { - get { - // conn defaults to null - return conn; - } - - set { - // FIXME: throw an InvalidOperationException - // if the change was during - // a transaction in progress - conn = value; - // FIXME: set Transaction property to null - } - } - - public bool DesignTimeVisible { - get { - return designTime; - } - - set{ - designTime = value; - } - } - - // FIXME; for property Parameters, is this the correct - // way to handle a stronger return type? - IDataParameterCollection IDbCommand.Parameters { - get { - return Parameters; - } - } - - public SqlParameterCollection Parameters { - get { - return parmCollection; - } - } - - // FIXME: for property Transaction, is this the correct - // way to handle a return of a stronger type? - IDbTransaction IDbCommand.Transaction { - get { - return Transaction; - } - - set { - // FIXME: error handling - do not allow - // setting of transaction if transaction - // has already begun - - // csc - Transaction = (SqlTransaction) value; - // mcs - // Transaction = value; - } - } - - public SqlTransaction Transaction { - get { - return trans; - } - - set { - // FIXME: error handling - trans = value; - } - } - - [MonoTODO] - public UpdateRowSource UpdatedRowSource { - // FIXME: do this once DbDataAdaptor - // and DataRow are done - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } - } - - #endregion // Properties - - #region Inner Classes - - #endregion // Inner Classes - - #region Destructors - - [MonoTODO] - public void Dispose() { - // FIXME: need proper way to release resources - // Dispose(true); - } - - [MonoTODO] - ~SqlCommand() { - // FIXME: need proper way to release resources - // Dispose(false); - } - - #endregion //Destructors - } - - // SqlResult is used for passing Result Set data - // from SqlCommand to SqlDataReader - internal class SqlResult { - - private DataTable dataTableSchema = null; // only will contain the schema - private IntPtr pg_result = IntPtr.Zero; // native PostgreSQL PGresult - private int rowCount = 0; - private int fieldCount = 0; - private string[] pgtypes = null; // PostgreSQL types (typname) - private bool resultReturned = false; - private SqlConnection con = null; - private int rowsAffected = -1; - private ExecStatusType execStatus = ExecStatusType.PGRES_FATAL_ERROR; - private int currentQuery = -1; - private string sql = ""; - private CommandBehavior cmdBehavior = CommandBehavior.Default; - - internal CommandBehavior Behavior { - get { - return cmdBehavior; - } - set { - cmdBehavior = value; - } - } - - internal string SQL { - get { - return sql; - } - set { - sql = value; - } - } - - internal ExecStatusType ExecStatus { - get { - return execStatus; - } - set { - execStatus = value; - } - } - - internal int CurrentQuery { - get { - return currentQuery; - } - - set { - currentQuery = value; - } - - } - - internal SqlConnection Connection { - get { - return con; - } - - set { - con = value; - } - } - - internal int RecordsAffected { - get { - return rowsAffected; - } - } - - internal bool ResultReturned { - get { - return resultReturned; - } - set { - resultReturned = value; - } - } - - internal DataTable Table { - get { - return dataTableSchema; - } - } - - internal IntPtr PgResult { - get { - return pg_result; - } - } - - internal int RowCount { - get { - return rowCount; - } - } - - internal int FieldCount { - get { - return fieldCount; - } - } - - internal string[] PgTypes { - get { - return pgtypes; - } - } - - internal void BuildTableSchema (IntPtr pgResult) { - pg_result = pgResult; - - // need to set IDataReader.RecordsAffected property - string rowsAffectedString; - rowsAffectedString = PostgresLibrary. - PQcmdTuples (pgResult); - if(rowsAffectedString != null) - if(rowsAffectedString.Equals("") == false) - rowsAffected = int.Parse(rowsAffectedString); - - // Only Results from SQL SELECT Queries - // get a DataTable for schema of the result - // otherwise, DataTable is null reference - if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - - dataTableSchema = new DataTable (); - dataTableSchema.Columns.Add ("ColumnName", typeof (string)); - dataTableSchema.Columns.Add ("ColumnOrdinal", typeof (int)); - dataTableSchema.Columns.Add ("ColumnSize", typeof (int)); - dataTableSchema.Columns.Add ("NumericPrecision", typeof (int)); - dataTableSchema.Columns.Add ("NumericScale", typeof (int)); - dataTableSchema.Columns.Add ("IsUnique", typeof (bool)); - dataTableSchema.Columns.Add ("IsKey", typeof (bool)); - DataColumn dc = dataTableSchema.Columns["IsKey"]; - dc.AllowDBNull = true; // IsKey can have a DBNull - dataTableSchema.Columns.Add ("BaseCatalogName", typeof (string)); - dataTableSchema.Columns.Add ("BaseColumnName", typeof (string)); - dataTableSchema.Columns.Add ("BaseSchemaName", typeof (string)); - dataTableSchema.Columns.Add ("BaseTableName", typeof (string)); - dataTableSchema.Columns.Add ("DataType", typeof(string)); - dataTableSchema.Columns.Add ("AllowDBNull", typeof (bool)); - dataTableSchema.Columns.Add ("ProviderType", typeof (int)); - dataTableSchema.Columns.Add ("IsAliased", typeof (bool)); - dataTableSchema.Columns.Add ("IsExpression", typeof (bool)); - dataTableSchema.Columns.Add ("IsIdentity", typeof (bool)); - dataTableSchema.Columns.Add ("IsAutoIncrement", typeof (bool)); - dataTableSchema.Columns.Add ("IsRowVersion", typeof (bool)); - dataTableSchema.Columns.Add ("IsHidden", typeof (bool)); - dataTableSchema.Columns.Add ("IsLong", typeof (bool)); - dataTableSchema.Columns.Add ("IsReadOnly", typeof (bool)); - - fieldCount = PostgresLibrary.PQnfields (pgResult); - rowCount = PostgresLibrary.PQntuples(pgResult); - pgtypes = new string[fieldCount]; - - // TODO: for CommandBehavior.SingleRow - // use IRow, otherwise, IRowset - if(fieldCount > 0) - if((cmdBehavior & CommandBehavior.SingleRow) == CommandBehavior.SingleRow) - fieldCount = 1; - - // TODO: for CommandBehavior.SchemaInfo - if((cmdBehavior & CommandBehavior.SchemaOnly) == CommandBehavior.SchemaOnly) - fieldCount = 0; - - // TODO: for CommandBehavior.SingleResult - if((cmdBehavior & CommandBehavior.SingleResult) == CommandBehavior.SingleResult) - if(currentQuery > 0) - fieldCount = 0; - - // TODO: for CommandBehavior.SequentialAccess - used for reading Large OBjects - //if((cmdBehavior & CommandBehavior.SequentialAccess) == CommandBehavior.SequentialAccess) { - //} - - DataRow schemaRow; - int oid; - DbType dbType; - Type typ; - - for (int i = 0; i < fieldCount; i += 1 ) { - schemaRow = dataTableSchema.NewRow (); - - string columnName = PostgresLibrary.PQfname (pgResult, i); - - schemaRow["ColumnName"] = columnName; - schemaRow["ColumnOrdinal"] = i+1; - schemaRow["ColumnSize"] = PostgresLibrary.PQfsize (pgResult, i); - schemaRow["NumericPrecision"] = 0; - schemaRow["NumericScale"] = 0; - // TODO: need to get KeyInfo - if((cmdBehavior & CommandBehavior.KeyInfo) == CommandBehavior.KeyInfo) { - bool IsUnique, IsKey; - GetKeyInfo(columnName, out IsUnique, out IsKey); - } - else { - schemaRow["IsUnique"] = false; - schemaRow["IsKey"] = DBNull.Value; - } - schemaRow["BaseCatalogName"] = ""; - schemaRow["BaseColumnName"] = columnName; - schemaRow["BaseSchemaName"] = ""; - schemaRow["BaseTableName"] = ""; - - // PostgreSQL type to .NET type stuff - oid = PostgresLibrary.PQftype (pgResult, i); - pgtypes[i] = PostgresHelper.OidToTypname (oid, con.Types); - dbType = PostgresHelper.TypnameToSqlDbType (pgtypes[i]); - - typ = PostgresHelper.DbTypeToSystemType (dbType); - string st = typ.ToString(); - schemaRow["DataType"] = st; - - schemaRow["AllowDBNull"] = false; - schemaRow["ProviderType"] = oid; - schemaRow["IsAliased"] = false; - schemaRow["IsExpression"] = false; - schemaRow["IsIdentity"] = false; - schemaRow["IsAutoIncrement"] = false; - schemaRow["IsRowVersion"] = false; - schemaRow["IsHidden"] = false; - schemaRow["IsLong"] = false; - schemaRow["IsReadOnly"] = false; - schemaRow.AcceptChanges(); - dataTableSchema.Rows.Add (schemaRow); - } - -#if DEBUG_SqlCommand - Console.WriteLine("********** DEBUG Table Schema BEGIN ************"); - foreach (DataRow myRow in dataTableSchema.Rows) { - foreach (DataColumn myCol in dataTableSchema.Columns) - Console.WriteLine(myCol.ColumnName + " = " + myRow[myCol]); - Console.WriteLine(); - } - Console.WriteLine("********** DEBUG Table Schema END ************"); -#endif // DEBUG_SqlCommand - - } - } - - // TODO: how do we get the key info if - // we don't have the tableName? - private void GetKeyInfo(string columnName, out bool isUnique, out bool isKey) { - isUnique = false; - isKey = false; - - string sql; - - sql = - "SELECT i.indkey, i.indisprimary, i.indisunique " + - "FROM pg_class c, pg_class c2, pg_index i " + - "WHERE c.relname = ':tableName' AND c.oid = i.indrelid " + - "AND i.indexrelid = c2.oid "; - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs deleted file mode 100644 index d2b028bc65239..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// System.Data.SqlClient.SqlCommandBuilder.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.ComponentModel; - -namespace System.Data.SqlClient { - - /// - /// Builder of one command - /// that will be used in manipulating a table for - /// a DataSet that is assoicated with a database. - /// - public sealed class SqlCommandBuilder : Component { - - [MonoTODO] - public SqlCommandBuilder() { - - } - - [MonoTODO] - public SqlCommandBuilder(SqlDataAdapter adapter) { - - } - - [MonoTODO] - public SqlDataAdapter DataAdapter { - get { - throw new NotImplementedException (); - } - - set{ - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string QuotePrefix { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string QuoteSuffix { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public static void DeriveParameters(SqlCommand command) { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetDeleteCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetInsertCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlCommand GetUpdateCommand() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RefreshSchema() { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void Dispose(bool disposing) { - throw new NotImplementedException (); - } - - [MonoTODO] - ~SqlCommandBuilder() { - // FIXME: create destructor - release resources - } - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs deleted file mode 100644 index 0bd37605cc648..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs +++ /dev/null @@ -1,722 +0,0 @@ -// -// System.Data.SqlClient.SqlConnection.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// (C) Daniel Morgan 2002 -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// use #define DEBUG_SqlConnection if you want to spew debug messages -// #define DEBUG_SqlConnection - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; -using System.Text; - -namespace System.Data.SqlClient { - - /// - /// Represents an open connection to a SQL data source - /// - public sealed class SqlConnection : Component, IDbConnection, - ICloneable - { - // FIXME: Need to implement class Component, - // and interfaces: ICloneable and IDisposable - - #region Fields - - private PostgresTypes types = null; - private IntPtr pgConn = IntPtr.Zero; - - // PGConn (Postgres Connection) - private string connectionString = ""; - // OLE DB Connection String - private string pgConnectionString = ""; - // PostgreSQL Connection String - private SqlTransaction trans = null; - private int connectionTimeout = 15; - // default for 15 seconds - - // connection parameters in connection string - private string host = ""; - // Name of host to connect to - private string hostaddr = ""; - // IP address of host to connect to - // should be in "n.n.n.n" format - private string port = ""; - // Port number to connect to at the server host - private string dbname = ""; // The database name. - private string user = ""; // User name to connect as. - private string password = ""; - // Password to be used if the server - // demands password authentication. - private string options = ""; - // Trace/debug options to be sent to the server. - private string tty = ""; - // A file or tty for optional - // debug output from the backend. - private string requiressl = ""; - // Set to 1 to require - // SSL connection to the backend. - // Libpq will then refuse to connect - // if the server does not - // support SSL. Set to 0 (default) to - // negotiate with server. - - // connection state - private ConnectionState conState = ConnectionState.Closed; - - // DataReader state - private SqlDataReader rdr = null; - private bool dataReaderOpen = false; - // FIXME: if true, throw an exception if SqlConnection - // is used for anything other than reading - // data using SqlDataReader - - private string versionString = "Unknown"; - - private bool disposed = false; - - #endregion // Fields - - #region Constructors - - // A lot of the defaults were initialized in the Fields - [MonoTODO] - public SqlConnection () { - - } - - [MonoTODO] - public SqlConnection (String connectionString) { - SetConnectionString (connectionString); - } - - #endregion // Constructors - - #region Destructors - - protected override void Dispose(bool disposing) { - if(!this.disposed) - try { - if(disposing) { - // release any managed resources - } - // release any unmanaged resources - // close any handles - - this.disposed = true; - } - finally { - base.Dispose(disposing); - } - } - - // aka Finalize() - // [ClassInterface(ClassInterfaceType.AutoDual)] - [MonoTODO] - ~SqlConnection() { - Dispose (false); - } - - #endregion // Destructors - - #region Public Methods - - IDbTransaction IDbConnection.BeginTransaction () { - return BeginTransaction (); - } - - public SqlTransaction BeginTransaction () { - return TransactionBegin (); // call private method - } - - IDbTransaction IDbConnection.BeginTransaction (IsolationLevel - il) { - return BeginTransaction (il); - } - - public SqlTransaction BeginTransaction (IsolationLevel il) { - return TransactionBegin (il); // call private method - } - - // PostgreSQL does not support named transactions/savepoint - // nor nested transactions - [Obsolete] - public SqlTransaction BeginTransaction(string transactionName) { - return TransactionBegin (); // call private method - } - - [Obsolete] - public SqlTransaction BeginTransaction(IsolationLevel iso, - string transactionName) { - return TransactionBegin (iso); // call private method - } - - [MonoTODO] - public void ChangeDatabase (string databaseName) { - throw new NotImplementedException (); - } - - object ICloneable.Clone() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Close () { - if(dataReaderOpen == true) { - // TODO: what do I do if - // the user Closes the connection - // without closing the Reader first? - - } - CloseDataSource (); - } - - IDbCommand IDbConnection.CreateCommand () { - return CreateCommand (); - } - - public SqlCommand CreateCommand () { - SqlCommand sqlcmd = new SqlCommand ("", this); - - return sqlcmd; - } - - [MonoTODO] - public void Open () { - if(dbname.Equals("")) - throw new InvalidOperationException( - "dbname missing"); - else if(conState == ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is already Open"); - - ConnStatusType connStatus; - - // FIXME: check to make sure we have - // everything to connect, - // otherwise, throw an exception - - pgConn = PostgresLibrary.PQconnectdb - (pgConnectionString); - - // FIXME: should we use PQconnectStart/PQconnectPoll - // instead of PQconnectdb? - // PQconnectdb blocks - // PQconnectStart/PQconnectPoll is non-blocking - - connStatus = PostgresLibrary.PQstatus (pgConn); - if(connStatus == ConnStatusType.CONNECTION_OK) { - // Successfully Connected - disposed = false; - SetupConnection(); - } - else { - String errorMessage = PostgresLibrary. - PQerrorMessage (pgConn); - errorMessage += ": Could not connect to database."; - - throw new SqlException(0, 0, - errorMessage, 0, "", - host, "SqlConnection", 0); - } - } - - #endregion // Public Methods - - #region Internal Methods - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open. - // Open the Reader. (called from SqlCommand) - internal void OpenReader(SqlDataReader reader) - { - if(dataReaderOpen == true) { - // TODO: throw exception here? - // because a reader - // is already open - } - else { - rdr = reader; - dataReaderOpen = true; - } - } - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open - // Close the Reader (called from SqlCommand) - // if closeConnection true, Close() the connection - // this is based on CommandBehavior.CloseConnection - internal void CloseReader(bool closeConnection) - { if(closeConnection == true) - CloseDataSource(); - else - dataReaderOpen = false; - } - - #endregion // Internal Methods - - #region Private Methods - - private void SetupConnection() { - - conState = ConnectionState.Open; - - // FIXME: load types into hashtable - types = new PostgresTypes(this); - types.Load(); - - versionString = GetDatabaseServerVersion(); - - // set DATE style to YYYY/MM/DD - IntPtr pgResult = IntPtr.Zero; - pgResult = PostgresLibrary.PQexec (pgConn, "SET DATESTYLE TO 'ISO'"); - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - - private string GetDatabaseServerVersion() - { - SqlCommand cmd = new SqlCommand("select version()",this); - return (string) cmd.ExecuteScalar(); - } - - private void CloseDataSource () { - // FIXME: just a quick hack - if(conState == ConnectionState.Open) { - if(trans != null) - if(trans.DoingTransaction == true) { - trans.Rollback(); - // trans.Dispose(); - trans = null; - } - - conState = ConnectionState.Closed; - PostgresLibrary.PQfinish (pgConn); - pgConn = IntPtr.Zero; - } - } - - private void SetConnectionString (string connectionString) { - // FIXME: perform error checking on string - // while translating string from - // OLE DB format to PostgreSQL - // connection string format - // - // OLE DB: "host=localhost;dbname=test;user=joe;password=smoe" - // PostgreSQL: "host=localhost dbname=test user=joe password=smoe" - // - // For OLE DB, you would have the additional - // "provider=postgresql" - // OleDbConnection you would be using libgda - // - // Also, parse the connection string into properties - - // FIXME: if connection is open, you can - // not set the connection - // string, throw an exception - - this.connectionString = connectionString; - pgConnectionString = ConvertStringToPostgres ( - connectionString); - -#if DEBUG_SqlConnection - Console.WriteLine( - "OLE-DB Connection String [in]: " + - this.ConnectionString); - Console.WriteLine( - "Postgres Connection String [out]: " + - pgConnectionString); -#endif // DEBUG_SqlConnection - } - - private String ConvertStringToPostgres (String - oleDbConnectionString) { - StringBuilder postgresConnection = - new StringBuilder(); - string result; - string[] connectionParameters; - - char[] semicolon = new Char[1]; - semicolon[0] = ';'; - - // FIXME: what is the max number of value pairs - // can there be for the OLE DB - // connnection string? what about libgda max? - // what about postgres max? - - // FIXME: currently assuming value pairs are like: - // "key1=value1;key2=value2;key3=value3" - // Need to deal with values that have - // single or double quotes. And error - // handling of that too. - // "key1=value1;key2='value2';key=\"value3\"" - - // FIXME: put the connection parameters - // from the connection - // string into a - // Hashtable (System.Collections) - // instead of using private variables - // to store them - connectionParameters = oleDbConnectionString. - Split (semicolon); - foreach (string sParameter in connectionParameters) { - if(sParameter.Length > 0) { - BreakConnectionParameter (sParameter); - postgresConnection. - Append (sParameter + - " "); - } - } - result = postgresConnection.ToString (); - return result; - } - - private bool BreakConnectionParameter (String sParameter) { - bool addParm = true; - int index; - - index = sParameter.IndexOf ("="); - if (index > 0) { - string parmKey, parmValue; - - // separate string "key=value" to - // string "key" and "value" - parmKey = sParameter.Substring (0, index); - parmValue = sParameter.Substring (index + 1, - sParameter.Length - index - 1); - - switch(parmKey.ToLower()) { - case "hostaddr": - hostaddr = parmValue; - break; - - case "port": - port = parmValue; - break; - - case "host": - // set DataSource property - host = parmValue; - break; - - case "dbname": - // set Database property - dbname = parmValue; - break; - - case "user": - user = parmValue; - break; - - case "password": - password = parmValue; - // addParm = false; - break; - - case "options": - options = parmValue; - break; - - case "tty": - tty = parmValue; - break; - - case "requiressl": - requiressl = parmValue; - break; - } - } - return addParm; - } - - private SqlTransaction TransactionBegin () { - // FIXME: need to keep track of - // transaction in-progress - trans = new SqlTransaction (); - // using internal methods of SqlTransaction - trans.SetConnection (this); - trans.Begin(); - - return trans; - } - - private SqlTransaction TransactionBegin (IsolationLevel il) { - // FIXME: need to keep track of - // transaction in-progress - TransactionBegin(); - trans.SetIsolationLevel (il); - - return trans; - } - - #endregion - - #region Public Properties - - [MonoTODO] - public ConnectionState State { - get { - return conState; - } - } - - public string ConnectionString { - get { - return connectionString; - } - set { - SetConnectionString (value); - } - } - - public int ConnectionTimeout { - get { - return connectionTimeout; - } - } - - public string Database { - get { - return dbname; - } - } - - public string DataSource { - get { - return host; - } - } - - public int PacketSize { - get { - throw new NotImplementedException (); - } - } - - public string ServerVersion { - get { - return versionString; - } - } - - #endregion // Public Properties - - #region Internal Properties - - // For System.Data.SqlClient classes - // to get the current transaction - // in progress - if any - internal SqlTransaction Transaction { - get { - return trans; - } - } - - // For System.Data.SqlClient classes - // to get the unmanaged PostgreSQL connection - internal IntPtr PostgresConnection { - get { - return pgConn; - } - } - - // For System.Data.SqlClient classes - // to get the list PostgreSQL types - // so can look up based on OID to - // get the .NET System type. - internal ArrayList Types { - get { - return types.List; - } - } - - // Used to prevent SqlConnection - // from doing anything while - // SqlDataReader is open - internal bool IsReaderOpen { - get { - return dataReaderOpen; - } - } - - #endregion // Internal Properties - - #region Events - - public event - SqlInfoMessageEventHandler InfoMessage; - - public event - StateChangeEventHandler StateChange; - - #endregion - - #region Inner Classes - - private class PostgresTypes { - // TODO: create hashtable for - // PostgreSQL types to .NET types - // containing: oid, typname, SqlDbType - - private Hashtable hashTypes; - private ArrayList pgTypes; - private SqlConnection con; - - // Got this SQL with the permission from - // the authors of libgda - private const string SEL_SQL_GetTypes = - "SELECT oid, typname FROM pg_type " + - "WHERE typrelid = 0 AND typname !~ '^_' " + - " AND typname not in ('SET', 'cid', " + - "'int2vector', 'oidvector', 'regproc', " + - "'smgr', 'tid', 'unknown', 'xid') " + - "ORDER BY typname"; - - internal PostgresTypes(SqlConnection sqlcon) { - - con = sqlcon; - hashTypes = new Hashtable(); - } - - private void AddPgType(Hashtable types, - string typname, DbType dbType) { - - PostgresType pgType = new PostgresType(); - - pgType.typname = typname; - pgType.dbType = dbType; - - types.Add(pgType.typname, pgType); - } - - private void BuildTypes(IntPtr pgResult, - int nRows, int nFields) { - - String value; - - int r; - for(r = 0; r < nRows; r++) { - PostgresType pgType = - new PostgresType(); - - // get data value (oid) - value = PostgresLibrary. - PQgetvalue( - pgResult, - r, 0); - - pgType.oid = Int32.Parse(value); - - // get data value (typname) - value = PostgresLibrary. - PQgetvalue( - pgResult, - r, 1); - pgType.typname = String.Copy(value); - pgType.dbType = PostgresHelper. - TypnameToSqlDbType( - pgType.typname); - - pgTypes.Add(pgType); - } - pgTypes = ArrayList.ReadOnly(pgTypes); - } - - internal void Load() { - pgTypes = new ArrayList(); - IntPtr pgResult = IntPtr.Zero; // PGresult - - if(con.State != ConnectionState.Open) - throw new InvalidOperationException( - "ConnnectionState is not Open"); - - // FIXME: PQexec blocks - // while PQsendQuery is non-blocking - // which is better to use? - // int PQsendQuery(PGconn *conn, - // const char *query); - - // execute SQL command - // uses internal property to get the PGConn IntPtr - pgResult = PostgresLibrary. - PQexec (con.PostgresConnection, SEL_SQL_GetTypes); - - if(pgResult.Equals(IntPtr.Zero)) { - throw new SqlException(0, 0, - "No Resultset from PostgreSQL", 0, "", - con.DataSource, "SqlConnection", 0); - } - else { - ExecStatusType execStatus; - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == ExecStatusType.PGRES_TUPLES_OK) { - int nRows; - int nFields; - - nRows = PostgresLibrary. - PQntuples(pgResult); - - nFields = PostgresLibrary. - PQnfields(pgResult); - - BuildTypes (pgResult, nRows, nFields); - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - else { - String errorMessage; - - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - // close result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - - throw new SqlException(0, 0, - errorMessage, 0, "", - con.DataSource, "SqlConnection", 0); - } - } - } - - public ArrayList List { - get { - return pgTypes; - } - } - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlDataAdapter.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlDataAdapter.cs deleted file mode 100644 index 526f8f368183f..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlDataAdapter.cs +++ /dev/null @@ -1,191 +0,0 @@ -// -// System.Data.SqlClient.SqlDataAdapter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc 2002 -// Copyright (C) 2002 Tim Coleman -// - -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - /// - /// Represents a set of command-related properties that are used - /// to fill the DataSet and update a data source, all this - /// from a SQL database. - /// - public sealed class SqlDataAdapter : DbDataAdapter, IDbDataAdapter - { - #region Fields - - SqlCommand deleteCommand; - SqlCommand insertCommand; - SqlCommand selectCommand; - SqlCommand updateCommand; - - static readonly object EventRowUpdated = new object(); - static readonly object EventRowUpdating = new object(); - - #endregion - - #region Constructors - - public SqlDataAdapter () - : this (new SqlCommand ()) - { - } - - public SqlDataAdapter (SqlCommand selectCommand) - { - DeleteCommand = new SqlCommand (); - InsertCommand = new SqlCommand (); - SelectCommand = selectCommand; - UpdateCommand = new SqlCommand (); - } - - public SqlDataAdapter (string selectCommandText, SqlConnection selectConnection) - : this (new SqlCommand (selectCommandText, selectConnection)) - { - } - - public SqlDataAdapter (string selectCommandText, string selectConnectionString) - : this (selectCommandText, new SqlConnection (selectConnectionString)) - { - } - - #endregion - - #region Properties - - public SqlCommand DeleteCommand { - get { - return deleteCommand; - } - set { - deleteCommand = value; - } - } - - public SqlCommand InsertCommand { - get { - return insertCommand; - } - set { - insertCommand = value; - } - } - - public SqlCommand SelectCommand { - get { - return selectCommand; - } - set { - selectCommand = value; - } - } - - public SqlCommand UpdateCommand { - get { - return updateCommand; - } - set { - updateCommand = value; - } - } - - IDbCommand IDbDataAdapter.DeleteCommand { - get { return DeleteCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - DeleteCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.InsertCommand { - get { return InsertCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - InsertCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.SelectCommand { - get { return SelectCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - SelectCommand = (SqlCommand)value; - } - } - - IDbCommand IDbDataAdapter.UpdateCommand { - get { return UpdateCommand; } - set { - if (!(value is SqlCommand)) - throw new ArgumentException (); - UpdateCommand = (SqlCommand)value; - } - } - - - ITableMappingCollection IDataAdapter.TableMappings { - get { return TableMappings; } - } - - #endregion // Properties - - #region Methods - - protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new SqlRowUpdatedEventArgs (dataRow, command, statementType, tableMapping); - } - - - protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - { - return new SqlRowUpdatingEventArgs (dataRow, command, statementType, tableMapping); - } - - protected override void OnRowUpdated (RowUpdatedEventArgs value) - { - SqlRowUpdatedEventHandler handler = (SqlRowUpdatedEventHandler) Events[EventRowUpdated]; - if ((handler != null) && (value is SqlRowUpdatedEventArgs)) - handler(this, (SqlRowUpdatedEventArgs) value); - } - - protected override void OnRowUpdating (RowUpdatingEventArgs value) - { - SqlRowUpdatingEventHandler handler = (SqlRowUpdatingEventHandler) Events[EventRowUpdating]; - if ((handler != null) && (value is SqlRowUpdatingEventArgs)) - handler(this, (SqlRowUpdatingEventArgs) value); - } - - #endregion // Methods - - #region Events and Delegates - - public event SqlRowUpdatedEventHandler RowUpdated { - add { Events.AddHandler (EventRowUpdated, value); } - remove { Events.RemoveHandler (EventRowUpdated, value); } - } - - public event SqlRowUpdatingEventHandler RowUpdating { - add { Events.AddHandler (EventRowUpdating, value); } - remove { Events.RemoveHandler (EventRowUpdating, value); } - } - - #endregion // Events and Delegates - - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs deleted file mode 100644 index 28d0e1bc4e725..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs +++ /dev/null @@ -1,422 +0,0 @@ -// -// System.Data.SqlClient.SqlDataReader.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// (C) Daniel Morgan 2002 -// -// Credits: -// SQL and concepts were used from libgda 0.8.190 (GNOME Data Access) -// http://www.gnome-db.org/ -// with permission from the authors of the -// PostgreSQL provider in libgda: -// Michael Lausch -// Rodrigo Moya -// Vivien Malerba -// Gonzalo Paniagua Javier -// - -// *** uncomment #define to get debug messages, comment for production *** -//#define DEBUG_SqlDataReader - - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; - -namespace System.Data.SqlClient { - /// - /// Provides a means of reading one or more forward-only streams - /// of result sets obtained by executing a command - /// at a SQL database. - /// - //public sealed class SqlDataReader : MarshalByRefObject, - // IEnumerable, IDataReader, IDisposable, IDataRecord - public sealed class SqlDataReader : IEnumerable, - IDataReader, IDataRecord { - #region Fields - - private SqlCommand cmd; - private DataTable table = null; - - // columns in a row - private object[] fields; // data value in a .NET type - private string[] types; // PostgreSQL Type - private bool[] isNull; // is NULL? - private int[] actualLength; // ActualLength of data - private DbType[] dbTypes; // DB data type - // actucalLength = -1 is variable-length - - private bool open = false; - IntPtr pgResult; // PGresult - private int rows; - private int cols; - - private int recordsAffected = -1; // TODO: get this value - - private int currentRow = -1; // no Read() has been done yet - - #endregion // Fields - - #region Constructors - - internal SqlDataReader (SqlCommand sqlCmd) { - - cmd = sqlCmd; - open = true; - cmd.OpenReader(this); - } - - #endregion - - #region Public Methods - - [MonoTODO] - public void Close() { - open = false; - - // free SqlDataReader resources in SqlCommand - // and allow SqlConnection to be used again - cmd.CloseReader(); - - // TODO: get parameters from result - - // clear unmanaged PostgreSQL result set - PostgresLibrary.PQclear (pgResult); - pgResult = IntPtr.Zero; - } - - [MonoTODO] - public DataTable GetSchemaTable() { - return table; - } - - [MonoTODO] - public bool NextResult() { - SqlResult res; - currentRow = -1; - bool resultReturned; - - // reset - table = null; - pgResult = IntPtr.Zero; - rows = 0; - cols = 0; - types = null; - recordsAffected = -1; - - res = cmd.NextResult(); - resultReturned = res.ResultReturned; - - if(resultReturned == true) { - table = res.Table; - pgResult = res.PgResult; - rows = res.RowCount; - cols = res.FieldCount; - types = res.PgTypes; - recordsAffected = res.RecordsAffected; - } - - res = null; - return resultReturned; - } - - [MonoTODO] - public bool Read() { - - string dataValue; - int c = 0; - - if(currentRow < rows - 1) { - - currentRow++; - - // re-init row - fields = new object[cols]; - //dbTypes = new DbType[cols]; - actualLength = new int[cols]; - isNull = new bool[cols]; - - for(c = 0; c < cols; c++) { - - // get data value - dataValue = PostgresLibrary. - PQgetvalue( - pgResult, - currentRow, c); - - // is column NULL? - //isNull[c] = PostgresLibrary. - // PQgetisnull(pgResult, - // currentRow, c); - - // get Actual Length - actualLength[c] = PostgresLibrary. - PQgetlength(pgResult, - currentRow, c); - - DbType dbType; - dbType = PostgresHelper. - TypnameToSqlDbType(types[c]); - - if(dataValue == null) { - fields[c] = null; - isNull[c] = true; - } - else if(dataValue.Equals("")) { - fields[c] = null; - isNull[c] = true; - } - else { - isNull[c] = false; - fields[c] = PostgresHelper. - ConvertDbTypeToSystem ( - dbType, - dataValue); - } - } - return true; - } - return false; // EOF - } - - [MonoTODO] - public byte GetByte(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public long GetBytes(int i, long fieldOffset, - byte[] buffer, int bufferOffset, - int length) { - throw new NotImplementedException (); - } - - [MonoTODO] - public char GetChar(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public long GetChars(int i, long fieldOffset, - char[] buffer, int bufferOffset, - int length) { - throw new NotImplementedException (); - } - - [MonoTODO] - public IDataReader GetData(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public string GetDataTypeName(int i) { - return types[i]; - } - - [MonoTODO] - public DateTime GetDateTime(int i) { - return (DateTime) fields[i]; - } - - [MonoTODO] - public decimal GetDecimal(int i) { - return (decimal) fields[i]; - } - - [MonoTODO] - public double GetDouble(int i) { - return (double) fields[i]; - } - - [MonoTODO] - public Type GetFieldType(int i) { - - DataRow row = table.Rows[i]; - return Type.GetType((string)row["DataType"]); - } - - [MonoTODO] - public float GetFloat(int i) { - return (float) fields[i]; - } - - [MonoTODO] - public Guid GetGuid(int i) { - throw new NotImplementedException (); - } - - [MonoTODO] - public short GetInt16(int i) { - return (short) fields[i]; - } - - [MonoTODO] - public int GetInt32(int i) { - return (int) fields[i]; - } - - [MonoTODO] - public long GetInt64(int i) { - return (long) fields[i]; - } - - [MonoTODO] - public string GetName(int i) { - - DataRow row = table.Rows[i]; - return (string) row["ColumnName"]; - } - - [MonoTODO] - public int GetOrdinal(string name) { - - int i; - DataRow row; - - for(i = 0; i < table.Rows.Count; i++) { - row = table.Rows[i]; - if(((string) row["ColumnName"]).Equals(name)) - return i; - } - - for(i = 0; i < table.Rows.Count; i++) { - string ta; - string n; - - row = table.Rows[i]; - ta = ((string) row["ColumnName"]).ToUpper(); - n = name.ToUpper(); - - if(ta.Equals(n)) { - return i; - } - } - - throw new MissingFieldException("Missing field: " + name); - } - - [MonoTODO] - public string GetString(int i) { - return (string) fields[i]; - } - - [MonoTODO] - public object GetValue(int i) { - return fields[i]; - } - - [MonoTODO] - public int GetValues(object[] values) - { - Array.Copy (fields, values, fields.Length); - return fields.Length; - } - - [MonoTODO] - public bool IsDBNull(int i) { - return isNull[i]; - } - - [MonoTODO] - public bool GetBoolean(int i) { - return (bool) fields[i]; - } - - [MonoTODO] - public IEnumerator GetEnumerator() { - throw new NotImplementedException (); - } - - #endregion // Public Methods - - #region Destructors - - [MonoTODO] - public void Dispose () { - } - - //[MonoTODO] - //~SqlDataReader() { - //} - - #endregion // Destructors - - #region Properties - - public int Depth { - [MonoTODO] - get { - return 0; // always return zero, unless - // this provider will allow - // nesting of a row - } - } - - public bool IsClosed { - [MonoTODO] - get { - if(open == false) - return true; - else - return false; - } - } - - public int RecordsAffected { - [MonoTODO] - get { - return recordsAffected; - } - } - - public int FieldCount { - [MonoTODO] - get { - return cols; - } - } - - public object this[string name] { - [MonoTODO] - get { - int i; - DataRow row; - - for(i = 0; i < table.Rows.Count; i++) { - row = table.Rows[i]; - if(row["ColumnName"].Equals(name)) - return fields[i]; - } - - for(i = 0; i < table.Rows.Count; i++) { - string ta; - string n; - - row = table.Rows[i]; - ta = ((string) row["ColumnName"]).ToUpper(); - n = name.ToUpper(); - - if(ta.Equals(n)) { - return fields[i]; - } - } - - throw new MissingFieldException("Missing field: " + name); - } - } - - public object this[int i] { - [MonoTODO] - get { - return fields[i]; - } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlError.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlError.cs deleted file mode 100644 index e7c722285a925..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlError.cs +++ /dev/null @@ -1,155 +0,0 @@ -// -// System.Data.SqlClient.SqlError.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// -using System; -using System.Data; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Describes an error from a SQL database. - /// - [MonoTODO] - public sealed class SqlError - { - byte theClass = 0; - int lineNumber = 0; - string message = ""; - int number = 0; - string procedure = ""; - string server = ""; - string source = ""; - byte state = 0; - - internal SqlError(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - this.theClass = theClass; - this.lineNumber = lineNumber; - this.message = message; - this.number = number; - this.procedure = procedure; - this.server = server; - this.source = source; - this.state = state; - } - - #region Properties - - [MonoTODO] - /// - /// severity level of the error - /// - public byte Class { - get { - return theClass; - } - } - - [MonoTODO] - public int LineNumber { - get { - return lineNumber; - } - } - - [MonoTODO] - public string Message { - get { - return message; - } - } - - [MonoTODO] - public int Number { - get { - return number; - } - } - - [MonoTODO] - public string Procedure { - get { - return procedure; - } - } - - [MonoTODO] - public string Server { - get { - return server; - } - } - - [MonoTODO] - public string Source { - get { - return source; - } - } - - [MonoTODO] - public byte State { - get { - return state; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override string ToString () - { - String toStr; - String stackTrace; - stackTrace = " "; - // FIXME: generate the correct SQL error string - toStr = "SqlError:" + message + stackTrace; - return toStr; - } - - internal void SetClass(byte theClass) { - this.theClass = theClass; - } - - internal void SetLineNumber(int lineNumber) { - this.lineNumber = lineNumber; - } - - internal void SetMessage(string message) { - this.message = message; - } - - internal void SetNumber(int number) { - this.number = number; - } - - internal void SetProcedure(string procedure) { - this.procedure = procedure; - } - - internal void SetServer(string server) { - this.server = server; - } - - internal void SetSource(string source) { - this.source = source; - } - - internal void SetState(byte state) { - this.state = state; - } - - #endregion - - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlErrorCollection.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlErrorCollection.cs deleted file mode 100644 index 7050d5d08fa78..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlErrorCollection.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// System.Data.SqlClient.SqlError.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// -using System; -using System.Collections; -using System.Data; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Describes an error from a SQL database. - /// - [MonoTODO] - public sealed class SqlErrorCollection : ICollection, IEnumerable - { - ArrayList errorList = new ArrayList(); - - internal SqlErrorCollection() { - } - - internal SqlErrorCollection(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - Add (theClass, lineNumber, message, - number, procedure, - server, source, state); - } - - #region Properties - - [MonoTODO] - public int Count { - get { - return errorList.Count; - } - } - - [MonoTODO] - public void CopyTo(Array array, int index) { - throw new NotImplementedException (); - } - - // [MonoTODO] - bool ICollection.IsSynchronized { - get { - throw new NotImplementedException (); - } - } - - // [MonoTODO] - object ICollection.SyncRoot { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public IEnumerator GetEnumerator() { - throw new NotImplementedException (); - } - - // Index property (indexer) - // [MonoTODO] - public SqlError this[int index] { - get { - return (SqlError) errorList[index]; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public override string ToString() - { - throw new NotImplementedException (); - } - #endregion - - internal void Add(SqlError error) { - errorList.Add(error); - } - - internal void Add(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - SqlError error = new SqlError(theClass, - lineNumber, message, - number, procedure, - server, source, state); - Add(error); - } - - #region Destructors - - [MonoTODO] - ~SqlErrorCollection() - { - // FIXME: do the destructor - release resources - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlException.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlException.cs deleted file mode 100644 index e447b5993721b..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlException.cs +++ /dev/null @@ -1,204 +0,0 @@ -// -// System.Data.SqlClient.SqlException.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc -// -using System; -using System.Data; -using System.Runtime.Serialization; - -namespace System.Data.SqlClient -{ - /// - /// Exceptions, as returned by SQL databases. - /// - public sealed class SqlException : SystemException - { - private SqlErrorCollection errors; - - internal SqlException() - : base("a SQL Exception has occurred") { - errors = new SqlErrorCollection(); - } - - internal SqlException(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) - : base(message) { - - errors = new SqlErrorCollection (theClass, - lineNumber, message, - number, procedure, - server, source, state); - } - - #region Properties - - [MonoTODO] - public byte Class { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception here? - else - return errors[0].Class; - } - - set { - errors[0].SetClass(value); - } - } - - [MonoTODO] - public SqlErrorCollection Errors { - get { - return errors; - } - - set { - errors = value; - } - } - - [MonoTODO] - public int LineNumber { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception here? - return errors[0].LineNumber; - } - - set { - errors[0].SetLineNumber(value); - } - } - - [MonoTODO] - public override string Message { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else { - String msg = ""; - int i = 0; - - for(i = 0; i < errors.Count - 1; i++) { - msg = msg + errors[i].Message + "\n"; - } - msg = msg + errors[i].Message; - - return msg; - } - } - } - - [MonoTODO] - public int Number { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception? - else - return errors[0].Number; - } - - set { - errors[0].SetNumber(value); - } - } - - [MonoTODO] - public string Procedure { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Procedure; - } - - set { - errors[0].SetProcedure(value); - } - } - - [MonoTODO] - public string Server { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Server; - } - - set { - errors[0].SetServer(value); - } - } - - [MonoTODO] - public override string Source { - get { - if(errors.Count == 0) - return ""; // FIXME: throw exception? - else - return errors[0].Source; - } - - set { - errors[0].SetSource(value); - } - } - - [MonoTODO] - public byte State { - get { - if(errors.Count == 0) - return 0; // FIXME: throw exception? - else - return errors[0].State; - } - - set { - errors[0].SetState(value); - } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override void GetObjectData(SerializationInfo si, - StreamingContext context) { - // FIXME: to do - } - - // [Serializable] - // [ClassInterface(ClassInterfaceType.AutoDual)] - public override string ToString() { - String toStr = ""; - for (int i = 0; i < errors.Count; i++) { - toStr = toStr + errors[i].ToString() + "\n"; - } - return toStr; - } - - internal void Add(byte theClass, int lineNumber, - string message, int number, string procedure, - string server, string source, byte state) { - - errors.Add (theClass, lineNumber, message, - number, procedure, - server, source, state); - } - - [MonoTODO] - ~SqlException() { - // FIXME: destructor to release resources - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventArgs.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventArgs.cs deleted file mode 100644 index df69dff1d35c6..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventArgs.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// System.Data.SqlClient.SqlInfoMessageEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public sealed class SqlInfoMessageEventArgs : EventArgs - { - [MonoTODO] - public SqlErrorCollection Errors { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string Message - { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public string Source { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public override string ToString() { - // representation of InfoMessage event - return "'ToString() for SqlInfoMessageEventArgs Not Implemented'"; - } - - //[MonoTODO] - //~SqlInfoMessageEventArgs() { - // FIXME: destructor needs to release resources - //} - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventHandler.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventHandler.cs deleted file mode 100644 index c9862d61c0325..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventHandler.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Data.SqlClient.SqlInfoMessageEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void - SqlInfoMessageEventHandler (object sender, - SqlInfoMessageEventArgs e); -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs deleted file mode 100644 index f79dad0dbfbe4..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs +++ /dev/null @@ -1,227 +0,0 @@ -// -// System.Data.SqlClient.SqlParameter.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc. 2002 -// -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Runtime.InteropServices; - -namespace System.Data.SqlClient -{ - /// - /// Represents a parameter to a Command object, and optionally, - /// its mapping to DataSet columns; and is implemented by .NET - /// data providers that access data sources. - /// - //public sealed class SqlParameter : MarshalByRefObject, - // IDbDataParameter, IDataParameter, ICloneable - public sealed class SqlParameter : IDbDataParameter, IDataParameter - { - private string parmName; - private SqlDbType dbtype; - private DbType theDbType; - private object objValue; - private int size; - private string sourceColumn; - private ParameterDirection direction; - private bool isNullable; - private byte precision; - private byte scale; - private DataRowVersion sourceVersion; - private int offset; - - [MonoTODO] - public SqlParameter () { - - } - - [MonoTODO] - public SqlParameter (string parameterName, object value) { - this.parmName = parameterName; - this.objValue = value; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType) { - this.parmName = parameterName; - this.dbtype = dbType; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size, string sourceColumn) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - this.sourceColumn = sourceColumn; - } - - [MonoTODO] - public SqlParameter(string parameterName, SqlDbType dbType, - int size, ParameterDirection direction, - bool isNullable, byte precision, - byte scale, string sourceColumn, - DataRowVersion sourceVersion, object value) { - - this.parmName = parameterName; - this.dbtype = dbType; - this.size = size; - this.sourceColumn = sourceColumn; - this.direction = direction; - this.isNullable = isNullable; - this.precision = precision; - this.scale = scale; - this.sourceVersion = sourceVersion; - this.objValue = value; - } - - [MonoTODO] - public DbType DbType { - get { - return theDbType; - } - set { - theDbType = value; - } - } - - [MonoTODO] - public ParameterDirection Direction { - get { - return direction; - } - set { - direction = value; - } - } - - [MonoTODO] - public bool IsNullable { - get { - return isNullable; - } - } - - [MonoTODO] - public int Offset { - get { - return offset; - } - - set { - offset = value; - } - } - - [MonoTODO] - public string ParameterName { - get { - return parmName; - } - - set { - parmName = value; - } - } - - [MonoTODO] - public string SourceColumn { - get { - return sourceColumn; - } - - set { - sourceColumn = value; - } - } - - [MonoTODO] - public DataRowVersion SourceVersion { - get { - return sourceVersion; - } - - set { - sourceVersion = value; - } - } - - [MonoTODO] - public SqlDbType SqlDbType { - get { - return dbtype; - } - - set { - dbtype = value; - } - } - - [MonoTODO] - public object Value { - get { - return objValue; - } - - set { - objValue = value; - } - } - - [MonoTODO] - public byte Precision { - get { - return precision; - } - - set { - precision = value; - } - } - - [MonoTODO] - public byte Scale { - get { - return scale; - } - - set { - scale = value; - } - } - - [MonoTODO] - public int Size - { - get { - return size; - } - - set { - size = value; - } - } - - [MonoTODO] - public override string ToString() { - return parmName; - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs deleted file mode 100644 index 1ccfae90c9a8e..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs +++ /dev/null @@ -1,276 +0,0 @@ -// -// System.Data.SqlClient.SqlParameterCollection.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.ComponentModel; -using System.Data; -using System.Data.Common; -using System.Collections; - -namespace System.Data.SqlClient -{ - /// - /// Collects all parameters relevant to a Command object - /// and their mappings to DataSet columns. - /// - // public sealed class SqlParameterCollection : MarshalByRefObject, - // IDataParameterCollection, IList, ICollection, IEnumerable - public sealed class SqlParameterCollection : IDataParameterCollection - { - private ArrayList parameterList = new ArrayList(); - private Hashtable parameterNames = new Hashtable(); - -/* - [MonoTODO] - public void RemoveAt(string parameterName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int IndexOf(string parameterName) - { - throw new NotImplementedException (); - } - - - [MonoTODO] - public bool Contains(string parameterName) - { - return parameterNames.ContainsKey(parameterName); - } -*/ - - [MonoTODO] - public IEnumerator GetEnumerator() - { - throw new NotImplementedException (); - } - - - public int Add( object value) - { - // Call the add version that receives a SqlParameter - - // Check if value is a SqlParameter. - CheckType(value); - Add((SqlParameter) value); - - return IndexOf (value); - } - - - public SqlParameter Add(SqlParameter value) - { - parameterList.Add(value); - parameterNames.Add(value.ParameterName, parameterList.Add(value)); - return value; - } - - - public SqlParameter Add(string parameterName, object value) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.Value = value; - // TODO: Get the dbtype and Sqldbtype from system type of value. - - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, SqlDbType sqlDbType) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, - SqlDbType sqlDbType, int size) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - sqlparam.Size = size; - return Add(sqlparam); - } - - - public SqlParameter Add(string parameterName, - SqlDbType sqlDbType, int size, string sourceColumn) - { - SqlParameter sqlparam = new SqlParameter(); - sqlparam.ParameterName = parameterName; - sqlparam.SqlDbType = sqlDbType; - sqlparam.Size = size; - sqlparam.SourceColumn = sourceColumn; - return Add(sqlparam); - } - - [MonoTODO] - public void Clear() - { - throw new NotImplementedException (); - } - - - public bool Contains(object value) - { - // Check if value is a SqlParameter - CheckType(value); - return Contains(((SqlParameter)value).ParameterName); - } - - - [MonoTODO] - public bool Contains(string value) - { - return parameterNames.ContainsKey(value); - } - - [MonoTODO] - public void CopyTo(Array array, int index) - { - throw new NotImplementedException (); - } - - - public int IndexOf(object value) - { - // Check if value is a SqlParameter - CheckType(value); - return IndexOf(((SqlParameter)value).ParameterName); - } - - - public int IndexOf(string parameterName) - { - return parameterList.IndexOf(parameterName); - } - - [MonoTODO] - public void Insert(int index, object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Remove(object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt(int index) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt(string parameterName) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public int Count { - get { - return parameterList.Count; - } - } - - object IList.this[int index] { - [MonoTODO] - get { - return (SqlParameter) this[index]; - } - - [MonoTODO] - set { - this[index] = (SqlParameter) value; - } - } - - public SqlParameter this[int index] { - get { - return (SqlParameter) parameterList[index]; - } - - set { - parameterList[index] = (SqlParameter) value; - } - } - - object IDataParameterCollection.this[string parameterName] { - [MonoTODO] - get { - return (SqlParameter) this[parameterName]; - } - - [MonoTODO] - set { - this[parameterName] = (SqlParameter) value; - } - } - - public SqlParameter this[string parameterName] { - get { - if(parameterNames.ContainsKey(parameterName)) - return (SqlParameter) parameterList[(int)parameterNames[parameterName]]; - else - throw new IndexOutOfRangeException("The specified name does not exist: " + parameterName); - } - - set { - if(parameterNames.ContainsKey(parameterName)) - parameterList[(int)parameterNames[parameterName]] = (SqlParameter) value; - else - throw new IndexOutOfRangeException("The specified name does not exist: " + parameterName); - } - } - - bool IList.IsFixedSize { - get { - throw new NotImplementedException (); - } - } - - bool IList.IsReadOnly { - get { - throw new NotImplementedException (); - } - } - - bool ICollection.IsSynchronized { - get { - throw new NotImplementedException (); - } - } - - object ICollection.SyncRoot { - get { - throw new NotImplementedException (); - } - } - - /// - /// This method checks if the parameter value is of - /// SqlParameter type. If it doesn't, throws an InvalidCastException. - /// - private void CheckType(object value) - { - if(!(value is SqlParameter)) - throw new InvalidCastException("Only SQLParameter objects can be used."); - } - - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventArgs.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventArgs.cs deleted file mode 100644 index dbc5789aa95eb..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventArgs.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatedEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient { - public sealed class SqlRowUpdatedEventArgs : RowUpdatedEventArgs - { - [MonoTODO] - public SqlRowUpdatedEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (row, command, statementType, tableMapping) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public new SqlCommand Command { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - ~SqlRowUpdatedEventArgs () - { - throw new NotImplementedException (); - } - - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventHandler.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventHandler.cs deleted file mode 100644 index 8cad2f1cbca51..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatedEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void SqlRowUpdatedEventHandler(object sender, - SqlRowUpdatedEventArgs e); -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventArgs.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventArgs.cs deleted file mode 100644 index 6194ca1f95de7..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventArgs.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatingEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - public sealed class SqlRowUpdatingEventArgs : RowUpdatingEventArgs - { - [MonoTODO] - public SqlRowUpdatingEventArgs (DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) - : base (row, command, statementType, tableMapping) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public new SqlCommand Command { - get { - throw new NotImplementedException (); - } - - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - ~SqlRowUpdatingEventArgs() - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventHandler.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventHandler.cs deleted file mode 100644 index 69c0228534dd3..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.SqlClient.SqlRowUpdatingEventHandler.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; - -namespace System.Data.SqlClient -{ - public delegate void SqlRowUpdatingEventHandler(object sender, - SqlRowUpdatingEventArgs e); -} diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs deleted file mode 100644 index 3a485b299c5ab..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs +++ /dev/null @@ -1,191 +0,0 @@ -// -// System.Data.SqlClient.SqlTransaction.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc. 2002 -// - -// use #define DEBUG_SqlTransaction if you want to spew debug messages -// #define DEBUG_SqlTransaction - - -using System; -using System.Data; -using System.Data.Common; - -namespace System.Data.SqlClient -{ - /// - /// Represents a transaction to be performed on a SQL database. - /// - // public sealed class SqlTransaction : MarshalByRefObject, - // IDbTransaction, IDisposable - public sealed class SqlTransaction : IDbTransaction - { - #region Fields - - private bool doingTransaction = false; - private SqlConnection conn = null; - private IsolationLevel isolationLevel = - IsolationLevel.ReadCommitted; - // There are only two IsolationLevel's for PostgreSQL: - // ReadCommitted and Serializable, - // but ReadCommitted is the default - - #endregion - - #region Public Methods - - [MonoTODO] - public void Commit () - { - if(doingTransaction == false) - throw new InvalidOperationException( - "Begin transaction was not " + - "done earlier " + - "thus PostgreSQL can not " + - "Commit transaction."); - - SqlCommand cmd = new SqlCommand("COMMIT", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = false; - } - - [MonoTODO] - public void Rollback() - { - if(doingTransaction == false) - throw new InvalidOperationException( - "Begin transaction was not " + - "done earlier " + - "thus PostgreSQL can not " + - "Rollback transaction."); - - SqlCommand cmd = new SqlCommand("ROLLBACK", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = false; - } - - // For PostgreSQL, Rollback(string) will not be implemented - // because PostgreSQL does not support Savepoints - [Obsolete] - public void Rollback(string transactionName) { - // throw new NotImplementedException (); - Rollback(); - } - - // For PostgreSQL, Save(string) will not be implemented - // because PostgreSQL does not support Savepoints - [Obsolete] - public void Save (string savePointName) { - // throw new NotImplementedException (); - } - - #endregion // Public Methods - - #region Internal Methods to System.Data.dll Assembly - - internal void Begin() - { - if(doingTransaction == true) - throw new InvalidOperationException( - "Transaction has begun " + - "and PostgreSQL does not " + - "support nested transactions."); - - SqlCommand cmd = new SqlCommand("BEGIN", conn); - cmd.ExecuteNonQuery(); - - doingTransaction = true; - } - - internal void SetIsolationLevel(IsolationLevel isoLevel) - { - String sSql = "SET TRANSACTION ISOLATION LEVEL "; - - switch (isoLevel) - { - case IsolationLevel.ReadCommitted: - sSql += "READ COMMITTED"; - break; - - case IsolationLevel.Serializable: - sSql += "SERIALIZABLE"; - break; - - default: - // FIXME: generate exception here - // PostgreSQL only supports: - // ReadCommitted or Serializable - break; - } - SqlCommand cmd = new SqlCommand(sSql, conn); - cmd.ExecuteNonQuery(); - - this.isolationLevel = isoLevel; - } - - internal void SetConnection(SqlConnection connection) - { - this.conn = connection; - } - - #endregion // Internal Methods to System.Data.dll Assembly - - #region Properties - - IDbConnection IDbTransaction.Connection { - get { - return Connection; - } - } - - public SqlConnection Connection { - get { - return conn; - } - } - - public IsolationLevel IsolationLevel { - get { - return isolationLevel; - } - } - - internal bool DoingTransaction { - get { - return doingTransaction; - } - } - - #endregion Properties - - #region Destructors - - // Destructors aka Finalize and Dispose - - [MonoTODO] - public void Dispose() - { - // FIXME: need to properly release resources - // Dispose(true); - } - - // Destructor - [MonoTODO] - // [Serializable] - // [ClassInterface(ClassInterfaceType.AutoDual)] - ~SqlTransaction() { - // FIXME: need to properly release resources - // Dispose(false); - } - - #endregion // Destructors - - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/INullable.cs b/mcs/class/System.Data/System.Data.SqlTypes/INullable.cs deleted file mode 100644 index cc4b6f9bb8f02..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/INullable.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// System.Data.SqlTypes.INullable -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc. -// - -namespace System.Data.SqlTypes -{ - /// - /// All of the System.Data.SqlTypes objects and structures implement the INullable interface, - /// reflecting the fact that, unlike the corresponding system types, SqlTypes can legally contain the value null. - /// - public interface INullable - { - bool IsNull { - get; - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlBinary.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlBinary.cs deleted file mode 100644 index 47a7b2b43ff4d..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlBinary.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// System.Data.SqlTypes.SqlBinary -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc. -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - /// - /// Represents a variable-length stream of binary data to be stored in or retrieved from a database. - /// - public struct SqlBinary : INullable, IComparable - { - - #region Fields - - byte[] value; - - public static readonly SqlBinary Null; - - #endregion - - #region Constructors - - public SqlBinary (byte[] value) - { - this.value = value; - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public byte this[int index] { - get { - if (this.IsNull) - throw new SqlNullValueException ("The property contains Null."); - else if (index >= this.Length) - throw new SqlNullValueException ("The index parameter indicates a position beyond the length of the byte array."); - else - return value [index]; - } - } - - public int Length { - get { - if (this.IsNull) - throw new SqlNullValueException ("The property contains Null."); - else - return value.Length; - } - } - - public byte[] Value - { - get { - if (this.IsNull) - throw new SqlNullValueException ("The property contains Null."); - else - return value; - } - } - - #endregion - - #region Methods - - [MonoTODO] - public int CompareTo (object value) - { - throw new NotImplementedException (); - } - - public static SqlBinary Concat (SqlBinary x, SqlBinary y) - { - return (x + y); - } - - public override bool Equals (object value) - { - if (!(value is SqlBinary)) - return false; - else - return (bool) (this == (SqlBinary)value); - } - - public static SqlBoolean Equals(SqlBinary x, SqlBinary y) - { - return (x == y); - } - - [MonoTODO] - public override int GetHashCode () - { - throw new NotImplementedException (); - } - - #endregion - - #region Operators - - public static SqlBoolean GreaterThan (SqlBinary x, SqlBinary y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlBinary x, SqlBinary y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlBinary x, SqlBinary y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlBinary x, SqlBinary y) - { - return (x <= y); - } - - public static SqlBoolean NotEquals (SqlBinary x, SqlBinary y) - { - return (x != y); - } - - public SqlGuid ToSqlGuid () - { - return new SqlGuid (value); - } - - [MonoTODO] - public override string ToString () - { - throw new NotImplementedException (); - } - - #endregion - - #region Operators - - [MonoTODO] - public static SqlBinary operator + (SqlBinary x, SqlBinary y) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator == (SqlBinary x, SqlBinary y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator > (SqlBinary x, SqlBinary y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator >= (SqlBinary x, SqlBinary y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator != (SqlBinary x, SqlBinary y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator < (SqlBinary x, SqlBinary y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator <= (SqlBinary x, SqlBinary y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - public static explicit operator byte[] (SqlBinary x) - { - return x.Value; - } - - [MonoTODO] - public static explicit operator SqlBinary (SqlGuid x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlBinary (byte[] x) - { - return new SqlBinary (x); - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlBoolean.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlBoolean.cs deleted file mode 100644 index 863d23f0227b2..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlBoolean.cs +++ /dev/null @@ -1,377 +0,0 @@ -// -// System.Data.SqlTypes.SqlBoolean -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc. 2002 -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - /// - /// Represents an integer value that is either 1 or 0 - /// to be stored in or retrieved from a database. - /// - public struct SqlBoolean : INullable, IComparable - { - - #region Fields - - byte value; - - public static readonly SqlBoolean False = new SqlBoolean (false); - public static readonly SqlBoolean Null; - public static readonly SqlBoolean One = new SqlBoolean (1); - public static readonly SqlBoolean True = new SqlBoolean (true); - public static readonly SqlBoolean Zero = new SqlBoolean (0); - - #endregion // Fields - - #region Constructors - - public SqlBoolean (bool value) - { - this.value = (byte) (value ? 1 : 0); - } - - public SqlBoolean (int value) - { - this.value = (byte) (value != 0 ? 1 : 0); - } - - #endregion // Constructors - - #region Properties - - public byte ByteValue { - get { - if (this.IsNull) - throw new SqlNullValueException( "The property is set to null."); - else - return value; - } - } - - public bool IsFalse { - get { - if (this.IsNull) - return false; - else - return (value == 0); - } - } - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public bool IsTrue { - get { - if (this.IsNull) - return false; - else - return (value != 0); - } - } - - public bool Value { - get { - if (this.IsNull) - throw new SqlNullValueException( "The property is set to null."); - else - return this.IsTrue; - } - } - - #endregion // Properties - - public static SqlBoolean And (SqlBoolean x, SqlBoolean y) - { - return (x & y); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlBoolean)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlBoolean")); - else if (((SqlBoolean)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlBoolean)value).ByteValue); - } - - public override bool Equals(object value) - { - if (!(value is SqlByte)) - return false; - else - return (bool) (this == (SqlBoolean)value); - } - - public static SqlBoolean Equals(SqlBoolean x, SqlBoolean y) - { - return (x == y); - } - - public override int GetHashCode() - { - return (int)value; - } - - public static SqlBoolean NotEquals(SqlBoolean x, SqlBoolean y) - { - return (x != y); - } - - public static SqlBoolean OnesComplement(SqlBoolean x) - { - return ~x; - } - - public static SqlBoolean Or(SqlBoolean x, SqlBoolean y) - { - return (x | y); - } - - public static SqlBoolean Parse(string s) - { - return new SqlBoolean (Boolean.Parse (s)); - } - - public SqlByte ToSqlByte() - { - return new SqlByte (value); - } - - // ************************************************** - // Conversion from SqlBoolean to other SqlTypes - // ************************************************** - - public SqlDecimal ToSqlDecimal() - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble() - { - return ((SqlDouble)this); - } - - public SqlInt16 ToSqlInt16() - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32() - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64() - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney() - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle() - { - return ((SqlSingle)this); - } - - [MonoTODO] - public SqlString ToSqlString() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override string ToString() - { - throw new NotImplementedException (); - } - - // Bitwise exclusive-OR (XOR) - public static SqlBoolean Xor(SqlBoolean x, SqlBoolean y) - { - return (x ^ y); - } - - // ************************************************** - // Public Operators - // ************************************************** - - // Bitwise AND - public static SqlBoolean operator & (SqlBoolean x, SqlBoolean y) - { - return new SqlBoolean (x.Value & y.Value); - } - - // Bitwise OR - public static SqlBoolean operator | (SqlBoolean x, SqlBoolean y) - { - return new SqlBoolean (x.Value | y.Value); - - } - - // Compares two instances for equality - public static SqlBoolean operator == (SqlBoolean x, SqlBoolean y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - // Bitwize exclusive-OR (XOR) - public static SqlBoolean operator ^ (SqlBoolean x, SqlBoolean y) - { - return new SqlBoolean (x.Value ^ y.Value); - } - - // test Value of SqlBoolean to determine it is false. - public static bool operator false (SqlBoolean x) - { - return x.IsFalse; - } - - // in-equality - public static SqlBoolean operator != (SqlBoolean x, SqlBoolean y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value != y.Value); - } - - // Logical NOT - public static SqlBoolean operator ! (SqlBoolean x) - { - if (x.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (!x.Value); - } - - // One's Complement - public static SqlBoolean operator ~ (SqlBoolean x) - { - return new SqlBoolean (~x.ByteValue); - } - - // test to see if value is true - public static bool operator true (SqlBoolean x) - { - return x.IsTrue; - } - - // **************************************** - // Type Conversion - // **************************************** - - - // SqlBoolean to Boolean - public static explicit operator bool (SqlBoolean x) - { - return x.Value; - } - - - // SqlByte to SqlBoolean - public static explicit operator SqlBoolean (SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean ((int)x.Value); - } - - // SqlDecimal to SqlBoolean - public static explicit operator SqlBoolean (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean ((int)x.Value); - } - - // SqlDouble to SqlBoolean - public static explicit operator SqlBoolean (SqlDouble x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean ((int)x.Value); - } - - // SqlInt16 to SqlBoolean - public static explicit operator SqlBoolean (SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean ((int)x.Value); - } - - // SqlInt32 to SqlBoolean - public static explicit operator SqlBoolean (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean (x.Value); - } - - // SqlInt64 to SqlBoolean - public static explicit operator SqlBoolean (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean ((int)x.Value); - } - - // SqlMoney to SqlBoolean - public static explicit operator SqlBoolean (SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean ((int)x.Value); - } - - // SqlSingle to SqlBoolean - public static explicit operator SqlBoolean (SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlBoolean ((int)x.Value); - } - - // SqlString to SqlBoolean - [MonoTODO] - public static explicit operator SqlBoolean (SqlString x) - { - throw new NotImplementedException (); - } - - // Boolean to SqlBoolean - public static implicit operator SqlBoolean (bool x) - { - return new SqlBoolean (x); - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlByte.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlByte.cs deleted file mode 100644 index feb5a339931cc..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlByte.cs +++ /dev/null @@ -1,390 +0,0 @@ -// -// System.Data.SqlTypes.SqlByte -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlByte : INullable, IComparable - { - #region Fields - - byte value; - public static readonly SqlByte MaxValue = new SqlByte (0xff); - public static readonly SqlByte MinValue = new SqlByte (0); - public static readonly SqlByte Null; - public static readonly SqlByte Zero = new SqlByte (0); - - #endregion - - #region Constructors - - public SqlByte (byte value) - { - this.value = value; - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public byte Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return value; - } - } - - #endregion - - #region Methods - - public static SqlByte Add (SqlByte x, SqlByte y) - { - return (x + y); - } - - public static SqlByte BitwiseAnd (SqlByte x, SqlByte y) - { - return (x & y); - } - - public static SqlByte BitwiseOr (SqlByte x, SqlByte y) - { - return (x | y); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlByte)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlByte")); - else if (((SqlByte)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlByte)value).Value); - } - - public static SqlByte Divide (SqlByte x, SqlByte y) - { - return (x / y); - } - - public override bool Equals (object value) - { - if (!(value is SqlByte)) - return false; - else - return (bool) (this == (SqlByte)value); - } - - public static SqlBoolean Equals (SqlByte x, SqlByte y) - { - return (x == y); - } - - public override int GetHashCode () - { - return (int)value; - } - - public static SqlBoolean GreaterThan (SqlByte x, SqlByte y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlByte x, SqlByte y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlByte x, SqlByte y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlByte x, SqlByte y) - { - return (x <= y); - } - - public static SqlByte Mod (SqlByte x, SqlByte y) - { - return (x % y); - } - - public static SqlByte Multiply (SqlByte x, SqlByte y) - { - return (x * y); - } - - public static SqlBoolean NotEquals (SqlByte x, SqlByte y) - { - return (x != y); - } - - public static SqlByte OnesComplement (SqlByte x) - { - return ~x; - } - - [MonoTODO] - public static SqlByte Parse (string s) - { - throw new NotImplementedException (); - } - - public static SqlByte Subtract (SqlByte x, SqlByte y) - { - return (x - y); - } - - public SqlBoolean ToSqlBoolean () - { - return ((SqlBoolean)this); - } - - public SqlDecimal ToSqlDecimal () - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble () - { - return ((SqlDouble)this); - } - - public SqlInt16 ToSqlInt16 () - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32 () - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64 () - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney () - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle () - { - return ((SqlSingle)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - public static SqlByte Xor (SqlByte x, SqlByte y) - { - return (x ^ y); - } - - public static SqlByte operator + (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value + y.Value)); - } - - public static SqlByte operator & (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value & y.Value)); - } - - public static SqlByte operator | (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value | y.Value)); - } - - public static SqlByte operator / (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value / y.Value)); - } - - public static SqlBoolean operator == (SqlByte x, SqlByte y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - public static SqlByte operator ^ (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value ^ y.Value)); - } - - public static SqlBoolean operator > (SqlByte x, SqlByte y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value > y.Value); - } - - public static SqlBoolean operator >= (SqlByte x, SqlByte y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value >= y.Value); - } - - public static SqlBoolean operator != (SqlByte x, SqlByte y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (!(x.Value == y.Value)); - } - - public static SqlBoolean operator < (SqlByte x, SqlByte y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value < y.Value); - } - - public static SqlBoolean operator <= (SqlByte x, SqlByte y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value <= y.Value); - } - - public static SqlByte operator % (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value % y.Value)); - } - - public static SqlByte operator * (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value * y.Value)); - } - - public static SqlByte operator ~ (SqlByte x) - { - return new SqlByte ((byte) ~x.Value); - } - - public static SqlByte operator - (SqlByte x, SqlByte y) - { - return new SqlByte ((byte) (x.Value - y.Value)); - } - - public static explicit operator SqlByte (SqlBoolean x) - { - if (x.IsNull) - return Null; - else - return new SqlByte (x.ByteValue); - } - - public static explicit operator byte (SqlByte x) - { - return x.Value; - } - - public static explicit operator SqlByte (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlByte ((byte)x.Value); - } - - public static explicit operator SqlByte (SqlDouble x) - { - if (x.IsNull) - return Null; - else - return new SqlByte ((byte)x.Value); - } - - public static explicit operator SqlByte (SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlByte ((byte)x.Value); - } - - public static explicit operator SqlByte (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlByte ((byte)x.Value); - } - - public static explicit operator SqlByte (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlByte ((byte)x.Value); - } - - public static explicit operator SqlByte (SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlByte ((byte)x.Value); - } - - public static explicit operator SqlByte (SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlByte ((byte)x.Value); - } - - [MonoTODO] - public static explicit operator SqlByte (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlByte (byte x) - { - return new SqlByte (x); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlCompareOptions.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlCompareOptions.cs deleted file mode 100644 index c0ffcb53eb64a..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlCompareOptions.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -// System.Data.SqlTypes.SqlCompareOptions.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc. 2002 -// - -namespace System.Data.SqlTypes -{ - /// - /// Specifies the compare option values for a SqlString structure. - /// - [Flags] - [Serializable] - public enum SqlCompareOptions { - BinarySort = 0x8000, - IgnoreCase = 0x1, - IgnoreKanaType = 0x8, - IgnoreNonSpace = 0x2, - IgnoreWidth = 0x10, - None = 0 - } - -} - - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlDateTime.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlDateTime.cs deleted file mode 100644 index ca53e30015333..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlDateTime.cs +++ /dev/null @@ -1,249 +0,0 @@ -// -// System.Data.SqlTypes.SqlDateTime -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlDateTime : INullable, IComparable - { - #region Fields - private DateTime value; - - public static readonly SqlDateTime MaxValue = new SqlDateTime (9999,12,31); - public static readonly SqlDateTime MinValue = new SqlDateTime (1753,1,1); - public static readonly SqlDateTime Null; - public static readonly int SQLTicksPerHour; - public static readonly int SQLTicksPerMinute; - public static readonly int SQLTicksPerSecond; - - #endregion - - #region Constructors - - public SqlDateTime (DateTime value) - { - this.value = value; - } - - [MonoTODO] - public SqlDateTime (int dayTicks, int timeTicks) - { - throw new NotImplementedException (); - } - - public SqlDateTime (int year, int month, int day) - { - this.value = new DateTime (year, month, day); - } - - public SqlDateTime (int year, int month, int day, int hour, int minute, int second) - { - this.value = new DateTime (year, month, day, hour, minute, second); - } - - [MonoTODO] - public SqlDateTime (int year, int month, int day, int hour, int minute, int second, double millisecond) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public SqlDateTime (int year, int month, int day, int hour, int minute, int second, int bilisecond) - { - throw new NotImplementedException (); - } - - #endregion - - #region Properties - - [MonoTODO] - public int DayTicks { - get { throw new NotImplementedException (); } - } - - public bool IsNull { - get { return (bool) (this == Null); } - } - - [MonoTODO] - public int TimeTicks { - get { throw new NotImplementedException (); } - } - - public DateTime Value { - get { - if (this.IsNull) - throw new SqlNullValueException ("The property contains Null."); - else - return value; - } - } - - #endregion - - #region Methods - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlDateTime)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlDateTime")); - else if (((SqlDateTime)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlDateTime)value).Value); - } - - public override bool Equals (object value) - { - if (!(value is SqlDateTime)) - return false; - else - return (bool) (this == (SqlDateTime)value); - } - - public static SqlBoolean Equals (SqlDateTime x, SqlDateTime y) - { - return (x == y); - } - - [MonoTODO] - public override int GetHashCode () - { - return 42; - } - - public static SqlBoolean GreaterThan (SqlDateTime x, SqlDateTime y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlDateTime x, SqlDateTime y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlDateTime x, SqlDateTime y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlDateTime x, SqlDateTime y) - { - return (x <= y); - } - - public static SqlBoolean NotEquals (SqlDateTime x, SqlDateTime y) - { - return (x != y); - } - - [MonoTODO] - public static SqlDateTime Parse (string s) - { - throw new NotImplementedException (); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - [MonoTODO] - public static SqlDateTime operator + (SqlDateTime x, TimeSpan t) - { - throw new NotImplementedException (); - } - - public static SqlBoolean operator == (SqlDateTime x, SqlDateTime y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - public static SqlBoolean operator > (SqlDateTime x, SqlDateTime y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value > y.Value); - } - - public static SqlBoolean operator >= (SqlDateTime x, SqlDateTime y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value >= y.Value); - } - - public static SqlBoolean operator != (SqlDateTime x, SqlDateTime y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (!(x.Value == y.Value)); - } - - public static SqlBoolean operator < (SqlDateTime x, SqlDateTime y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value < y.Value); - } - - public static SqlBoolean operator <= (SqlDateTime x, SqlDateTime y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value <= y.Value); - } - - [MonoTODO] - public static SqlDateTime operator - (SqlDateTime x, TimeSpan t) - { - throw new NotImplementedException (); - } - - public static explicit operator DateTime (SqlDateTime x) - { - return x.Value; - } - - [MonoTODO] - public static explicit operator SqlDateTime (SqlString x) - { - throw new NotImplementedException(); - } - - public static implicit operator SqlDateTime (DateTime x) - { - return new SqlDateTime (x); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs deleted file mode 100644 index 93017993f3507..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs +++ /dev/null @@ -1,638 +0,0 @@ -// -// System.Data.SqlTypes.SqlDecimal -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlDecimal : INullable, IComparable - { - #region Fields - - int[] value; - byte precision; - byte scale; - bool positive; - - // borrowed from System.Decimal - const int SCALE_SHIFT = 16; - const int SIGN_SHIFT = 31; - const int RESERVED_SS32_BITS = 0x7F00FFFF; - - public static readonly byte MaxPrecision = 38; - public static readonly byte MaxScale = 28; - public static readonly SqlDecimal MaxValue = new SqlDecimal (79228162514264337593543950335.0); - public static readonly SqlDecimal MinValue = new SqlDecimal (-79228162514264337593543950335.0); - public static readonly SqlDecimal Null; - - #endregion - - #region Constructors - - public SqlDecimal (decimal value) - { - int[] binData = Decimal.GetBits (value); - - this.precision = MaxPrecision; // this value seems unclear - - this.scale = (byte)(binData[3] >> SCALE_SHIFT); - if (this.scale > MaxScale || (this.scale & RESERVED_SS32_BITS) != 0) - throw new ArgumentException(Locale.GetText ("Invalid scale")); - - this.positive = ((binData[3] >> SIGN_SHIFT) > 0); - this.value = new int[4]; - this.value[0] = binData[0]; - this.value[1] = binData[1]; - this.value[2] = binData[2]; - this.value[3] = 0; - } - - public SqlDecimal (double value) : this ((decimal)value) { } - public SqlDecimal (int value) : this ((decimal)value) { } - public SqlDecimal (long value) : this ((decimal)value) { } - - public SqlDecimal (byte bPrecision, byte bScale, bool fPositive, int[] bits) : this (bPrecision, bScale, fPositive, bits[0], bits[1], bits[2], bits[3]) { } - - public SqlDecimal (byte bPrecision, byte bScale, bool fPositive, int data1, int data2, int data3, int data4) - { - this.precision = bPrecision; - this.scale = bScale; - this.positive = fPositive; - this.value = new int[4]; - this.value[0] = data1; - this.value[1] = data2; - this.value[2] = data3; - this.value[3] = data4; - } - - #endregion - - #region Properties - - [MonoTODO] - public byte[] BinData { - get { throw new NotImplementedException (); } - } - - public int[] Data { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return (value); - } - } - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public bool IsPositive { - get { return positive; } - } - - public byte Precision { - get { return precision; } - } - - public byte Scale { - get { return scale; } - } - - public decimal Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - if (this.value[3] > 0) - throw new OverflowException (); - else - System.Console.WriteLine( "boo!" ); - return new decimal (value[0], value[1], value[2], !positive, scale); - } - } - - #endregion - - #region Methods - - [MonoTODO] - public static SqlDecimal Abs (SqlDecimal n) - { - throw new NotImplementedException(); - } - - public static SqlDecimal Add (SqlDecimal x, SqlDecimal y) - { - return (x + y); - } - - [MonoTODO] - public static SqlDecimal AdjustScale (SqlDecimal n, int digits, bool fRound) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlDecimal Ceiling (SqlDecimal n) - { - throw new NotImplementedException(); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlDecimal)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlDecimal")); - else if (((SqlDecimal)value).IsNull) - return 1; - else - return this.Value.CompareTo (((SqlDecimal)value).Value); - } - - [MonoTODO] - public static SqlDecimal ConvertToPrecScale (SqlDecimal n, int precision, int scale) - { - throw new NotImplementedException (); - } - - public static SqlDecimal Divide (SqlDecimal x, SqlDecimal y) - { - return (x / y); - } - - public override bool Equals (object value) - { - if (!(value is SqlDecimal)) - return false; - else - return (bool) (this == (SqlDecimal)value); - } - - public static SqlBoolean Equals (SqlDecimal x, SqlDecimal y) - { - return (x == y); - } - - [MonoTODO] - public static SqlDecimal Floor (SqlDecimal n) - { - throw new NotImplementedException (); - } - - public override int GetHashCode () - { - return (int)this.Value; - } - - public static SqlBoolean GreaterThan (SqlDecimal x, SqlDecimal y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlDecimal x, SqlDecimal y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlDecimal x, SqlDecimal y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlDecimal x, SqlDecimal y) - { - return (x <= y); - } - - public static SqlDecimal Multiply (SqlDecimal x, SqlDecimal y) - { - return (x * y); - } - - public static SqlBoolean NotEquals (SqlDecimal x, SqlDecimal y) - { - return (x != y); - } - - [MonoTODO] - public static SqlDecimal Parse (string s) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlDecimal Power (SqlDecimal n, double exp) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlDecimal Round (SqlDecimal n, int position) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlInt32 Sign (SqlDecimal n) - { - throw new NotImplementedException (); - } - - public static SqlDecimal Subtract (SqlDecimal x, SqlDecimal y) - { - return (x - y); - } - - public double ToDouble () - { - return ((double)this.Value); - } - - public SqlBoolean ToSqlBoolean () - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte () - { - return ((SqlByte)this); - } - - public SqlDouble ToSqlDouble () - { - return ((SqlDouble)this); - } - - public SqlInt16 ToSqlInt16 () - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32 () - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64 () - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney () - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle () - { - return ((SqlSingle)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - [MonoTODO] - public static SqlDecimal Truncate (SqlDecimal n, int position) - { - throw new NotImplementedException (); - } - - public static SqlDecimal operator + (SqlDecimal x, SqlDecimal y) - { - // if one of them is negative, perform subtraction - if (x.IsPositive && !y.IsPositive) return x - y; - if (y.IsPositive && !x.IsPositive) return y - x; - - // adjust the scale to the smaller of the two beforehand - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - // set the precision to the greater of the two - byte resultPrecision; - if (x.Precision > y.Precision) - resultPrecision = x.Precision; - else - resultPrecision = y.Precision; - - int[] xData = x.Data; - int[] yData = y.Data; - int[] resultBits = new int[4]; - - ulong res; - ulong carry = 0; - - // add one at a time, and carry the results over to the next - for (int i = 0; i < 4; i +=1) - { - carry = 0; - res = (ulong)(xData[i]) + (ulong)(yData[i]) + carry; - if (res > Int32.MaxValue) - { - carry = res - Int32.MaxValue; - res = Int32.MaxValue; - } - resultBits [i] = (int)res; - } - - // if we have carry left, then throw an exception - if (carry > 0) - throw new OverflowException (); - else - return new SqlDecimal (resultPrecision, x.Scale, x.IsPositive, resultBits); - } - - [MonoTODO] - public static SqlDecimal operator / (SqlDecimal x, SqlDecimal y) - { - throw new NotImplementedException (); - } - - public static SqlBoolean operator == (SqlDecimal x, SqlDecimal y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - for (int i = 0; i < 4; i += 1) - { - if (x.Data[i] != y.Data[i]) - return new SqlBoolean (false); - } - return new SqlBoolean (true); - } - - public static SqlBoolean operator > (SqlDecimal x, SqlDecimal y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - for (int i = 3; i >= 0; i -= 1) - { - if (x.Data[i] == 0 && y.Data[i] == 0) - continue; - else - return new SqlBoolean (x.Data[i] > y.Data[i]); - } - return new SqlBoolean (false); - } - - public static SqlBoolean operator >= (SqlDecimal x, SqlDecimal y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - for (int i = 3; i >= 0; i -= 1) - { - if (x.Data[i] == 0 && y.Data[i] == 0) - continue; - else - return new SqlBoolean (x.Data[i] >= y.Data[i]); - } - return new SqlBoolean (true); - } - - public static SqlBoolean operator != (SqlDecimal x, SqlDecimal y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - for (int i = 0; i < 4; i += 1) - { - if (x.Data[i] != y.Data[i]) - return new SqlBoolean (true); - } - return new SqlBoolean (false); - } - - public static SqlBoolean operator < (SqlDecimal x, SqlDecimal y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - for (int i = 3; i >= 0; i -= 1) - { - if (x.Data[i] == 0 && y.Data[i] == 0) - continue; - - return new SqlBoolean (x.Data[i] < y.Data[i]); - } - return new SqlBoolean (false); - } - - public static SqlBoolean operator <= (SqlDecimal x, SqlDecimal y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - for (int i = 3; i >= 0; i -= 1) - { - if (x.Data[i] == 0 && y.Data[i] == 0) - continue; - else - return new SqlBoolean (x.Data[i] <= y.Data[i]); - } - return new SqlBoolean (true); - } - - public static SqlDecimal operator * (SqlDecimal x, SqlDecimal y) - { - // adjust the scale to the smaller of the two beforehand - if (x.Scale > y.Scale) - x = SqlDecimal.AdjustScale(x, y.Scale - x.Scale, true); - else if (y.Scale > x.Scale) - y = SqlDecimal.AdjustScale(y, x.Scale - y.Scale, true); - - // set the precision to the greater of the two - byte resultPrecision; - if (x.Precision > y.Precision) - resultPrecision = x.Precision; - else - resultPrecision = y.Precision; - - int[] xData = x.Data; - int[] yData = y.Data; - int[] resultBits = new int[4]; - - ulong res; - ulong carry = 0; - - // multiply one at a time, and carry the results over to the next - for (int i = 0; i < 4; i +=1) - { - carry = 0; - res = (ulong)(xData[i]) * (ulong)(yData[i]) + carry; - if (res > Int32.MaxValue) - { - carry = res - Int32.MaxValue; - res = Int32.MaxValue; - } - resultBits [i] = (int)res; - } - - // if we have carry left, then throw an exception - if (carry > 0) - throw new OverflowException (); - else - return new SqlDecimal (resultPrecision, x.Scale, (x.IsPositive == y.IsPositive), resultBits); - - } - - public static SqlDecimal operator - (SqlDecimal x, SqlDecimal y) - { - if (x.IsPositive && !y.IsPositive) return x + y; - if (!x.IsPositive && y.IsPositive) return -(x + y); - if (!x.IsPositive && !y.IsPositive) return y - x; - - // otherwise, x is positive and y is positive - bool resultPositive = (bool)(x > y); - int[] yData = y.Data; - - for (int i = 0; i < 4; i += 1) yData[i] = -yData[i]; - - SqlDecimal yInverse = new SqlDecimal (y.Precision, y.Scale, y.IsPositive, yData); - - if (resultPositive) - return x + yInverse; - else - return -(x + yInverse); - } - - public static SqlDecimal operator - (SqlDecimal n) - { - return new SqlDecimal (n.Precision, n.Scale, !n.IsPositive, n.Data); - } - - public static explicit operator SqlDecimal (SqlBoolean x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.ByteValue); - } - - public static explicit operator Decimal (SqlDecimal n) - { - return n.Value; - } - - public static explicit operator SqlDecimal (SqlDouble x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.Value); - } - - public static explicit operator SqlDecimal (SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.Value); - } - - [MonoTODO] - public static explicit operator SqlDecimal (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlDecimal (decimal x) - { - return new SqlDecimal (x); - } - - public static implicit operator SqlDecimal (SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.Value); - } - - public static implicit operator SqlDecimal (SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.Value); - } - - public static implicit operator SqlDecimal (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.Value); - } - - public static implicit operator SqlDecimal (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.Value); - } - - public static implicit operator SqlDecimal (SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlDecimal ((decimal)x.Value); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlDouble.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlDouble.cs deleted file mode 100644 index 427d13c0e174c..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlDouble.cs +++ /dev/null @@ -1,345 +0,0 @@ -// -// System.Data.SqlTypes.SqlDouble -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlDouble : INullable, IComparable - { - #region Fields - double value; - - public static readonly SqlDouble MaxValue = new SqlDouble (1.79E+308); - public static readonly SqlDouble MinValue = new SqlDouble (-1.79E+308); - public static readonly SqlDouble Null; - public static readonly SqlDouble Zero = new SqlDouble (0); - - #endregion - - #region Constructors - - public SqlDouble (double value) - { - this.value = value; - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public double Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return value; - } - } - - #endregion - - #region Methods - - public static SqlDouble Add (SqlDouble x, SqlDouble y) - { - return (x + y); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlDouble)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlDouble")); - else if (((SqlDouble)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlDouble)value).Value); - } - - public static SqlDouble Divide (SqlDouble x, SqlDouble y) - { - return (x / y); - } - - public override bool Equals (object value) - { - if (!(value is SqlDouble)) - return false; - else - return (bool) (this == (SqlDouble)value); - } - - public static SqlBoolean Equals (SqlDouble x, SqlDouble y) - { - return (x == y); - } - - public override int GetHashCode () - { - return (int)value; - } - - public static SqlBoolean GreaterThan (SqlDouble x, SqlDouble y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlDouble x, SqlDouble y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlDouble x, SqlDouble y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlDouble x, SqlDouble y) - { - return (x <= y); - } - - public static SqlDouble Multiply (SqlDouble x, SqlDouble y) - { - return (x * y); - } - - public static SqlBoolean NotEquals (SqlDouble x, SqlDouble y) - { - return (x != y); - } - - [MonoTODO] - public static SqlDouble Parse (string s) - { - throw new NotImplementedException (); - } - - public static SqlDouble Subtract (SqlDouble x, SqlDouble y) - { - return (x - y); - } - - public SqlBoolean ToSqlBoolean () - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte () - { - return ((SqlByte)this); - } - - public SqlDecimal ToSqlDecimal () - { - return ((SqlDecimal)this); - } - - public SqlInt16 ToSqlInt16 () - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32 () - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64 () - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney () - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle () - { - return ((SqlSingle)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - public static SqlDouble operator + (SqlDouble x, SqlDouble y) - { - return new SqlDouble (x.Value + y.Value); - } - - public static SqlDouble operator / (SqlDouble x, SqlDouble y) - { - return new SqlDouble (x.Value / y.Value); - } - - public static SqlBoolean operator == (SqlDouble x, SqlDouble y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - public static SqlBoolean operator > (SqlDouble x, SqlDouble y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value > y.Value); - } - - public static SqlBoolean operator >= (SqlDouble x, SqlDouble y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value >= y.Value); - } - - public static SqlBoolean operator != (SqlDouble x, SqlDouble y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (!(x.Value == y.Value)); - } - - public static SqlBoolean operator < (SqlDouble x, SqlDouble y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value < y.Value); - } - - public static SqlBoolean operator <= (SqlDouble x, SqlDouble y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value <= y.Value); - } - - public static SqlDouble operator * (SqlDouble x, SqlDouble y) - { - return new SqlDouble (x.Value * y.Value); - } - - public static SqlDouble operator - (SqlDouble x, SqlDouble y) - { - return new SqlDouble (x.Value - y.Value); - } - - public static SqlDouble operator - (SqlDouble n) - { - return new SqlDouble (-(n.Value)); - } - - public static explicit operator SqlDouble (SqlBoolean x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.ByteValue); - } - - public static explicit operator double (SqlDouble x) - { - return x.Value; - } - - [MonoTODO] - public static explicit operator SqlDouble (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlDouble (double x) - { - return new SqlDouble (x); - } - - public static implicit operator SqlDouble (SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.Value); - } - - public static implicit operator SqlDouble (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.Value); - } - - public static implicit operator SqlDouble (SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.Value); - } - - public static implicit operator SqlDouble (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.Value); - } - - public static implicit operator SqlDouble (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.Value); - } - - public static implicit operator SqlDouble (SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.Value); - } - - public static implicit operator SqlDouble (SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlDouble ((double)x.Value); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlGuid.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlGuid.cs deleted file mode 100644 index 5c020c57127b5..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlGuid.cs +++ /dev/null @@ -1,215 +0,0 @@ -// -// System.Data.SqlTypes.SqlGuid -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlGuid : INullable, IComparable - { - #region Fields - - Guid value; - - public static readonly SqlGuid Null; - - #endregion - - #region Constructors - - public SqlGuid (byte[] value) - { - this.value = new Guid (value); - } - - public SqlGuid (Guid g) - { - this.value = g; - } - - public SqlGuid (string s) - { - this.value = new Guid (s); - } - - public SqlGuid (int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k) - { - this.value = new Guid (a, b, c, d, e, f, g, h, i, j, k); - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == SqlGuid.Null); } - } - - public Guid Value { - get { - if (this.IsNull) - throw new SqlNullValueException ("The property contains Null."); - else - return value; - } - } - - #endregion - - #region Methods - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlGuid)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlGuid")); - else if (((SqlGuid)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlGuid)value).Value); - } - - public override bool Equals (object value) - { - if (!(value is SqlGuid)) - return false; - else - return (bool) (this == (SqlGuid)value); - } - - public static SqlBoolean Equals (SqlGuid x, SqlGuid y) - { - return (x == y); - } - - [MonoTODO] - public override int GetHashCode () - { - return 42; - } - - public static SqlBoolean GreaterThan (SqlGuid x, SqlGuid y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlGuid x, SqlGuid y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlGuid x, SqlGuid y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlGuid x, SqlGuid y) - { - return (x <= y); - } - - public static SqlBoolean NotEquals (SqlGuid x, SqlGuid y) - { - return (x != y); - } - - [MonoTODO] - public static SqlGuid Parse (string s) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public byte[] ToByteArray() - { - throw new NotImplementedException (); - } - - public SqlBinary ToSqlBinary () - { - return ((SqlBinary)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - public static SqlBoolean operator == (SqlGuid x, SqlGuid y) - { - if (x.IsNull || y.IsNull) return SqlBoolean.Null; - return new SqlBoolean (x.Value == y.Value); - } - - [MonoTODO] - public static SqlBoolean operator > (SqlGuid x, SqlGuid y) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator >= (SqlGuid x, SqlGuid y) - { - throw new NotImplementedException (); - } - - public static SqlBoolean operator != (SqlGuid x, SqlGuid y) - { - if (x.IsNull || y.IsNull) return SqlBoolean.Null; - return new SqlBoolean (!(x.Value == y.Value)); - } - - [MonoTODO] - public static SqlBoolean operator < (SqlGuid x, SqlGuid y) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static SqlBoolean operator <= (SqlGuid x, SqlGuid y) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static explicit operator SqlGuid (SqlBinary x) - { - throw new NotImplementedException (); - } - - public static explicit operator Guid (SqlGuid x) - { - return x.Value; - } - - [MonoTODO] - public static explicit operator SqlGuid (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlGuid (Guid x) - { - return new SqlGuid (x); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlInt16.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlInt16.cs deleted file mode 100644 index 725f9d0802309..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlInt16.cs +++ /dev/null @@ -1,396 +0,0 @@ -// -// System.Data.SqlTypes.SqlInt16 -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlInt16 : INullable, IComparable - { - #region Fields - - short value; - - public static readonly SqlInt16 MaxValue = new SqlInt16 (32767); - public static readonly SqlInt16 MinValue = new SqlInt16 (-32768); - public static readonly SqlInt16 Null; - public static readonly SqlInt16 Zero = new SqlInt16 (0); - - #endregion - - #region Constructors - - public SqlInt16 (short value) - { - this.value = value; - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public short Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return value; - } - } - - #endregion - - #region Methods - - public static SqlInt16 Add (SqlInt16 x, SqlInt16 y) - { - return (x + y); - } - - public static SqlInt16 BitwiseAnd (SqlInt16 x, SqlInt16 y) - { - return (x & y); - } - - public static SqlInt16 BitwiseOr (SqlInt16 x, SqlInt16 y) - { - return (x | y); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlInt16)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlInt16")); - else if (((SqlInt16)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlInt16)value).Value); - } - - public static SqlInt16 Divide (SqlInt16 x, SqlInt16 y) - { - return (x / y); - } - - public override bool Equals (object value) - { - if (!(value is SqlInt16)) - return false; - else - return (bool) (this == (SqlInt16)value); - } - - public static SqlBoolean Equals (SqlInt16 x, SqlInt16 y) - { - return (x == y); - } - - public override int GetHashCode () - { - return (int)value; - } - - public static SqlBoolean GreaterThan (SqlInt16 x, SqlInt16 y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlInt16 x, SqlInt16 y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlInt16 x, SqlInt16 y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlInt16 x, SqlInt16 y) - { - return (x <= y); - } - - public static SqlInt16 Mod (SqlInt16 x, SqlInt16 y) - { - return (x % y); - } - - public static SqlInt16 Multiply (SqlInt16 x, SqlInt16 y) - { - return (x * y); - } - - public static SqlBoolean NotEquals (SqlInt16 x, SqlInt16 y) - { - return (x != y); - } - - public static SqlInt16 OnesComplement (SqlInt16 x) - { - return ~x; - } - - [MonoTODO] - public static SqlInt16 Parse (string s) - { - throw new NotImplementedException (); - } - - public static SqlInt16 Subtract (SqlInt16 x, SqlInt16 y) - { - return (x - y); - } - - public SqlBoolean ToSqlBoolean () - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte () - { - return ((SqlByte)this); - } - - public SqlDecimal ToSqlDecimal () - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble () - { - return ((SqlDouble)this); - } - - public SqlInt32 ToSqlInt32 () - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64 () - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney () - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle () - { - return ((SqlSingle)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - public static SqlInt16 Xor (SqlInt16 x, SqlInt16 y) - { - return (x ^ y); - } - - public static SqlInt16 operator + (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x.Value + y.Value)); - } - - public static SqlInt16 operator & (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x.value & y.Value)); - } - - public static SqlInt16 operator | (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x | y)); - } - - public static SqlInt16 operator / (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x.Value / y.Value)); - } - - public static SqlBoolean operator == (SqlInt16 x, SqlInt16 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - public static SqlInt16 operator ^ (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x.Value ^ y.Value)); - } - - public static SqlBoolean operator > (SqlInt16 x, SqlInt16 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value > y.Value); - } - - public static SqlBoolean operator >= (SqlInt16 x, SqlInt16 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value >= y.Value); - } - - public static SqlBoolean operator != (SqlInt16 x, SqlInt16 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (!(x.Value == y.Value)); - } - - public static SqlBoolean operator < (SqlInt16 x, SqlInt16 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value < y.Value); - } - - public static SqlBoolean operator <= (SqlInt16 x, SqlInt16 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value <= y.Value); - } - - public static SqlInt16 operator % (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x.Value % y.Value)); - } - - public static SqlInt16 operator * (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x.Value * y.Value)); - } - - public static SqlInt16 operator ~ (SqlInt16 x) - { - return new SqlInt16 ((short) (~x.Value)); - } - - public static SqlInt16 operator - (SqlInt16 x, SqlInt16 y) - { - return new SqlInt16 ((short) (x.Value - y.Value)); - } - - public static SqlInt16 operator - (SqlInt16 n) - { - return new SqlInt16 ((short) (-n.Value)); - } - - public static explicit operator SqlInt16 (SqlBoolean x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.ByteValue); - } - - public static explicit operator SqlInt16 (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.Value); - } - - public static explicit operator SqlInt16 (SqlDouble x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.Value); - } - - public static explicit operator short (SqlInt16 x) - { - return x.Value; - } - - public static explicit operator SqlInt16 (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.Value); - } - - public static explicit operator SqlInt16 (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.Value); - } - - public static explicit operator SqlInt16 (SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.Value); - } - - public static explicit operator SqlInt16 (SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.Value); - } - - [MonoTODO] - public static explicit operator SqlInt16 (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlInt16 (short x) - { - return new SqlInt16 (x); - } - - public static implicit operator SqlInt16 (SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlInt16 ((short)x.Value); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlInt32.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlInt32.cs deleted file mode 100644 index 5319eb82774b1..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlInt32.cs +++ /dev/null @@ -1,423 +0,0 @@ -// -// System.Data.SqlTypes.SqlInt32 -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc. 2002 -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - - /// - /// a 32-bit signed integer to be used in reading or writing - /// of data from a database - /// - public struct SqlInt32 : INullable, IComparable - { - #region Fields - - int value; - - public static readonly SqlInt32 MaxValue = new SqlInt32 (2147483647); - public static readonly SqlInt32 MinValue = new SqlInt32 (-2147483648); - public static readonly SqlInt32 Null; - public static readonly SqlInt32 Zero = new SqlInt32 (0); - - #endregion - - #region Constructors - - public SqlInt32(int value) - { - this.value = value; - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public int Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return value; - } - } - - #endregion - - #region Methods - - public static SqlInt32 Add (SqlInt32 x, SqlInt32 y) - { - return (x + y); - } - - public static SqlInt32 BitwiseAnd(SqlInt32 x, SqlInt32 y) - { - return (x & y); - } - - public static SqlInt32 BitwiseOr(SqlInt32 x, SqlInt32 y) - { - return (x | y); - } - - public int CompareTo(object value) - { - if (value == null) - return 1; - else if (!(value is SqlInt32)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlInt32")); - else if (((SqlInt32)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlInt32)value).Value); - } - - public static SqlInt32 Divide(SqlInt32 x, SqlInt32 y) - { - return (x / y); - } - - public override bool Equals(object value) - { - if (!(value is SqlInt32)) - return false; - else - return (bool) (this == (SqlInt32)value); - } - - public static SqlBoolean Equals(SqlInt32 x, SqlInt32 y) - { - return (x == y); - } - - public override int GetHashCode() - { - return value; - } - - public static SqlBoolean GreaterThan (SqlInt32 x, SqlInt32 y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlInt32 x, SqlInt32 y) - { - return (x >= y); - } - - public static SqlBoolean LessThan(SqlInt32 x, SqlInt32 y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual(SqlInt32 x, SqlInt32 y) - { - return (x <= y); - } - - public static SqlInt32 Mod(SqlInt32 x, SqlInt32 y) - { - return (x % y); - } - - public static SqlInt32 Multiply(SqlInt32 x, SqlInt32 y) - { - return (x * y); - } - - public static SqlBoolean NotEquals(SqlInt32 x, SqlInt32 y) - { - return (x != y); - } - - public static SqlInt32 OnesComplement(SqlInt32 x) - { - return ~x; - } - - public static SqlInt32 Parse(string s) - { - throw new NotImplementedException (); - } - - public static SqlInt32 Subtract(SqlInt32 x, SqlInt32 y) - { - return (x - y); - } - - public SqlBoolean ToSqlBoolean() - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte() - { - return ((SqlByte)this); - } - - public SqlDecimal ToSqlDecimal() - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble() - { - return ((SqlDouble)this); - } - - public SqlInt16 ToSqlInt16() - { - return ((SqlInt16)this); - } - - public SqlInt64 ToSqlInt64() - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney() - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle() - { - return ((SqlSingle)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString() - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - public static SqlInt32 Xor(SqlInt32 x, SqlInt32 y) - { - return (x ^ y); - } - - #endregion - - #region Operators - - // Compute Addition - public static SqlInt32 operator + (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value + y.Value); - } - - // Bitwise AND - public static SqlInt32 operator & (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value & y.Value); - } - - // Bitwise OR - public static SqlInt32 operator | (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value | y.Value); - } - - // Compute Division - public static SqlInt32 operator / (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value / y.Value); - } - - // Compare Equality - public static SqlBoolean operator == (SqlInt32 x, SqlInt32 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - // Bitwise Exclusive-OR (XOR) - public static SqlInt32 operator ^ (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value ^ y.Value); - } - - // > Compare - public static SqlBoolean operator >(SqlInt32 x, SqlInt32 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value > y.Value); - } - - // >= Compare - public static SqlBoolean operator >= (SqlInt32 x, SqlInt32 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value >= y.Value); - } - - // != Inequality Compare - public static SqlBoolean operator != (SqlInt32 x, SqlInt32 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value != y.Value); - } - - // < Compare - public static SqlBoolean operator < (SqlInt32 x, SqlInt32 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value < y.Value); - } - - // <= Compare - public static SqlBoolean operator <= (SqlInt32 x, SqlInt32 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value <= y.Value); - } - - // Compute Modulus - public static SqlInt32 operator % (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value % y.Value); - } - - // Compute Multiplication - public static SqlInt32 operator * (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value * y.Value); - } - - // Ones Complement - public static SqlInt32 operator ~ (SqlInt32 x) - { - return new SqlInt32 (~x.Value); - } - - // Subtraction - public static SqlInt32 operator - (SqlInt32 x, SqlInt32 y) - { - return new SqlInt32 (x.Value - y.Value); - } - - // Negates the Value - public static SqlInt32 operator - (SqlInt32 x) - { - return new SqlInt32 (-x.Value); - } - - // Type Conversions - public static explicit operator SqlInt32 (SqlBoolean x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.ByteValue); - } - - public static explicit operator SqlInt32 (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.Value); - } - - public static explicit operator SqlInt32 (SqlDouble x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.Value); - } - - public static explicit operator int (SqlInt32 x) - { - return x.Value; - } - - public static explicit operator SqlInt32 (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.Value); - } - - public static explicit operator SqlInt32(SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.Value); - } - - public static explicit operator SqlInt32(SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.Value); - } - - [MonoTODO] - public static explicit operator SqlInt32(SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlInt32(int x) - { - return new SqlInt32 (x); - } - - public static implicit operator SqlInt32(SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.Value); - } - - public static implicit operator SqlInt32(SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlInt32 ((int)x.Value); - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlInt64.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlInt64.cs deleted file mode 100644 index aea159d17d471..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlInt64.cs +++ /dev/null @@ -1,398 +0,0 @@ -// -// System.Data.SqlTypes.SqlInt64 -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlInt64 : INullable, IComparable - { - #region Fields - - long value; - - [MonoTODO] - public static readonly SqlInt64 MaxValue; // 2^63 - 1 - - [MonoTODO] - public static readonly SqlInt64 MinValue; // -2^63 - - public static readonly SqlInt64 Null; - public static readonly SqlInt64 Zero = new SqlInt64 (0); - - #endregion - - #region Constructors - - public SqlInt64 (long value) - { - this.value = value; - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public long Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return value; - } - } - - #endregion - - #region Methods - - public static SqlInt64 Add (SqlInt64 x, SqlInt64 y) - { - return (x + y); - } - - public static SqlInt64 BitwiseAnd (SqlInt64 x, SqlInt64 y) - { - return (x & y); - } - - public static SqlInt64 BitwiseOr (SqlInt64 x, SqlInt64 y) - { - return (x | y); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlInt64)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlInt64")); - else if (((SqlInt64)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlInt64)value).Value); - } - - public static SqlInt64 Divide (SqlInt64 x, SqlInt64 y) - { - return (x / y); - } - - public override bool Equals (object value) - { - if (!(value is SqlInt64)) - return false; - else - return (bool) (this == (SqlInt64)value); - } - - public static SqlBoolean Equals (SqlInt64 x, SqlInt64 y) - { - return (x == y); - } - - [MonoTODO] - public override int GetHashCode () - { - return (int)value; - } - - public static SqlBoolean GreaterThan (SqlInt64 x, SqlInt64 y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlInt64 x, SqlInt64 y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlInt64 x, SqlInt64 y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlInt64 x, SqlInt64 y) - { - return (x <= y); - } - - public static SqlInt64 Mod (SqlInt64 x, SqlInt64 y) - { - return (x % y); - } - - public static SqlInt64 Multiply (SqlInt64 x, SqlInt64 y) - { - return (x * y); - } - - public static SqlBoolean NotEquals (SqlInt64 x, SqlInt64 y) - { - return (x != y); - } - - public static SqlInt64 OnesComplement (SqlInt64 x) - { - return ~x; - } - - [MonoTODO] - public static SqlInt64 Parse (string s) - { - throw new NotImplementedException (); - } - - public static SqlInt64 Subtract (SqlInt64 x, SqlInt64 y) - { - return (x - y); - } - - public SqlBoolean ToSqlBoolean () - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte () - { - return ((SqlByte)this); - } - - public SqlDecimal ToSqlDecimal () - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble () - { - return ((SqlDouble)this); - } - - public SqlInt16 ToSqlInt16 () - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32 () - { - return ((SqlInt32)this); - } - - public SqlMoney ToSqlMoney () - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle () - { - return ((SqlSingle)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - return value.ToString (); - } - - public static SqlInt64 Xor (SqlInt64 x, SqlInt64 y) - { - return (x ^ y); - } - - public static SqlInt64 operator + (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64 (x.Value + y.Value); - } - - public static SqlInt64 operator & (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64 (x.value & y.Value); - } - - public static SqlInt64 operator | (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64 (x.value | y.Value); - } - - public static SqlInt64 operator / (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64 (x.Value / y.Value); - } - - public static SqlBoolean operator == (SqlInt64 x, SqlInt64 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - public static SqlInt64 operator ^ (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64 (x.Value ^ y.Value); - } - - public static SqlBoolean operator > (SqlInt64 x, SqlInt64 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value > y.Value); - } - - public static SqlBoolean operator >= (SqlInt64 x, SqlInt64 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value >= y.Value); - } - - public static SqlBoolean operator != (SqlInt64 x, SqlInt64 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (!(x.Value == y.Value)); - } - - public static SqlBoolean operator < (SqlInt64 x, SqlInt64 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value < y.Value); - } - - public static SqlBoolean operator <= (SqlInt64 x, SqlInt64 y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value <= y.Value); - } - - public static SqlInt64 operator % (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64(x.Value % y.Value); - } - - public static SqlInt64 operator * (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64 (x.Value * y.Value); - } - - public static SqlInt64 operator ~ (SqlInt64 x) - { - return new SqlInt64 (~(x.Value)); - } - - public static SqlInt64 operator - (SqlInt64 x, SqlInt64 y) - { - return new SqlInt64 (x.Value - y.Value); - } - - public static SqlInt64 operator - (SqlInt64 n) - { - return new SqlInt64 (-(n.Value)); - } - - public static explicit operator SqlInt64 (SqlBoolean x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.ByteValue); - } - - public static explicit operator SqlInt64 (SqlDecimal x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.Value); - } - - public static explicit operator SqlInt64 (SqlDouble x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.Value); - } - - public static explicit operator long (SqlInt64 x) - { - return x.Value; - } - - public static explicit operator SqlInt64 (SqlMoney x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.Value); - } - - public static explicit operator SqlInt64 (SqlSingle x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.Value); - } - - [MonoTODO] - public static explicit operator SqlInt64 (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlInt64 (long x) - { - return new SqlInt64 (x); - } - - public static implicit operator SqlInt64 (SqlByte x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.Value); - } - - public static implicit operator SqlInt64 (SqlInt16 x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.Value); - } - - public static implicit operator SqlInt64 (SqlInt32 x) - { - if (x.IsNull) - return SqlInt64.Null; - else - return new SqlInt64 ((long)x.Value); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlMoney.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlMoney.cs deleted file mode 100644 index 1767ee099dbe6..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlMoney.cs +++ /dev/null @@ -1,381 +0,0 @@ -// -// System.Data.SqlTypes.SqlMoney -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlMoney : INullable, IComparable - { - #region Fields - - decimal value; - - public static readonly SqlMoney MaxValue = new SqlMoney (922337203685475.5807); - public static readonly SqlMoney MinValue = new SqlMoney (-922337203685477.5808); - public static readonly SqlMoney Null; - public static readonly SqlMoney Zero = new SqlMoney (0); - - #endregion - - #region Constructors - - public SqlMoney (decimal value) - { - this.value = value; - } - - public SqlMoney (double value) - { - this.value = (decimal)value; - } - - public SqlMoney (int value) - { - this.value = (decimal)value; - } - - public SqlMoney (long value) - { - this.value = (decimal)value; - } - - #endregion - - #region Properties - - [MonoTODO] - public bool IsNull { - get { return (bool) (this == Null); } - } - - public decimal Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return value; - } - } - - #endregion - - #region Methods - - public static SqlMoney Add (SqlMoney x, SqlMoney y) - { - return (x + y); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlMoney)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlMoney")); - else if (((SqlMoney)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlMoney)value).Value); - } - - public static SqlMoney Divide (SqlMoney x, SqlMoney y) - { - return (x / y); - } - - public override bool Equals (object value) - { - if (!(value is SqlMoney)) - return false; - else - return (bool) (this == (SqlMoney)value); - } - - public static SqlBoolean Equals (SqlMoney x, SqlMoney y) - { - return (x == y); - } - - [MonoTODO] - public override int GetHashCode () - { - return (int)value; - } - - public static SqlBoolean GreaterThan (SqlMoney x, SqlMoney y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlMoney x, SqlMoney y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlMoney x, SqlMoney y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlMoney x, SqlMoney y) - { - return (x <= y); - } - - public static SqlMoney Multiply (SqlMoney x, SqlMoney y) - { - return (x * y); - } - - public static SqlBoolean NotEquals (SqlMoney x, SqlMoney y) - { - return (x != y); - } - - [MonoTODO] - public static SqlMoney Parse (string s) - { - throw new NotImplementedException (); - } - - public static SqlMoney Subtract (SqlMoney x, SqlMoney y) - { - return (x - y); - } - - public decimal ToDecimal () - { - return value; - } - - public double ToDouble () - { - return (double)value; - } - - public int ToInt32 () - { - return (int)value; - } - - public long ToInt64 () - { - return (long)value; - } - - public SqlBoolean ToSqlBoolean () - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte () - { - return ((SqlByte)this); - } - - public SqlDecimal ToSqlDecimal () - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble () - { - return ((SqlDouble)this); - } - - public SqlInt16 ToSqlInt16 () - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32 () - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64 () - { - return ((SqlInt64)this); - } - - public SqlSingle ToSqlSingle () - { - return ((SqlSingle)this); - } - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - if (this.IsNull) - return String.Empty; - else - return value.ToString (); - } - - public static SqlMoney operator + (SqlMoney x, SqlMoney y) - { - return new SqlMoney (x.Value + y.Value); - } - - public static SqlMoney operator / (SqlMoney x, SqlMoney y) - { - return new SqlMoney (x.Value / y.Value); - } - - public static SqlBoolean operator == (SqlMoney x, SqlMoney y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - public static SqlBoolean operator > (SqlMoney x, SqlMoney y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value > y.Value); - } - - public static SqlBoolean operator >= (SqlMoney x, SqlMoney y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value >= y.Value); - } - - public static SqlBoolean operator != (SqlMoney x, SqlMoney y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (!(x.Value == y.Value)); - } - - public static SqlBoolean operator < (SqlMoney x, SqlMoney y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value < y.Value); - } - - public static SqlBoolean operator <= (SqlMoney x, SqlMoney y) - { - if (x.IsNull || y.IsNull) return SqlBoolean.Null; - return new SqlBoolean (x.Value <= y.Value); - } - - public static SqlMoney operator * (SqlMoney x, SqlMoney y) - { - return new SqlMoney (x.Value * y.Value); - } - - public static SqlMoney operator - (SqlMoney x, SqlMoney y) - { - return new SqlMoney (x.Value - y.Value); - } - - public static SqlMoney operator - (SqlMoney n) - { - return new SqlMoney (-(n.Value)); - } - - public static explicit operator SqlMoney (SqlBoolean x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney ((decimal)x.ByteValue); - } - - public static explicit operator SqlMoney (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney (x.Value); - } - - public static explicit operator SqlMoney (SqlDouble x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney ((decimal)x.Value); - } - - public static explicit operator decimal (SqlMoney x) - { - return x.Value; - } - - public static explicit operator SqlMoney (SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney ((decimal)x.Value); - } - - [MonoTODO] - public static explicit operator SqlMoney (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlMoney (decimal x) - { - return new SqlMoney (x); - } - - public static implicit operator SqlMoney (SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney ((decimal)x.Value); - } - - public static implicit operator SqlMoney (SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney ((decimal)x.Value); - } - - public static implicit operator SqlMoney (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney ((decimal)x.Value); - } - - public static implicit operator SqlMoney (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlMoney ((decimal)x.Value); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlNullValueException.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlNullValueException.cs deleted file mode 100644 index 19c3c13ed4d14..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlNullValueException.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.Data.SqlNullValueException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data.SqlTypes { - - [Serializable] - public class SqlNullValueException : SqlTypeException - { - public SqlNullValueException () - : base (Locale.GetText ("The value property is null")) - { - } - - public SqlNullValueException (string message) - : base (message) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlSingle.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlSingle.cs deleted file mode 100644 index 4b5f05537d23a..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlSingle.cs +++ /dev/null @@ -1,332 +0,0 @@ -// -// System.Data.SqlTypes.SqlSingle -// -// Author: -// Tim Coleman -// -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - public struct SqlSingle : INullable, IComparable - { - #region Fields - - float value; - - public static readonly SqlSingle MaxValue = new SqlSingle (3.40E+38); - public static readonly SqlSingle MinValue = new SqlSingle (-3.40E+38); - public static readonly SqlSingle Null; - public static readonly SqlSingle Zero = new SqlSingle (0); - - #endregion - - #region Constructors - - public SqlSingle (double value) - { - this.value = (float)value; - } - - public SqlSingle (float value) - { - this.value = value; - } - - #endregion - - #region Properties - - public bool IsNull { - get { return (bool) (this == Null); } - } - - public float Value { - get { - if (this.IsNull) - throw new SqlNullValueException (); - else - return value; - } - } - - #endregion - - #region Methods - - public static SqlSingle Add (SqlSingle x, SqlSingle y) - { - return (x + y); - } - - public int CompareTo (object value) - { - if (value == null) - return 1; - else if (!(value is SqlSingle)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlSingle")); - else if (((SqlSingle)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlSingle)value).Value); - } - - public static SqlSingle Divide (SqlSingle x, SqlSingle y) - { - return (x / y); - } - - public override bool Equals (object value) - { - if (!(value is SqlSingle)) - return false; - else - return (bool) (this == (SqlSingle)value); - } - - public static SqlBoolean Equals (SqlSingle x, SqlSingle y) - { - return (x == y); - } - - [MonoTODO] - public override int GetHashCode () - { - return (int)value; - } - - public static SqlBoolean GreaterThan (SqlSingle x, SqlSingle y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual (SqlSingle x, SqlSingle y) - { - return (x >= y); - } - - public static SqlBoolean LessThan (SqlSingle x, SqlSingle y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual (SqlSingle x, SqlSingle y) - { - return (x <= y); - } - - public static SqlSingle Multiply (SqlSingle x, SqlSingle y) - { - return (x * y); - } - - public static SqlBoolean NotEquals (SqlSingle x, SqlSingle y) - { - return (x != y); - } - - [MonoTODO] - public static SqlSingle Parse (string s) - { - throw new NotImplementedException (); - } - - public static SqlSingle Subtract (SqlSingle x, SqlSingle y) - { - return (x - y); - } - - public SqlBoolean ToSqlBoolean () - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte () - { - return ((SqlByte)this); - } - - public SqlDecimal ToSqlDecimal () - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble () - { - return ((SqlDouble)this); - } - - public SqlInt16 ToSqlInt16 () - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32 () - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64 () - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney () - { - return ((SqlMoney)this); - } - - - public SqlString ToSqlString () - { - return ((SqlString)this); - } - - public override string ToString () - { - return value.ToString (); - } - - public static SqlSingle operator + (SqlSingle x, SqlSingle y) - { - return new SqlSingle (x.Value + y.Value); - } - - public static SqlSingle operator / (SqlSingle x, SqlSingle y) - { - return new SqlSingle (x.Value / y.Value); - } - - public static SqlBoolean operator == (SqlSingle x, SqlSingle y) - { - if (x.IsNull || y .IsNull) return SqlBoolean.Null; - return new SqlBoolean (x.Value == y.Value); - } - - public static SqlBoolean operator > (SqlSingle x, SqlSingle y) - { - if (x.IsNull || y .IsNull) return SqlBoolean.Null; - return new SqlBoolean (x.Value > y.Value); - } - - public static SqlBoolean operator >= (SqlSingle x, SqlSingle y) - { - if (x.IsNull || y .IsNull) return SqlBoolean.Null; - return new SqlBoolean (x.Value >= y.Value); - } - - public static SqlBoolean operator != (SqlSingle x, SqlSingle y) - { - if (x.IsNull || y .IsNull) return SqlBoolean.Null; - return new SqlBoolean (!(x.Value == y.Value)); - } - - public static SqlBoolean operator < (SqlSingle x, SqlSingle y) - { - if (x.IsNull || y .IsNull) return SqlBoolean.Null; - return new SqlBoolean (x.Value < y.Value); - } - - public static SqlBoolean operator <= (SqlSingle x, SqlSingle y) - { - if (x.IsNull || y .IsNull) return SqlBoolean.Null; - return new SqlBoolean (x.Value <= y.Value); - } - - public static SqlSingle operator * (SqlSingle x, SqlSingle y) - { - return new SqlSingle (x.Value * y.Value); - } - - public static SqlSingle operator - (SqlSingle x, SqlSingle y) - { - return new SqlSingle (x.Value - y.Value); - } - - public static SqlSingle operator - (SqlSingle n) - { - return new SqlSingle (-(n.Value)); - } - - public static explicit operator SqlSingle (SqlBoolean x) - { - return new SqlSingle((float)x.ByteValue); - } - - public static explicit operator SqlSingle (SqlDouble x) - { - return new SqlSingle((float)x.Value); - } - - public static explicit operator float (SqlSingle x) - { - return x.Value; - } - - [MonoTODO] - public static explicit operator SqlSingle (SqlString x) - { - throw new NotImplementedException (); - } - - public static implicit operator SqlSingle (float x) - { - return new SqlSingle (x); - } - - public static implicit operator SqlSingle (SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlSingle((float)x.Value); - } - - public static implicit operator SqlSingle (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlSingle((float)x.Value); - } - - public static implicit operator SqlSingle (SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlSingle((float)x.Value); - } - - public static implicit operator SqlSingle (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlSingle((float)x.Value); - } - - public static implicit operator SqlSingle (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlSingle((float)x.Value); - } - - public static implicit operator SqlSingle (SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlSingle((float)x.Value); - } - - #endregion - } -} - diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlString.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlString.cs deleted file mode 100644 index 46f5c2f0d926b..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlString.cs +++ /dev/null @@ -1,461 +0,0 @@ -// -// System.Data.SqlTypes.SqlString -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// Tim Coleman (tim@timcoleman.com) -// -// (C) Ximian, Inc. 2002 -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Globalization; - -namespace System.Data.SqlTypes -{ - /// - /// A variable-length stream of characters - /// to be stored in or retrieved from the database - /// - public struct SqlString : INullable, IComparable - { - - #region Fields - - string value; - - public static readonly int BinarySort; - public static readonly int IgnoreCase; - public static readonly int IgnoreKanaType; - public static readonly int IgnoreNonSpace; - public static readonly int IgnoreWidth; - public static readonly SqlString Null; - - #endregion // Fields - - #region Constructors - - // init with a string data - public SqlString (string data) - { - this.value = data; - } - - // init with a string data and locale id values. - [MonoTODO] - public SqlString (string data, int lcid) - { - throw new NotImplementedException (); - } - - // init with locale id, compare options, - // and an array of bytes data - [MonoTODO] - public SqlString (int lcid, SqlCompareOptions compareOptions, byte[] data) - { - throw new NotImplementedException (); - } - - // init with string data, locale id, and compare options - [MonoTODO] - public SqlString (string data, int lcid, SqlCompareOptions compareOptions) - { - throw new NotImplementedException (); - } - - // init with locale id, compare options, array of bytes data, - // and whether unicode is encoded or not - [MonoTODO] - public SqlString (int lcid, SqlCompareOptions compareOptions, byte[] data, bool fUnicode) - { - throw new NotImplementedException (); - } - - // init with locale id, compare options, array of bytes data, - // starting index in the byte array, - // and number of bytes to copy - [MonoTODO] - public SqlString (int lcid, SqlCompareOptions compareOptions, byte[] data, int index, int count) - { - throw new NotImplementedException (); - } - - // init with locale id, compare options, array of bytes data, - // starting index in the byte array, number of byte to copy, - // and whether unicode is encoded or not - [MonoTODO] - public SqlString (int lcid, SqlCompareOptions compareOptions, byte[] data, int index, int count, bool fUnicode) - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - - #region Public Properties - - public CompareInfo CompareInfo { - [MonoTODO] - get { throw new NotImplementedException (); - } - } - - public CultureInfo CultureInfo { - [MonoTODO] - get { throw new NotImplementedException (); - } - } - - public bool IsNull { - get { return (bool) (this == SqlString.Null); } - } - - // geographics location and language (locale id) - public int LCID { - [MonoTODO] - get { throw new NotImplementedException (); - } - } - - public SqlCompareOptions SqlCompareOptions { - [MonoTODO] - get { throw new NotImplementedException (); - } - } - - public string Value { - get { - if (this.IsNull) - throw new SqlNullValueException ("The property contains Null."); - else - return value; - } - } - - #endregion // Public Properties - - #region Public Methods - - [MonoTODO] - public SqlString Clone() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static CompareOptions CompareOptionsFromSqlCompareOptions (SqlCompareOptions compareOptions) - { - throw new NotImplementedException (); - } - - // ********************************** - // Comparison Methods - // ********************************** - - public int CompareTo(object value) - { - if (value == null) - return 1; - else if (!(value is SqlString)) - throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlString")); - else if (((SqlString)value).IsNull) - return 1; - else - return this.value.CompareTo (((SqlString)value).Value); - } - - public static SqlString Concat(SqlString x, SqlString y) - { - return (x + y); - } - - public override bool Equals(object value) - { - if (!(value is SqlString)) - return false; - else - return (bool) (this == (SqlString)value); - } - - public static SqlBoolean Equals(SqlString x, SqlString y) - { - return (x == y); - } - - [MonoTODO] - public override int GetHashCode() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public byte[] GetNonUnicodeBytes() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public byte[] GetUnicodeBytes() - { - throw new NotImplementedException (); - } - - public static SqlBoolean GreaterThan(SqlString x, SqlString y) - { - return (x > y); - } - - public static SqlBoolean GreaterThanOrEqual(SqlString x, SqlString y) - { - return (x >= y); - } - - public static SqlBoolean LessThan(SqlString x, SqlString y) - { - return (x < y); - } - - public static SqlBoolean LessThanOrEqual(SqlString x, SqlString y) - { - return (x <= y); - } - - public static SqlBoolean NotEquals(SqlString x, SqlString y) - { - return (x != y); - } - - // **************************************** - // Type Conversions From SqlString To ... - // **************************************** - - public SqlBoolean ToSqlBoolean() - { - return ((SqlBoolean)this); - } - - public SqlByte ToSqlByte() - { - return ((SqlByte)this); - } - - public SqlDateTime ToSqlDateTime() - { - return ((SqlDateTime)this); - } - - public SqlDecimal ToSqlDecimal() - { - return ((SqlDecimal)this); - } - - public SqlDouble ToSqlDouble() - { - return ((SqlDouble)this); - } - - public SqlGuid ToSqlGuid() - { - return ((SqlGuid)this); - } - - public SqlInt16 ToSqlInt16() - { - return ((SqlInt16)this); - } - - public SqlInt32 ToSqlInt32() - { - return ((SqlInt32)this); - } - - public SqlInt64 ToSqlInt64() - { - return ((SqlInt64)this); - } - - public SqlMoney ToSqlMoney() - { - return ((SqlMoney)this); - } - - public SqlSingle ToSqlSingle() - { - return ((SqlSingle)this); - } - - public override string ToString() - { - return ((string)this); - } - - // *********************************** - // Operators - // *********************************** - - // Concatenates - public static SqlString operator + (SqlString x, SqlString y) - { - return new SqlString (x.Value + y.Value); - } - - // Equality - public static SqlBoolean operator == (SqlString x, SqlString y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value == y.Value); - } - - // Greater Than - public static SqlBoolean operator > (SqlString x, SqlString y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - // Greater Than Or Equal - public static SqlBoolean operator >= (SqlString x, SqlString y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - public static SqlBoolean operator != (SqlString x, SqlString y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - return new SqlBoolean (x.Value != y.Value); - } - - // Less Than - public static SqlBoolean operator < (SqlString x, SqlString y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - // Less Than Or Equal - public static SqlBoolean operator <= (SqlString x, SqlString y) - { - if (x.IsNull || y.IsNull) - return SqlBoolean.Null; - else - throw new NotImplementedException (); - } - - // ************************************** - // Type Conversions - // ************************************** - - public static explicit operator SqlString (SqlBoolean x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.ByteValue.ToString ()); - } - - public static explicit operator SqlString (SqlByte x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlDateTime x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlDecimal x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlDouble x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlGuid x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlInt16 x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlInt32 x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlInt64 x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlMoney x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator SqlString (SqlSingle x) - { - if (x.IsNull) - return Null; - else - return new SqlString (x.Value.ToString ()); - } - - public static explicit operator string (SqlString x) - { - return x.Value; - } - - public static implicit operator SqlString (string x) - { - return new SqlString (x); - } - - #endregion // Public Methods - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlTruncateException.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlTruncateException.cs deleted file mode 100644 index 067b9195f171a..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlTruncateException.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.Data.SqlTruncateException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data.SqlTypes { - - [Serializable] - public class SqlTruncateException : SqlTypeException - { - public SqlTruncateException () - : base (Locale.GetText ("This value is being truncated")) - { - } - - public SqlTruncateException (string message) - : base (message) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlTypeException.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlTypeException.cs deleted file mode 100644 index 6cb4b3f86aaa7..0000000000000 --- a/mcs/class/System.Data/System.Data.SqlTypes/SqlTypeException.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.Data.SqlTypeException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data.SqlTypes { - - [Serializable] - public class SqlTypeException : SystemException - { - public SqlTypeException (string message) - : base (message) - { - } - - protected SqlTypeException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data.build b/mcs/class/System.Data/System.Data.build deleted file mode 100644 index 40dab967dd1f8..0000000000000 --- a/mcs/class/System.Data/System.Data.build +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Data/System.Data/AcceptRejectRule.cs b/mcs/class/System.Data/System.Data/AcceptRejectRule.cs deleted file mode 100644 index c4481175a6c5d..0000000000000 --- a/mcs/class/System.Data/System.Data/AcceptRejectRule.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.AcceptRejectRule.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - - /// - /// Determines the action that occurs when - /// the AcceptChanges or RejectChanges method - /// is invoked on a DataTable with a ForeignKeyConstraint. - /// - [Serializable] - public enum AcceptRejectRule - { - Cascade = 1, - None = 0 - } - -} diff --git a/mcs/class/System.Data/System.Data/ChangeLog b/mcs/class/System.Data/System.Data/ChangeLog deleted file mode 100644 index e676f3a3eabe3..0000000000000 --- a/mcs/class/System.Data/System.Data/ChangeLog +++ /dev/null @@ -1,3 +0,0 @@ -2002-05-18 Nick Drochak - - * DataRow.cs: Fix typo. diff --git a/mcs/class/System.Data/System.Data/CommandBehavior.cs b/mcs/class/System.Data/System.Data/CommandBehavior.cs deleted file mode 100644 index 918722e193703..0000000000000 --- a/mcs/class/System.Data/System.Data/CommandBehavior.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -// System.Data.CommandBehavior.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - - /// - /// Specifies a description of the results and the affect on the database of the query command. - /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. - /// - [Flags] - [Serializable] - public enum CommandBehavior - { - Default = 0, - SingleResult = 1, - SchemaOnly = 2, - KeyInfo = 4, - SingleRow = 8, - SequentialAccess = 16, - CloseConnection = 32 - - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/CommandType.cs b/mcs/class/System.Data/System.Data/CommandType.cs deleted file mode 100644 index 61bf5be81cbfb..0000000000000 --- a/mcs/class/System.Data/System.Data/CommandType.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.CommandType.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies how a command string is interpreted. - /// - [Serializable] - public enum CommandType - { - Text = 1, - StoredProcedure = 4, - TableDirect = 512 - - } -} diff --git a/mcs/class/System.Data/System.Data/ConnectionState.cs b/mcs/class/System.Data/System.Data/ConnectionState.cs deleted file mode 100644 index 63f51af0ea87a..0000000000000 --- a/mcs/class/System.Data/System.Data/ConnectionState.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -// System.Data.ConnectionState.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - - /// - /// Returns the current state of the connection to a data source. - /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. - /// - [Flags] - [Serializable] - public enum ConnectionState - { - Closed = 0, - Open = 1, - Connecting = 2, - Executing = 4, - Fetching = 8, - Broken = 16 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/Constraint.cs b/mcs/class/System.Data/System.Data/Constraint.cs deleted file mode 100644 index c8eb6e1586835..0000000000000 --- a/mcs/class/System.Data/System.Data/Constraint.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// System.Data.Constraint.cs -// -// Author: -// Franklin Wise -// Daniel Morgan -// -// -// (C) Ximian, Inc. 2002 -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; - -namespace System.Data -{ - [Serializable] - internal delegate void DelegateConstraintNameChange(object sender, - string newName); - - [Serializable] - public abstract class Constraint - { - internal event DelegateConstraintNameChange - BeforeConstraintNameChange; - - //if constraintName is not set then a name is - //created when it is added to - //the ConstraintCollection - //it can not be set to null, empty or duplicate - //once it has been added to the collection - private string _constraintName = null; - private PropertyCollection _properties = null; - - //Used for membership checking - private ConstraintCollection _constraintCollection; - - protected Constraint() - { - _properties = new PropertyCollection(); - } - - public virtual string ConstraintName { - get{ - return "" + _constraintName; - } - - set{ - //This should only throw an exception when it - //is a member of a ConstraintCollection which - //means we should let the ConstraintCollection - //handle exceptions when this value changes - _onConstraintNameChange(value); - _constraintName = value; - } - } - - public PropertyCollection ExtendedProperties { - get { - return _properties; - } - } - - public abstract DataTable Table { - get; - } - - /// - /// Gets the ConstraintName, if there is one, as a string. - /// - public override string ToString() - { - return "" + _constraintName; - } - - internal ConstraintCollection ConstraintCollection { - get{ - return _constraintCollection; - } - set{ - _constraintCollection = value; - } - } - - - private void _onConstraintNameChange(string newName) - { - if (null != BeforeConstraintNameChange) - { - BeforeConstraintNameChange(this, newName); - } - } - - //call once before adding a constraint to a collection - //will throw an exception to prevent the add if a rule is broken - internal virtual void AddToConstraintCollectionSetup( - ConstraintCollection collection){} - - //call once before removing a constraint to a collection - //can throw an exception to prevent the removal - internal virtual void RemoveFromConstraintCollectionCleanup( - ConstraintCollection collection){} - - - //Call to Validate the constraint - //Will throw if constraint is violated - internal virtual void AssertConstraint(){} - - } -} diff --git a/mcs/class/System.Data/System.Data/ConstraintCollection.cs b/mcs/class/System.Data/System.Data/ConstraintCollection.cs deleted file mode 100644 index 20deddf375664..0000000000000 --- a/mcs/class/System.Data/System.Data/ConstraintCollection.cs +++ /dev/null @@ -1,344 +0,0 @@ -// -// System.Data.ConstraintCollection.cs -// -// Author: -// Franklin Wise -// Daniel Morgan -// -// (C) Ximian, Inc. 2002 -// (C) 2002 Franklin Wise -// (C) 2002 Daniel Morgan -// - -using System; -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - [Serializable] - internal delegate void DelegateValidateRemoveConstraint(ConstraintCollection sender, - Constraint constraintToRemove, ref bool fail,ref string failReason); - - /// - /// hold collection of constraints for data table - /// - [Serializable] - public class ConstraintCollection : InternalDataCollectionBase - { - //private bool beginInit = false; - - public event CollectionChangeEventHandler CollectionChanged; - internal event DelegateValidateRemoveConstraint ValidateRemoveConstraint; - - //Don't allow public instantiation - //Will be instantianted from DataTable - internal ConstraintCollection(){} - - public virtual Constraint this[string name] { - get { - //If the name is not found we just return null - int index = IndexOf(name); //case insensitive - if (-1 == index) return null; - return this[index]; - } - } - - public virtual Constraint this[int index] { - get { - if (index < 0 || index >= List.Count) - throw new IndexOutOfRangeException(); - return (Constraint)List[index]; - } - } - - private void _handleBeforeConstraintNameChange(object sender, string newName) - { - //null or empty - if (newName == null || newName == "") - throw new ArgumentException("ConstraintName cannot be set to null or empty " + - " after it has been added to a ConstraintCollection."); - - if (_isDuplicateConstraintName(newName,(Constraint)sender)) - throw new DuplicateNameException("Constraint name already exists."); - } - - private bool _isDuplicateConstraintName(string constraintName, Constraint excludeFromComparison) - { - string cmpr = constraintName.ToUpper(); - foreach (Constraint cst in List) - { - //Case insensitive comparision - if ( cmpr.CompareTo(cst.ConstraintName.ToUpper()) == 0 && - cst != excludeFromComparison) - { - return true; - } - } - - return false; - } - - //finds an open name slot of ConstraintXX - //where XX is a number - private string _createNewConstraintName() - { - bool loopAgain = false; - int index = 1; - - do - { - loopAgain = false; - foreach (Constraint cst in List) - { - //Case insensitive - if (cst.ConstraintName.ToUpper().CompareTo("CONSTRAINT" + - index.ToString()) == 0 ) - { - loopAgain = true; - index++; - } - } - } while (loopAgain); - - return "Constraint" + index.ToString(); - - } - - - // Overloaded Add method (5 of them) - // to add Constraint object to the collection - - public void Add(Constraint constraint) - { - //not null - if (null == constraint) throw new ArgumentNullException("Can not add null."); - - //check constraint membership - //can't already exist in this collection or any other - if (this == constraint.ConstraintCollection) - throw new ArgumentException("Constraint already belongs to this collection."); - if (null != constraint.ConstraintCollection) - throw new ArgumentException("Constraint already belongs to another collection."); - - //check for duplicate name - if (_isDuplicateConstraintName(constraint.ConstraintName,null) ) - throw new DuplicateNameException("Constraint name already exists."); - - //Allow constraint to run validation rules and setup - constraint.AddToConstraintCollectionSetup(this); //may throw if it can't setup - - //Run Constraint to check existing data in table - constraint.AssertConstraint(); - - //if name is null or empty give it a name - if (constraint.ConstraintName == null || - constraint.ConstraintName == "" ) - { - constraint.ConstraintName = _createNewConstraintName(); - } - - //Add event handler for ConstraintName change - constraint.BeforeConstraintNameChange += new DelegateConstraintNameChange( - _handleBeforeConstraintNameChange); - - constraint.ConstraintCollection = this; - List.Add(constraint); - - OnCollectionChanged( new CollectionChangeEventArgs( CollectionChangeAction.Add, this) ); - } - - - - public virtual Constraint Add(string name, DataColumn column, bool primaryKey) - { - - UniqueConstraint uc = new UniqueConstraint(name, column, primaryKey); - Add(uc); - - return uc; - } - - public virtual Constraint Add(string name, DataColumn primaryKeyColumn, - DataColumn foreignKeyColumn) - { - ForeignKeyConstraint fc = new ForeignKeyConstraint(name, primaryKeyColumn, - foreignKeyColumn); - Add(fc); - - return fc; - } - - public virtual Constraint Add(string name, DataColumn[] columns, bool primaryKey) - { - UniqueConstraint uc = new UniqueConstraint(name, columns, primaryKey); - Add(uc); - - return uc; - } - - public virtual Constraint Add(string name, DataColumn[] primaryKeyColumns, - DataColumn[] foreignKeyColumns) - { - ForeignKeyConstraint fc = new ForeignKeyConstraint(name, primaryKeyColumns, - foreignKeyColumns); - Add(fc); - - return fc; - } - - [MonoTODO] - public void AddRange(Constraint[] constraints) { - - throw new NotImplementedException (); - } - - public bool CanRemove(Constraint constraint) - { - - //Rule A UniqueConstraint can't be removed if there is - //a foreign key relationship to that column - - //not null - //LAMESPEC: MSFT implementation throws and exception here - //spec says nothing about this - if (null == constraint) throw new ArgumentNullException("Constraint can't be null."); - - //LAMESPEC: spec says return false (which makes sense) and throw exception for False case (?). - //TODO: I may want to change how this is done - //maybe put a CanRemove on the Constraint class - //and have the Constraint fire this event - - //discover if there is a related ForeignKey - string failReason =""; - return _canRemoveConstraint(constraint, ref failReason); - - } - - [MonoTODO] - public void Clear() - { - - //CanRemove? See Lamespec below. - - //the Constraints have a reference to us - //and we listen to name change events - //we should remove these before clearing - foreach (Constraint con in List) - { - con.ConstraintCollection = null; - con.BeforeConstraintNameChange -= new DelegateConstraintNameChange( - _handleBeforeConstraintNameChange); - } - - //LAMESPEC: MSFT implementation allows this - //even when a ForeignKeyConstraint exist for a UniqueConstraint - //thus violating the CanRemove logic - List.Clear(); //Will violate CanRemove rule - OnCollectionChanged( new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this) ); - } - - public bool Contains(string name) - { - return (-1 != IndexOf(name)); - } - - public int IndexOf(Constraint constraint) - { - return List.IndexOf(constraint); - } - - public virtual int IndexOf(string constraintName) - { - //LAMESPEC: Spec doesn't say case insensitive - //it should to be consistant with the other - //case insensitive comparisons in this class - - int index = 0; - foreach (Constraint con in List) - { - if (constraintName.ToUpper().CompareTo( con.ConstraintName.ToUpper() ) == 0) - { - return index; - } - - index++; - } - return -1; //not found - } - - public void Remove(Constraint constraint) { - //LAMESPEC: spec doesn't document the ArgumentException the - //will be thrown if the CanRemove rule is violated - - //LAMESPEC: spec says an exception will be thrown - //if the element is not in the collection. The implementation - //doesn't throw an exception. ArrayList.Remove doesn't throw if the - //element doesn't exist - //ALSO the overloaded remove in the spec doesn't say it throws any exceptions - - //not null - if (null == constraint) throw new ArgumentNullException(); - - string failReason = ""; - if (! _canRemoveConstraint(constraint, ref failReason) ) - { - if (failReason != null || failReason != "") - throw new ArgumentException(failReason); - else - throw new ArgumentException("Can't remove constraint."); - } - - constraint.RemoveFromConstraintCollectionCleanup(this); - List.Remove(constraint); - OnCollectionChanged( new CollectionChangeEventArgs(CollectionChangeAction.Remove,this)); - } - - public void Remove(string name) - { - //if doesn't exist fail quietly - int index = IndexOf(name); - if (-1 == index) return; - - Remove(this[index]); - } - - public void RemoveAt(int index) - { - if (index < 0 || index + 1 > List.Count) - throw new IndexOutOfRangeException("Index out of range, index = " - + index.ToString() + "."); - - this[index].RemoveFromConstraintCollectionCleanup(this); - List.RemoveAt(index); - OnCollectionChanged( new CollectionChangeEventArgs(CollectionChangeAction.Remove,this)); - } - - - protected override ArrayList List { - get{ - return base.List; - } - } - - protected virtual void OnCollectionChanged( CollectionChangeEventArgs ccevent) - { - if (null != CollectionChanged) - { - CollectionChanged(this, ccevent); - } - } - - private bool _canRemoveConstraint(Constraint constraint, ref string failReason ) - { - bool cancel = false; - string tmp = ""; - if (null != ValidateRemoveConstraint) - { - ValidateRemoveConstraint(this, constraint, ref cancel, ref tmp); - } - failReason = tmp; - return !cancel; - } - } -} diff --git a/mcs/class/System.Data/System.Data/ConstraintException.cs b/mcs/class/System.Data/System.Data/ConstraintException.cs deleted file mode 100644 index 12293ddd655aa..0000000000000 --- a/mcs/class/System.Data/System.Data/ConstraintException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.ConstraintException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class ConstraintException : DataException - { - public ConstraintException () - : base (Locale.GetText ("This operation violates a constraint")) - { - } - - public ConstraintException (string message) - : base (message) - { - } - - protected ConstraintException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/DBConcurrencyException.cs b/mcs/class/System.Data/System.Data/DBConcurrencyException.cs deleted file mode 100644 index 5fd78826b4854..0000000000000 --- a/mcs/class/System.Data/System.Data/DBConcurrencyException.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -// System.Data.DBConcurrencyException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class DBConcurrencyException : SystemException - { - public DBConcurrencyException (string message) - : base (message) - { - } - - public DBConcurrencyException (string message, Exception innerException) - : base (message, innerException) - { - } - - DataRow row; - - public DataRow Row { - get { return row; } - set { row = value;} // setting the row has no effect - } - - [MonoTODO] - public override void GetObjectData (SerializationInfo info, StreamingContext context) - { - base.GetObjectData (info, context); - } - } -} diff --git a/mcs/class/System.Data/System.Data/DataColumn.cs b/mcs/class/System.Data/System.Data/DataColumn.cs deleted file mode 100644 index 0743e70be7fbf..0000000000000 --- a/mcs/class/System.Data/System.Data/DataColumn.cs +++ /dev/null @@ -1,375 +0,0 @@ -// -// System.Data.DataColumn.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Chris Podurgiel -// (C) Ximian, Inc 2002 -// - - -using System; -using System.ComponentModel; - -namespace System.Data -{ - internal delegate void DelegateColumnValueChange(DataColumn column, - DataRow row, object proposedValue); - - - /// - /// Summary description for DataColumn. - /// - public class DataColumn : MarshalByValueComponent - { - #region Events - [MonoTODO] - //used for constraint validation - //if an exception is fired during this event the change should be canceled - internal event DelegateColumnValueChange ValidateColumnValueChange; - - //used for FK Constraint Cascading rules - internal event DelegateColumnValueChange ColumnValueChanging; - #endregion //Events - - - #region Fields - - private bool allowDBNull = true; - private bool autoIncrement = false; - private long autoIncrementSeed = 0; - private long autoIncrementStep = 1; - private string caption = null; - private MappingType columnMapping = MappingType.Element; - private string columnName = null; - private Type dataType = null; - private object defaultValue = null; - private string expression = null; - private PropertyCollection extendedProperties = null; - private int maxLength = -1; - private string nameSpace = null; - private int ordinal = -1; - private string prefix = null; - private bool readOnly = false; - private DataTable _table = null; - private bool unique = false; - - #endregion // Fields - - #region Constructors - - public DataColumn() - { - } - - public DataColumn(string columnName): this() - { - ColumnName = columnName; - } - - public DataColumn(string columnName, Type dataType): this(columnName) - { - if(dataType == null) { - throw new ArgumentNullException(); - } - - DataType = dataType; - - } - - public DataColumn( string columnName, Type dataType, - string expr): this(columnName, dataType) - { - Expression = expr; - } - - public DataColumn(string columnName, Type dataType, - string expr, MappingType type): this(columnName, dataType, expr) - { - ColumnMapping = type; - } - #endregion - - #region Properties - - public bool AllowDBNull - { - get { - return allowDBNull; - } - set { - allowDBNull = value; - } - } - - /// - /// Gets or sets a value indicating whether the column automatically increments the value of the column for new rows added to the table. - /// - /// - /// If the type of this column is not Int16, Int32, or Int64 when this property is set, - /// the DataType property is coerced to Int32. An exception is generated if this is a computed column - /// (that is, the Expression property is set.) The incremented value is used only if the row's value for this column, - /// when added to the columns collection, is equal to the default value. - /// - public bool AutoIncrement - { - get { - return autoIncrement; - } - set { - autoIncrement = value; - if(autoIncrement == true) - { - if(Expression != null) - { - throw new Exception(); - } - if(Type.GetTypeCode(dataType) != TypeCode.Int16 && - Type.GetTypeCode(dataType) != TypeCode.Int32 && - Type.GetTypeCode(dataType) != TypeCode.Int64) - { - Int32 dtInt = new Int32(); - dataType = dtInt.GetType(); - } - } - } - } - - public long AutoIncrementSeed - { - get { - return autoIncrementSeed; - } - set { - autoIncrementSeed = value; - } - } - - public long AutoIncrementStep - { - get { - return autoIncrementStep; - } - set { - autoIncrementStep = value; - } - } - - public string Caption - { - get { - if(caption == null) - return columnName; - else - return caption; - } - set { - caption = value; - } - } - - public virtual MappingType ColumnMapping - { - get { - return columnMapping; - } - set { - columnMapping = value; - } - } - - public string ColumnName - { - get { - return columnName; - } - set { - columnName = value; - } - } - - public Type DataType - { - get { - return dataType; - } - set { - if(AutoIncrement == true && - Type.GetTypeCode(value) != TypeCode.Int32) - { - throw new Exception(); - } - dataType = value; - } - } - - /// - /// - /// - /// When AutoIncrement is set to true, there can be no default value. - public object DefaultValue - { - get { - return defaultValue; - } - set { - defaultValue = value; - } - } - - public string Expression - { - get { - return expression; - } - set { - expression = value; - } - } - - public PropertyCollection ExtendedProperties - { - get { - return extendedProperties; - } - } - - public int MaxLength - { - get { - return maxLength; - } - set { - maxLength = value; - } - } - - public string Namespace - { - get { - return nameSpace; - } - set { - nameSpace = value; - } - } - - //Need a good way to set the Ordinal when the column is added to a columnCollection. - public int Ordinal - { - get { - return ordinal; - } - } - - public string Prefix - { - get { - return prefix; - } - set { - prefix = value; - } - } - - public bool ReadOnly - { - get { - return readOnly; - } - set { - readOnly = value; - } - } - - public DataTable Table - { - get { - return _table; - } - } - - public bool Unique - { - get { - return unique; - } - set { - unique = value; - } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected internal void CheckNotAllowNull() { - } - - [MonoTODO] - protected void CheckUnique() { - } - - [MonoTODO] - protected internal virtual void - OnPropertyChanging (PropertyChangedEventArgs pcevent) { - } - - [MonoTODO] - protected internal void RaisePropertyChanging(string name) { - } - - /// - /// Gets the Expression of the column, if one exists. - /// - /// The Expression value, if the property is set; - /// otherwise, the ColumnName property. - [MonoTODO] - public override string ToString() - { - if (expression != null) - return expression; - - return columnName; - } - - [MonoTODO] - internal void SetTable(DataTable table) { - _table = table; - // FIXME: this will get called by DataTable - // and DataColumnCollection - } - - - // Returns true if all the same collumns are in columnSet and compareSet - internal static bool AreColumnSetsTheSame(DataColumn[] columnSet, DataColumn[] compareSet) - { - if (null == columnSet && null == compareSet) return true; - if (null == columnSet || null == compareSet) return false; - - if (columnSet.Length != compareSet.Length) return false; - - foreach (DataColumn col in columnSet) - { - bool matchFound = false; - foreach (DataColumn compare in compareSet) - { - if (col == compare) - { - matchFound = true; - } - } - if (! matchFound) return false; - } - - return true; - } - - #endregion // Methods - - } -} diff --git a/mcs/class/System.Data/System.Data/DataColumnChangeEventArgs.cs b/mcs/class/System.Data/System.Data/DataColumnChangeEventArgs.cs deleted file mode 100644 index f79d27eaf1e23..0000000000000 --- a/mcs/class/System.Data/System.Data/DataColumnChangeEventArgs.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// System.Data.DataColumnChangeEventArgs.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Provides data for the ColumnChanging event. - /// - public class DataColumnChangeEventArgs : EventArgs - { - - private DataColumn _column = null; - private DataRow _row = null; - private object _proposedValue = null; - - /// - /// Initializes a new instance of the DataColumnChangeEventArgs class. - /// - /// - /// - /// - public DataColumnChangeEventArgs(DataRow row, DataColumn column, object value) - { - _column = column; - _row = row; - _proposedValue = value; - } - - /// - /// Gets the DataColumn with a changing value. - /// - public DataColumn Column - { - get - { - return _column; - } - } - - - /// - /// Gets or sets the proposed new value for the column. - /// - public object ProposedValue - { - get - { - return _proposedValue; - } - set - { - _proposedValue = value; - } - } - - - /// - /// Gets the DataRow of the column with a changing value. - /// - public DataRow Row - { - get - { - return _row; - } - } - - - - - } -} diff --git a/mcs/class/System.Data/System.Data/DataColumnChangeEventHandler.cs b/mcs/class/System.Data/System.Data/DataColumnChangeEventHandler.cs deleted file mode 100644 index 1932d38f2fe99..0000000000000 --- a/mcs/class/System.Data/System.Data/DataColumnChangeEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.DataColumnChangeEventHandler.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Represents the method that will handle the the ColumnChanging event. - /// - [Serializable] - public delegate void DataColumnChangeEventHandler(object sender, DataColumnChangeEventArgs e); - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DataColumnCollection.cs b/mcs/class/System.Data/System.Data/DataColumnCollection.cs deleted file mode 100644 index d33d4d364e04d..0000000000000 --- a/mcs/class/System.Data/System.Data/DataColumnCollection.cs +++ /dev/null @@ -1,416 +0,0 @@ -// -// System.Data.DataColumnCollection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// Represents a collection of DataColumn objects for a DataTable. - /// - public class DataColumnCollection : InternalDataCollectionBase - { - // The defaultNameIndex is used to create a default name for a column if one wasn't given. - private int defaultNameIndex; - - //table should be the DataTable this DataColumnCollection belongs to. - private DataTable parentTable = null; - - // Internal Constructor. This Class can only be created from other classes in this assembly. - internal DataColumnCollection(DataTable table):base() - { - defaultNameIndex = 1; - parentTable = table; - } - - - - /// - /// Gets the DataColumn from the collection at the specified index. - /// - public virtual DataColumn this[int index] - { - get - { - return (DataColumn) base.List[index]; - } - } - - /// - /// Gets the DataColumn from the collection with the specified name. - /// - public virtual DataColumn this[string name] - { - get - { - foreach (DataColumn column in base.List) - { - if (column.ColumnName == name) - { - return column; - } - } - - return null; - - } - } - - - /// - /// Gets a list of the DataColumnCollection items. - /// - protected override ArrayList List - { - get - { - return base.List; - } - } - - /// - /// Creates and adds a DataColumn object to the DataColumnCollection. - /// - /// - public virtual DataColumn Add() - { - DataColumn column = new DataColumn("Column" + defaultNameIndex.ToString()); - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this); - - column.SetTable(parentTable); - base.List.Add(column); - OnCollectionChanged(e); - defaultNameIndex++; - return column; - } - - /// - /// Creates and adds the specified DataColumn object to the DataColumnCollection. - /// - /// The DataColumn to add. - public void Add(DataColumn column) - { - if(Contains(column.ColumnName)) - { - throw new DuplicateNameException("A column named " + column.ColumnName + " already belongs to this DataTable."); - } - else - { - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this); - - column.SetTable( parentTable); - base.List.Add(column); - OnCollectionChanged(e); - return; - } - } - - /// - /// Creates and adds a DataColumn object with the specified name to the DataColumnCollection. - /// - /// The name of the column. - /// The newly created DataColumn. - public virtual DataColumn Add(string columnName) - { - - if (columnName == null || columnName == String.Empty) - { - columnName = "Column" + defaultNameIndex.ToString(); - defaultNameIndex++; - } - - if(Contains(columnName)) - { - throw new DuplicateNameException("A column named " + columnName + " already belongs to this DataTable."); - } - else - { - DataColumn column = new DataColumn(columnName); - - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this); - column.SetTable(parentTable); - base.List.Add(column); - OnCollectionChanged(e); - return column; - } - } - - /// - /// Creates and adds a DataColumn object with the specified name and type to the DataColumnCollection. - /// - /// The ColumnName to use when cretaing the column. - /// The DataType of the new column. - /// The newly created DataColumn. - public virtual DataColumn Add(string columnName, Type type) - { - if (columnName == null || columnName == "") - { - columnName = "Column" + defaultNameIndex.ToString(); - defaultNameIndex++; - } - - if(Contains(columnName)) - { - throw new DuplicateNameException("A column named " + columnName + " already belongs to this DataTable."); - } - else - { - DataColumn column = new DataColumn(columnName, type); - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this); - column.SetTable(parentTable); - base.List.Add(column); - OnCollectionChanged(e); - return column; - } - } - - /// - /// Creates and adds a DataColumn object with the specified name, type, and expression to the DataColumnCollection. - /// - /// The name to use when creating the column. - /// The DataType of the new column. - /// The expression to assign to the Expression property. - /// The newly created DataColumn. - public virtual DataColumn Add(string columnName, Type type, string expression) - { - if (columnName == null || columnName == "") - { - columnName = "Column" + defaultNameIndex.ToString(); - defaultNameIndex++; - } - - if(Contains(columnName)) - { - throw new DuplicateNameException("A column named " + columnName + " already belongs to this DataTable."); - } - else - { - DataColumn column = new DataColumn(columnName, type, expression); - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this); - column.SetTable(parentTable); - base.List.Add(column); - OnCollectionChanged(e); - return column; - } - } - - /// - /// Copies the elements of the specified DataColumn array to the end of the collection. - /// - /// The array of DataColumn objects to add to the collection. - public void AddRange(DataColumn[] columns) - { - foreach (DataColumn column in columns) - { - Add(column); - } - return; - } - - /// - /// Checks whether a given column can be removed from the collection. - /// - /// A DataColumn in the collection. - /// true if the column can be removed; otherwise, false. - public bool CanRemove(DataColumn column) - { - - //Check that the column does not have a null reference. - if (column == null) - { - return false; - } - - - //Check that the column is part of this collection. - if (!Contains(column.ColumnName)) - { - return false; - } - - - - //Check if this column is part of a relationship. (this could probably be written better) - foreach (DataRelation childRelation in parentTable.ChildRelations) - { - foreach (DataColumn childColumn in childRelation.ChildColumns) - { - if (childColumn == column) - { - return false; - } - } - - foreach (DataColumn parentColumn in childRelation.ParentColumns) - { - if (parentColumn == column) - { - return false; - } - } - } - - //Check if this column is part of a relationship. (this could probably be written better) - foreach (DataRelation parentRelation in parentTable.ParentRelations) - { - foreach (DataColumn childColumn in parentRelation.ChildColumns) - { - if (childColumn == column) - { - return false; - } - } - - foreach (DataColumn parentColumn in parentRelation.ParentColumns) - { - if (parentColumn == column) - { - return false; - } - } - } - - - //Check if another column's expression depends on this column. - - foreach (DataColumn dataColumn in List) - { - if (dataColumn.Expression.ToString().IndexOf(column.ColumnName) > 0) - { - return false; - } - } - - - return true; - } - - /// - /// Clears the collection of any columns. - /// - public void Clear() - { - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this); - base.List.Clear(); - OnCollectionChanged(e); - return; - } - - /// - /// Checks whether the collection contains a column with the specified name. - /// - /// The ColumnName of the column to check for. - /// true if a column exists with this name; otherwise, false. - public bool Contains(string name) - { - return (IndexOf(name) != -1); - } - - /// - /// Gets the index of a column specified by name. - /// - /// The name of the column to return. - /// The index of the column specified by column if it is found; otherwise, -1. - public virtual int IndexOf(DataColumn column) - { - return base.List.IndexOf(column); - } - - /// - /// Gets the index of the column with the given name (the name is not case sensitive). - /// - /// The name of the column to find. - /// The zero-based index of the column with the specified name, or -1 if the column doesn't exist in the collection. - public int IndexOf(string columnName) - { - - DataColumn column = this[columnName]; - - if (column != null) - { - return IndexOf(column); - } - else - { - return -1; - } - } - - /// - /// Raises the OnCollectionChanged event. - /// - /// A CollectionChangeEventArgs that contains the event data. - protected virtual void OnCollectionChanged(CollectionChangeEventArgs ccevent) - { - if (CollectionChanged != null) - { - // Invokes the delegate. - CollectionChanged(this, ccevent); - } - } - - /// - /// Raises the OnCollectionChanging event. - /// - /// A CollectionChangeEventArgs that contains the event data. - protected internal virtual void OnCollectionChanging(CollectionChangeEventArgs ccevent) - { - if (CollectionChanged != null) - { - // Invokes the delegate. - CollectionChanged(this, ccevent); - } - } - - /// - /// Removes the specified DataColumn object from the collection. - /// - /// The DataColumn to remove. - public void Remove(DataColumn column) - { - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Remove, this); - base.List.Remove(column); - OnCollectionChanged(e); - return; - } - - /// - /// Removes the DataColumn object with the specified name from the collection. - /// - /// The name of the column to remove. - public void Remove(string name) - { - DataColumn column = this[name]; - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Remove, this); - base.List.Remove(column); - OnCollectionChanged(e); - return; - } - - /// - /// Removes the column at the specified index from the collection. - /// - /// The index of the column to remove. - public void RemoveAt(int index) - { - CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Remove, this); - base.List.RemoveAt(index); - OnCollectionChanged(e); - return; - } - - /// - /// Occurs when the columns collection changes, either by adding or removing a column. - /// - public event CollectionChangeEventHandler CollectionChanged; - - } -} diff --git a/mcs/class/System.Data/System.Data/DataException.cs b/mcs/class/System.Data/System.Data/DataException.cs deleted file mode 100644 index 3a512de87f025..0000000000000 --- a/mcs/class/System.Data/System.Data/DataException.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// System.Data.DataException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class DataException : SystemException - { - public DataException () - : base (Locale.GetText ("A Data exception has occurred")) - { - } - - public DataException (string message) - : base (message) - { - } - - protected DataException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - - public DataException (string message, Exception innerException) - : base (message, innerException) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/DataRelation.cs b/mcs/class/System.Data/System.Data/DataRelation.cs deleted file mode 100644 index bbc1f2eae5af5..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRelation.cs +++ /dev/null @@ -1,165 +0,0 @@ -// -// System.Data.DataRelation.cs -// -// Author: -// Daniel Morgan -// -// (C) 2002 Daniel Morgan -// (C) 2002 Ximian, Inc. -// - -using System; -using System.Runtime.Serialization; - -namespace System.Data -{ - /// - /// DataRelation is used for a parent/child relationship - /// between two DataTable objects - /// - [Serializable] - public class DataRelation { - - #region Constructors - - [MonoTODO] - public DataRelation(string relationName, - DataColumn parentColumn, DataColumn childColumn) { - - throw new NotImplementedException (); - } - - [MonoTODO] - public DataRelation(string relationName, - DataColumn[] parentColumns, - DataColumn[] childColumns) { - - throw new NotImplementedException (); - } - - [MonoTODO] - public DataRelation(string relationName, - DataColumn parentColumn, DataColumn childColumn, - bool createConstraints) { - - throw new NotImplementedException (); - } - - [MonoTODO] - public DataRelation(string relationName, - DataColumn[] parentColumns, DataColumn[] childColumns, - bool createConstraints) { - - throw new NotImplementedException (); - } - - [MonoTODO] - public DataRelation(string relationName, - string parentTableName, string childTableName, - string[] parentColumnNames, string[] childColumnNames, - bool nested) { - - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public virtual DataColumn[] ChildColumns { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual ForeignKeyConstraint ChildKeyConstraint { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual DataTable ChildTable { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual DataSet DataSet { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public PropertyCollection ExtendedProperties { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual bool Nested { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public virtual DataColumn[] ParentColumns { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual UniqueConstraint ParentKeyConstraint { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual DataTable ParentTable { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual string RelationName { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override string ToString() { - throw new NotImplementedException (); - } - - [MonoTODO] - protected void CheckStateForProperty() { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data/DataRelationCollection.cs b/mcs/class/System.Data/System.Data/DataRelationCollection.cs deleted file mode 100644 index 6952e9829acbf..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRelationCollection.cs +++ /dev/null @@ -1,324 +0,0 @@ -// -// System.Data.DataRelationCollection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// Daniel Morgan -// -// (C) Chris Podurgiel -// (C) 2002 Daniel Morgan -// - -using System; -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// Represents the collection of DataRelation objects for this DataSet. - /// - [Serializable] - public abstract class DataRelationCollection : InternalDataCollectionBase - { - private int defaultNameIndex; - private bool inTransition; - - /// - /// Initializes a new instance of the DataRelationCollection class. - /// - internal DataRelationCollection() : base() - { - defaultNameIndex = 1; - inTransition = false; - } - - /// - /// Gets the DataRelation object specified by name. - /// - public abstract DataRelation this[string name]{get;} - - /// - /// Gets the DataRelation object at the specified index. - /// - public abstract DataRelation this[int index]{get;} - - - #region Add Methods - /// - /// Adds a DataRelation to the DataRelationCollection. - /// - /// The DataRelation to add to the collection. - [MonoTODO] - public void Add(DataRelation relation) - { - if(List != null) - { - //CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this); - List.Add(relation); - //OnCollectionChanged(e); - } - return; - } - - /// - /// Creates a relation given the parameters and adds it to the collection. The name is defaulted. - /// An ArgumentException is generated if this relation already belongs to this collection or belongs to another collection. - /// An InvalidConstraintException is generated if the relation can't be created based on the parameters. - /// The CollectionChanged event is fired if it succeeds. - /// - /// parent column of relation. - /// child column of relation. - /// The created DataRelation. - [MonoTODO] - public virtual DataRelation Add(DataColumn parentColumn, DataColumn childColumn) - { - - if(parentColumn == null) - { - throw new ArgumentNullException("parentColumn"); - } - else if( childColumn == null) - { - throw new ArgumentNullException("childColumn"); - } - - // FIXME: temporarily commented so we can compile - /* - if(parentColumn.Table.DataSet != childColumn.Table.DataSet) - { - throw new InvalidConstraintException("my ex"); - } - */ - - DataRelation dataRelation = new DataRelation("Relation" + defaultNameIndex.ToString(), parentColumn, childColumn); - //CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this); - List.Add(dataRelation); - //OnCollectionChanged(e); - defaultNameIndex++; - return dataRelation; - } - - /// - /// Creates a relation given the parameters and adds it to the collection. The name is defaulted. - /// An ArgumentException is generated if this relation already belongs to this collection or belongs to another collection. - /// An InvalidConstraintException is generated if the relation can't be created based on the parameters. - /// The CollectionChanged event is raised if it succeeds. - /// - /// An array of parent DataColumn objects. - /// An array of child DataColumn objects. - /// The created DataRelation. - [MonoTODO] - public virtual DataRelation Add(DataColumn[] parentColumns, DataColumn[] childColumns) - { - DataRelation dataRelation = new DataRelation("Relation" + defaultNameIndex.ToString(), parentColumns, childColumns); - List.Add(dataRelation); - defaultNameIndex++; - return dataRelation; - } - - /// - /// Creates a relation given the parameters and adds it to the collection. - /// An ArgumentException is generated if this relation already belongs to this collection or belongs to another collection. - /// A DuplicateNameException is generated if this collection already has a relation with the same name (case insensitive). - /// An InvalidConstraintException is generated if the relation can't be created based on the parameters. - /// The CollectionChanged event is raised if it succeeds. - /// - /// The name of the relation. - /// parent column of relation. - /// The created DataRelation. - /// - [MonoTODO] - public virtual DataRelation Add(string name, DataColumn parentColumn, DataColumn childColumn) - { - //If no name was supplied, give it a default name. - if ((name == null) || (name == "")) - { - name = "Relation" + defaultNameIndex.ToString(); - defaultNameIndex++; - } - - DataRelation dataRelation = new DataRelation(name, parentColumn, childColumn); - List.Add(dataRelation); - return dataRelation; - } - - /// - /// Creates a DataRelation with the specified name, and arrays of parent and child columns, and adds it to the collection. - /// - /// The name of the DataRelation to create. - /// An array of parent DataColumn objects. - /// An array of child DataColumn objects. - /// The created DataRelation. - [MonoTODO] - public virtual DataRelation Add(string name, DataColumn[] parentColumns, DataColumn[] childColumns) - { - //If no name was supplied, give it a default name. - if ((name == null) || (name == "")) - { - name = "Relation" + defaultNameIndex.ToString(); - defaultNameIndex++; - } - - DataRelation dataRelation = new DataRelation(name, parentColumns, childColumns); - List.Add(dataRelation); - return dataRelation; - } - - /// - /// Creates a relation given the parameters and adds it to the collection. - /// An ArgumentException is generated if this relation already belongs to this collection or belongs to another collection. - /// A DuplicateNameException is generated if this collection already has a relation with the same name (case insensitive). - /// An InvalidConstraintException is generated if the relation can't be created based on the parameters. - /// The CollectionChanged event is raised if it succeeds. - /// - /// The name of the relation. - /// parent column of relation. - /// child column of relation. - /// true to create constraints; otherwise false. (default is true) - /// The created DataRelation. - [MonoTODO] - public virtual DataRelation Add(string name, DataColumn parentColumn, DataColumn childColumn, bool createConstraints) - { - //If no name was supplied, give it a default name. - if ((name == null) || (name == "")) - { - name = "Relation" + defaultNameIndex.ToString(); - defaultNameIndex++; - } - - DataRelation dataRelation = new DataRelation(name, parentColumn, childColumn, createConstraints); - List.Add(dataRelation); - return dataRelation; - } - - /// - /// Creates a DataRelation with the specified name, arrays of parent and child columns, - /// and value specifying whether to create a constraint, and adds it to the collection. - /// - /// The name of the DataRelation to create. - /// An array of parent DataColumn objects. - /// An array of child DataColumn objects. - /// true to create a constraint; otherwise false. - /// The created DataRelation. - [MonoTODO] - public virtual DataRelation Add(string name, DataColumn[] parentColumns, DataColumn[] childColumns, bool createConstraints) - { - //If no name was supplied, give it a default name. - if ((name == null) || (name == "")) - { - name = "Relation" + defaultNameIndex.ToString(); - defaultNameIndex++; - } - - DataRelation dataRelation = new DataRelation(name, parentColumns, childColumns, createConstraints); - AddCore(dataRelation); - List.Add(dataRelation); - return dataRelation; - } - #endregion - - /// - /// Performs verification on the table. - /// - /// The relation to check. - [MonoTODO] - protected virtual void AddCore(DataRelation relation) - { - if (relation == null) - { - //TODO: Issue a good exception message. - throw new ArgumentNullException(); - } - else if(List.IndexOf(relation) != -1) - { - //TODO: Issue a good exception message. - throw new ArgumentException(); - } - else if(List.Contains(relation.RelationName)) - { - //TODO: Issue a good exception message. - throw new DuplicateNameException("A Relation named " + relation.RelationName + " already belongs to this DataSet."); - } - } - - /// - /// Copies the elements of the specified DataRelation array to the end of the collection. - /// - /// The array of DataRelation objects to add to the collection. - [MonoTODO] - public virtual void AddRange(DataRelation[] relations) - { - //TODO: Implement - - DataSet dataSet = GetDataSet(); - - throw new NotImplementedException (); - - /* - foreach(DataRelation dataRelation in relations) - { - - } - */ - - } - - [MonoTODO] - public virtual bool CanRemove(DataRelation relation) - { - //TODO: Implement. - return false; - } - - public virtual void Clear() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual bool Contains(string name) - { - return false; - } - - protected abstract DataSet GetDataSet(); - - public virtual int IndexOf(DataRelation relation) - { - return List.IndexOf(relation); - } - - public virtual int IndexOf(string relationName) - { - return List.IndexOf(this[relationName]); - } - - [MonoTODO] - protected virtual void OnCollectionChanged(CollectionChangeEventArgs ccevent) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal virtual void OnCollectionChanging(CollectionChangeEventArgs ccevent) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void RemoveAt(int index) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual void RemoveCore(DataRelation relation) - { - throw new NotImplementedException (); - } - - public event CollectionChangeEventHandler CollectionChanged; - - } -} diff --git a/mcs/class/System.Data/System.Data/DataRow.cs b/mcs/class/System.Data/System.Data/DataRow.cs deleted file mode 100644 index c170c9ff13793..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRow.cs +++ /dev/null @@ -1,658 +0,0 @@ -// -// System.Data.DataRow.cs -// -// Author: -// Rodrigo Moya -// Daniel Morgan -// Tim Coleman -// -// (C) Ximian, Inc 2002 -// (C) Daniel Morgan 2002 -// Copyright (C) 2002 Tim Coleman -// - -using System; -using System.Collections; - -namespace System.Data -{ - /// - /// Represents a row of data in a DataTable. - /// - public class DataRow - { - #region Fields - - DataTable table; - - object[] original; - object[] proposed; - object[] current; - - string[] columnErrors; - string rowError; - DataRowState rowState; - - #endregion - - #region Constructors - - /// - /// This member supports the .NET Framework infrastructure and is not intended to be - /// used directly from your code. - /// - protected internal DataRow (DataRowBuilder builder) - { - table = builder.Table; - - original = null; - proposed = null; - current = new object[table.Columns.Count]; - - columnErrors = new string[table.Columns.Count]; - rowError = String.Empty; - - rowState = DataRowState.Unchanged; - } - - #endregion - - #region Properties - - /// - /// Gets a value indicating whether there are errors in a row. - /// - public bool HasErrors { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - /// - /// Gets or sets the data stored in the column specified by name. - /// - public object this[string columnName] { - [MonoTODO] //FIXME: will return different values depending on DataRowState - get { return this[columnName, DataRowVersion.Current]; } - [MonoTODO] - set { - DataColumn column = table.Columns[columnName]; - if (column == null) - throw new IndexOutOfRangeException (); - this[column] = value; - } - } - - /// - /// Gets or sets the data stored in specified DataColumn - /// - public object this[DataColumn column] { - [MonoTODO] //FIXME: will return different values depending on DataRowState - get { return this[column, DataRowVersion.Current]; } - - [MonoTODO] - set { - bool objIsDBNull = value.Equals(DBNull.Value); - if (column == null) - throw new ArgumentNullException (); - int columnIndex = table.Columns.IndexOf (column); - if (columnIndex == -1) - throw new ArgumentException (); - if(column.DataType != value.GetType ()) { - if(objIsDBNull == true && column.AllowDBNull == false) - throw new InvalidCastException (); - else if(objIsDBNull == false) - throw new InvalidCastException (); - } - if (rowState == DataRowState.Deleted) - throw new DeletedRowInaccessibleException (); - - BeginEdit (); // implicitly called - if(objIsDBNull) - proposed[columnIndex] = DBNull.Value; - else - proposed[columnIndex] = value; - EndEdit (); // is this the right thing to do? - } - } - - /// - /// Gets or sets the data stored in column specified by index. - /// - public object this[int columnIndex] { - [MonoTODO] //FIXME: not always supposed to return current - get { return this[columnIndex, DataRowVersion.Current]; } - [MonoTODO] - set { - DataColumn column = table.Columns[columnIndex]; //FIXME: will throw - if (column == null) - throw new IndexOutOfRangeException (); - this[column] = value; - } - } - - /// - /// Gets the specified version of data stored in the named column. - /// - public object this[string columnName, DataRowVersion version] { - [MonoTODO] - get { - DataColumn column = table.Columns[columnName]; //FIXME: will throw - if (column == null) - throw new IndexOutOfRangeException (); - return this[column, version]; - } - } - - /// - /// Gets the specified version of data stored in the specified DataColumn. - /// - public object this[DataColumn column, DataRowVersion version] { - get { - if (column == null) - throw new ArgumentNullException (); - - int columnIndex = table.Columns.IndexOf (column); - - if (columnIndex == -1) - throw new ArgumentException (); - - if (version == DataRowVersion.Default) - return column.DefaultValue; - - if (!HasVersion (version)) - throw new VersionNotFoundException (); - - switch (version) - { - case DataRowVersion.Proposed: - return proposed[columnIndex]; - case DataRowVersion.Current: - return current[columnIndex]; - case DataRowVersion.Original: - return original[columnIndex]; - default: - throw new ArgumentException (); - } - } - } - - /// - /// Gets the data stored in the column, specified by index and version of the data to - /// retrieve. - /// - public object this[int columnIndex, DataRowVersion version] { - [MonoTODO] - get { - DataColumn column = table.Columns[columnIndex]; //FIXME: throws - if (column == null) - throw new IndexOutOfRangeException (); - return this[column, version]; - } - } - - /// - /// Gets or sets all of the values for this row through an array. - /// - [MonoTODO] - public object[] ItemArray { - get { return current; } - set { - if (value.Length > table.Columns.Count) - throw new ArgumentException (); - if (rowState == DataRowState.Deleted) - throw new DeletedRowInaccessibleException (); - - for (int i = 0; i < value.Length; i += 1) - { - if (table.Columns[i].ReadOnly && value[i] != this[i]) - throw new ReadOnlyException (); - - if (value[i] == null) - { - if (!table.Columns[i].AllowDBNull) - throw new NoNullAllowedException (); - continue; - } - - //FIXME: int strings can be converted to ints - if (table.Columns[i].DataType != value[i].GetType()) - throw new InvalidCastException (); - } - - //FIXME: BeginEdit() not correct - BeginEdit (); // implicitly called - //FIXME: this isn't correct. a shorter array can set the first few values - //and not touch the rest. So not all the values will get replaced - proposed = value; - } - } - - /// - /// Gets or sets the custom error description for a row. - /// - public string RowError { - get { return rowError; } - set { rowError = value; } - } - - /// - /// Gets the current state of the row in regards to its relationship to the - /// DataRowCollection. - /// - public DataRowState RowState { - get { return rowState; } - } - - /// - /// Gets the DataTable for which this row has a schema. - /// - public DataTable Table { - get { return table; } - } - - #endregion - - #region Methods - - /// - /// Commits all the changes made to this row since the last time AcceptChanges was - /// called. - /// - [MonoTODO] - public void AcceptChanges () - { - this.EndEdit (); - - switch (rowState) - { - case DataRowState.Added: - rowState = DataRowState.Unchanged; - break; - case DataRowState.Modified: - rowState = DataRowState.Unchanged; - break; - case DataRowState.Deleted: - table.Rows.Remove (this); //FIXME: this should occur in end edit - break; - } - - original = null; - } - - /// - /// Begins an edit operation on a DataRow object. - /// - [MonoTODO] - public void BeginEdit() - { - if (rowState == DataRowState.Deleted) - throw new DeletedRowInaccessibleException (); - - if (!HasVersion (DataRowVersion.Proposed)) - { - proposed = new object[table.Columns.Count]; - Array.Copy (current, proposed, table.Columns.Count); - } - //TODO: Suspend validation - - //FIXME: this doesn't happen on begin edit - if (!HasVersion (DataRowVersion.Original)) - { - original = new object[table.Columns.Count]; - Array.Copy (current, original, table.Columns.Count); - } - } - - /// - /// Cancels the current edit on the row. - /// - [MonoTODO] - public void CancelEdit () - { - //FIXME: original doesn't get erased on CancelEdit - //TODO: Events - if (HasVersion (DataRowVersion.Proposed)) - { - original = null; - proposed = null; - rowState = DataRowState.Unchanged; - } - } - - /// - /// Clears the errors for the row, including the RowError and errors set with - /// SetColumnError. - /// - public void ClearErrors () - { - rowError = String.Empty; - columnErrors = new String[table.Columns.Count]; - } - - /// - /// Deletes the DataRow. - /// - [MonoTODO] - public void Delete () - { - if (rowState == DataRowState.Deleted) - throw new DeletedRowInaccessibleException (); - - //TODO: Events, Constraints - rowState = DataRowState.Deleted; - } - - /// - /// Ends the edit occurring on the row. - /// - [MonoTODO] - public void EndEdit () - { - if (HasVersion (DataRowVersion.Proposed)) - { - rowState = DataRowState.Modified; - //TODO: Validate Constraints, Events - Array.Copy (proposed, current, table.Columns.Count); - proposed = null; - } - } - - /// - /// Gets the child rows of this DataRow using the specified DataRelation. - /// - [MonoTODO] - public DataRow[] GetChildRows (DataRelation relation) - { - throw new NotImplementedException (); - } - - /// - /// Gets the child rows of a DataRow using the specified RelationName of a - /// DataRelation. - /// - [MonoTODO] - public DataRow[] GetChildRows (string relationName) - { - throw new NotImplementedException (); - } - - /// - /// Gets the child rows of a DataRow using the specified DataRelation, and - /// DataRowVersion. - /// - [MonoTODO] - public DataRow[] GetChildRows (DataRelation relation, DataRowVersion version) - { - throw new NotImplementedException (); - } - - /// - /// Gets the child rows of a DataRow using the specified RelationName of a - /// DataRelation, and DataRowVersion. - /// - [MonoTODO] - public DataRow[] GetChildRows (string relationName, DataRowVersion version) - { - throw new NotImplementedException (); - } - - /// - /// Gets the error description of the specified DataColumn. - /// - public string GetColumnError (DataColumn column) - { - return GetColumnError (table.Columns.IndexOf(column)); - } - - /// - /// Gets the error description for the column specified by index. - /// - public string GetColumnError (int columnIndex) - { - if (columnIndex < 0 || columnIndex >= columnErrors.Length) - throw new IndexOutOfRangeException (); - - return columnErrors[columnIndex]; - } - - /// - /// Gets the error description for the column, specified by name. - /// - public string GetColumnError (string columnName) - { - return GetColumnError (table.Columns.IndexOf(columnName)); - } - - /// - /// Gets an array of columns that have errors. - /// - public DataColumn[] GetColumnsInError () - { - ArrayList dataColumns = new ArrayList (); - - for (int i = 0; i < columnErrors.Length; i += 1) - { - if (columnErrors[i] != String.Empty) - dataColumns.Add (table.Columns[i]); - } - - return (DataColumn[])(dataColumns.ToArray ()); - } - - /// - /// Gets the parent row of a DataRow using the specified DataRelation. - /// - [MonoTODO] - public DataRow GetParentRow (DataRelation relation) - { - throw new NotImplementedException (); - } - - /// - /// Gets the parent row of a DataRow using the specified RelationName of a - /// DataRelation. - /// - [MonoTODO] - public DataRow GetParentRow (string relationName) - { - throw new NotImplementedException (); - } - - /// - /// Gets the parent row of a DataRow using the specified DataRelation, and - /// DataRowVersion. - /// - [MonoTODO] - public DataRow GetParentRow (DataRelation relation, DataRowVersion version) - { - throw new NotImplementedException (); - } - - /// - /// Gets the parent row of a DataRow using the specified RelationName of a - /// DataRelation, and DataRowVersion. - /// - [MonoTODO] - public DataRow GetParentRow (string relationName, DataRowVersion version) - { - throw new NotImplementedException (); - } - - /// - /// Gets the parent rows of a DataRow using the specified DataRelation. - /// - [MonoTODO] - public DataRow[] GetParentRows (DataRelation relation) - { - throw new NotImplementedException (); - } - - /// - /// Gets the parent rows of a DataRow using the specified RelationName of a - /// DataRelation. - /// - [MonoTODO] - public DataRow[] GetParentRows (string relationName) - { - throw new NotImplementedException (); - } - - /// - /// Gets the parent rows of a DataRow using the specified DataRelation, and - /// DataRowVersion. - /// - [MonoTODO] - public DataRow[] GetParentRows (DataRelation relation, DataRowVersion version) - { - throw new NotImplementedException (); - } - - /// - /// Gets the parent rows of a DataRow using the specified RelationName of a - /// DataRelation, and DataRowVersion. - /// - [MonoTODO] - public DataRow[] GetParentRows (string relationName, DataRowVersion version) - { - throw new NotImplementedException (); - } - - /// - /// Gets a value indicating whether a specified version exists. - /// - public bool HasVersion (DataRowVersion version) - { - switch (version) - { - case DataRowVersion.Default: - return true; - case DataRowVersion.Proposed: - return (proposed != null); - case DataRowVersion.Current: - return (current != null); - case DataRowVersion.Original: - return (original != null); - } - return false; - } - - /// - /// Gets a value indicating whether the specified DataColumn contains a null value. - /// - public bool IsNull (DataColumn column) - { - return (this[column] == null); - } - - /// - /// Gets a value indicating whether the column at the specified index contains a null - /// value. - /// - public bool IsNull (int columnIndex) - { - return (this[columnIndex] == null); - } - - /// - /// Gets a value indicating whether the named column contains a null value. - /// - public bool IsNull (string columnName) - { - return (this[columnName] == null); - } - - /// - /// Gets a value indicating whether the specified DataColumn and DataRowVersion - /// contains a null value. - /// - public bool IsNull (DataColumn column, DataRowVersion version) - { - return (this[column, version] == null); - } - - /// - /// Rejects all changes made to the row since AcceptChanges was last called. - /// - public void RejectChanges () - { - // If original is null, then nothing has happened since AcceptChanges - // was last called. We have no "original" to go back to. - if (original != null) - { - Array.Copy (original, current, table.Columns.Count); - CancelEdit (); - switch (rowState) - { - case DataRowState.Added: - table.Rows.Remove (this); - break; - case DataRowState.Modified: - rowState = DataRowState.Unchanged; - break; - case DataRowState.Deleted: - rowState = DataRowState.Unchanged; - break; - } - } - } - - /// - /// Sets the error description for a column specified as a DataColumn. - /// - public void SetColumnError (DataColumn column, string error) - { - SetColumnError (table.Columns.IndexOf (column), error); - } - - /// - /// Sets the error description for a column specified by index. - /// - public void SetColumnError (int columnIndex, string error) - { - if (columnIndex < 0 || columnIndex >= columnErrors.Length) - throw new IndexOutOfRangeException (); - columnErrors[columnIndex] = error; - } - - /// - /// Sets the error description for a column specified by name. - /// - public void SetColumnError (string columnName, string error) - { - SetColumnError (table.Columns.IndexOf (columnName), error); - } - - /// - /// Sets the value of the specified DataColumn to a null value. - /// - [MonoTODO] - protected void SetNull (DataColumn column) - { - throw new NotImplementedException (); - } - - /// - /// Sets the parent row of a DataRow with specified new parent DataRow. - /// - [MonoTODO] - public void SetParentRow (DataRow parentRow) - { - throw new NotImplementedException (); - } - - /// - /// Sets the parent row of a DataRow with specified new parent DataRow and - /// DataRelation. - /// - [MonoTODO] - public void SetParentRow (DataRow parentRow, DataRelation relation) - { - throw new NotImplementedException (); - } - - - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data/DataRowAction.cs b/mcs/class/System.Data/System.Data/DataRowAction.cs deleted file mode 100644 index b6423b374caac..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowAction.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -// System.Data.DataRowAction.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Describes the action taken on a DataRow. - /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. - /// - [Flags] - [Serializable] - public enum DataRowAction - { - Nothing = 0, - Delete = 1, - Change = 2, - Rollback = 4, - Commit = 8, - Add = 16 - } - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DataRowBuilder.cs b/mcs/class/System.Data/System.Data/DataRowBuilder.cs deleted file mode 100644 index 37c4621cafb7d..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowBuilder.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// System.Data.DataRowBuilder -// -// Author: -// Tim Coleman -// -// Copyright (C) 2002 Tim Coleman -// - -using System; - -namespace System.Data -{ - /// - /// A supporting class that exists solely to support - /// DataRow and DataTable - /// Implementation of something meaningful will follow. - /// Presumably, what that is will become apparent when - /// constructing DataTable and DataRow. - /// - - public class DataRowBuilder - { - #region Fields - - DataTable table; - - #endregion - - #region Constructors - - // DataRowBuilder on .NET takes 3 arguments, a - // DataTable and two Int32. For consistency, this - // class will also take those arguments. - - protected internal DataRowBuilder (DataTable table, int x, int y) - { - this.table = table; - } - - #endregion - - #region Properties - - protected internal DataTable Table { - get { return table; } - } - - #endregion - - } -} diff --git a/mcs/class/System.Data/System.Data/DataRowChangeEventArgs.cs b/mcs/class/System.Data/System.Data/DataRowChangeEventArgs.cs deleted file mode 100644 index 5466ec822bf40..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowChangeEventArgs.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Data.DataRowChangeEventArgs.cs -// -// Author: -// Daniel Morgan -// -// (C) Ximian, Inc 2002 -// - -namespace System.Data -{ - /// - /// argument data for events RowChanged, RowChanging, - /// OnRowDeleting, and OnRowDeleted - /// - public class DataRowChangeEventArgs : EventArgs { - - [MonoTODO] - public DataRowChangeEventArgs(DataRow row, - DataRowAction action) { - - throw new NotImplementedException (); - } - - public DataRowAction Action { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public DataRow Row { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - } - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DataRowChangeEventHandler.cs b/mcs/class/System.Data/System.Data/DataRowChangeEventHandler.cs deleted file mode 100644 index 4959e38f3bf18..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowChangeEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.DataRowChangeEventHandler.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Represents the method that will handle the RowChanging, RowChanged, RowDeleting, and RowDeleted events of a DataTable. - /// - [Serializable] - public delegate void DataRowChangeEventHandler(object sender, DataRowChangeEventArgs e); - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DataRowCollection.cs b/mcs/class/System.Data/System.Data/DataRowCollection.cs deleted file mode 100644 index a69999ad23720..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowCollection.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// System.Data.DataRowCollection.cs -// -// Author: -// Daniel Morgan -// Tim Coleman -// -// (C) Ximian, Inc 2002 -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// Collection of DataRows in a DataTable - /// - [Serializable] - public class DataRowCollection : InternalDataCollectionBase - { - private DataTable table; - - /// - /// Internal constructor used to build a DataRowCollection. - /// - protected internal DataRowCollection (DataTable table) : base () - { - this.table = table; - } - - /// - /// Gets the row at the specified index. - /// - public DataRow this[int index] - { - get { return (DataRow) list[index]; } - } - - /// - /// This member overrides InternalDataCollectionBase.List - /// - protected override ArrayList List - { - get { return list; } - } - - /// - /// Adds the specified DataRow to the DataRowCollection object. - /// - public void Add (DataRow row) - { - list.Add (row); - } - - /// - /// Creates a row using specified values and adds it to the DataRowCollection. - /// - public virtual DataRow Add (object[] values) - { - DataRow row = table.NewRow (); - row.ItemArray = values; - Add (row); - return row; - } - - /// - /// Clears the collection of all rows. - /// - [MonoTODO] - public void Clear () - { - list.Clear (); - } - - /// - /// Gets a value indicating whether the primary key of any row in the collection contains - /// the specified value. - /// - [MonoTODO] - public bool Contains (object key) - { - throw new NotImplementedException (); - } - - /// - /// Gets a value indicating whether the primary key column(s) of any row in the - /// collection contains the values specified in the object array. - /// - [MonoTODO] - public bool Contains (object[] keys) - { - throw new NotImplementedException (); - } - - /// - /// Gets the row specified by the primary key value. - /// - [MonoTODO] - public DataRow Find (object key) - { - throw new NotImplementedException (); - } - - /// - /// Gets the row containing the specified primary key values. - /// - [MonoTODO] - public DataRow Find (object[] keys) - { - throw new NotImplementedException (); - } - - /// - /// Inserts a new row into the collection at the specified location. - /// - public void InsertAt (DataRow row, int pos) - { - list.Insert (pos, row); - } - - /// - /// Removes the specified DataRow from the collection. - /// - public void Remove (DataRow row) - { - list.Remove (row); - } - - /// - /// Removes the row at the specified index from the collection. - /// - public void RemoveAt (int index) - { - list.RemoveAt (index); - } - - } -} diff --git a/mcs/class/System.Data/System.Data/DataRowState.cs b/mcs/class/System.Data/System.Data/DataRowState.cs deleted file mode 100644 index 4e77e4062035d..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowState.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// System.Data.DataRowState.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Gets the state of a DataRow object. - /// - [Flags] - [Serializable] - public enum DataRowState - { - Detached = 1, - Unchanged = 2, - Added = 4, - Deleted = 8, - Modified = 16 - } - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DataRowVersion.cs b/mcs/class/System.Data/System.Data/DataRowVersion.cs deleted file mode 100644 index ad757946bcb2a..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowVersion.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -// System.Data.DataRowVersion.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Describes the version of a DataRow. - /// - [Serializable] - public enum DataRowVersion - { - Original = 256, - Current = 512, - Proposed = 1024, - Default = 1536 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DataRowView.cs b/mcs/class/System.Data/System.Data/DataRowView.cs deleted file mode 100644 index f5301fdf234d3..0000000000000 --- a/mcs/class/System.Data/System.Data/DataRowView.cs +++ /dev/null @@ -1,197 +0,0 @@ -// -// System.Data.DataRowView.cs -// -// Author: -// Rodrigo Moya -// Miguel de Icaza -// -// (C) Ximian, Inc 2002 -// - -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// Represents a customized view of a DataRow exposed as a fully featured Windows Forms control. - /// - public class DataRowView : ICustomTypeDescriptor, IEditableObject, IDataErrorInfo - { - [MonoTODO] - public void BeginEdit () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void CancelEdit () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DataView CreateChildView (DataRelation relation) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DataView CreateChildView (string name) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Delete () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void EndEdit () - { - throw new NotImplementedException (); - } - - public DataView DataView - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public bool IsEdit { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public bool IsNew { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public string this[string column] { - [MonoTODO] - get { - throw new NotImplementedException (); - } - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public string Error { - get { - throw new NotImplementedException (); - } - } - - public object this[int column] { - [MonoTODO] - get { - throw new NotImplementedException (); - } - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public DataRow Row { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public DataRowVersion RowVersion { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - // - // ICustomTypeDescriptor implementations - // - - [MonoTODO] - AttributeCollection ICustomTypeDescriptor.GetAttributes () - { - throw new NotImplementedException (); - } - - [MonoTODO] - string ICustomTypeDescriptor.GetClassName () - { - throw new NotImplementedException (); - } - - [MonoTODO] - string ICustomTypeDescriptor.GetComponentName () - { - throw new NotImplementedException (); - } - - [MonoTODO] - TypeConverter ICustomTypeDescriptor.GetConverter () - { - throw new NotImplementedException (); - } - - [MonoTODO] - EventDescriptor ICustomTypeDescriptor.GetDefaultEvent () - { - throw new NotImplementedException (); - } - - [MonoTODO] - PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty () - { - throw new NotImplementedException (); - } - - [MonoTODO] - object ICustomTypeDescriptor.GetEditor (Type editorBaseType) - { - throw new NotImplementedException (); - } - - [MonoTODO] - EventDescriptorCollection ICustomTypeDescriptor.GetEvents () - { - throw new NotImplementedException (); - } - - [MonoTODO] - EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute [] attributes) - { - throw new NotImplementedException (); - } - - [MonoTODO] - PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties () - { - throw new NotImplementedException (); - } - - [MonoTODO] - PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute [] attributes) - { - throw new NotImplementedException (); - } - - [MonoTODO] - object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd) - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Data/System.Data/DataSet.cs b/mcs/class/System.Data/System.Data/DataSet.cs deleted file mode 100644 index eb484562085c1..0000000000000 --- a/mcs/class/System.Data/System.Data/DataSet.cs +++ /dev/null @@ -1,336 +0,0 @@ -// -// System.Data/DataSet.cs -// -// Author: -// Christopher Podurgiel -// Daniel Morgan -// Rodrigo Moya -// -// (C) Ximian, Inc. 2002 -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Globalization; -using System.IO; -using System.Runtime.Serialization; -using System.Xml; - -namespace System.Data -{ - /// - /// an in-memory cache of data - /// - [Serializable] - public class DataSet : MarshalByValueComponent, IListSource, - ISupportInitialize, ISerializable { - - private string dataSetName; - private bool caseSensitive; - private bool enforceConstraints; - private DataTableCollection tableCollection; - // private DataTableRelationCollection relationCollection; - private PropertyCollection properties; - - #region Constructors - - [MonoTODO] - public DataSet() { - tableCollection = new DataTableCollection (this); - } - - [MonoTODO] - public DataSet(string name) : this () { - dataSetName = name; - } - - [MonoTODO] - protected DataSet(SerializationInfo info, StreamingContext context) : this () { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Public Properties - - public bool CaseSensitive { - get { - return caseSensitive; - } - set { - caseSensitive = value; - } - } - - public string DataSetName { - get { - return dataSetName; - } - - set { - dataSetName = value; - } - } - - public DataViewManager DefaultViewManager { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public bool EnforceConstraints { - get { - return enforceConstraints; - } - - set { - enforceConstraints = value; - } - } - - public PropertyCollection ExtendedProperties { - [MonoTODO] - get { - return properties; - } - } - - public bool HasErrors { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public CultureInfo Locale { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public string Namespace { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public string Prefix { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public DataRelationCollection Relations { - [MonoTODO] - get{ - //return relationCollection; - throw new NotImplementedException(); - } - } - - public override ISite Site { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - public DataTableCollection Tables { - get { - return tableCollection; - } - } - - #endregion // Public Properties - - #region Public Methods - - public void AcceptChanges() - { - throw new NotImplementedException (); - } - - public void Clear() - { - throw new NotImplementedException (); - } - - public virtual DataSet Clone() - { - throw new NotImplementedException (); - } - - public DataSet Copy() - { - throw new NotImplementedException (); - } - - public DataSet GetChanges() - { - throw new NotImplementedException (); - } - - - public DataSet GetChanges(DataRowState rowStates) - { - throw new NotImplementedException (); - } - - public string GetXml() - { - throw new NotImplementedException (); - } - - public string GetXmlSchema() - { - throw new NotImplementedException (); - } - - public virtual void RejectChanges() - { - throw new NotImplementedException (); - } - - public virtual void Reset() - { - throw new NotImplementedException (); - } - - public void WriteXml(Stream stream) - { - throw new NotImplementedException (); - } - - public void WriteXml(string fileName) - { - throw new NotImplementedException (); - } - - public void WriteXml(TextWriter writer) - { - throw new NotImplementedException (); - } - - public void WriteXml(XmlWriter writer) - { - throw new NotImplementedException (); - } - - public void WriteXml(Stream stream, XmlWriteMode mode) - { - throw new NotImplementedException (); - } - - public void WriteXml(string fileName, XmlWriteMode mode) - { - throw new NotImplementedException (); - } - - public void WriteXml(TextWriter writer, XmlWriteMode mode) - { - throw new NotImplementedException (); - } - - public void WriteXml(XmlWriter writer, XmlWriteMode mode) - { - throw new NotImplementedException (); - } - - public void WriteXmlSchema(Stream stream) - { - throw new NotImplementedException (); - } - - public void WriteXmlSchema(string fileName) - { - throw new NotImplementedException (); - } - - public void WriteXmlSchema(TextWriter writer) - { - } - - public void WriteXmlSchema(XmlWriter writer) - { - throw new NotImplementedException (); - } - - #endregion // Public Methods - - #region Public Events - - public event MergeFailedEventHandler MergeFailed; - - #endregion // Public Events - - #region Destructors - - ~DataSet() - { - } - - #endregion Destructors - - #region IListSource methods - IList IListSource.GetList () - { - throw new NotImplementedException (); - } - - bool IListSource.ContainsListCollection { - get { - throw new NotImplementedException (); - } - } - #endregion IListSource methods - - #region ISupportInitialize methods - void ISupportInitialize.BeginInit () - { - throw new NotImplementedException (); - } - - void ISupportInitialize.EndInit () - { - throw new NotImplementedException (); - } - #endregion - - #region ISerializable - void ISerializable.GetObjectData (SerializationInfo si, StreamingContext sc) - { - throw new NotImplementedException (); - } - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data/DataTable.cs b/mcs/class/System.Data/System.Data/DataTable.cs deleted file mode 100644 index 518cc26c91426..0000000000000 --- a/mcs/class/System.Data/System.Data/DataTable.cs +++ /dev/null @@ -1,750 +0,0 @@ -// -// System.Data.DataTable.cs -// -// Author: -// Franklin Wise -// Christopher Podurgiel (cpodurgiel@msn.com) -// Daniel Morgan -// Rodrigo Moya -// -// (C) Chris Podurgiel -// (C) Ximian, Inc 2002 -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data -{ - /// - /// Represents one table of in-memory data. - /// - [Serializable] - public class DataTable : ISerializable - //MarshalByValueComponent, IListSource, ISupportInitialize - { - internal DataSet dataSet; - - private bool _caseSensitive; - private DataColumnCollection _columnCollection; - private ConstraintCollection _constraintCollection; - private DataView _defaultView; - - private string _displayExpression; - private PropertyCollection _extendedProperties; - private bool _hasErrors; - private CultureInfo _locale; - private int _minimumCapacity; - private string _nameSpace; - // FIXME: temporarily commented - // private DataTableRelationCollection _childRelations; - // private DataTableRelationCollection _parentRelations; - private string _prefix; - private DataColumn[] _primaryKey; - private DataRowCollection _rows; - private ISite _site; - private string _tableName; - private bool _containsListCollection; - private string _encodedTableName; - - /// - /// Initializes a new instance of the DataTable class with no arguments. - /// - - public DataTable() - { - dataSet = null; - _columnCollection = new DataColumnCollection(this); - _constraintCollection = new ConstraintCollection(); - _extendedProperties = new PropertyCollection(); - _tableName = ""; - _nameSpace = null; - _caseSensitive = false; //default value - _displayExpression = null; - _primaryKey = null; - _site = null; - _rows = new DataRowCollection (this); - _locale = CultureInfo.CurrentCulture; - - //LAMESPEC: spec says 25 impl does 50 - _minimumCapacity = 50; - - // FIXME: temporaily commented DataTableRelationCollection - // _childRelations = new DataTableRelationCollection(); - // _parentRelations = new DataTableRelationCollection(); - - - _defaultView = new DataView(this); - } - - /// - /// Intitalizes a new instance of the DataTable class with the specified table name. - /// - - public DataTable(string tableName) : this () - { - _tableName = tableName; - } - - /// - /// Initializes a new instance of the DataTable class with the SerializationInfo and the StreamingContext. - /// - - [MonoTODO] - protected DataTable(SerializationInfo info, StreamingContext context) - : this () - { - // - // TODO: Add constructor logic here - // - } - - /// - /// Indicates whether string comparisons within the table are case-sensitive. - /// - - public bool CaseSensitive - { - get { - return _caseSensitive; - } - set { - _caseSensitive = value; - } - } - - - /// - /// Gets the collection of child relations for this DataTable. - /// - [MonoTODO] - public DataRelationCollection ChildRelations - { - get { - // FIXME: temporarily commented to compile - // return (DataRelationCollection)_childRelations; - - //We are going to have to Inherit a class from - //DataRelationCollection because DRC is abstract - - throw new NotImplementedException (); - } - } - - /// - /// Gets the collection of columns that belong to this table. - /// - - public DataColumnCollection Columns - { - get { - return _columnCollection; - } - } - - /// - /// Gets the collection of constraints maintained by this table. - /// - - public ConstraintCollection Constraints - { - get { - return _constraintCollection; - } - } - - /// - /// Gets the DataSet that this table belongs to. - /// - public DataSet DataSet { - get { return dataSet; } - } - - - - /// - /// Gets a customized view of the table which may - /// include a filtered view, or a cursor position. - /// - [MonoTODO] - public DataView DefaultView - { - get - { - return _defaultView; - } - } - - - /// - /// Gets or sets the expression that will return - /// a value used to represent this table in the user interface. - /// - - public string DisplayExpression - { - get { - return "" + _displayExpression; - } - set { - _displayExpression = value; - } - } - - /// - /// Gets the collection of customized user information. - /// - public PropertyCollection ExtendedProperties - { - get { - return _extendedProperties; - } - } - - /// - /// Gets a value indicating whether there are errors in - /// any of the_rows in any of the tables of the DataSet to - /// which the table belongs. - /// - public bool HasErrors - { - get { - return _hasErrors; - } - } - - /// - /// Gets or sets the locale information used to - /// compare strings within the table. - /// - public CultureInfo Locale - { - get { - return _locale; - } - set { - _locale = value; - } - } - - /// - /// Gets or sets the initial starting size for this table. - /// - public int MinimumCapacity - { - get { - return _minimumCapacity; - } - set { - _minimumCapacity = value; - } - } - - /// - /// Gets or sets the namespace for the XML represenation - /// of the data stored in the DataTable. - /// - public string Namespace - { - get { - return "" + _nameSpace; - } - set { - _nameSpace = value; - } - } - - /// - /// Gets the collection of parent relations for - /// this DataTable. - /// - [MonoTODO] - public DataRelationCollection ParentRelations - { - get { - // FIXME: temporarily commented to compile - // return _parentRelations; - throw new NotImplementedException (); - } - } - - /// - /// Gets or sets the namespace for the XML represenation - /// of the data stored in the DataTable. - /// - public string Prefix - { - get { - return "" + _prefix; - } - set { - _prefix = value; - } - } - - /// - /// Gets or sets an array of columns that function as - /// primary keys for the data table. - /// - [MonoTODO] - public DataColumn[] PrimaryKey - { - get { - //TODO: compute PrimaryKey - if (null == _primaryKey) return new DataColumn[]{}; - return _primaryKey; - } - set { - _primaryKey = value; - } - } - - /// - /// Gets the collection of_rows that belong to this table. - /// - - public DataRowCollection Rows - { - get { return _rows; } - } - - /// - /// Gets or sets an System.ComponentModel.ISite - /// for the DataTable. - /// - - public virtual ISite Site - { - get { - return _site; - } - set { - _site = value; - } - } - - /// - /// Gets or sets the name of the the DataTable. - /// - - public string TableName - { - get { - return "" + _tableName; - } - set { - _tableName = value; - } - } - - /* FIXME: implement IListSource - public bool IListSource.ContainsListCollection - { - get { - return _containsListCollection; - } - } - */ - - /// - /// Commits all the changes made to this table since the - /// last time AcceptChanges was called. - /// - - public void AcceptChanges() - { - } - - /// - /// Begins the initialization of a DataTable that is used - /// on a form or used by another component. The initialization - /// occurs at runtime. - /// - - public void BeginInit() - { - } - - /// - /// Turns off notifications, index maintenance, and - /// constraints while loading data. - /// - - public void BeginLoadData() - { - } - - /// - /// Clears the DataTable of all data. - /// - - public void Clear() - { - _rows.Clear (); - } - - /// - /// Clones the structure of the DataTable, including - /// all DataTable schemas and constraints. - /// - - [MonoTODO] - public virtual DataTable Clone() - { - //FIXME: - return this; //Don't know if this is correct - } - - /// - /// Computes the given expression on the current_rows that - /// pass the filter criteria. - /// - - [MonoTODO] - public object Compute(string expression, string filter) - { - //FIXME: //Do a real compute - object obj = "a"; - return obj; - } - - /// - /// Copies both the structure and data for this DataTable. - /// - [MonoTODO] - public DataTable Copy() - { - //FIXME: Do a real copy - return this; - } - - /// - /// Ends the initialization of a DataTable that is used - /// on a form or used by another component. The - /// initialization occurs at runtime. - /// - - public void EndInit() - { - } - - /// - /// Turns on notifications, index maintenance, and - /// constraints after loading data. - /// - - public void EndLoadData() - { - } - - /// - /// Gets a copy of the DataTable that contains all - /// changes made to it since it was loaded or - /// AcceptChanges was last called. - /// - [MonoTODO] - public DataTable GetChanges() - { - //TODO: - return this; - } - - /// - /// Gets a copy of the DataTable containing all - /// changes made to it since it was last loaded, or - /// since AcceptChanges was called, filtered by DataRowState. - /// - [MonoTODO] - public DataTable GetChanges(DataRowState rowStates) - { - //TODO: - return this; - } - - /// - /// Gets an array of DataRow objects that contain errors. - /// - - [MonoTODO] - public DataRow[] GetErrors() - { - throw new NotImplementedException (); - } - - /// - /// This member supports the .NET Framework infrastructure - /// and is not intended to be used directly from your code. - /// - - //protected virtual Type GetRowType() - //{ - //} - - /// - /// This member supports the .NET Framework infrastructure - /// and is not intended to be used directly from your code. - /// - - /* FIXME: implement IListSource - public IList IListSource.GetList() - { - IList list = null; - return list; - } - */ - - /// - /// Copies a DataRow into a DataTable, preserving any - /// property settings, as well as original and current values. - /// - [MonoTODO] - public void ImportRow(DataRow row) - { - } - - /// - /// This member supports the .NET Framework infrastructure - /// and is not intended to be used directly from your code. - /// - - [MonoTODO] - void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) - { - } - - /// - /// Finds and updates a specific row. If no matching row - /// is found, a new row is created using the given values. - /// - [MonoTODO] - public DataRow LoadDataRow(object[] values, bool fAcceptChanges) - { - //FIXME: implemente - DataRow dataRow = null; - return dataRow; - } - - /// - /// Creates a new DataRow with the same schema as the table. - /// - public DataRow NewRow() - { - return this.NewRowFromBuilder (new DataRowBuilder (this, 0, 0)); - } - - /// - /// This member supports the .NET Framework infrastructure - /// and is not intended to be used directly from your code. - /// - [MonoTODO] - protected internal DataRow[] NewRowArray(int size) - { - DataRow[] dataRows = {null}; - return dataRows; - } - - /// - /// Creates a new row from an existing row. - /// - - protected virtual DataRow NewRowFromBuilder(DataRowBuilder builder) - { - return new DataRow (builder); - } - - - /// - /// Raises the ColumnChanged event. - /// - [MonoTODO] - protected virtual void OnColumnChanged(DataColumnChangeEventArgs e) - { - } - - /// - /// Raises the ColumnChanging event. - /// - - [MonoTODO] - protected virtual void OnColumnChanging(DataColumnChangeEventArgs e) - { - } - - /// - /// Raises the PropertyChanging event. - /// - - [MonoTODO] - protected internal virtual void OnPropertyChanging(PropertyChangedEventArgs pcevent) - { - } - - /// - /// Notifies the DataTable that a DataColumn is being removed. - /// - - [MonoTODO] - protected internal virtual void OnRemoveColumn(DataColumn column) - { - } - - /// - /// Raises the RowChanged event. - /// - - [MonoTODO] - protected virtual void OnRowChanged(DataRowChangeEventArgs e) - { - } - - /// - /// Raises the RowChanging event. - /// - - [MonoTODO] - protected virtual void OnRowChanging(DataRowChangeEventArgs e) - { - } - - /// - /// Raises the RowDeleted event. - /// - - [MonoTODO] - protected virtual void OnRowDeleted(DataRowChangeEventArgs e) - { - } - - /// - /// Raises the RowDeleting event. - /// - - [MonoTODO] - protected virtual void OnRowDeleting(DataRowChangeEventArgs e) - { - } - - /// - /// Rolls back all changes that have been made to the - /// table since it was loaded, or the last time AcceptChanges - /// was called. - /// - - [MonoTODO] - public void RejectChanges() - { - } - - /// - /// Resets the DataTable to its original state. - /// - - [MonoTODO] - public virtual void Reset() - { - } - - /// - /// Gets an array of all DataRow objects. - /// - - [MonoTODO] - public DataRow[] Select() - { - //FIXME: - DataRow[] dataRows = {null}; - return dataRows; - } - - /// - /// Gets an array of all DataRow objects that match - /// the filter criteria in order of primary key (or - /// lacking one, order of addition.) - /// - - [MonoTODO] - public DataRow[] Select(string filterExpression) - { - DataRow[] dataRows = {null}; - return dataRows; - } - - /// - /// Gets an array of all DataRow objects that - /// match the filter criteria, in the the - /// specified sort order. - /// - - [MonoTODO] - public DataRow[] Select(string filterExpression, string sort) - { - DataRow[] dataRows = {null}; - return dataRows; - } - - /// - /// Gets an array of all DataRow objects that match - /// the filter in the order of the sort, that match - /// the specified state. - /// - - [MonoTODO] - public DataRow[] Select(string filterExpression, string sort, DataViewRowState recordStates) - { - DataRow[] dataRows = {null}; - return dataRows; - } - - /// - /// Gets the TableName and DisplayExpression, if - /// there is one as a concatenated string. - /// - - [MonoTODO] - public override string ToString() - { - return ""; - } - - /// - /// Occurs when after a value has been changed for - /// the specified DataColumn in a DataRow. - /// - - public event DataColumnChangeEventHandler ColumnChanged; - - /// - /// Occurs when a value is being changed for the specified - /// DataColumn in a DataRow. - /// - - public event DataColumnChangeEventHandler ColumnChanging; - - /// - /// Occurs after a DataRow has been changed successfully. - /// - - public event DataRowChangeEventHandler RowChanged; - - /// - /// Occurs when a DataRow is changing. - /// - - public event DataRowChangeEventHandler RowChanging; - - /// - /// Occurs after a row in the table has been deleted. - /// - - public event DataRowChangeEventHandler RowDeleted; - - /// - /// Occurs before a row in the table is about to be deleted. - /// - - public event DataRowChangeEventHandler RowDeleting; - } -} diff --git a/mcs/class/System.Data/System.Data/DataTableCollection.cs b/mcs/class/System.Data/System.Data/DataTableCollection.cs deleted file mode 100644 index 646f10f7d4d49..0000000000000 --- a/mcs/class/System.Data/System.Data/DataTableCollection.cs +++ /dev/null @@ -1,139 +0,0 @@ -// -// System.Data.DataTableCollection.cs -// -// Authors: -// Christopher Podurgiel (cpodurgiel@msn.com) -// Tim Coleman -// -// (C) Chris Podurgiel -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// Represents the collection of tables for the DataSet. - /// - public class DataTableCollection : InternalDataCollectionBase - { - DataSet dataSet; - const string defaultTableName = "Table1"; - Hashtable tables; - - #region Constructors - - // LAMESPEC: This constructor is undocumented - protected internal DataTableCollection (DataSet dataSet) - : base () - { - this.dataSet = dataSet; - this.tables = new Hashtable (); - } - - #endregion - - #region Properties - - public override int Count { - get { return list.Count; } - } - - public DataTable this[int index] { - get { return (DataTable)(list[index]); } - } - - public DataTable this[string name] { - get { return (DataTable)(tables[name]); } - } - - protected override ArrayList List { - get { return list; } - } - - #endregion - - #region Methods - - public virtual DataTable Add () - { - return this.Add (defaultTableName); - } - - public virtual void Add (DataTable table) - { - list.Add (table); - table.dataSet = dataSet; - tables[table.TableName] = table; - } - - public virtual DataTable Add (string name) - { - DataTable table = new DataTable (name); - this.Add (table); - return table; - } - - public void AddRange (DataTable[] tables) - { - foreach (DataTable table in tables) - this.Add (table); - } - - [MonoTODO] - public bool CanRemove (DataTable table) - { - throw new NotImplementedException (); - } - - public void Clear () - { - list.Clear (); - tables.Clear (); - } - - public bool Contains (string name) - { - return tables.Contains (name); - } - - public virtual int IndexOf (DataTable table) - { - return list.IndexOf (table); - } - - public virtual int IndexOf (string name) - { - return list.IndexOf (tables[name]); - } - - public void Remove (DataTable table) - { - this.Remove (table.TableName); - } - - public void Remove (string name) - { - list.Remove (tables[name]); - tables.Remove (name); - } - - public void RemoveAt (int index) - { - tables.Remove (((DataTable)(list[index])).TableName); - list.RemoveAt (index); - } - - #endregion - - #region Events - - public event CollectionChangeEventHandler CollectionChanged; - public event CollectionChangeEventHandler CollectionChanging; - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data/DataTableRelationCollection.cs b/mcs/class/System.Data/System.Data/DataTableRelationCollection.cs deleted file mode 100644 index 5f23fc1204fdb..0000000000000 --- a/mcs/class/System.Data/System.Data/DataTableRelationCollection.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// System.Data.DataTableRelationCollection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data.Common; - -namespace System.Data -{ - /// - /// Summary description for DataTableRelationCollection. - /// - internal class DataTableRelationCollection : DataRelationCollection - { - /// - /// Initializes a new instance of the DataRelationCollection class. - /// - [MonoTODO] - internal DataTableRelationCollection():base() - { - // TODO: need to the constructor - } - - /// - /// Gets the DataRelation object specified by name. - /// - [MonoTODO] - public override DataRelation this[string name] - { - get - { - foreach (DataRelation dataRelation in list) - { - if (dataRelation.RelationName == name) - { - return dataRelation; - } - } - - return null; - } - } - - /// - /// Gets the DataRelation object at the specified index. - /// - [MonoTODO] - public override DataRelation this[int index] - { - get - { - return (DataRelation)list[index]; - } - } - - /// - /// Copies the elements of the specified DataRelation array to the end of the collection. - /// - /// The array of DataRelation objects to add to the collection. - [MonoTODO] - public override void AddRange(DataRelation[] relations) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override bool CanRemove(DataRelation relation) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void Clear() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override bool Contains(string name) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override DataSet GetDataSet() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override int IndexOf(DataRelation relation) - { - return list.IndexOf(relation); - } - - [MonoTODO] - public override int IndexOf(string relationName) - { - return list.IndexOf(this[relationName]); - } - - [MonoTODO] - protected override void OnCollectionChanged(CollectionChangeEventArgs ccevent) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal override void OnCollectionChanging(CollectionChangeEventArgs ccevent) - { - throw new NotImplementedException (); - } - - } -} diff --git a/mcs/class/System.Data/System.Data/DataView.cs b/mcs/class/System.Data/System.Data/DataView.cs deleted file mode 100644 index 6a0a965628e72..0000000000000 --- a/mcs/class/System.Data/System.Data/DataView.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// System.Data.DataView.cs -// -// Author: -// Daniel Morgan -// -// (C) Ximian, Inc 2002 -// - -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// A DataView is used in the binding of data between - /// a DataTable and Windows Forms or Web Forms allowing - /// a view of a DataTable for editing, filtering, - /// navigation, searching, and sorting. - /// - public class DataView : MarshalByValueComponent, //IBindingList, - IEnumerable, // ITypedList, IList, ICollection, - ISupportInitialize { - - [MonoTODO] - public DataView() { - } - - [MonoTODO] - public DataView(DataTable table) { - } - - [MonoTODO] - public DataView(DataTable table, string RowFilter, - string Sort, DataViewRowState RowState) { - } - - public bool AllowDelete { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - public bool AllowEdit { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - public bool AllowNew { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - public bool ApplyDefaultSort { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - public int Count { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public DataViewManager DataViewManager { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - // Item indexer - public DataRowView this[int recordIndex] { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public virtual string RowFilter { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - public DataViewRowState RowStateFilter { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - public string Sort { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - public DataTable Table { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - } - } - - [MonoTODO] - public virtual DataRowView AddNew() { - throw new NotImplementedException (); - } - - [MonoTODO] - public void BeginInit() { - } - - [MonoTODO] - public void CopyTo(Array array, int index) { - } - - [MonoTODO] - public void Delete(int index) { - } - - [MonoTODO] - public void EndInit() { - } - - [MonoTODO] - public int Find(object key) { - throw new NotImplementedException (); - } - - [MonoTODO] - public int Find(object[] key) { - throw new NotImplementedException (); - } - - [MonoTODO] - public DataRowView[] FindRows(object key) { - throw new NotImplementedException (); - } - - [MonoTODO] - public DataRowView[] FindRows(object[] key) { - throw new NotImplementedException (); - } - - [MonoTODO] - public IEnumerator GetEnumerator() { - throw new NotImplementedException (); - } - - [MonoTODO] - public event ListChangedEventHandler ListChanged; - - protected bool IsOpen { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - protected void Close() { - } - - [MonoTODO] - protected virtual void ColumnCollectionChanged( - object sender, CollectionChangeEventArgs e) { - } - - protected override void Dispose (bool disposing) - { - } - - [MonoTODO] - protected virtual void IndexListChanged(object sender, ListChangedEventArgs e) - { - } - - [MonoTODO] - protected virtual void OnListChanged(ListChangedEventArgs e) - { - } - - [MonoTODO] - protected void Open() { - } - - } - -} diff --git a/mcs/class/System.Data/System.Data/DataViewManager.cs b/mcs/class/System.Data/System.Data/DataViewManager.cs deleted file mode 100644 index cb4575bb1283d..0000000000000 --- a/mcs/class/System.Data/System.Data/DataViewManager.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// System.Data.DataViewManager -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc. 2002 -// - -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// Contains a default DataViewSettingCollection for each DataTable in a DataSet. - /// - public class DataViewManager : MarshalByValueComponent - // IBindingList, ICollection, IList, ITypedList, IEnumerable - { - private DataSet dataSet; - - public DataViewManager () { - dataSet = null; - } - - public DataViewManager (DataSet ds) { - dataSet = ds; - } - - [MonoTODO] - public DataView CreateDataView (DataTable table) { - return new DataView (table); - } - - protected virtual void OnListChanged (ListChangedEventArgs e) { - } - - protected virtual void RelationCollectionChanged ( - object sender, - CollectionChangeEventArgs e) { - } - - protected virtual void TableCollectionChanged (object sender, - CollectionChangeEventArgs e) { - } - - public DataSet DataSet { - get { - return dataSet; - } - set { - dataSet = value; - } - } - - [MonoTODO] - public string DataViewSettingCollectionString { - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public DataViewSettingCollection DataViewSettings { - get { - throw new NotImplementedException (); - } - } - - public event ListChangedEventHandler ListChanged; - } -} diff --git a/mcs/class/System.Data/System.Data/DataViewRowState.cs b/mcs/class/System.Data/System.Data/DataViewRowState.cs deleted file mode 100644 index 2768fbe0e0f13..0000000000000 --- a/mcs/class/System.Data/System.Data/DataViewRowState.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -// System.Data.DataViewRowState.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Describes the version of data in a DataRow. - /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. - /// - [Flags] - [Serializable] - public enum DataViewRowState - { - None = 0, - Unchanged = 2, - Added = 4, - Deleted = 8, - ModifiedCurrent = 16, - CurrentRows = 22, - ModifiedOriginal = 32, - OriginalRows = 42 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DataViewSetting.cs b/mcs/class/System.Data/System.Data/DataViewSetting.cs deleted file mode 100644 index 4db37d934fcd8..0000000000000 --- a/mcs/class/System.Data/System.Data/DataViewSetting.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// System.Data.DataViewSetting -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// -// (C) Ximian, Inc. 2002 -// - -namespace System.Data -{ - /// - /// Represents the default settings for ApplyDefaultSort, DataViewManager, RowFilter, RowStateFilter, Sort, and Table for DataViews created from the DataViewManager. - /// - public class DataViewSetting - { - private bool defaultSort; - private DataViewManager viewManager; - private string rowFilter; - private DataViewRowState rowStateFilter; - private string sortString; - - public bool ApplyDefaultSort { - get { - return defaultSort; - } - set { - defaultSort = value; - } - } - - public DataViewManager DataViewManager { - get { - return viewManager; - } - } - - public string RowFilter { - get { - return rowFilter; - } - set { - rowFilter = value; - } - } - - public DataViewRowState RowStateFilter { - get { - return rowStateFilter; - } - set { - rowStateFilter = value; - } - } - - public string Sort { - get { - return sortString; - } - set { - sortString = value; - } - } - - [MonoTODO] - public DataTable Table { - get { - throw new NotImplementedException (); - } - } - } -} diff --git a/mcs/class/System.Data/System.Data/DataViewSettingCollection.cs b/mcs/class/System.Data/System.Data/DataViewSettingCollection.cs deleted file mode 100755 index c2528878a3987..0000000000000 --- a/mcs/class/System.Data/System.Data/DataViewSettingCollection.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// System.Data.DataViewSettingCollection.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// -// Authors: -// Rodrigo Moya (rodrigo@ximian.com) -// Miguel de Icaza (miguel@gnome.org) -// - -using System; -using System.Collections; - -namespace System.Data { - /// - /// Contains a read-only collection of DataViewSetting objects for each DataTable in a DataSet. - /// - public class DataViewSettingCollection : ICollection, IEnumerable { - private ArrayList settingList; - - public void CopyTo (Array ar, int index) { - settingList.CopyTo (ar, index); - } - - public IEnumerator GetEnumerator () { - return settingList.GetEnumerator (); - } - - public virtual int Count { - get { - return settingList.Count; - } - } - - public bool IsReadOnly { - get { - return settingList.IsReadOnly; - } - } - - public bool IsSynchronized { - get { - return settingList.IsSynchronized; - } - } - - public virtual DataViewSetting this [DataTable dt] { - get { - for (int i = 0; i < settingList.Count; i++) { - DataViewSetting dvs = (DataViewSetting) settingList[i]; - if (dvs.Table == dt) - return dvs; - } - return null; - } - set { - this[dt] = value; - } - } - - public virtual DataViewSetting this[string name] { - get { - for (int i = 0; i < settingList.Count; i++) { - DataViewSetting dvs = (DataViewSetting) settingList[i]; - if (dvs.Table.TableName == name) - return dvs; - } - return null; - } - } - - public virtual DataViewSetting this[int index] { - get { - return (DataViewSetting) settingList[index]; - } - set { - settingList[index] = value; - } - } - - public object SyncRoot { - get { - return settingList.SyncRoot; - } - } - } -} diff --git a/mcs/class/System.Data/System.Data/DbType.cs b/mcs/class/System.Data/System.Data/DbType.cs deleted file mode 100644 index 9a0cad9a631dd..0000000000000 --- a/mcs/class/System.Data/System.Data/DbType.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.Data.DbType.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Gets the data type of a field, a property, or a Parameter object of a .NET data provider. - /// - [Serializable] - public enum DbType - { - AnsiString = 0, - Binary = 1, - Byte = 2, - Boolean = 3, - Currency = 4, - Date = 5, - DateTime = 6, - Decimal = 7, - Double = 8, - Guid = 9, - Int16 = 10, - Int32 = 11, - Int64 = 12, - Object = 13, - SByte = 14, - Single = 15, - String = 16, - Time = 17, - UInt16 = 18, - UInt32 = 19, - UInt64 = 20, - VarNumeric = 21, - AnsiStringFixedLength = 22, - StringFixedLength = 23 - - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/DeletedRowInaccessibleException.cs b/mcs/class/System.Data/System.Data/DeletedRowInaccessibleException.cs deleted file mode 100644 index 4088cc700b0a7..0000000000000 --- a/mcs/class/System.Data/System.Data/DeletedRowInaccessibleException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.DeletedRowInaccessibleException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class DeletedRowInaccessibleException : DataException - { - public DeletedRowInaccessibleException () - : base (Locale.GetText ("This DataRow has been deleted")) - { - } - - public DeletedRowInaccessibleException (string message) - : base (message) - { - } - - protected DeletedRowInaccessibleException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/DuplicateNameException.cs b/mcs/class/System.Data/System.Data/DuplicateNameException.cs deleted file mode 100644 index 660840716e3da..0000000000000 --- a/mcs/class/System.Data/System.Data/DuplicateNameException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.DuplicateNameException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class DuplicateNameException : DataException - { - public DuplicateNameException () - : base (Locale.GetText ("There is a database object with the same name")) - { - } - - public DuplicateNameException (string message) - : base (message) - { - } - - protected DuplicateNameException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/EvaluateException.cs b/mcs/class/System.Data/System.Data/EvaluateException.cs deleted file mode 100644 index 426742eb90a0b..0000000000000 --- a/mcs/class/System.Data/System.Data/EvaluateException.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// System.Data.EvaluateException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - [Serializable] - public class EvaluateException : InvalidExpressionException - { - public EvaluateException () - : base (Locale.GetText ("This expression cannot be evaluated")) - { - } - - public EvaluateException (string message) - : base (message) - { - } - - protected EvaluateException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/FillErrorEventArgs.cs b/mcs/class/System.Data/System.Data/FillErrorEventArgs.cs deleted file mode 100755 index 4950d83391630..0000000000000 --- a/mcs/class/System.Data/System.Data/FillErrorEventArgs.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// System.Data.FillErrorEventArgs.cs -// -// Author: -// Miguel de Icaza -// -// (C) Ximian, Inc 2002 -// - -using System; - -namespace System.Data -{ - public class FillErrorEventArgs : EventArgs { - DataTable data_table; - object [] values; - Exception errors; - bool f_continue; - - public FillErrorEventArgs (DataTable dataTable, object [] values) - { - this.data_table = dataTable; - this.values = values; - } - - public bool Continue { - get { - return f_continue; - } - - set { - f_continue = value; - } - } - - public DataTable DataTable { - get { - return data_table; - } - } - - public Exception Errors { - get { - return errors; - } - - set { - errors = value; - } - } - - public object [] Values { - get { - return values; - } - } - } -} diff --git a/mcs/class/System.Data/System.Data/FillErrorEventHandler.cs b/mcs/class/System.Data/System.Data/FillErrorEventHandler.cs deleted file mode 100644 index 8f63a935cdbe7..0000000000000 --- a/mcs/class/System.Data/System.Data/FillErrorEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.FillErrorEventHandler.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Represents the method that will handle the FillError event. - /// - [Serializable] - public delegate void FillErrorEventHandler(object sender, FillErrorEventArgs e); - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/ForeignKeyConstraint.cs b/mcs/class/System.Data/System.Data/ForeignKeyConstraint.cs deleted file mode 100644 index 075b1218c30dc..0000000000000 --- a/mcs/class/System.Data/System.Data/ForeignKeyConstraint.cs +++ /dev/null @@ -1,347 +0,0 @@ -// -// System.Data.ForeignKeyConstraint.cs -// -// Author: -// Franklin Wise -// Daniel Morgan -// -// (C) 2002 Franklin Wise -// (C) 2002 Daniel Morgan -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Runtime.InteropServices; - -namespace System.Data -{ - - [Serializable] - public class ForeignKeyConstraint : Constraint { - - private UniqueConstraint _parentUniqueConstraint; - private DataColumn [] _parentColumns; - private DataColumn [] _childColumns; - private Rule _deleteRule; - private Rule _updateRule; - private AcceptRejectRule _acceptRejectRule; - - #region Constructors - - public ForeignKeyConstraint(DataColumn parentColumn, DataColumn childColumn) - { - if (null == parentColumn || null == childColumn) { - throw new ArgumentNullException("Neither parentColumn or" + - " childColumn can be null."); - } - - _foreignKeyConstraint(null, new DataColumn[] {parentColumn}, - new DataColumn[] {childColumn}); - } - - public ForeignKeyConstraint(DataColumn[] parentColumns, DataColumn[] childColumns) - { - _foreignKeyConstraint(null, parentColumns, childColumns); - } - - public ForeignKeyConstraint(string constraintName, - DataColumn parentColumn, DataColumn childColumn) - { - if (null == parentColumn || null == childColumn) { - throw new ArgumentNullException("Neither parentColumn or" + - " childColumn can be null."); - } - - _foreignKeyConstraint(constraintName, new DataColumn[] {parentColumn}, - new DataColumn[] {childColumn}); - } - - public ForeignKeyConstraint(string constraintName, - DataColumn[] parentColumns, DataColumn[] childColumns) - { - _foreignKeyConstraint(constraintName, parentColumns, childColumns); - } - - //special case - [MonoTODO] - public ForeignKeyConstraint(string constraintName, - string parentTableName, string[] parentColumnNames, - string[] childColumnNames, - AcceptRejectRule acceptRejectRule, Rule deleteRule, - Rule updateRule) { - } - - - private void _foreignKeyConstraint(string constraintName, DataColumn[] parentColumns, - DataColumn[] childColumns) - { - - //Validate - _validateColumns(parentColumns, childColumns); - - //Set Constraint Name - base.ConstraintName = constraintName; - - //Keep reference to columns - _parentColumns = parentColumns; - _childColumns = childColumns; - } - - #endregion // Constructors - - #region Helpers - - private void _validateColumns(DataColumn[] parentColumns, DataColumn[] childColumns) - { - //not null - if (null == parentColumns || null == childColumns) - throw new ArgumentNullException(); - - //at least one element in each array - if (parentColumns.Length < 1 || childColumns.Length < 1) - throw new ArgumentException("Neither ParentColumns or ChildColumns can't be" + - " zero length."); - - //same size arrays - if (parentColumns.Length != childColumns.Length) - throw new ArgumentException("Parent columns and child columns must be the same length."); - - - DataTable ptable = parentColumns[0].Table; - DataTable ctable = childColumns[0].Table; - - - foreach (DataColumn pc in parentColumns) - { - //not null check - if (null == pc.Table) - { - throw new ArgumentException("All columns must belong to a table." + - " ColumnName: " + pc.ColumnName + " does not belong to a table."); - } - - //All columns must belong to the same table - if (ptable != pc.Table) - throw new InvalidConstraintException("Parent columns must all belong to the same table."); - - foreach (DataColumn cc in childColumns) - { - //not null - if (null == pc.Table) - { - throw new ArgumentException("All columns must belong to a table." + - " ColumnName: " + pc.ColumnName + " does not belong to a table."); - } - - //All columns must belong to the same table. - if (ctable != cc.Table) - throw new InvalidConstraintException("Child columns must all belong to the same table."); - - - //Can't be the same column - if (pc == cc) - throw new InvalidOperationException("Parent and child columns can't be the same column."); - - if (! pc.DataType.Equals(cc.DataType)) - { - //LAMESPEC: spec says throw InvalidConstraintException - // implementation throws InvalidOperationException - throw new InvalidOperationException("Parent column is not type compatible with it's child" - + " column."); - } - } - } - - - //Same dataset. If both are null it's ok - if (ptable.DataSet != ctable.DataSet) - { - //LAMESPEC: spec says InvalidConstraintExceptoin - // impl does InvalidOperationException - throw new InvalidOperationException("Parent column and child column must belong to" + - " tables that belong to the same DataSet."); - - } - - - } - - - - private void _validateRemoveParentConstraint(ConstraintCollection sender, - Constraint constraint, ref bool cancel, ref string failReason) - { - //if we hold a reference to the parent then cancel it - if (constraint == _parentUniqueConstraint) - { - cancel = true; - failReason = "Cannot remove UniqueConstraint because the" - + " ForeignKeyConstraint " + this.ConstraintName + " exists."; - } - } - - //Checks to see if a related unique constraint exists - //if it doesn't then a unique constraint is created. - //if a unique constraint can't be created an exception will be thrown - private void _ensureUniqueConstraintExists(ConstraintCollection collection, - DataColumn [] parentColumns) - { - //not null - if (null == parentColumns) throw new ArgumentNullException( - "ParentColumns can't be null"); - - UniqueConstraint uc = null; - - //see if unique constraint already exists - //if not create unique constraint - uc = UniqueConstraint.GetUniqueConstraintForColumnSet(collection, parentColumns); - - if (null == uc) uc = new UniqueConstraint(parentColumns, false); //could throw - - //keep reference - _parentUniqueConstraint = uc; - - //if this unique constraint is attempted to be removed before us - //we can fail the validation - collection.ValidateRemoveConstraint += new DelegateValidateRemoveConstraint( - _validateRemoveParentConstraint); - } - - - #endregion //Helpers - - - #region Properites - - public virtual AcceptRejectRule AcceptRejectRule { - get { - return _acceptRejectRule; - } - - set { - _acceptRejectRule = value; - } - } - - public virtual Rule DeleteRule { - get { - return _deleteRule; - } - - set { - _deleteRule = value; - } - } - - public virtual Rule UpdateRule { - get { - return _updateRule; - } - - set { - _updateRule = value; - } - } - - public virtual DataColumn[] Columns { - get { - return _childColumns; - } - } - - public virtual DataColumn[] RelatedColumns { - get { - return _parentColumns; - } - } - - public virtual DataTable RelatedTable { - get { - if (_parentColumns != null) - if (_parentColumns.Length > 0) - return _parentColumns[0].Table; - - return null; - } - } - - public override DataTable Table { - get { - if (_childColumns != null) - if (_childColumns.Length > 0) - return _childColumns[0].Table; - - return null; - } - } - - - - #endregion // Properties - - #region Methods - - public override bool Equals(object key) - { - ForeignKeyConstraint fkc = key as ForeignKeyConstraint; - if (null == fkc) return false; - - //if the fk constrains the same columns then they are equal - if (! DataColumn.AreColumnSetsTheSame( this.RelatedColumns, fkc.RelatedColumns)) - return false; - if (! DataColumn.AreColumnSetsTheSame( this.Columns, fkc.Columns) ) - return false; - - return true; - } - - [MonoTODO] - public override int GetHashCode() { - throw new NotImplementedException (); - } - - internal override void AddToConstraintCollectionSetup( - ConstraintCollection collection) - { - - //run Ctor rules again - _validateColumns(_parentColumns, _childColumns); - - //we must have a unique constraint on the parent - _ensureUniqueConstraintExists(collection, _parentColumns); - - //Make sure we can create this thing - AssertConstraint(); //TODO:if this fails and we created a unique constraint - //we should probably roll it back - - } - - - [MonoTODO] - internal override void RemoveFromConstraintCollectionCleanup( - ConstraintCollection collection) - { - return; //no rules yet - } - - [MonoTODO] - internal override void AssertConstraint() - { - //Constraint only works if both tables are part of the same dataset - - //if DataSet ... - if (Table == null || RelatedTable == null) return; //TODO: Do we want this - - if (Table.DataSet == null || RelatedTable.DataSet == null) return; // - - //TODO: - //check for orphaned children - //check for... - - } - - #endregion // Methods - } - -} diff --git a/mcs/class/System.Data/System.Data/IColumnMapping.cs b/mcs/class/System.Data/System.Data/IColumnMapping.cs deleted file mode 100644 index 2e3077635332b..0000000000000 --- a/mcs/class/System.Data/System.Data/IColumnMapping.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -// System.Data.IColumnMapping.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Associates a data source column with a DataSet column, and is implemented by the DataColumnMapping class, which is used in common by .NET data providers. - /// - public interface IColumnMapping - { - /// - /// Gets or sets the name of the column within the DataSet to map to. - /// - string DataSetColumn - { - get; - set; - } - - /// - /// Gets or sets the name of the column within the data source to map from. The name is case-sensitive. - /// - string SourceColumn - { - get; - set; - } - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/IColumnMappingCollection.cs b/mcs/class/System.Data/System.Data/IColumnMappingCollection.cs deleted file mode 100644 index a23a2ae60563b..0000000000000 --- a/mcs/class/System.Data/System.Data/IColumnMappingCollection.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -// System.Data.IColumnMappingCollection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System.Collections; - -namespace System.Data -{ - /// - /// Contains a collection of ColumnMapping objects, and is implemented by the DataColumnMappingCollection, which is used in common by .NET data providers. - /// - public interface IColumnMappingCollection : IList, ICollection, IEnumerable - { - IColumnMapping Add(string sourceColumnName, string dataSetColumnName); - - bool Contains(string sourceColumnName); - - IColumnMapping GetByDataSetColumn(string dataSetColumnName); - - int IndexOf(string sourceColumnName); - - void RemoveAt(string sourceColumnName); - - object this[string index] - { - get; - set; - } - } -} diff --git a/mcs/class/System.Data/System.Data/IDataAdapter.cs b/mcs/class/System.Data/System.Data/IDataAdapter.cs deleted file mode 100644 index be6f09036b014..0000000000000 --- a/mcs/class/System.Data/System.Data/IDataAdapter.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// System.Data.IDataAdapter.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Allows an object to implement a DataAdapter, and represents a set of methods and mapping action-related properties used to fill and refresh a DataSet and update a data source. - /// - public interface IDataAdapter - { - int Fill(DataSet dataSet); - - DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType); - - IDataParameter[] GetFillParameters(); - - int Update(DataSet dataSet); - - MissingMappingAction MissingMappingAction{get;set;} - - MissingSchemaAction MissingSchemaAction{get;set;} - - ITableMappingCollection TableMappings{get;} - - - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/IDataParameter.cs b/mcs/class/System.Data/System.Data/IDataParameter.cs deleted file mode 100644 index 3528cb2f2467e..0000000000000 --- a/mcs/class/System.Data/System.Data/IDataParameter.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -// System.Data.IDataParameter.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Represents a parameter to a Command object, and optionally, its mapping to DataSet columns; and is implemented by .NET data providers that access data sources. - /// - public interface IDataParameter - { - - DbType DbType{get;set;} - - ParameterDirection Direction{get;set;} - - bool IsNullable{get;} - - string ParameterName{get;set;} - - string SourceColumn{get;set;} - - DataRowVersion SourceVersion {get;set;} - - object Value {get;set;} - - - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/IDataParameterCollection.cs b/mcs/class/System.Data/System.Data/IDataParameterCollection.cs deleted file mode 100644 index 41da8ab9d77cc..0000000000000 --- a/mcs/class/System.Data/System.Data/IDataParameterCollection.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -// System.Data.IDataParameterCollection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; -using System.Collections; - -namespace System.Data -{ - /// - /// Collects all parameters relevant to a Command object and their mappings to DataSet columns, and is implemented by .NET data providers that access data sources. - /// - public interface IDataParameterCollection : IList, ICollection, IEnumerable - { - void RemoveAt(string parameterName); - - int IndexOf(string parameterName); - - bool Contains(string parameterName); - - object this[string parameterName]{get; set;} - } -} diff --git a/mcs/class/System.Data/System.Data/IDataReader.cs b/mcs/class/System.Data/System.Data/IDataReader.cs deleted file mode 100644 index 746d0d72ed6f5..0000000000000 --- a/mcs/class/System.Data/System.Data/IDataReader.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// System.Data.IDataReader.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Provides a means of reading one or more forward-only streams of result sets obtained by executing a command at a data source, and is implemented by .NET data providers that access relational databases. - /// - public interface IDataReader : IDisposable, IDataRecord - { - void Close(); - - DataTable GetSchemaTable(); - - bool NextResult(); - - bool Read(); - - int Depth{get;} - - bool IsClosed{get;} - - int RecordsAffected{get;} - - - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/IDataRecord.cs b/mcs/class/System.Data/System.Data/IDataRecord.cs deleted file mode 100644 index 0bb6376da12f8..0000000000000 --- a/mcs/class/System.Data/System.Data/IDataRecord.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// System.Data.IDataRecord.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Provides access to the column values within - /// each row for a DataReader, and is implemented by .NET data - /// providers that access relational databases. - /// - public interface IDataRecord - { - bool GetBoolean(int i); - - byte GetByte(int i); - - long GetBytes(int i, long fieldOffset, byte[] buffer, - int bufferOffset, int length); - - char GetChar(int i); - - long GetChars(int i, long fieldOffset, char[] buffer, - int bufferOffset, int length); - - IDataReader GetData(int i); - - string GetDataTypeName(int i); - - DateTime GetDateTime(int i); - - decimal GetDecimal(int i); - - double GetDouble(int i); - - Type GetFieldType(int i); - - float GetFloat(int i); - - Guid GetGuid(int i); - - short GetInt16(int i); - - int GetInt32(int i); - - long GetInt64(int i); - - string GetName(int i); - - int GetOrdinal(string name); - - string GetString(int i); - - object GetValue(int i); - - int GetValues(object[] values); - - bool IsDBNull(int i); - - int FieldCount{get;} - - object this[string name]{get;} - - object this[int i]{get;} - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/IDbCommand.cs b/mcs/class/System.Data/System.Data/IDbCommand.cs deleted file mode 100644 index 6242c3fdb6b02..0000000000000 --- a/mcs/class/System.Data/System.Data/IDbCommand.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// System.Data.IDBCommand.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Represents a SQL statement that is executed while connected to a data source, and is implemented by .NET data providers that access relational databases. - /// - public interface IDbCommand : IDisposable - { - void Cancel(); - - IDbDataParameter CreateParameter(); - - int ExecuteNonQuery(); - - IDataReader ExecuteReader(); - - IDataReader ExecuteReader(CommandBehavior behavior); - - object ExecuteScalar(); - - void Prepare(); - - string CommandText{get; set;} - - int CommandTimeout{get; set;} - - CommandType CommandType{get; set;} - - IDbConnection Connection{get; set;} - - IDataParameterCollection Parameters{get;} - - IDbTransaction Transaction{get; set;} - - UpdateRowSource UpdatedRowSource{get; set;} - } -} diff --git a/mcs/class/System.Data/System.Data/IDbConnection.cs b/mcs/class/System.Data/System.Data/IDbConnection.cs deleted file mode 100644 index 17f44da8da5d1..0000000000000 --- a/mcs/class/System.Data/System.Data/IDbConnection.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Data.IDBConnection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Represents an open connection to a data source, and is implemented by .NET data providers that access relational databases. - /// - public interface IDbConnection : IDisposable - { - IDbTransaction BeginTransaction(); - - IDbTransaction BeginTransaction(IsolationLevel il); - - void ChangeDatabase(string databaseName); - - void Close(); - - IDbCommand CreateCommand(); - - void Open(); - - - string ConnectionString{get; set;} - - int ConnectionTimeout{get;} - - string Database{get;} - - ConnectionState State{get;} - - } -} diff --git a/mcs/class/System.Data/System.Data/IDbDataAdapter.cs b/mcs/class/System.Data/System.Data/IDbDataAdapter.cs deleted file mode 100644 index 78c1173da0945..0000000000000 --- a/mcs/class/System.Data/System.Data/IDbDataAdapter.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.IDbDataAdapter.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Represents a set of command-related properties that are used to fill the DataSet and update a data source, and is implemented by .NET data providers that access relational databases. - /// - public interface IDbDataAdapter : IDataAdapter - { - IDbCommand DeleteCommand{get; set;} - - IDbCommand InsertCommand{get; set;} - - IDbCommand SelectCommand{get; set;} - - IDbCommand UpdateCommand{get; set;} - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/IDbDataParameter.cs b/mcs/class/System.Data/System.Data/IDbDataParameter.cs deleted file mode 100644 index 5eeba69117948..0000000000000 --- a/mcs/class/System.Data/System.Data/IDbDataParameter.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.IDbDataParameter.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Used by the Visual Basic .NET Data Designers to represent a parameter to a Command object, and optionally, its mapping to DataSet columns. - /// - public interface IDbDataParameter : IDataParameter - { - byte Precision{get; set;} - - byte Scale{get; set;} - - int Size{get; set;} - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/IDbTransaction.cs b/mcs/class/System.Data/System.Data/IDbTransaction.cs deleted file mode 100644 index 792a78052b076..0000000000000 --- a/mcs/class/System.Data/System.Data/IDbTransaction.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.Data.IDbTransaction.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Represents a transaction to be performed at a data source, and is implemented by .NET data providers that access relational databases. - /// - public interface IDbTransaction : IDisposable - { - void Commit(); - - void Rollback(); - - IDbConnection Connection{get;} - - IsolationLevel IsolationLevel{get;} - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/ITableMapping.cs b/mcs/class/System.Data/System.Data/ITableMapping.cs deleted file mode 100644 index 82f5329b083ea..0000000000000 --- a/mcs/class/System.Data/System.Data/ITableMapping.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -// System.Data.ITableMapping.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Associates a source table with a table in a DataSet, and is implemented by the DataTableMapping class, which is used in common by .NET data providers. - /// - public interface ITableMapping - { - IColumnMappingCollection ColumnMappings{get;} - - string DataSetTable{get; set;} - - string SourceTable{get; set;} - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/ITableMappingCollection.cs b/mcs/class/System.Data/System.Data/ITableMappingCollection.cs deleted file mode 100644 index 5ca052f94ab01..0000000000000 --- a/mcs/class/System.Data/System.Data/ITableMappingCollection.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// System.Data.ITableMappingCollection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System.Collections; - -namespace System.Data -{ - /// - /// Contains a collection of TableMapping objects, and is implemented by the DataTableMappingCollection, which is used in common by .NET data providers. - /// - public interface ITableMappingCollection : IList, ICollection, IEnumerable - { - ITableMapping Add(string sourceTableName, string dataSetTableName); - - bool Contains(string sourceTableName); - - ITableMapping GetByDataSetTable(string dataSetTableName); - - int IndexOf(string sourceTableName); - - void RemoveAt(string sourceTableName); - - object this[string index]{get; set;} - } -} diff --git a/mcs/class/System.Data/System.Data/InRowChangingEventException.cs b/mcs/class/System.Data/System.Data/InRowChangingEventException.cs deleted file mode 100644 index 8c7be400702b2..0000000000000 --- a/mcs/class/System.Data/System.Data/InRowChangingEventException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.InRowChangingEventException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class InRowChangingEventException : DataException - { - public InRowChangingEventException () - : base (Locale.GetText ("Cannot EndEdit within a RowChanging event")) - { - } - - public InRowChangingEventException (string message) - : base (message) - { - } - - protected InRowChangingEventException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/InternalDataCollectionBase.cs b/mcs/class/System.Data/System.Data/InternalDataCollectionBase.cs deleted file mode 100644 index 9434f671759dc..0000000000000 --- a/mcs/class/System.Data/System.Data/InternalDataCollectionBase.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// System.Data.InternalDataCollectionBase.cs -// -// Base class for: -// DataRowCollection -// DataColumnCollection -// DataTableCollection -// DataRelationCollection -// DataConstraintCollection -// -// Author: -// Daniel Morgan -// Tim Coleman -// -// (C) Copyright 2002 Daniel Morgan -// (C) Copyright 2002 Tim Coleman -// - -using System; -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// Base class for System.Data collection classes - /// that are used within a DataTable object - /// to represent a collection of - /// relations, tables, rows, columns, and constraints - /// - - public class InternalDataCollectionBase : ICollection, IEnumerable - { - #region Fields - - protected ArrayList list = null; - protected bool readOnly = false; - protected bool synchronized = false; - - #endregion - - #region Constructors - - [MonoTODO] - public InternalDataCollectionBase() - { - list = new ArrayList(); - } - - #endregion - - #region Properties - - /// - /// Gets the total number of elements in a collection. - /// - public virtual int Count { - get { return list.Count; } - } - - /// - /// Gets a value indicating whether the InternalDataCollectionBase is read-only. - /// - public bool IsReadOnly { - get { return readOnly; } - } - - /// - /// Gets a value indicating whether the InternalDataCollectionBase is synchronized. - /// - public bool IsSynchronized { - get { return synchronized; } - } - - /// - /// Gets the items of the collection as a list. - /// - protected virtual ArrayList List { - get { return list; } - } - - /// - /// Gets an object that can be used to synchronize the collection. - /// - public object SyncRoot { - [MonoTODO] - get { - // FIXME: how do we sync? - throw new NotImplementedException (); - } - } - - - #endregion - - #region Methods - - /// - /// Copies all the elements in the current InternalDataCollectionBase to a one- - /// dimensional Array, starting at the specified InternalDataCollectionBase index. - /// - public void CopyTo(Array ar, int index) - { - list.CopyTo (ar, index); - - } - - /// - /// Gets an IEnumerator for the collection. - /// - public IEnumerator GetEnumerator() - { - return list.GetEnumerator (); - } - - #endregion - } -} diff --git a/mcs/class/System.Data/System.Data/InvalidConstraintException.cs b/mcs/class/System.Data/System.Data/InvalidConstraintException.cs deleted file mode 100644 index 2327b7d2a9e27..0000000000000 --- a/mcs/class/System.Data/System.Data/InvalidConstraintException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.InvalidConstraintException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class InvalidConstraintException : DataException - { - public InvalidConstraintException () - : base (Locale.GetText ("Cannot access or create this relation")) - { - } - - public InvalidConstraintException (string message) - : base (message) - { - } - - protected InvalidConstraintException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/InvalidExpressionException.cs b/mcs/class/System.Data/System.Data/InvalidExpressionException.cs deleted file mode 100644 index ac383cba5fe9f..0000000000000 --- a/mcs/class/System.Data/System.Data/InvalidExpressionException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.InvalidExpressionException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class InvalidExpressionException : DataException - { - public InvalidExpressionException () - : base (Locale.GetText ("This Expression is invalid")) - { - } - - public InvalidExpressionException (string message) - : base (message) - { - } - - protected InvalidExpressionException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/IsolationLevel.cs b/mcs/class/System.Data/System.Data/IsolationLevel.cs deleted file mode 100644 index 3a25ef9cc0ea8..0000000000000 --- a/mcs/class/System.Data/System.Data/IsolationLevel.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.Data.IsolationLevel.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Specifies the transaction locking behavior for the connection. - /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. - /// - [Flags] - [Serializable] - public enum IsolationLevel - { - Unspecified = -1, - Chaos = 16, - ReadUncommitted = 256, - ReadCommitted = 4096, - RepeatableRead = 65536, - Serializable = 1048576 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/Locale.cs b/mcs/class/System.Data/System.Data/Locale.cs deleted file mode 100755 index 539184dbde47a..0000000000000 --- a/mcs/class/System.Data/System.Data/Locale.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// System.Globalization.Locale.cs -// -// Author: -// Miguel de Icaza (miguel@ximian.com) -// -// (C) 2001 Ximian, Inc (http://www.ximian.com) -// - -namespace System.Globalization { - - internal class Locale { - - /// - /// Returns the translated message for the current locale - /// - public static string GetText (string msg) - { - return msg; - } - } -} diff --git a/mcs/class/System.Data/System.Data/MappingType.cs b/mcs/class/System.Data/System.Data/MappingType.cs deleted file mode 100644 index dbdeb9fc23e2c..0000000000000 --- a/mcs/class/System.Data/System.Data/MappingType.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// System.Data.MappingType.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies how a DataColumn is mapped. - /// - [Serializable] - public enum MappingType - { - Element = 1, - Attribute = 2, - SimpleContent = 3, - Hidden = 4 - - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/MergeFailedEventArgs.cs b/mcs/class/System.Data/System.Data/MergeFailedEventArgs.cs deleted file mode 100644 index 9e58aa7692855..0000000000000 --- a/mcs/class/System.Data/System.Data/MergeFailedEventArgs.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// System.Data.MergeFailedEventArgs.cs -// -// Author: -// Miguel de Icaza -// -// (C) Ximian, Inc 2002 -// - -using System; - -namespace System.Data -{ - public class MergeFailedEventArgs : EventArgs { - DataTable data_table; - string conflict; - Exception errors; - bool f_continue; - - public MergeFailedEventArgs (DataTable dataTable, string conflict) - { - this.data_table = dataTable; - this.conflict = conflict; - } - - public DataTable DataTable { - get { - return data_table; - } - } - - public string Conflict { - get { - return conflict; - } - } - } -} diff --git a/mcs/class/System.Data/System.Data/MergeFailedEventHandler.cs b/mcs/class/System.Data/System.Data/MergeFailedEventHandler.cs deleted file mode 100644 index 3ec7962496a71..0000000000000 --- a/mcs/class/System.Data/System.Data/MergeFailedEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.MergeFailedEventHandler.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Represents the method that will handle the MergeFailed event. - /// - [Serializable] - public delegate void MergeFailedEventHandler(object sender, MergeFailedEventArgs e); - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/MissingMappingAction.cs b/mcs/class/System.Data/System.Data/MissingMappingAction.cs deleted file mode 100644 index 74ce838d9c92b..0000000000000 --- a/mcs/class/System.Data/System.Data/MissingMappingAction.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.Data.MissingMappingAction.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Determines the action that occurs when a mapping is missing from a source table or a source column. - /// - [Serializable] - public enum MissingMappingAction - { - Passthrough = 1, - Ignore = 2, - Error = 3 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/MissingPrimaryKeyException.cs b/mcs/class/System.Data/System.Data/MissingPrimaryKeyException.cs deleted file mode 100644 index dcb0b3aca5974..0000000000000 --- a/mcs/class/System.Data/System.Data/MissingPrimaryKeyException.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// System.Data.MissingPrimaryKeyException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - - [Serializable] - public class MissingPrimaryKeyException : DataException - { - public MissingPrimaryKeyException () - : base (Locale.GetText ("This table has no primary key")) - { - } - - public MissingPrimaryKeyException (string message) - : base (message) - { - } - - protected MissingPrimaryKeyException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/MissingSchemaAction.cs b/mcs/class/System.Data/System.Data/MissingSchemaAction.cs deleted file mode 100644 index 5205145796162..0000000000000 --- a/mcs/class/System.Data/System.Data/MissingSchemaAction.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.MissingSchemaAction.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies the action to take when adding data to the DataSet and the required DataTable or DataColumn is missing. - /// - [Serializable] - public enum MissingSchemaAction - { - Add = 1, - Ignore = 2, - Error = 3, - AddWithKey = 4 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/NoNullAllowedException.cs b/mcs/class/System.Data/System.Data/NoNullAllowedException.cs deleted file mode 100644 index 3a5593285d3b5..0000000000000 --- a/mcs/class/System.Data/System.Data/NoNullAllowedException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.NoNullAllowedException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class NoNullAllowedException : DataException - { - public NoNullAllowedException () - : base (Locale.GetText ("Cannot insert a NULL value")) - { - } - - public NoNullAllowedException (string message) - : base (message) - { - } - - protected NoNullAllowedException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/ParameterDirection.cs b/mcs/class/System.Data/System.Data/ParameterDirection.cs deleted file mode 100644 index 7de26dfc8688a..0000000000000 --- a/mcs/class/System.Data/System.Data/ParameterDirection.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.ParameterDirection.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies the type of a parameter within a query relative to the DataSet. - /// - [Serializable] - public enum ParameterDirection - { - Input = 1, - Output = 2, - InputOutput = 3, - ReturnValue = 6 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/PropertyAttributes.cs b/mcs/class/System.Data/System.Data/PropertyAttributes.cs deleted file mode 100644 index 6e43646100e51..0000000000000 --- a/mcs/class/System.Data/System.Data/PropertyAttributes.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -// System.Data.PropertyAttributes.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies the attributes of a property. - /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values - /// - [Flags] - [Serializable] - public enum PropertyAttributes - { - NotSupported = 0, - Required = 1, - Optional = 2, - Read = 512, - Write = 1024 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/PropertyCollection.cs b/mcs/class/System.Data/System.Data/PropertyCollection.cs deleted file mode 100644 index ef720923387e6..0000000000000 --- a/mcs/class/System.Data/System.Data/PropertyCollection.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// System.Data.PropertyCollection.cs -// -// Author: -// Daniel Morgan -// -// (c) Ximian, Inc. 2002 -// - -using System; -using System.Collections; -using System.ComponentModel; - -namespace System.Data -{ - /// - /// a collection of properties that can be added to - /// DataColumn, DataSet, or DataTable. - /// The ExtendedProperties property of a - /// DataColumn, DataSet, or DataTable class can - /// retrieve a PropertyCollection. - /// - public class PropertyCollection : Hashtable { - [MonoTODO] - public PropertyCollection() { - } - - // the only public methods and properties - // are all inherited from Hashtable - } -} diff --git a/mcs/class/System.Data/System.Data/ReadOnlyException.cs b/mcs/class/System.Data/System.Data/ReadOnlyException.cs deleted file mode 100644 index a45f5d22d17cd..0000000000000 --- a/mcs/class/System.Data/System.Data/ReadOnlyException.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// System.Data.ReadOnlyException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - - [Serializable] - public class ReadOnlyException : DataException - { - public ReadOnlyException () - : base (Locale.GetText ("Cannot change a value in a read-only column")) - { - } - - public ReadOnlyException (string message) - : base (message) - { - } - - protected ReadOnlyException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/RowNotInTableException.cs b/mcs/class/System.Data/System.Data/RowNotInTableException.cs deleted file mode 100644 index 9209312d0ca72..0000000000000 --- a/mcs/class/System.Data/System.Data/RowNotInTableException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.RowNotInTableException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class RowNotInTableException : DataException - { - public RowNotInTableException () - : base (Locale.GetText ("This DataRow is not in this DataTable")) - { - } - - public RowNotInTableException (string message) - : base (message) - { - } - - protected RowNotInTableException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/Rule.cs b/mcs/class/System.Data/System.Data/Rule.cs deleted file mode 100644 index e8fc4166f3405..0000000000000 --- a/mcs/class/System.Data/System.Data/Rule.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.Rule.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Indicates the action that occurs when a ForeignKeyConstraint is enforced. - /// - [Serializable] - public enum Rule - { - None = 0, - Cascade = 1, - SetNull = 2, - SetDefault = 3 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/SchemaType.cs b/mcs/class/System.Data/System.Data/SchemaType.cs deleted file mode 100644 index 8c0d1dbf9046b..0000000000000 --- a/mcs/class/System.Data/System.Data/SchemaType.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -// System.Data.SchemaType.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies how to handle existing schema mappings when performing a FillSchema operation. - /// - [Serializable] - public enum SchemaType - { - Source = 1, - Mapped = 2 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/SqlDbType.cs b/mcs/class/System.Data/System.Data/SqlDbType.cs deleted file mode 100644 index 9c4afccf5e022..0000000000000 --- a/mcs/class/System.Data/System.Data/SqlDbType.cs +++ /dev/null @@ -1,45 +0,0 @@ -// -// System.Data.SqlDbType.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies SQL Server data types. - /// - [Serializable] - public enum SqlDbType - { - BigInt = 0, - Binary = 1, - Bit = 2, - Char = 3, - DateTime = 4, - Decimal = 5, - Float = 6, - Image = 7, - Int = 8, - Money = 9, - NChar = 10, - NText = 11, - NVarChar = 12, - Real = 13, - UniqueIdentifier = 14, - SmallDateTime = 15, - SmallInt = 16, - SmallMoney = 17, - Text = 18, - Timestamp = 19, - TinyInt = 20, - VarBinary = 21, - VarChar = 22, - Variant = 23 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/StateChangeEventArgs.cs b/mcs/class/System.Data/System.Data/StateChangeEventArgs.cs deleted file mode 100644 index c21e4abbc76d3..0000000000000 --- a/mcs/class/System.Data/System.Data/StateChangeEventArgs.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -// System.Data.SqlRowUpdatingEventArgs.cs -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; - -namespace System.Data { - public sealed class StateChangeEventArgs : EventArgs { - - [MonoTODO] - public StateChangeEventArgs(ConnectionState originalState, - ConnectionState currentState) { - // FIXME: do me - } - - [MonoTODO] - public ConnectionState CurrentState { - get { - // FIXME: do me - throw new NotImplementedException (); - } - } - - [MonoTODO] - public ConnectionState OriginalState { - get { - // FIXME: do me - throw new NotImplementedException (); - } - } - - [MonoTODO] - ~StateChangeEventArgs() { - // FIXME: do me - } - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/StateChangeEventHandler.cs b/mcs/class/System.Data/System.Data/StateChangeEventHandler.cs deleted file mode 100644 index 29ad7703030d7..0000000000000 --- a/mcs/class/System.Data/System.Data/StateChangeEventHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Data.StateChangeEventHandler.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -namespace System.Data -{ - /// - /// Represents the method that will handle the StateChange event. - /// - [Serializable] - public delegate void StateChangeEventHandler(object sender, StateChangeEventArgs e); - -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/StatementType.cs b/mcs/class/System.Data/System.Data/StatementType.cs deleted file mode 100644 index 11cc51c1bba70..0000000000000 --- a/mcs/class/System.Data/System.Data/StatementType.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.StatementType.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies the type of SQL query to be used by the OleDbRowUpdatedEventArgs, OleDbRowUpdatingEventArgs, SqlRowUpdatedEventArgs, or SqlRowUpdatingEventArgs class. - /// - [Serializable] - public enum StatementType - { - Select = 0, - Insert = 1, - Update = 2, - Delete = 3 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/StrongTypingException.cs b/mcs/class/System.Data/System.Data/StrongTypingException.cs deleted file mode 100644 index 65749b68ac872..0000000000000 --- a/mcs/class/System.Data/System.Data/StrongTypingException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.StrongTypingException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class StrongTypingException : DataException - { - public StrongTypingException () - : base (Locale.GetText ("Trying to access a DBNull value in a strongly-typed DataSet")) - { - } - - public StrongTypingException (string message) - : base (message) - { - } - - protected StrongTypingException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/SyntaxErrorException.cs b/mcs/class/System.Data/System.Data/SyntaxErrorException.cs deleted file mode 100644 index 6f97458d65497..0000000000000 --- a/mcs/class/System.Data/System.Data/SyntaxErrorException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.SyntaxErrorException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - [Serializable] - public class SyntaxErrorException : InvalidExpressionException - { - public SyntaxErrorException () - : base (Locale.GetText ("There is a syntax error in this Expression")) - { - } - - public SyntaxErrorException (string message) - : base (message) - { - } - - protected SyntaxErrorException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - - } -} diff --git a/mcs/class/System.Data/System.Data/TODOAttribute.cs b/mcs/class/System.Data/System.Data/TODOAttribute.cs deleted file mode 100644 index 9aae1ca30bbc8..0000000000000 --- a/mcs/class/System.Data/System.Data/TODOAttribute.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// -using System; - -namespace System.Data { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All)] - internal class MonoTODOAttribute : Attribute { - - string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - } -} diff --git a/mcs/class/System.Data/System.Data/TypeDataSetGeneratorException.cs b/mcs/class/System.Data/System.Data/TypeDataSetGeneratorException.cs deleted file mode 100644 index b46e17c385aec..0000000000000 --- a/mcs/class/System.Data/System.Data/TypeDataSetGeneratorException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.TypedDataSetGeneratorException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class TypedDataSetGeneratorException : DataException - { - public TypedDataSetGeneratorException () - : base (Locale.GetText ("There is a name conflict")) - { - } - - public TypedDataSetGeneratorException (string message) - : base (message) - { - } - - protected TypedDataSetGeneratorException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/UniqueConstraint.cs b/mcs/class/System.Data/System.Data/UniqueConstraint.cs deleted file mode 100644 index 679ccb4a1773a..0000000000000 --- a/mcs/class/System.Data/System.Data/UniqueConstraint.cs +++ /dev/null @@ -1,298 +0,0 @@ -// -// System.Data.UniqueConstraint.cs -// -// Author: -// Franklin Wise -// Daniel Morgan -// -// (C) 2002 Franklin Wise -// (C) 2002 Daniel Morgan - -using System; -using System.Collections; -using System.ComponentModel; -using System.Runtime.InteropServices; - -namespace System.Data -{ - public class UniqueConstraint : Constraint - { - private bool _isPrimaryKey = false; - private DataTable _dataTable; //set by ctor except when unique case - - private DataColumn [] _dataColumns; - - //TODO:provide helpers for this case - private string [] _dataColumnNames; //unique case - - - #region Constructors - - public UniqueConstraint(DataColumn column) { - - _uniqueConstraint ("", column, false); - } - - public UniqueConstraint(DataColumn[] columns) { - - _uniqueConstraint ("", columns, false); - } - - public UniqueConstraint(DataColumn column, - bool isPrimaryKey) { - - _uniqueConstraint ("", column, isPrimaryKey); - } - - public UniqueConstraint(DataColumn[] columns, bool isPrimaryKey) { - - _uniqueConstraint ("", columns, isPrimaryKey); - } - - public UniqueConstraint(string name, DataColumn column) { - - _uniqueConstraint (name, column, false); - } - - public UniqueConstraint(string name, DataColumn[] columns) { - - _uniqueConstraint (name, columns, false); - } - - public UniqueConstraint(string name, DataColumn column, - bool isPrimaryKey) { - - _uniqueConstraint (name, column, isPrimaryKey); - } - - public UniqueConstraint(string name, - DataColumn[] columns, bool isPrimaryKey) { - - _uniqueConstraint (name, columns, isPrimaryKey); - } - - //Special case. Can only be added to the Collection with AddRange - [MonoTODO] - public UniqueConstraint(string name, - string[] columnNames, bool isPrimaryKey) { - - throw new NotImplementedException(); //need to finish related logic - /* - base.ConstraintName = name; - - //set unique - //must set unique when added to the collection - - //keep list of names to resolve later - _dataColumnNames = columnNames; - - _isPrimaryKey = isPrimaryKey; - */ - } - - //helper ctor - private void _uniqueConstraint(string name, - DataColumn column, bool isPrimaryKey) { - - //validate - _validateColumn (column); - - //Set Constraint Name - base.ConstraintName = name; - - //set unique - column.Unique = true; - - //keep reference - _dataColumns = new DataColumn [] {column}; - - //PK? - _isPrimaryKey = isPrimaryKey; - - //Get table reference - _dataTable = column.Table; - } - - //helpter ctor - public void _uniqueConstraint(string name, - DataColumn[] columns, bool isPrimaryKey) { - - //validate - _validateColumns (columns, out _dataTable); - - //Set Constraint Name - base.ConstraintName = name; - - //set unique - _setColumnsUnique (columns); - - //keep reference - _dataColumns = columns; - - //PK? - _isPrimaryKey = isPrimaryKey; - - } - - #endregion // Constructors - - #region Helpers - private void _setColumnsUnique(DataColumn [] columns) { - if (null == columns) return; - foreach (DataColumn col in columns) { - col.Unique = true; - } - } - - private void _validateColumns(DataColumn [] columns) - { - DataTable table; - _validateColumns(columns, out table); - } - - //Validates a collection of columns with the ctor rules - private void _validateColumns(DataColumn [] columns, out DataTable table) { - table = null; - - //not null - if (null == columns) throw new ArgumentNullException(); - - //check that there is at least one column - //LAMESPEC: not in spec - if (columns.Length < 1) - throw new InvalidConstraintException("Must be at least one column."); - - DataTable compareTable = columns[0].Table; - //foreach - foreach (DataColumn col in columns){ - - //check individual column rules - _validateColumn (col); - - - //check that columns are all from the same table?? - //LAMESPEC: not in spec - if (compareTable != col.Table) - throw new InvalidConstraintException("Columns must be from the same table."); - - } - - table = compareTable; - } - - //validates a column with the ctor rules - private void _validateColumn(DataColumn column) { - - //not null - if (null == column) throw new ArgumentNullException(); - - //column must belong to a table - //LAMESPEC: not in spec - if (null == column.Table) - throw new ArgumentException("Column " + column.ColumnName + " must belong to a table."); - - } - - internal static UniqueConstraint GetUniqueConstraintForColumnSet(ConstraintCollection collection, - DataColumn[] columns) - { - if (null == columns ) return null; - - UniqueConstraint uniqueConstraint; - IEnumerator enumer = collection.GetEnumerator(); - while (enumer.MoveNext()) - { - uniqueConstraint = enumer.Current as UniqueConstraint; - if (uniqueConstraint != null) - { - if ( DataColumn.AreColumnSetsTheSame(uniqueConstraint.Columns, columns) ) - { - return uniqueConstraint; - } - } - } - return null; - } - - - - #endregion //Helpers - - #region Properties - - public virtual DataColumn[] Columns { - get { - return _dataColumns; - } - } - - public bool IsPrimaryKey { - get { - return _isPrimaryKey; - } - } - - public override DataTable Table { - get { - return _dataTable; - } - } - - #endregion // Properties - - #region Methods - - public override bool Equals(object key2) { - - UniqueConstraint cst = key2 as UniqueConstraint; - if (null == cst) return false; - - //according to spec if the cols are equal - //then two UniqueConstraints are equal - return DataColumn.AreColumnSetsTheSame(cst.Columns, this.Columns); - - } - - [MonoTODO] - public override int GetHashCode() { - throw new NotImplementedException (); - } - - - internal override void AddToConstraintCollectionSetup( - ConstraintCollection collection) - { - //run Ctor rules again - _validateColumns(_dataColumns); - - //make sure a unique constraint doesn't already exists for these columns - UniqueConstraint uc = UniqueConstraint.GetUniqueConstraintForColumnSet(collection, this.Columns); - if (null != uc) throw new ArgumentException("Unique constraint already exists for these" + - " columns. Existing ConstraintName is " + uc.ConstraintName); - - AssertConstraint(); - } - - - internal override void RemoveFromConstraintCollectionCleanup( - ConstraintCollection collection) - { - } - - [MonoTODO] - internal override void AssertConstraint() - { - - if (_dataTable == null) return; //??? - if (_dataColumns == null) return; //??? - - - //Unique? - DataTable tbl = _dataTable; - - //TODO: validate no dups - - } - #endregion // Methods - } -} diff --git a/mcs/class/System.Data/System.Data/UpdateRowSource.cs b/mcs/class/System.Data/System.Data/UpdateRowSource.cs deleted file mode 100644 index 6ccf40d530622..0000000000000 --- a/mcs/class/System.Data/System.Data/UpdateRowSource.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.UpdateRowSource.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies how query command results are applied to the row being updated. - /// - [Serializable] - public enum UpdateRowSource - { - None = 0, - OutputParameters = 1, - FirstReturnedRecord = 2, - Both = 3 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/UpdateStatus.cs b/mcs/class/System.Data/System.Data/UpdateStatus.cs deleted file mode 100644 index f686d6cd1aad3..0000000000000 --- a/mcs/class/System.Data/System.Data/UpdateStatus.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.Data.UpdateStatus.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies the action to take with regard to the current and remaining rows during an Update. - /// - [Serializable] - public enum UpdateStatus - { - Continue = 0, - ErrorsOccurred = 1, - SkipCurrentRow = 2, - SkipAllRemainingRows = 3 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/VersionNotFoundException.cs b/mcs/class/System.Data/System.Data/VersionNotFoundException.cs deleted file mode 100644 index f26a642eb533d..0000000000000 --- a/mcs/class/System.Data/System.Data/VersionNotFoundException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// System.Data.VersionNotFoundException.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// (C) Ximian, Inc. - -using System; -using System.Globalization; -using System.Runtime.Serialization; - -namespace System.Data { - - [Serializable] - public class VersionNotFoundException : DataException - { - public VersionNotFoundException () - : base (Locale.GetText ("This DataRow has been deleted")) - { - } - - public VersionNotFoundException (string message) - : base (message) - { - } - - protected VersionNotFoundException (SerializationInfo info, StreamingContext context) - : base (info, context) - { - } - } -} diff --git a/mcs/class/System.Data/System.Data/XmlReadMode.cs b/mcs/class/System.Data/System.Data/XmlReadMode.cs deleted file mode 100644 index d8db21dbd19ac..0000000000000 --- a/mcs/class/System.Data/System.Data/XmlReadMode.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.Data.XmlReadMode.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Specifies how to read XML data and a relational schema into a DataSet. - /// - [Serializable] - public enum XmlReadMode - { - Auto = 0, - ReadSchema = 1, - IgnoreSchema = 2, - InferSchema = 3, - DiffGram = 4, - Fragment = 5 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Data/XmlWriteMode.cs b/mcs/class/System.Data/System.Data/XmlWriteMode.cs deleted file mode 100644 index f70b9c5850bc7..0000000000000 --- a/mcs/class/System.Data/System.Data/XmlWriteMode.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.Data.XmlWriteMode.cs -// -// Author: -// Christopher Podurgiel (cpodurgiel@msn.com) -// -// (C) Chris Podurgiel -// - -using System; - -namespace System.Data -{ - /// - /// Use the members of this enumeration when setting the WriteMode parameter of the WriteXml method. - /// - [Serializable] - public enum XmlWriteMode - { - WriteSchema = 0, - IgnoreSchema = 1, - DiffGram = 2 - } -} \ No newline at end of file diff --git a/mcs/class/System.Data/System.Xml/XmlDataDocument.cs b/mcs/class/System.Data/System.Xml/XmlDataDocument.cs deleted file mode 100644 index 8b028c96e7fa5..0000000000000 --- a/mcs/class/System.Data/System.Xml/XmlDataDocument.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// mcs/class/System.Data/System.Xml/XmlDataDocument.cs -// -// Purpose: Provides a W3C XML DOM Document to interact with -// relational data in a DataSet -// -// class: XmlDataDocument -// assembly: System.Data.dll -// namespace: System.Xml -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// -// XmlDataDocument is included within the Mono Class Library. -// - -using System; -using System.Data; -using System.IO; -using System.Text; -using System.Xml.XPath; - -namespace System.Xml { - - public class XmlDataDocument : XmlDocument { - - #region Fields - - private DataSet dataSet; - - #endregion // Fields - - #region Constructors - - public XmlDataDocument() { - dataSet = new DataSet(); - } - - public XmlDataDocument(DataSet dataset) { - this.dataSet = dataset; - } - - #endregion // Constructors - - #region Public Properties - - public override string BaseURI { - [MonoTODO] - get { - // TODO: why are we overriding? - return base.BaseURI; - } - } - - public DataSet DataSet { - [MonoTODO] - get { - return dataSet; - } - } - - // override inheritted method from XmlDocument - public override string InnerXml { - [MonoTODO] - get { - throw new NotImplementedException(); - } - - [MonoTODO] - set { - throw new NotImplementedException(); - } - } - - public override bool IsReadOnly { - [MonoTODO] - get { - throw new NotImplementedException(); - } - - } - - // Item indexer - public override XmlElement this[string name] { - [MonoTODO] - get { - throw new NotImplementedException(); - } - } - - // Item indexer - public override XmlElement this[string localname, string ns] { - [MonoTODO] - get { - throw new NotImplementedException(); - } - } - - public override string LocalName { - [MonoTODO] - get { - throw new NotImplementedException(); - } - } - - public override string Name { - [MonoTODO] - get { - throw new NotImplementedException(); - } - } - - public override XmlDocument OwnerDocument { - [MonoTODO] - get { - return null; - } - } - - #endregion // Public Properties - - #region Public Methods - - [MonoTODO] - public override XmlNode CloneNode(bool deep) - { - throw new NotImplementedException(); - } - - #region overloaded CreateElement methods - - [MonoTODO] - public new XmlElement CreateElement(string prefix, - string localName, string namespaceURI) - { - throw new NotImplementedException(); - } - - [MonoTODO] - public new XmlElement CreateElement(string qualifiedName, - string namespaceURI) - { - throw new NotImplementedException(); - } - - [MonoTODO] - public new XmlElement CreateElement(string name) - { - throw new NotImplementedException(); - } - - #endregion // overloaded CreateElement Methods - - // will not be supported - public override XmlEntityReference CreateEntityReference(string name) - { - throw new NotSupportedException(); - } - - // will not be supported - public override XmlElement GetElementById(string elemId) - { - throw new NotSupportedException(); - } - - // get the XmlElement associated with the DataRow - public XmlElement GetElementFromRow(DataRow r) - { - throw new NotImplementedException(); - } - - // get the DataRow associated with the XmlElement - [MonoTODO] - public DataRow GetRowFromElement(XmlElement e) - { - throw new NotImplementedException(); - } - - #region overload Load methods - - [MonoTODO] - public override void Load(Stream inStream) { - throw new NotImplementedException(); - } - - [MonoTODO] - public override void Load(string filename) { - throw new NotImplementedException(); - } - - [MonoTODO] - public override void Load(TextReader txtReader) { - throw new NotImplementedException(); - } - - [MonoTODO] - public override void Load(XmlReader reader) { - throw new NotImplementedException(); - } - - #endregion // overloaded Load methods - - [MonoTODO] - public override void WriteContentTo(XmlWriter xw) { - throw new NotImplementedException(); - } - - [MonoTODO] - public override void WriteTo(XmlWriter w) { - throw new NotImplementedException(); - } - - #endregion // Public Methods - - #region Protected Methods - - [MonoTODO] - protected override XPathNavigator CreateNavigator(XmlNode node) { - throw new NotImplementedException(); - } - - [MonoTODO] - public new XPathNavigator CreateNavigator() { - throw new NotImplementedException(); - } - - #endregion // Protected Methods - - } -} diff --git a/mcs/class/System.Data/TODO b/mcs/class/System.Data/TODO deleted file mode 100644 index acd1a7f42342d..0000000000000 --- a/mcs/class/System.Data/TODO +++ /dev/null @@ -1,134 +0,0 @@ -System.Data TODO List -===================== - -Update this file as needed... - -* To get ExecuteReader() in a SqlCommand object to return - a SqlDataReader object which can Read() data and get a String or - Int32 from the database. Other types can be done later. - - A class (SqlDataReader) that implements IDataReader/IDataRecord - only has one row in memory at a time. - -In order to do this, we need to compile and edit these classes: - SqlDataReader DataTable DataRowCollection DataRow - DataColumnCollection DataColumn - DataConstraintCollection DataConstraint - DataRelationCollection DataRelation - DataTableCollection - and dependencies... - -System.Data.Common classes that need to be implemented: - - implement DataAdapter.cs - - implement DataColumnMapping.cs - - implement DataColumnMappingCollection.cs - - implement DataTableMapping.cs - - implement DataTableMappingCollection.cs - - implement DbDataAdapter.cs - - implement DbDataPermission.cs - - implement DbDataPermissionAttribute.cs - - implement RowUpdatedEventArgs.cs - - implement RowUpdatingEventArgs.cs - -The following classes implement InternalDataCollectionBase: - * DataRowCollection - * DataColumnCollection - * DataTableCollection - * DataRelationCollection - an abstract class used by DataTable and DataSet - * ConstraintCollection - -DataTableRelationCollection is an internal class that implements DataRelationCollection -and is used by DataTable for parent/child relations. Don't know if it will/will not -be used by DataSet. - -Other classes, structs, etc. that are missing: - DataRowView - DataSysDescriptionAttribute - DataViewManager - DataViewSetting - FillErrorEventArgs - MergeFailedEventArgs - TypedDataSetGenerator - -The additional System.Data.SqlTypes classes need to be implemented: - SqlByte - SqlDataTime - SqlDecimal - SqlDouble - SqlGuid - SqlInt16 - SqlInt64 - SqlMoney - SqlSingle - -* provide a standard scheme for storing - connection string data - -* allow Execute methods in SqlCommand to - call a stored procedure - -* Create a script for testing System.Data: - - calls script to create - a test database named monotestdb - - set up nunit for testing System.Data - - set up System.Data.Config or some other - file to hold connection strings and other - configuration settings for the testing System.Data - - any other stuff needed... - -* get SqlParameter/SqlParameterCollection - working so you can: - - for queries/commands that have parameters: - o input - o output - o return - o input/output - - call a stored procedure with parameters - -* be able to return a XmlReader from - using method ExecuteXmlReader of - a SqlCommand object - -* get SqlDataAdapter/DataSet working - -* Create Library for PInvoking into libgda - This will be used by System.Data.OleDb classes - -* Begin System.Data.OleDb classes: - - OleDbConnection - - OleDbCommand - - OleDbTransaction - -* Do more of the OleDb classes to - retrieve a OleDbDataReader object - from a query (SELECT FROM): - - OleDbDataReader - - others... - -* Do more OleDb classes for DataSet: - - OleDbDataAdapter - - others... - -* Security Audit of System.Data - -* Create a MySQL ADO.NET Provider - -* Create an Oracle ADO.NET Provider - -* Create an Interbase ADO.NET Provider - -* Create a Sybase ADO.NET Provider (TDS?) - -* Create an IBM UDB DB2 ADO.NET Provider - -* Create other ADO.NET providers... - -Integration -=========== - -* get System.Data to work with ASP.NET's - System.Web.UI.WebControls.DataGrid - -* get System.Data to work with GUI - System.Windows.Forms.DataGrid - diff --git a/mcs/class/System.Data/Test/.cvsignore b/mcs/class/System.Data/Test/.cvsignore deleted file mode 100644 index 335c71fd7faf3..0000000000000 --- a/mcs/class/System.Data/Test/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -*.dll -*.pdb diff --git a/mcs/class/System.Data/Test/AllTests.cs b/mcs/class/System.Data/Test/AllTests.cs deleted file mode 100644 index 3d64c22297d1b..0000000000000 --- a/mcs/class/System.Data/Test/AllTests.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Author: Tim Coleman (tim@timcoleman.com) -// Copyright 2002 Tim Coleman - -using System; -using System.Data; -using System.Data.SqlTypes; -using NUnit.Framework; - -namespace MonoTests { - public class AllTests : TestCase { - public AllTests (string name) : base (name) {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (System.Data.SqlTypes.AllTests.Suite); - return suite; - } - } - } -} diff --git a/mcs/class/System.Data/Test/ChangeLog b/mcs/class/System.Data/Test/ChangeLog deleted file mode 100644 index fc84bbb21f89d..0000000000000 --- a/mcs/class/System.Data/Test/ChangeLog +++ /dev/null @@ -1,147 +0,0 @@ -2002-08-20 Franklin Wise - - * NewFile: System.Data\DataTableTest.cs - - * AllTests.cs: Added DataTableTest to tests. - -2002-08-19 Franklin Wise - - * System.Data\ForeignKeyConstraintTest.cs: Added more tests. - -2002-08-15 Franklin Wise - - * AllTests.cs: Added ForeignKeyConstraintTest to active running tests. - - * NewFile: System.Data\ForeignKeyConstraintTest.cs - - * System.Data\ConstraintTest: Added new test. - - * System.Data\UniqueConstraintTest: Added more tests. - -2002-08-14 Daniel Morgan - - * SqlSharpCli.cs: modified - - implemented the following commands: - \f FILENAME to read a batch of Sql# commands/queries from file."); - \o FILENAME to write out the result of Sql# commands executed to file."); - \load FILENAME to load from file SQL commands into SQL buffer."); - \save FILENAME to save SQL commands from SQL buffer to file. - \print - show what's in the SQL buffer now. - - can save output of result to an html file or text - - entering command "\provider mysql" will dynamically load mysql provider - from its assembly Mono.Data.MySql.dll - -2002-08-13 Daniel Morgan - - * Test/SqlSharpCli.cs: modified - - removed dependency on Mono.Data.MySql assembly and classes - (if you still want to use Mono.Data.MySql, use \loadextprovider to load it). - - added use of provider System.Data.OleDb classes; however, you must - have a working libgda. - - added dynamic loading of .NET Data Provider's assembly and Connection class - which can be loaded via \loadextprovider - - renamed providers: postgresclient to postgresql, oracleclient to oracle - - add new command \exenonquery to execute non queries - - add new command \exescalar to execute and return one row/one column of data - - added beginnings of internal variables by adding new commands: \set, \unset, and - \variable - - add new command \r to reset (clear) the query buffer - - if quiting, need to close database connection if still open - -2002-08-12 Franklin Wise - * NewFile: Added test for System.Data.UniqueConstraintTest.cs - - * NewFile: Added test for System.Data.ConstraintTest.cs - - * NewFile: Added test for System.Data.ConstraintCollection.cs - - * Added blank test for DataColumnTest so that NUnit won't warn - of no tests - - * Updated System.Data.AllTests.cs to include the new tests - -2002-05-27 Tim Coleman - * TestSqlDataAdapter.cs: remove explicit opening of connection. - This should occur implicitly now. - -2002-05-23 Daniel Morgan - - * TestSqlParameters.cs: read and display the schema columns - correctly - -2002-05-16 Tim Coleman - * TestSqlDataAdapter.cs: Added the foreach loop to iterate through - all of the DataRows in the DataSet table "Table", as the - GetEnumerator method of InternalDataCollectionBase has now been - implemented. - - -2002/05/17 Nick Drochak - - * System.Data_test.build: Remove RunTests from the default build. We - can add this later, but it keeps the build from breaking for now. - - * TestSqlDataAdapter.cs: Fix build breaker. - -2002-05-11 Daniel Morgan - - * Test/PostgresTest.cs: added call to PostgreSQL stored procedure - version() which returns the version of the PostgreSQL DBMS you - are connected to. This works and I did not realize it. Thanks - goes to Gonzalo. - -2002-05-11 Daniel Morgan - - * AllTests.cs: needed a using for System.Data and System.Data.SqlClient, - changed SqlTypes.AllTests.Suite to System.Data.SqlTypes.AllTests.Suite - - * System.Data/DataColumnTest.cs: changed typeof to DataColumnTest - -2002-05-10 Rodrigo Moya - - * TestDataColumn.cs: removed. - - * System.Data_test.build: removed reference to TestDataColumn. - - * TheTests.cs: added RunDataColumnTest class. - (RunAllTests.AddAllTests): added test for RunDataColumnTest. - - * System.Data/AllTests.cs: test suite for System.Data. - - * System.Data/DataColumnTest.cs: NUnit test for DataColumn. - -2002-05-09 Daniel Morgan - - * System.Data_test.build: exclude file TestDataColumn.cs - test.build files have two places where a file needs to - be excluded - -2002-05-06 Daniel Morgan - - * System.Data.SqlTypes.SqlInt32Test.cs: missing - declaration for SqlInt32 z which was a test build blocker - - * PostgresTest.cs: got rid of warning about missing e - - * Test/PostgresTest.cs: exclude PostgresTest.cs - from test build - -2002-05-05 Tim Coleman - * TheTests.cs: - * System.Data.SqlTypes/SqlInt32Test.cs: - More test cases for System.Data.SqlTypes.SqlInt32 - -2002-05-03 Tim Coleman - * Added ChangeLog to test dir - * Added NUnit framework necessary for make test - * Added subdirectory for System.Data.SqlTypes - * New files: - ChangeLog - AllTests.cs - TheTests.cs - System.Data_test.build - System.Data.SqlTypes - System.Data.SqlTypes/AllTests.cs - System.Data.SqlTypes/SqlInt32Test.cs - - diff --git a/mcs/class/System.Data/Test/PostgresTest.cs b/mcs/class/System.Data/Test/PostgresTest.cs deleted file mode 100644 index 645673185e665..0000000000000 --- a/mcs/class/System.Data/Test/PostgresTest.cs +++ /dev/null @@ -1,510 +0,0 @@ -/* PostgresTest.cs - based on the postgres-test.c in libgda - * - * Copyright (C) 2002 Gonzalo Paniagua Javier - * Copyright (C) 2002 Daniel Morgan - * - * ORIGINAL AUTHOR: - * Gonzalo Paniagua Javier - * PORTING FROM C TO C# AUTHOR: - * Daniel Morgan - * - * Permission was given from the original author, Gonzalo Paniagua Javier, - * to port and include his original work in Mono. - * - * The original work falls under the LGPL, but the port to C# falls - * under the X11 license. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program; see the file COPYING. If not, - * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -using System; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient { - - class PostgresTest { - - // execute SQL CREATE TABLE Command using ExecuteNonQuery() - static void CreateTable (IDbConnection cnc) { - - IDbCommand createCommand = cnc.CreateCommand(); - - createCommand.CommandText = - "create table mono_postgres_test (" + - "boolean_value boolean, " + - "int2_value smallint, " + - "int4_value integer, " + - "bigint_value bigint, " + - "float_value real, " + - "double_value double precision, " + - "numeric_value numeric(15, 3), " + - "char_value char(50), " + - "varchar_value varchar(20), " + - "text_value text, " + - "point_value point, " + - "time_value time, " + - "date_value date, " + - "timestamp_value timestamp, " + - "null_boolean_value boolean, " + - "null_int2_value smallint, " + - "null_int4_value integer, " + - "null_bigint_value bigint, " + - "null_float_value real, " + - "null_double_value double precision, " + - "null_numeric_value numeric(15, 3), " + - "null_char_value char(50), " + - "null_varchar_value varchar(20), " + - "null_text_value text, " + - "null_point_value point, " + - "null_time_value time, " + - "null_date_value date, " + - "null_timestamp_value timestamp " + - ")"; - - createCommand.ExecuteNonQuery (); - } - - // execute SQL DROP TABLE Command using ExecuteNonQuery - static void DropTable (IDbConnection cnc) { - - IDbCommand dropCommand = cnc.CreateCommand (); - - dropCommand.CommandText = - "drop table mono_postgres_test"; - - dropCommand.ExecuteNonQuery (); - } - - // execute stored procedure using ExecuteScalar() - static object CallStoredProcedure (IDbConnection cnc) { - - IDbCommand callStoredProcCommand = cnc.CreateCommand (); - object data; - - callStoredProcCommand.CommandType = - CommandType.StoredProcedure; - callStoredProcCommand.CommandText = - "version"; - - data = callStoredProcCommand.ExecuteScalar (); - - return data; - } - - // execute SQL INSERT Command using ExecuteNonQuery() - static void InsertData (IDbConnection cnc) { - - IDbCommand insertCommand = cnc.CreateCommand(); - - insertCommand.CommandText = - "insert into mono_postgres_test (" + - "boolean_value, " + - "int2_value, " + - "int4_value, " + - "bigint_value, " + - "float_value, " + - "double_value, " + - "numeric_value, " + - "char_value, " + - "varchar_value, " + - "text_value, " + - "time_value, " + - "date_value, " + - "timestamp_value, " + - "point_value " + - ") values (" + - "'T', " + - "-22, " + - "1048000, " + - "123456789012345, " + - "3.141592, " + - "3.1415926969696, " + - "123456789012.345, " + - "'This is a char', " + - "'This is a varchar', " + - "'This is a text', " + - "'21:13:14', " + - "'2000-02-29', " + - "'2004-02-29 14:00:11.31', " + - "'(1,0)' " + - ")"; - - insertCommand.ExecuteNonQuery (); - } - - // execute a SQL SELECT Query using ExecuteReader() to retrieve - // a IDataReader so we retrieve data - static IDataReader SelectData (IDbConnection cnc) { - - IDbCommand selectCommand = cnc.CreateCommand(); - IDataReader reader; - - // FIXME: System.Data classes need to handle NULLs - // this would be done by System.DBNull ? - // FIXME: System.Data needs to handle more data types - /* - selectCommand.CommandText = - "select * " + - "from mono_postgres_test"; - */ - - selectCommand.CommandText = - "select " + - "boolean_value, " + - "int2_value, " + - "int4_value, " + - "bigint_value, " + - "float_value, " + - "double_value, " + - "numeric_value, " + - "char_value, " + - "varchar_value, " + - "text_value, " + - "point_value, " + - "time_value, " + - "date_value, " + - "timestamp_value, " + - "null_boolean_value, " + - "null_int2_value, " + - "null_int4_value, " + - "null_bigint_value, " + - "null_float_value, " + - "null_double_value, " + - "null_numeric_value, " + - "null_char_value, " + - "null_varchar_value, " + - "null_text_value, " + - "null_point_value, " + - "null_time_value, " + - "null_date_value, " + - "null_timestamp_value " + - "from mono_postgres_test"; - - reader = selectCommand.ExecuteReader (); - - return reader; - } - - // Tests a SQL Command (INSERT, UPDATE, DELETE) - // executed via ExecuteReader - static IDataReader SelectDataUsingInsertCommand (IDbConnection cnc) { - - IDbCommand selectCommand = cnc.CreateCommand(); - IDataReader reader; - - // This is a SQL INSERT Command, not a Query - selectCommand.CommandText = - "insert into mono_postgres_test (" + - "boolean_value, " + - "int2_value, " + - "int4_value, " + - "bigint_value, " + - "float_value, " + - "double_value, " + - "numeric_value, " + - "char_value, " + - "varchar_value, " + - "text_value, " + - "time_value, " + - "date_value, " + - "timestamp_value, " + - "point_value " + - ") values (" + - "'T', " + - "-22, " + - "1048000, " + - "123456789012345, " + - "3.141592, " + - "3.1415926969696, " + - "123456789012.345, " + - "'This is a char', " + - "'This is a varchar', " + - "'This is a text', " + - "'21:13:14', " + - "'2000-02-29', " + - "'2004-02-29 14:00:11.31', " + - "'(1,0)' " + - ")"; - - reader = selectCommand.ExecuteReader (); - - return reader; - } - - // Tests a SQL Command not (INSERT, UPDATE, DELETE) - // executed via ExecuteReader - static IDataReader SelectDataUsingCommand (IDbConnection cnc) { - - IDbCommand selectCommand = cnc.CreateCommand(); - IDataReader reader; - - // This is a SQL Command, not a Query - selectCommand.CommandText = - "SET DATESTYLE TO 'ISO'"; - - reader = selectCommand.ExecuteReader (); - - return reader; - } - - - // execute an SQL UPDATE Command using ExecuteNonQuery() - static void UpdateData (IDbConnection cnc) { - - IDbCommand updateCommand = cnc.CreateCommand(); - - updateCommand.CommandText = - "update mono_postgres_test " + - "set " + - "boolean_value = 'F', " + - "int2_value = 5, " + - "int4_value = 3, " + - "bigint_value = 9, " + - "char_value = 'Mono.Data!' , " + - "varchar_value = 'It was not me!', " + - "text_value = 'We got data!' " + - "where int2_value = -22"; - - updateCommand.ExecuteNonQuery (); - } - - // used to do a min(), max(), count(), sum(), or avg() - // execute SQL SELECT Query using ExecuteScalar - static object SelectAggregate (IDbConnection cnc, String agg) { - - IDbCommand selectCommand = cnc.CreateCommand(); - object data; - - Console.WriteLine("Aggregate: " + agg); - - selectCommand.CommandType = CommandType.Text; - selectCommand.CommandText = - "select " + agg + - "from mono_postgres_test"; - - data = selectCommand.ExecuteScalar (); - - Console.WriteLine("Agg Result: " + data); - - return data; - } - - // used internally by ReadData() to read each result set - static void ReadResult(IDataReader rdr, DataTable dt) { - - // number of columns in the table - Console.WriteLine(" Total Columns: " + - dt.Rows.Count); - - // display the schema - foreach (DataRow schemaRow in dt.Rows) { - foreach (DataColumn schemaCol in dt.Columns) - Console.WriteLine(schemaCol.ColumnName + - " = " + - schemaRow[schemaCol]); - Console.WriteLine(); - } - - int nRows = 0; - int c = 0; - string output, metadataValue, dataValue; - // Read and display the rows - Console.WriteLine("Gonna do a Read() now..."); - while(rdr.Read()) { - Console.WriteLine(" Row " + nRows + ": "); - - for(c = 0; c < rdr.FieldCount; c++) { - // column meta data - DataRow dr = dt.Rows[c]; - metadataValue = - " Col " + - c + ": " + - dr["ColumnName"]; - - // column data - if(rdr.IsDBNull(c) == true) - dataValue = " is NULL"; - else - dataValue = - ": " + - rdr.GetValue(c); - - // display column meta data and data - output = metadataValue + dataValue; - Console.WriteLine(output); - } - nRows++; - } - Console.WriteLine(" Total Rows Retrieved: " + - nRows); - } - - // Used to read data from IDataReader after calling IDbCommand:ExecuteReader() - static void ReadData(IDataReader rdr) { - - int results = 0; - if(rdr == null) { - - Console.WriteLine("IDataReader has a Null Reference."); - } - else { - do { - DataTable dt = rdr.GetSchemaTable(); - if(rdr.RecordsAffected != -1) { - // Results for - // SQL INSERT, UPDATE, DELETE Commands - // have RecordsAffected >= 0 - Console.WriteLine("Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected); - } - else if(dt == null) - // Results for - // SQL Commands not INSERT, UPDATE, nor DELETE - // have RecordsAffected == -1 - // and GetSchemaTable() returns a null reference - Console.WriteLine("Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected); - else { - // Results for - // SQL SELECT Queries - // have RecordsAffected = -1 - // and GetSchemaTable() returns a reference to a DataTable - Console.WriteLine("Result is from a SELECT SQL Query. Records Affected: " + rdr.RecordsAffected); - - results++; - Console.WriteLine("Result Set " + results + "..."); - - ReadResult(rdr, dt); - } - - } while(rdr.NextResult()); - Console.WriteLine("Total Result sets: " + results); - - rdr.Close(); - } - } - - /* Postgres provider tests */ - static void DoPostgresTest (IDbConnection cnc) { - - IDataReader reader; - Object oDataValue; - - Console.WriteLine ("\tPostgres provider specific tests...\n"); - - /* Drops the gda_postgres_test table. */ - Console.WriteLine ("\t\tDrop table: "); - try { - DropTable (cnc); - Console.WriteLine ("OK"); - } - catch (SqlException e) { - Console.WriteLine("Error (don't worry about this one)" + e); - } - - try { - /* Creates a table with all supported data types */ - Console.WriteLine ("\t\tCreate table with all supported types: "); - CreateTable (cnc); - Console.WriteLine ("OK"); - - /* Inserts values */ - Console.WriteLine ("\t\tInsert values for all known types: "); - InsertData (cnc); - Console.WriteLine ("OK"); - - /* Update values */ - Console.WriteLine ("\t\tUpdate values: "); - UpdateData (cnc); - Console.WriteLine ("OK"); - - /* Inserts values */ - Console.WriteLine ("\t\tInsert values for all known types: "); - InsertData (cnc); - Console.WriteLine ("OK"); - - /* Select aggregates */ - SelectAggregate (cnc, "count(*)"); - // FIXME: still having a problem with avg() - // because it returns a decimal. - // It may have something to do - // with culture not being set - // properly. - //SelectAggregate (cnc, "avg(int4_value)"); - SelectAggregate (cnc, "min(text_value)"); - SelectAggregate (cnc, "max(int4_value)"); - SelectAggregate (cnc, "sum(int4_value)"); - - /* Select values */ - Console.WriteLine ("\t\tSelect values from the database: "); - reader = SelectData (cnc); - ReadData(reader); - - /* SQL Command via ExecuteReader/SqlDataReader */ - /* Command is not INSERT, UPDATE, or DELETE */ - Console.WriteLine("\t\tCall ExecuteReader with a SQL Command. (Not INSERT,UPDATE,DELETE)."); - reader = SelectDataUsingCommand(cnc); - ReadData(reader); - - /* SQL Command via ExecuteReader/SqlDataReader */ - /* Command is INSERT, UPDATE, or DELETE */ - Console.WriteLine("\t\tCall ExecuteReader with a SQL Command. (Is INSERT,UPDATE,DELETE)."); - reader = SelectDataUsingInsertCommand(cnc); - ReadData(reader); - - // Call a Stored Procedure named Version() - Console.WriteLine("\t\tCalling stored procedure version()"); - object obj = CallStoredProcedure(cnc); - Console.WriteLine("Result: " + obj); - - Console.WriteLine("Database Server Version: " + - ((SqlConnection)cnc).ServerVersion); - - /* Clean up */ - Console.WriteLine ("Clean up..."); - Console.WriteLine ("\t\tDrop table..."); - DropTable (cnc); - Console.WriteLine("OK"); - } - catch(Exception e) { - Console.WriteLine("Exception caught: " + e); - } - } - - [STAThread] - static void Main(string[] args) { - SqlConnection cnc = new SqlConnection (); - - /* - string connectionString = - "host=hostname;" + - "dbname=database;" + - "user=userid;" + - "password=password"; - */ - - string connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres;"; - - cnc.ConnectionString = connectionString; - - cnc.Open(); - DoPostgresTest(cnc); - cnc.Close(); - } - } -} diff --git a/mcs/class/System.Data/Test/ReadPostgresData.cs b/mcs/class/System.Data/Test/ReadPostgresData.cs deleted file mode 100644 index c1fc05b0a194b..0000000000000 --- a/mcs/class/System.Data/Test/ReadPostgresData.cs +++ /dev/null @@ -1,585 +0,0 @@ -// -// ReadPostgresData.cs -// -// Uses the PostgresLibrary to retrieve a recordset. -// This is not meant to be used in Production, but as a -// learning aid in coding class System.Data.SqlClient.SqlDataReader. -// -// Bits of code were borrowed from libgda. -// -// Author: -// Daniel Morgan -// -// (C) 2002 Daniel Morgan -// - -using System; -using System.Data; -using System.Runtime.InteropServices; -using System.Diagnostics; - -namespace LearnToCreateSqlDataReader -{ - sealed public class PostgresHelper { - - public static object OidTypeToSystem (int oid, string value) { - object obj = null; - - Console.WriteLine("===== oid: " + oid + " value: " + value); - - switch(oid) { - case 1043: // varchar - Console.WriteLine("oid 1023 varchar ==> String found"); - obj = (object) String.Copy(value); // String - break; - case 25: // text - Console.WriteLine("oid 25 text ==> String found"); - obj = (object) String.Copy(value); // String - break; - case 18: // char - Console.WriteLine("oid 18 char ==> String found"); - obj = (object) String.Copy(value); // String - break; - case 16: // bool - Console.WriteLine("oid 16 bool ==> Boolean found"); - obj = (object) Boolean.Parse(value); - break; - case 21: // int2 - Console.WriteLine("oid 21 int2 ==> Int16 found"); - obj = (object) Int16.Parse(value); - break; - case 23: // int4 - Console.WriteLine("oid 23 int4 ==> Int32 found"); - obj = (object) Int32.Parse(value); - break; - case 20: // int8 - Console.WriteLine("oid 20 int8 ==> Int64 found"); - obj = (object) Int64.Parse(value); - break; - default: - Console.WriteLine("OidTypeToSystem Not Done Yet: oid: " + - oid + " Value: " + value); - break; - - } - - return obj; - } - - public static Type OidToType (int oid) { - Type typ = null; - - switch(oid) { - case 1043: // varchar - case 25: // text - case 18: // char - typ = typeof(String); - break; - case 16: // bool - typ = typeof(Boolean); - break; - case 21: // int2 - typ = typeof(Int16); - break; - case 23: // int4 - typ = typeof(Int32); - break; - case 20: // int8 - typ = typeof(Int64); - break; - default: - throw new NotImplementedException( - "PGNI2: PostgreSQL oid type " + oid + - " not mapped to .NET System Type."); - } - return typ; - } - - } - - sealed public class PostgresLibrary { - - public enum ConnStatusType { - CONNECTION_OK, - CONNECTION_BAD, - CONNECTION_STARTED, - CONNECTION_MADE, - CONNECTION_AWAITING_RESPONSE, - CONNECTION_AUTH_OK, - CONNECTION_SETENV - } - - public enum PostgresPollingStatusType { - PGRES_POLLING_FAILED = 0, - PGRES_POLLING_READING, - PGRES_POLLING_WRITING, - PGRES_POLLING_OK, - PGRES_POLLING_ACTIVE - } - - public enum ExecStatusType { - PGRES_EMPTY_QUERY = 0, - PGRES_COMMAND_OK, - PGRES_TUPLES_OK, - PGRES_COPY_OUT, - PGRES_COPY_IN, - PGRES_BAD_RESPONSE, - PGRES_NONFATAL_ERROR, - PGRES_FATAL_ERROR - } - - - [DllImport("pq")] - public static extern string PQerrorMessage (IntPtr conn); - // char *PQerrorMessage(const PGconn *conn); - - [DllImport("pq")] - public static extern IntPtr PQconnectdb(String conninfo); - // PGconn *PQconnectdb(const char *conninfo) - - [DllImport("pq")] - public static extern void PQfinish(IntPtr conn); - // void PQfinish(PGconn *conn) - - [DllImport("pq")] - public static extern IntPtr PQexec(IntPtr conn, - String query); - // PGresult *PQexec(PGconn *conn, const char *query); - - [DllImport("pq")] - public static extern int PQntuples (IntPtr res); - // int PQntuples(const PGresult *res); - - [DllImport("pq")] - public static extern int PQnfields (IntPtr res); - // int PQnfields(const PGresult *res); - - [DllImport("pq")] - public static extern ConnStatusType PQstatus (IntPtr conn); - // ConnStatusType PQstatus(const PGconn *conn); - [DllImport("pq")] - public static extern ExecStatusType PQresultStatus (IntPtr res); - // ExecStatusType PQresultStatus(const PGresult *res); - - [DllImport("pq")] - public static extern string PQresStatus (ExecStatusType status); - // char *PQresStatus(ExecStatusType status); - - [DllImport("pq")] - public static extern string PQresultErrorMessage (IntPtr res); - // char *PQresultErrorMessage(const PGresult *res); - - [DllImport("pq")] - public static extern int PQbinaryTuples (IntPtr res); - // int PQbinaryTuples(const PGresult *res); - - [DllImport("pq")] - public static extern string PQfname (IntPtr res, - int field_num); - // char *PQfname(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfnumber (IntPtr res, - string field_name); - // int PQfnumber(const PGresult *res, - // const char *field_name); - - - [DllImport("pq")] - public static extern int PQfmod (IntPtr res, int field_num); - // int PQfmod(const PGresult *res, int field_num); - - [DllImport("pq")] - public static extern int PQftype (IntPtr res, - int field_num); - // Oid PQftype(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern int PQfsize (IntPtr res, - int field_num); - // int PQfsize(const PGresult *res, - // int field_num); - - [DllImport("pq")] - public static extern string PQcmdStatus (IntPtr res); - // char *PQcmdStatus(PGresult *res); - - [DllImport("pq")] - public static extern string PQoidStatus (IntPtr res); - // char *PQoidStatus(const PGresult *res); - - [DllImport("pq")] - public static extern int PQoidValue (IntPtr res); - // Oid PQoidValue(const PGresult *res); - - [DllImport("pq")] - public static extern string PQcmdTuples (IntPtr res); - // char *PQcmdTuples(PGresult *res); - - [DllImport("pq")] - public static extern string PQgetvalue (IntPtr res, - int tup_num, int field_num); - // char *PQgetvalue(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetlength (IntPtr res, - int tup_num, int field_num); - // int PQgetlength(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern int PQgetisnull (IntPtr res, - int tup_num, int field_num); - // int PQgetisnull(const PGresult *res, - // int tup_num, int field_num); - - [DllImport("pq")] - public static extern void PQclear (IntPtr res); - // void PQclear(PGresult *res); - - - } - - public class ReadPostgresData - { - - static void Test(String sConnInfo) { - String errorMessage; - - IntPtr pgConn; - PostgresLibrary.ConnStatusType connStatus; - - String sQuery; - IntPtr pgResult; - - sQuery = - "select tid, tdesc, aint4, abpchar " + - "from sometable "; - - pgConn = PostgresLibrary.PQconnectdb (sConnInfo); - - connStatus = PostgresLibrary.PQstatus (pgConn); - if(connStatus == - PostgresLibrary. - ConnStatusType.CONNECTION_OK) { - - Console.WriteLine("CONNECTION_OK"); - - Console.WriteLine("SQL: " + sQuery); - pgResult = PostgresLibrary.PQexec(pgConn, sQuery); - - PostgresLibrary.ExecStatusType execStatus; - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == - PostgresLibrary. - ExecStatusType.PGRES_TUPLES_OK) - { - Console.WriteLine("PGRES_TUPLES_OK"); - - int nRows = PostgresLibrary. - PQntuples(pgResult); - Console.WriteLine("Rows: " + nRows); - - int nFields = PostgresLibrary. - PQnfields(pgResult); - Console.WriteLine("Columns: " + nFields); - - - String fieldName; - - // get meta data fromm result set (schema) - // for each column (field) - for(int fieldIndex = 0; - fieldIndex < nFields; - fieldIndex ++) { - - // get column name - fieldName = PostgresLibrary. - PQfname(pgResult, fieldIndex); - - Console.WriteLine("Field " + - fieldIndex + ": " + - fieldName); - - int oid; - // get PostgreSQL data type (OID) - oid = PostgresLibrary. - PQftype(pgResult, fieldIndex); - - Console.WriteLine("Data Type oid: " + oid); - - int definedSize; - // get defined size of column - definedSize = PostgresLibrary. - PQfsize(pgResult, fieldIndex); - - Console.WriteLine("definedSize: " + - definedSize); - } - - // for each row and column, get the data value - for(int row = 0; - row < nRows; - row++) { - - for(int col = 0; - col < nFields; - col++) { - - String value; - // get data value - value = PostgresLibrary. - PQgetvalue( - pgResult, - row, col); - - Console.WriteLine("Row: " + row + - " Col: " + col); - Console.WriteLine("Value: " + - value); - - int columnIsNull; - // is column NULL? - columnIsNull = PostgresLibrary. - PQgetisnull(pgResult, - row, col); - - Console.WriteLine("Data is " + - (columnIsNull == 0 ? "NOT NULL" : "NULL")); - - - int actualLength; - // get Actual Length - actualLength = PostgresLibrary. - PQgetlength(pgResult, - row, col); - - Console.WriteLine("Actual Length: " + - actualLength); - } - } - - // close result set - PostgresLibrary.PQclear (pgResult); - } - else { - // display execution error - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - Console.WriteLine(errorMessage); - } - - // close database conneciton - PostgresLibrary.PQfinish(pgConn); - - } - else { - errorMessage = PostgresLibrary. - PQerrorMessage (pgConn); - errorMessage += ": Could not connect to database."; - Console.WriteLine(errorMessage); - } - - } - - public static object ExecuteScalar(string sConnInfo, string sQuery) { - object obj = null; // return - - int nRow; - int nCol; - - String errorMessage; - - IntPtr pgConn; - PostgresLibrary.ConnStatusType connStatus; - - IntPtr pgResult; - - pgConn = PostgresLibrary.PQconnectdb (sConnInfo); - - connStatus = PostgresLibrary.PQstatus (pgConn); - if(connStatus == - PostgresLibrary. - ConnStatusType.CONNECTION_OK) { - - Console.WriteLine("CONNECTION_OK"); - - pgResult = PostgresLibrary.PQexec(pgConn, sQuery); - - PostgresLibrary.ExecStatusType execStatus; - - execStatus = PostgresLibrary. - PQresultStatus (pgResult); - - if(execStatus == - PostgresLibrary. - ExecStatusType.PGRES_TUPLES_OK) { - - Console.WriteLine("PGRES_TUPLES_OK"); - - int nRows = PostgresLibrary. - PQntuples(pgResult); - Console.WriteLine("Rows: " + nRows); - - int nFields = PostgresLibrary. - PQnfields(pgResult); - Console.WriteLine("Columns: " + nFields); - if(nRows > 0 && nFields > 0) { - nRow = 0; - nCol = 0; - - // get column name - String fieldName; - fieldName = PostgresLibrary. - PQfname(pgResult, nCol); - - Console.WriteLine("Field " + - nCol + ": " + - fieldName); - - int oid; - - // get PostgreSQL data type (OID) - oid = PostgresLibrary. - PQftype(pgResult, nCol); - - Console.WriteLine("Data Type oid: " + oid); - - int definedSize; - // get defined size of column - definedSize = PostgresLibrary. - PQfsize(pgResult, nCol); - - Console.WriteLine("DefinedSize: " + - definedSize); - - String value; - // get data value - value = PostgresLibrary. - PQgetvalue( - pgResult, - nRow, nCol); - - Console.WriteLine("Row: " + nRow + - " Col: " + nCol); - Console.WriteLine("Value: " + value); - - int columnIsNull; - // is column NULL? - columnIsNull = PostgresLibrary. - PQgetisnull(pgResult, - nRow, nCol); - - // isNull = *thevalue != '\0' ? FALSE : PQgetisnull (pg_res, rownum, i); - - Console.WriteLine("Data is " + - (columnIsNull == 0 ? "NOT NULL" : "NULL")); - - int actualLength; - // get Actual Length - actualLength = PostgresLibrary. - PQgetlength(pgResult, - nRow, nCol); - - Console.WriteLine("Actual Length: " + - actualLength); - - obj = PostgresHelper. - OidTypeToSystem (oid, value); - } - - // close result set - PostgresLibrary.PQclear (pgResult); - } - else { - // display execution error - errorMessage = PostgresLibrary. - PQresStatus(execStatus); - - errorMessage += " " + PostgresLibrary. - PQresultErrorMessage(pgResult); - - Console.WriteLine(errorMessage); - } - - // close database conneciton - PostgresLibrary.PQfinish(pgConn); - - } - else { - errorMessage = PostgresLibrary. - PQerrorMessage (pgConn); - errorMessage += ": Could not connect to database."; - Console.WriteLine(errorMessage); - } - - return obj; - } - - static void TestExecuteScalar(String connString) { - String selectStatement; - - try { - selectStatement = - "select count(*) " + - "from sometable"; - - Int64 myCount = (Int64) ExecuteScalar(connString, - selectStatement); - Console.WriteLine("Count: " + myCount); - - selectStatement = - "select max(tdesc) " + - "from sometable"; - string myMax = (string) ExecuteScalar(connString, - selectStatement); - Console.WriteLine("Max: " + myMax); - } - catch(Exception e) { - Console.WriteLine(e); - } - - } - - [STAThread] - static void Main(string[] args) - { - // PostgreSQL DBMS Connection String - // Notice how the parameters are separated with spaces - // An OLE-DB Connection String uses semicolons to - // separate parameters. - String sConnInfo = - "host=localhost " + - "dbname=test " + - "user=postgres"; - - Test(sConnInfo); - - TestExecuteScalar(sConnInfo); - - Type t; - int oid; - - oid = 1043; - t = PostgresHelper.OidToType(oid); // varchar ==> String - Console.WriteLine("OidToType varchar oid: " + oid + - " ==> t: " + t.ToString()); - - oid = 23; - t = PostgresHelper.OidToType(oid); // int4 ==> Int32 - Console.WriteLine("OidToType int4 oid: " + oid + - " ==> t: " + t.ToString()); - - } - } -} diff --git a/mcs/class/System.Data/Test/SqlSharpCli.cs b/mcs/class/System.Data/Test/SqlSharpCli.cs deleted file mode 100644 index b54901a61d8f4..0000000000000 --- a/mcs/class/System.Data/Test/SqlSharpCli.cs +++ /dev/null @@ -1,1082 +0,0 @@ -// -// SqlSharpCli.cs - main driver for SqlSharp -// -// Currently, only working on a command line interface for SqlSharp -// -// However, once GTK# and System.Windows.Forms are good-to-go, -// I would like to create a SqlSharpGui using this. -// -// It would be nice if this is included as part of Mono -// extra goodies under Mono.Data.SqlSharp. -// -// Also, this makes a good Test program for Mono System.Data. -// For more information about Mono::, -// visit http://www.go-mono.com/ -// -// To build SqlSharpCli.cs: -// $ mcs SqlSharpCli.cs -r System.Data.dll -// -// To run with mono: -// $ mono SqlSharpCli.exe -// -// To run with mint: -// $ mint SqlSharpCli.exe -// -// To run batch commands and get the output, do something like: -// $ cat commands.txt | mono SqlSharpCli.exe > results.txt -// -// Author: -// Daniel Morgan -// -// (C)Copyright 2002 Daniel Morgan -// - -using System; -using System.Collections; -using System.Data; -using System.Data.Common; -using System.Data.OleDb; -using System.Data.SqlClient; -using System.IO; -using System.Reflection; -using System.Runtime.Remoting; -using System.Text; - -namespace Mono.Data.SqlSharp { - - public enum FileFormat { - Html, - Xml, - CommaSeparatedValues, - TabSeparated, - Normal - } - - // SQL Sharp - Command Line Interface - public class SqlSharpCli { - - private IDbConnection conn = null; - - private string provider = "POSTGRESQL"; // name of internal provider - // {OleDb,SqlClient,MySql,Odbc,Oracle,PostgreSql} however, it - // can be set to LOADEXTPROVIDER to load an external provider - private string providerAssembly = ""; // filename of assembly - // for example: "Mono.Data.MySql" - private string providerConnectionClass = ""; // Connection class - // in the provider assembly that implements the IDbConnection - // interface. for example: "Mono.Data.MySql.MySqlConnection" - - private StringBuilder build = null; // SQL string to build - private string buff = ""; // SQL string buffer - - private string connectionString = - "host=localhost;dbname=test;user=postgres"; - - private string inputFilename = ""; - private string outputFilename = ""; - private StreamReader inputFilestream = null; - private StreamWriter outputFilestream = null; - - private FileFormat outputFileFormat = FileFormat.Html; - - private bool silent = false; - private bool showHeader = true; - - private Hashtable internalVariables = new Hashtable(); - - // DisplayResult - used to Read() display a result set - // called by DisplayData() - public void DisplayResult(IDataReader reader, DataTable schemaTable) { - - StringBuilder line = null; - StringBuilder hdrUnderline = null; - - int spacing = 0; - int columnSize = 0; - int c; - - char spacingChar = ' '; // a space - char underlineChar = '='; // an equal sign - - string dataType; // .NET Type - string dataTypeName; // native Database type - DataRow row; // schema row - - line = new StringBuilder(); - hdrUnderline = new StringBuilder(); - - OutputLine("Fields in Query Result: " + - reader.FieldCount); - OutputLine(""); - - for(c = 0; c < schemaTable.Rows.Count; c++) { - - DataRow schemaRow = schemaTable.Rows[c]; - string columnHeader = (string) schemaRow["ColumnName"]; - int columnHeaderSize = columnHeader.Length; - - line.Append(columnHeader); - hdrUnderline.Append(underlineChar, columnHeaderSize); - - // spacing - columnSize = (int) schemaRow["ColumnSize"]; - dataType = (string) schemaRow["DataType"]; - dataTypeName = reader.GetDataTypeName(c); - - // columnSize correction based on data type - if(dataType.Equals("System.Boolean")) { - columnSize = 5; - } - if(provider.Equals("POSTGRESQL")) - if(dataTypeName.Equals("text")) - columnSize = 32; // text will be truncated to 32 - - if(columnHeaderSize < columnSize) { - spacing = columnSize - columnHeaderSize; - line.Append(spacingChar, spacing); - hdrUnderline.Append(underlineChar, spacing); - } - line.Append(" "); - hdrUnderline.Append(" "); - } - OutputHeader(line.ToString()); - line = null; - - OutputHeader(hdrUnderline.ToString()); - OutputHeader(""); - hdrUnderline = null; - - // DEBUG - need to know the columnSize - /* - line = new StringBuilder(); - foreach(DataRow schemaRow in schemaTable.Rows) { - columnSize = (int) schemaRow["ColumnSize"]; - line.Append(columnSize.ToString()); - line.Append(" "); - } - Console.WriteLine(line.ToString()); - Console.WriteLine(); - line = null; - */ - - int rows = 0; - - // column data - while(reader.Read()) { - rows++; - - line = new StringBuilder(); - for(c = 0; c < reader.FieldCount; c++) { - int dataLen = 0; - string dataValue; - - row = schemaTable.Rows[c]; - string colhdr = (string) row["ColumnName"]; - columnSize = (int) row["ColumnSize"]; - dataType = (string) row["DataType"]; - dataTypeName = reader.GetDataTypeName(c); - - // certain types need to have the - // columnSize adjusted for display - // so the column will line up for each - // row and match the column header size - if(dataType.Equals("System.Boolean")) { - columnSize = 5; - } - if(provider.Equals("POSTGRESQL")) - if(dataTypeName.Equals("text")) - columnSize = 32; // text will be truncated to 32 - - if(reader.IsDBNull(c)) { - dataValue = ""; - dataLen = 0; - } - else { - object obj = reader.GetValue(c); - - dataValue = obj.ToString(); - dataLen = dataValue.Length; - line.Append(dataValue); - } - line.Append(" "); - - // spacing - spacingChar = ' '; - if(dataLen < columnSize) { - spacing = columnSize - dataLen; - line.Append(spacingChar, spacing); - } - spacingChar = ' '; - if(columnSize < colhdr.Length) { - spacing = colhdr.Length - columnSize; - line.Append(spacingChar, spacing); - } - - } - OutputData(line.ToString()); - line = null; - } - OutputLine("\nRows retrieved: " + rows.ToString()); - } - - public void OutputDataToHtmlFile(IDataReader rdr, DataTable dt) { - - StringBuilder strHtml = new StringBuilder(); - - strHtml.Append(" \n "); - strHtml.Append("Results"); - strHtml.Append(" "); - strHtml.Append(""); - strHtml.Append("

Results

"); - strHtml.Append(""); - - outputFilestream.WriteLine(strHtml.ToString()); - - strHtml = null; - strHtml = new StringBuilder(); - - strHtml.Append(""); - foreach (DataRow schemaRow in dt.Rows) { - strHtml.Append(""); - } - strHtml.Append(""); - outputFilestream.WriteLine(strHtml.ToString()); - strHtml = null; - - int col = 0; - string dataValue = ""; - - while(rdr.Read()) { - strHtml = new StringBuilder(); - - strHtml.Append(""); - for(col = 0; col < rdr.FieldCount; col++) { - - // column data - if(rdr.IsDBNull(col) == true) - dataValue = "NULL"; - else { - object obj = rdr.GetValue(col); - dataValue = obj.ToString(); - } - strHtml.Append(""); - } - strHtml.Append("\t\t"); - outputFilestream.WriteLine(strHtml.ToString()); - strHtml = null; - } - outputFilestream.WriteLine("
"); - object dataObj = schemaRow["ColumnName"]; - string sColumnName = dataObj.ToString(); - strHtml.Append(sColumnName); - strHtml.Append("
"); - strHtml.Append(dataValue); - strHtml.Append("
\n "); - strHtml = null; - } - - // DisplayData - used to display any Result Sets - // from execution of SQL SELECT Query or Queries - // called by DisplayData. - // ExecuteSql() only calls this function - // for a Query, it does not get - // for a Command. - public void DisplayData(IDataReader reader) { - - DataTable schemaTable = null; - int ResultSet = 0; - - OutputLine("Display any result sets..."); - - do { - // by Default, SqlDataReader has the - // first Result set if any - - ResultSet++; - OutputLine("Display the result set " + ResultSet); - - schemaTable = reader.GetSchemaTable(); - - if(reader.RecordsAffected >= 0) { - // SQL Command (INSERT, UPDATE, or DELETE) - // RecordsAffected >= 0 - Console.WriteLine("SQL Command Records Affected: " + reader.RecordsAffected); - } - else if(schemaTable == null) { - // SQL Command (not INSERT, UPDATE, nor DELETE) - // RecordsAffected -1 and DataTable has a null reference - Console.WriteLine("SQL Command Executed."); - } - else { - // SQL Query (SELECT) - // RecordsAffected -1 and DataTable has a reference - OutputQueryResult(reader, schemaTable); - } - - // get next result set (if anymore is left) - } while(reader.NextResult()); - } - - public void OutputQueryResult(IDataReader dreader, DataTable dtable) { - if(outputFilestream == null) { - DisplayResult(dreader, dtable); - } - else { - switch(outputFileFormat) { - case FileFormat.Normal: - DisplayResult(dreader, dtable); - break; - case FileFormat.Html: - OutputDataToHtmlFile(dreader, dtable); - break; - default: - Console.WriteLine("Error: Output data file format not supported."); - break; - } - } - } - - // ExecuteSql - Execute the SQL Command(s) and/or Query(ies) - public void ExecuteSql(string sql) { - - Console.WriteLine("Execute SQL: " + sql); - - IDbCommand cmd = null; - IDataReader reader = null; - - cmd = conn.CreateCommand(); - - // set command properties - cmd.CommandType = CommandType.Text; - cmd.CommandText = sql; - cmd.Connection = conn; - - try { - reader = cmd.ExecuteReader(); - DisplayData(reader); - reader.Close(); - reader = null; - } - catch(Exception e) { - Console.WriteLine("Exception Caught Executing SQL: " + e); - //if(reader != null) { - // if(reader.IsClosed == false) - // reader.Close(); - reader = null; - //} - } - finally { - // cmd.Dispose(); - cmd = null; - } - } - - // ExecuteSql - Execute the SQL Commands (no SELECTs) - public void ExecuteSqlNonQuery(string sql) { - - Console.WriteLine("Execute SQL Non Query: " + sql); - - IDbCommand cmd = null; - int rowsAffected = -1; - - cmd = conn.CreateCommand(); - - // set command properties - cmd.CommandType = CommandType.Text; - cmd.CommandText = sql; - cmd.Connection = conn; - - try { - rowsAffected = cmd.ExecuteNonQuery(); - cmd = null; - Console.WriteLine("Rows affected: " + rowsAffected); - } - catch(Exception e) { - Console.WriteLine("Exception Caught Executing SQL: " + e); - } - finally { - // cmd.Dispose(); - cmd = null; - } - } - - public void ExecuteSqlScalar(string sql) { - Console.WriteLine("Execute SQL Non Query: " + sql); - - IDbCommand cmd = null; - string retrievedValue = ""; - - cmd = conn.CreateCommand(); - - // set command properties - cmd.CommandType = CommandType.Text; - cmd.CommandText = sql; - cmd.Connection = conn; - - try { - retrievedValue = (string) cmd.ExecuteScalar().ToString(); - Console.WriteLine("Retrieved value: " + retrievedValue); - } - catch(Exception e) { - Console.WriteLine("Exception Caught Executing SQL: " + e); - } - finally { - // cmd.Dispose(); - cmd = null; - } - } - - public void ExecuteSqlXml(string sql) { - Console.WriteLine("Error: Not implemented yet."); - } - - // like ShowHelp - but only show at the beginning - // only the most important commands are shown - // like help and quit - public void StartupHelp() { - Console.WriteLine(@"Type: \Q to quit"); - Console.WriteLine(@" \ConnectionString to set the ConnectionString"); - Console.WriteLine(@" \Provider to set the Provider:"); - Console.WriteLine(@" {OleDb,SqlClient,MySql,Odbc,"); - Console.WriteLine(@" Oracle,PostgreSql)"); - Console.WriteLine(@" \Open to open the connection"); - Console.WriteLine(@" \Close to close the connection"); - Console.WriteLine(@" \Execute to execute SQL command(s)/queries(s)"); - Console.WriteLine(@" \h to show this help."); - Console.WriteLine(@" \defaults to show default variables."); - Console.WriteLine(); - } - - // ShowHelp - show the help - command a user can enter - public void ShowHelp() { - Console.WriteLine(""); - Console.WriteLine(@"Type: \Q to quit"); - Console.WriteLine(@" \ConnectionString to set the ConnectionString"); - Console.WriteLine(@" \Provider to set the Provider:"); - Console.WriteLine(@" {OleDb,SqlClient,MySql,Odbc,"); - Console.WriteLine(@" Oracle,PostgreSql}"); - Console.WriteLine(@" \Open to open the connection"); - Console.WriteLine(@" \Close to close the connection"); - Console.WriteLine(@" \Execute to execute SQL command(s)/queries(s)"); - Console.WriteLine(@" \exenonquery execute an SQL non query (not a SELECT)."); - Console.WriteLine(@" \exescalar execute SQL to get a single row/single column result."); - Console.WriteLine(@" \f FILENAME to read a batch of Sql# commands/queries from."); - Console.WriteLine(@" \o FILENAME to write out the result of commands executed."); - Console.WriteLine(@" \load FILENAME to load from file SQL commands into SQL buffer."); - Console.WriteLine(@" \save FILENAME to save SQL commands from SQL buffer to file."); - Console.WriteLine(@" \h to show this help."); - Console.WriteLine(@" \defaults to show default variables, such as,"); - Console.WriteLine(@" Provider and ConnectionString."); - Console.WriteLine(@" \s {TRUE, FALSE} to silent messages."); - Console.WriteLine(@" \r reset (clear) the query buffer."); - Console.WriteLine(@" \set NAME VALUE - set an internal variable."); - Console.WriteLine(@" \unset NAME - remove an internal variable."); - Console.WriteLine(@" \variable NAME - display the value of an internal variable."); - Console.WriteLine(@" \loadprovider CLASS - load the provider"); - Console.WriteLine(@" use the complete name of its connection class."); - Console.WriteLine(@" \loadextprovider ASSEMBLY CLASS - load the provider"); - Console.WriteLine(@" use the complete name of its assembly and"); - Console.WriteLine(@" its Connection class."); - Console.WriteLine(@" \print - show what's in the SQL buffer now."); - Console.WriteLine(); - } - - // ShowDefaults - show defaults for connection variables - public void ShowDefaults() { - Console.WriteLine(); - Console.WriteLine("The default Provider is " + provider); - if(provider.Equals("LOADEXTPROVIDER")) { - Console.WriteLine(" Assembly: " + - providerAssembly); - Console.WriteLine(" Connection Class: " + - providerConnectionClass); - } - Console.WriteLine(); - Console.WriteLine("The default ConnectionString is: "); - Console.WriteLine(" \"" + connectionString + "\""); - Console.WriteLine(); - } - - // OpenDataSource - open connection to the data source - public void OpenDataSource() { - - Console.WriteLine("Attempt to Open..."); - - try { - switch(provider) { - case "OLEDB": - conn = new OleDbConnection(); - break; - case "POSTGRESQL": - conn = new SqlConnection(); - break; - case "LOADEXTPROVIDER": - if(LoadExternalProvider() == false) - return; - break; - default: - Console.WriteLine("Error: Bad argument or provider not supported."); - return; - } - } - catch(Exception e) { - Console.WriteLine("Error: Unable to create Connection object. " + e); - return; - } - - conn.ConnectionString = connectionString; - - try { - conn.Open(); - if(conn.State == ConnectionState.Open) - Console.WriteLine("Open was successfull."); - } - catch(Exception e) { - Console.WriteLine("Exception Caught Opening. " + e); - conn = null; - } - } - - // CloseDataSource - close the connection to the data source - public void CloseDataSource() { - - if(conn != null) { - Console.WriteLine("Attempt to Close..."); - try { - conn.Close(); - Console.WriteLine("Close was successfull."); - } - catch(Exception e) { - Console.WriteLine("Exeception Caught Closing. " + e); - } - conn = null; - } - } - - // ChangeProvider - change the provider string variable - public void ChangeProvider(string[] parms) { - - if(parms.Length == 2) { - string parm = parms[1].ToUpper(); - switch(parm) { - case "ORACLE": - case "ODBC": - Console.WriteLine("Error: Provider not currently supported."); - break; - case "MYSQL": - string[] extp = new string[3] { - "\\loadextprovider", - "Mono.Data.MySql", - "Mono.Data.MySql.MySqlConnection"}; - SetupExternalProvider(extp); - break; - case "SQLCLIENT": - provider = "POSTGRESQL"; - Console.WriteLine("Warning: Currently, the SqlClient provider is the PostgreSQL provider."); - break; - case "GDA": - provider = "OLEDB"; - break; - case "OLEDB": - case "POSTGRESQL": - provider = parm; - break; - default: - Console.WriteLine("Error: " + "Bad argument or Provider not supported."); - break; - } - Console.WriteLine("The default Provider is " + provider); - if(provider.Equals("LOADEXTPROVIDER")) { - Console.WriteLine(" Assembly: " + - providerAssembly); - Console.WriteLine(" Connection Class: " + - providerConnectionClass); - } - } - else - Console.WriteLine("Error: provider only has one parameter."); - } - - // ChangeConnectionString - change the connection string variable - public void ChangeConnectionString(string entry) { - - if(entry.Length > 18) - connectionString = entry.Substring(18, entry.Length - 18); - else - connectionString = ""; - } - - public void ReadCommandsFromFile(StreamReader inCmds) { - } - - public void SetupOutputResultsFile(string[] parms) { - if(parms.Length != 2) { - Console.WriteLine("Error: wrong number of parameters"); - return; - } - try { - outputFilestream = new StreamWriter(parms[1]); - } - catch(Exception e) { - Console.WriteLine("Error: Unable to setup output results file. " + e); - return; - } - } - - public void SetupInputCommandsFile(string[] parms) { - if(parms.Length != 2) { - Console.WriteLine("Error: wrong number of parameters"); - return; - } - try { - inputFilestream = new StreamReader(parms[1]); - } - catch(Exception e) { - Console.WriteLine("Error: Unable to setup input commmands file. " + e); - return; - } - } - - public void LoadBufferFromFile(string[] parms) { - if(parms.Length != 2) { - Console.WriteLine("Error: wrong number of parameters"); - return; - } - string inFilename = parms[1]; - try { - StreamReader sr = new StreamReader( inFilename); - StringBuilder buffer = new StringBuilder(); - string NextLine; - - while((NextLine = sr.ReadLine()) != null) { - buffer.Append(NextLine); - buffer.Append("\n"); - } - sr.Close(); - buff = buffer.ToString(); - build = null; - build = new StringBuilder(); - build.Append(buff); - } - catch(Exception e) { - Console.WriteLine("Error: Unable to read file into SQL Buffer. " + e); - } - } - - public void SaveBufferToFile(string[] parms) { - if(parms.Length != 2) { - Console.WriteLine("Error: wrong number of parameters"); - return; - } - string outFilename = parms[1]; - try { - StreamWriter sw = new StreamWriter(outFilename); - sw.WriteLine(buff); - sw.Close(); - } - catch(Exception e) { - Console.WriteLine("Error: Could not save SQL Buffer to file." + e); - } - } - - public void SetupSilentMode(string[] parms) { - if(parms.Length != 2) { - Console.WriteLine("Error: wrong number of parameters"); - return; - } - string parm = parms[1].ToUpper(); - if(parm.Equals("TRUE")) - silent = true; - else if(parm.Equals("FALSE")) - silent = false; - else - Console.WriteLine("Error: invalid parameter."); - } - - public void SetInternalVariable(string[] parms) { - if(parms.Length < 2) { - Console.WriteLine("Error: wrong number of parameters."); - return; - } - string parm = parms[1].ToUpper(); - StringBuilder ps = new StringBuilder(); - - for(int i = 2; i < parms.Length; i++) - ps.Append(parms[i]); - - internalVariables[parm] = ps.ToString(); - } - - public void UnSetInternalVariable(string[] parms) { - if(parms.Length != 2) { - Console.WriteLine("Error: wrong number of parameters."); - return; - } - string parm = parms[1].ToUpper(); - - try { - internalVariables.Remove(parm); - } - catch(Exception e) { - Console.WriteLine("Error: internal variable does not exist."); - } - } - - public void ShowInternalVariable(string[] parms) { - string internalVariableValue = ""; - - if(parms.Length != 2) { - Console.WriteLine("Error: wrong number of parameters."); - return; - } - - string parm = parms[1].ToUpper(); - - if(GetInternalVariable(parm, out internalVariableValue) == true) - Console.WriteLine("Internal Variable - Name: " + - parm + " Value: " + internalVariableValue); - } - - public bool GetInternalVariable(string name, out string sValue) { - sValue = ""; - bool valueReturned = false; - - try { - if(internalVariables.ContainsKey(name) == true) { - sValue = (string) internalVariables[name]; - valueReturned = true; - } - else - Console.WriteLine("Error: internal variable does not exist."); - - } - catch(Exception e) { - Console.WriteLine("Error: internal variable does not exist."); - } - return valueReturned; - } - - // to be used for loading .NET Data Providers that exist in - // the System.Data assembly, but are not explicitly handling - // in SQL# - public void LoadProvider(string[] parms) { - Console.WriteLine("Error: not implemented yet."); - } - - public void SetupExternalProvider(string[] parms) { - if(parms.Length != 3) { - Console.WriteLine("Error: Wrong number of parameters."); - return; - } - provider = "LOADEXTPROVIDER"; - providerAssembly = parms[1]; - providerConnectionClass = parms[2]; - } - - public bool LoadExternalProvider() { - - bool success = false; - - // For example: for the MySQL provider in Mono.Data.MySql - // \LoadExtProvider Mono.Data.MySql Mono.Data.MySql.MySqlConnection - // \ConnectionString dbname=test - // \open - // insert into sometable (tid, tdesc, aint) values ('abc','def',12) - // \exenonquery - // \close - // \quit - - try { - Console.WriteLine("Loading external provider..."); - Console.Out.Flush(); - - Assembly ps = Assembly.Load(providerAssembly); - Type typ = ps.GetType(providerConnectionClass); - conn = (IDbConnection) Activator.CreateInstance(typ); - success = true; - - Console.WriteLine("External provider loaded."); - Console.Out.Flush(); - } - catch(FileNotFoundException f) { - Console.WriteLine("Error: unable to load the assembly of the provider: " + - providerAssembly); - } - return success; - } - - // used for outputting message, but if silent is set, - // don't display - public void OutputLine(string line) { - if(silent == false) - OutputData(line); - } - - // used for outputting the header columns of a result - public void OutputHeader(string line) { - if(showHeader == true) - OutputData(line); - } - - // OutputData() - used for outputting data - // if an output filename is set, then the data will - // go to a file; otherwise, it will go to the Console. - public void OutputData(string line) { - if(outputFilestream == null) - Console.WriteLine(line); - else - outputFilestream.WriteLine(line); - } - - // HandleCommand - handle SqlSharpCli commands entered - public void HandleCommand(string entry) { - string[] parms; - - parms = entry.Split(new char[1] {' '}); - string userCmd = parms[0].ToUpper(); - - switch(userCmd) { - case "\\PROVIDER": - ChangeProvider(parms); - break; - case "\\CONNECTIONSTRING": - ChangeConnectionString(entry); - break; - case "\\LOADPROVIDER": - // TODO: - //SetupProvider(parms); - break; - case "\\LOADEXTPROVIDER": - SetupExternalProvider(parms); - break; - case "\\OPEN": - OpenDataSource(); - break; - case "\\CLOSE": - CloseDataSource(); - break; - case "\\S": - SetupSilentMode(parms); - break; - case "\\E": - case "\\EXECUTE": - // Execute SQL Commands or Queries - if(conn == null) - Console.WriteLine("Error: connection is not Open."); - else if(conn.State == ConnectionState.Closed) - Console.WriteLine("Error: connection is not Open."); - else { - if(build == null) - Console.WriteLine("Error: SQL Buffer is empty."); - else { - buff = build.ToString(); - ExecuteSql(buff); - } - build = null; - } - break; - case "\\EXENONQUERY": - if(conn == null) - Console.WriteLine("Error: connection is not Open."); - else if(conn.State == ConnectionState.Closed) - Console.WriteLine("Error: connection is not Open."); - else { - if(build == null) - Console.WriteLine("Error: SQL Buffer is empty."); - else { - buff = build.ToString(); - ExecuteSqlNonQuery(buff); - } - build = null; - } - break; - case "\\EXESCALAR": - if(conn == null) - Console.WriteLine("Error: connection is not Open."); - else if(conn.State == ConnectionState.Closed) - Console.WriteLine("Error: connection is not Open."); - else { - if(build == null) - Console.WriteLine("Error: SQL Buffer is empty."); - else { - buff = build.ToString(); - ExecuteSqlScalar(buff); - } - build = null; - } - break; - case "\\F": - SetupInputCommandsFile(parms); - break; - case "\\O": - SetupOutputResultsFile(parms); - break; - case "\\LOAD": - // Load file into SQL buffer: \load FILENAME - LoadBufferFromFile(parms); - break; - case "\\SAVE": - // Save SQL buffer to file: \save FILENAME - SaveBufferToFile(parms); - break; - case "\\H": - case "\\HELP": - // Help - ShowHelp(); - break; - case "\\DEFAULTS": - // show the defaults for provider and connection strings - ShowDefaults(); - break; - case "\\Q": - case "\\QUIT": - // Quit - break; - case "\\R": - // reset (clear) the query buffer - build = null; - break; - case "\\SET": - // sets internal variable - // \set name value - SetInternalVariable(parms); - break; - case "\\UNSET": - // deletes internal variable - // \unset name - UnSetInternalVariable(parms); - break; - case "\\VARIABLE": - ShowInternalVariable(parms); - break; - case "\\PRINT": - if(build == null) - Console.WriteLine("SQL Buffer is empty."); - else - Console.WriteLine("SQL Bufer\n" + buff); - default: - // Error - Console.WriteLine("Error: Unknown user command."); - break; - } - } - - public void DealWithArgs(string[] args) { - for(int a = 0; a < args.Length; a++) { - if(args[a].Substring(0,1).Equals("-")) { - string arg = args[a].ToUpper().Substring(1, args[a].Length - 1); - switch(arg) { - case "S": - silent = true; - break; - case "F": - if(a + 1 >= args.Length) - Console.WriteLine("Error: Missing FILENAME for -f switch"); - else { - inputFilename = args[a + 1]; - inputFilestream = new StreamReader(inputFilename); - } - break; - case "O": - if(a + 1 >= args.Length) - Console.WriteLine("Error: Missing FILENAME for -o switch"); - else { - outputFilename = args[a + 1]; - outputFilestream = new StreamWriter(outputFilename); - } - break; - default: - Console.WriteLine("Error: Unknow switch: " + args[a]); - break; - } - } - } - } - - public string ReadSqlSharpCommand() { - string entry = ""; - - if(inputFilestream == null) { - Console.Write("\nSQL# "); - entry = Console.ReadLine(); - } - else { - try { - entry = inputFilestream.ReadLine(); - if(entry == null) { - Console.WriteLine("Executing SQL# Commands from file done."); - } - } - catch(Exception e) { - Console.WriteLine("Error: Reading command from file."); - } - Console.Write("\nSQL# "); - entry = Console.ReadLine(); - } - return entry; - } - - public void Run(string[] args) { - - DealWithArgs(args); - - string entry = ""; - build = null; - - if(silent == false) { - Console.WriteLine("Welcome to SQL#. The interactive SQL command-line client "); - Console.WriteLine("for Mono.Data. See http://www.go-mono.com/ for more details.\n"); - - StartupHelp(); - ShowDefaults(); - } - - while(entry.ToUpper().Equals("\\Q") == false && - entry.ToUpper().Equals("\\QUIT") == false) { - - entry = ReadSqlSharpCommand(); - - if(entry.Substring(0,1).Equals("\\")) { - HandleCommand(entry); - } - else if(entry.IndexOf(";") >= 0) { - // most likely the end of SQL Command or Query found - // execute the SQL - if(conn == null) - Console.WriteLine("Error: connection is not Open."); - else if(conn.State == ConnectionState.Closed) - Console.WriteLine("Error: connection is not Open."); - else { - if(build == null) { - build = new StringBuilder(); - } - build.Append(entry); - build.Append("\n"); - buff = build.ToString(); - ExecuteSql(buff); - build = null; - } - } - else { - // most likely a part of a SQL Command or Query found - // append this part of the SQL - if(build == null) { - build = new StringBuilder(); - } - build.Append(entry + "\n"); - buff = build.ToString(); - } - } - CloseDataSource(); - if(outputFilestream != null) - outputFilestream.Close(); - } - } - - public class SqlSharpDriver { - public static void Main(string[] args) { - SqlSharpCli sqlCommandLineEngine = new SqlSharpCli(); - sqlCommandLineEngine.Run(args); - } - } -} diff --git a/mcs/class/System.Data/Test/System.Data.SqlTypes/AllTests.cs b/mcs/class/System.Data/Test/System.Data.SqlTypes/AllTests.cs deleted file mode 100644 index 41df325d247b6..0000000000000 --- a/mcs/class/System.Data/Test/System.Data.SqlTypes/AllTests.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// (C) Copyright 2002 Tim Coleman -// - -using NUnit.Framework; - -namespace MonoTests.System.Data.SqlTypes -{ - /// - /// Combines all unit tests for the System.Data.dll assembly - /// into one test suite. - /// - public class AllTests : TestCase - { - public AllTests (string name) : base (name) {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (new TestSuite (typeof (SqlInt32Test))); - return suite; - } - } - } -} diff --git a/mcs/class/System.Data/Test/System.Data.SqlTypes/SqlInt32Test.cs b/mcs/class/System.Data/Test/System.Data.SqlTypes/SqlInt32Test.cs deleted file mode 100644 index 4cd335ce17c70..0000000000000 --- a/mcs/class/System.Data/Test/System.Data.SqlTypes/SqlInt32Test.cs +++ /dev/null @@ -1,413 +0,0 @@ -// SqlInt32Test.cs - NUnit Test Cases for System.Data.SqlTypes.SqlInt32 -// -// Tim Coleman (tim@timcoleman.com) -// -// (C) Tim Coleman -// - -using NUnit.Framework; -using System; -using System.Data; -using System.Data.SqlTypes; - -namespace MonoTests.System.Data.SqlTypes -{ - public class SqlInt32Test : TestCase - { - - public SqlInt32Test() : base ("System.Data.SqlTypes.SqlInt32") {} - public SqlInt32Test(string name) : base(name) {} - - protected override void SetUp() {} - - protected override void TearDown() {} - - public static ITest Suite { - get { - return new TestSuite(typeof(SqlInt32)); - } - } - - public void TestCreate () - { - SqlInt32 foo = new SqlInt32 (5); - AssertEquals ("Test explicit cast to int", (int)foo, 5); - } - - public void TestAdd () - { - int a = 5; - int b = 7; - - SqlInt32 x; - SqlInt32 y; - SqlInt32 z; - - x = new SqlInt32 (a); - y = new SqlInt32 (b); - z = x + y; - AssertEquals ("Addition operator does not work correctly", z.Value, a + b); - z = SqlInt32.Add (x, y); - AssertEquals ("Addition function does not work correctly", z.Value, a + b); - } - - public void TestBitwiseAnd () - { - int a = 5; - int b = 7; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 y = new SqlInt32 (b); - SqlInt32 z = x & y; - AssertEquals ("Bitwise And operator does not work correctly", z.Value, a & b); - z = SqlInt32.BitwiseAnd (x, y); - AssertEquals ("Bitwise And function does not work correctly", z.Value, a & b); - } - - public void TestBitwiseOr () - { - int a = 5; - int b = 7; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 y = new SqlInt32 (b); - SqlInt32 z = x | y; - AssertEquals ("Bitwise Or operator does not work correctly", z.Value, a | b); - z = SqlInt32.BitwiseOr (x, y); - AssertEquals ("Bitwise Or function does not work correctly", z.Value, a | b); - } - - public void TestDivide () - { - int a = 5; - int b = 7; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 y = new SqlInt32 (b); - SqlInt32 z = x / y; - AssertEquals ("Division operator does not work correctly", z.Value, a / b); - z = SqlInt32.Divide (x, y); - AssertEquals ("Division function does not work correctly", z.Value, a / b); - } - - public void TestEquals () - { - SqlInt32 x; - SqlInt32 y; - - // Case 1: either is SqlInt32.Null - x = SqlInt32.Null; - y = new SqlInt32 (5); - AssertEquals ("Equality operator didn't return Null when one was Null.", x == y, SqlBoolean.Null); - AssertEquals ("Equality function didn't return Null when one was Null.", SqlInt32.Equals (x, y), SqlBoolean.Null); - - // Case 2: both are SqlInt32.Null - y = SqlInt32.Null; - AssertEquals ("Equality operator didn't return Null when both were Null.", x == y, SqlBoolean.Null); - AssertEquals ("Equality function didn't return Null when both were Null.", SqlInt32.Equals (x, y), SqlBoolean.Null); - - // Case 3: both are equal - x = new SqlInt32 (5); - y = new SqlInt32 (5); - AssertEquals ("Equality operator didn't return true when they were equal.", x == y, SqlBoolean.True); - AssertEquals ("Equality function didn't return true when they were equal.", SqlInt32.Equals (x, y), SqlBoolean.True); - - // Case 4: inequality - x = new SqlInt32 (5); - y = new SqlInt32 (6); - AssertEquals ("Equality operator didn't return false when they were not equal.", x == y, SqlBoolean.False); - AssertEquals ("Equality function didn't return false when they were not equal.", SqlInt32.Equals (x, y), SqlBoolean.False); - } - - public void TestGreaterThan () - { - SqlInt32 x; - SqlInt32 y; - - // Case 1: either is SqlInt32.Null - x = SqlInt32.Null; - y = new SqlInt32 (5); - AssertEquals ("Greater Than operator didn't return Null when one was Null.", x > y, SqlBoolean.Null); - AssertEquals ("Greater Than function didn't return Null when one was Null.", SqlInt32.GreaterThan (x, y), SqlBoolean.Null); - - // Case 2: both are SqlInt32.Null - y = SqlInt32.Null; - AssertEquals ("Greater Than operator didn't return Null when both were Null.", x > y, SqlBoolean.Null); - AssertEquals ("Greater Than function didn't return Null when both were Null.", SqlInt32.GreaterThan (x, y), SqlBoolean.Null); - - // Case 3: x > y - x = new SqlInt32 (5); - y = new SqlInt32 (4); - AssertEquals ("Greater than operator didn't return true when x > y.", x > y, SqlBoolean.True); - AssertEquals ("Greater than function didn't return true when x > y.", SqlInt32.GreaterThan (x,y), SqlBoolean.True); - - // Case 4: x < y - x = new SqlInt32 (5); - y = new SqlInt32 (6); - AssertEquals ("Greater than operator didn't return false when x < y.", x > y, SqlBoolean.False); - AssertEquals ("Greater than function didn't return false when x < y.", SqlInt32.GreaterThan (x,y), SqlBoolean.False); - } - - public void TestGreaterThanOrEqual () - { - SqlInt32 x; - SqlInt32 y; - - // Case 1: either is SqlInt32.Null - x = SqlInt32.Null; - y = new SqlInt32 (5); - AssertEquals ("Greater Than Or Equal operator didn't return Null when one was Null.", x >= y, SqlBoolean.Null); - AssertEquals ("Greater Than Or Equal function didn't return Null when one was Null.", SqlInt32.GreaterThanOrEqual (x, y), SqlBoolean.Null); - - // Case 2: both are SqlInt32.Null - y = SqlInt32.Null; - AssertEquals ("Greater Than Or Equal operator didn't return Null when both were Null.", x >= y, SqlBoolean.Null); - AssertEquals ("Greater Than Or Equal function didn't return Null when both were Null.", SqlInt32.GreaterThanOrEqual (x, y), SqlBoolean.Null); - - // Case 3: x > y - x = new SqlInt32 (5); - y = new SqlInt32 (4); - AssertEquals ("Greater than or equal operator didn't return true when x > y.", x >= y, SqlBoolean.True); - AssertEquals ("Greater than or equal function didn't return true when x > y.", SqlInt32.GreaterThanOrEqual (x,y), SqlBoolean.True); - - // Case 4: x < y - x = new SqlInt32 (5); - y = new SqlInt32 (6); - AssertEquals ("Greater than or equal operator didn't return false when x < y.", x >= y, SqlBoolean.False); - AssertEquals ("Greater than or equal function didn't return false when x < y.", SqlInt32.GreaterThanOrEqual (x,y), SqlBoolean.False); - - // Case 5: x == y - x = new SqlInt32 (5); - y = new SqlInt32 (5); - AssertEquals ("Greater than or equal operator didn't return true when x == y.", x >= y, SqlBoolean.True); - AssertEquals ("Greater than or equal function didn't return true when x == y.", SqlInt32.GreaterThanOrEqual (x,y), SqlBoolean.True); - } - - public void TestLessThan () - { - SqlInt32 x; - SqlInt32 y; - - // Case 1: either is SqlInt32.Null - x = SqlInt32.Null; - y = new SqlInt32 (5); - AssertEquals ("Less Than operator didn't return Null when one was Null.", x < y, SqlBoolean.Null); - AssertEquals ("Less Than function didn't return Null when one was Null.", SqlInt32.LessThan (x, y), SqlBoolean.Null); - - // Case 2: both are SqlInt32.Null - y = SqlInt32.Null; - AssertEquals ("Less Than operator didn't return Null when both were Null.", x < y, SqlBoolean.Null); - AssertEquals ("Less Than function didn't return Null when both were Null.", SqlInt32.LessThan (x, y), SqlBoolean.Null); - - // Case 3: x > y - x = new SqlInt32 (5); - y = new SqlInt32 (4); - AssertEquals ("Less than operator didn't return false when x > y.", x < y, SqlBoolean.False); - AssertEquals ("Less than function didn't return false when x > y.", SqlInt32.LessThan (x,y), SqlBoolean.False); - - // Case 4: x < y - x = new SqlInt32 (5); - y = new SqlInt32 (6); - AssertEquals ("Less than operator didn't return true when x < y.", x < y, SqlBoolean.True); - AssertEquals ("Less than function didn't return true when x < y.", SqlInt32.LessThan (x,y), SqlBoolean.True); - } - - public void TestLessThanOrEqual () - { - SqlInt32 x; - SqlInt32 y; - - // Case 1: either is SqlInt32.Null - x = SqlInt32.Null; - y = new SqlInt32 (5); - AssertEquals ("Less Than Or Equal operator didn't return Null when one was Null.", x <= y, SqlBoolean.Null); - AssertEquals ("Less Than Or Equal function didn't return Null when one was Null.", SqlInt32.LessThanOrEqual (x, y), SqlBoolean.Null); - - // Case 2: both are SqlInt32.Null - y = SqlInt32.Null; - AssertEquals ("Less Than Or Equal operator didn't return Null when both were Null.", x <= y, SqlBoolean.Null); - AssertEquals ("Less Than Or Equal function didn't return Null when both were Null.", SqlInt32.LessThanOrEqual (x, y), SqlBoolean.Null); - - // Case 3: x > y - x = new SqlInt32 (5); - y = new SqlInt32 (4); - AssertEquals ("Less than or equal operator didn't return false when x > y.", x <= y, SqlBoolean.False); - AssertEquals ("Less than or equal function didn't return false when x > y.", SqlInt32.LessThanOrEqual (x,y), SqlBoolean.False); - - // Case 4: x < y - x = new SqlInt32 (5); - y = new SqlInt32 (6); - AssertEquals ("Less than or equal operator didn't return true when x < y.", x <= y, SqlBoolean.True); - AssertEquals ("Less than or equal function didn't return true when x < y.", SqlInt32.LessThanOrEqual (x,y), SqlBoolean.True); - - // Case 5: x == y - x = new SqlInt32 (5); - y = new SqlInt32 (5); - AssertEquals ("Less than or equal operator didn't return true when x == y.", x <= y, SqlBoolean.True); - AssertEquals ("Less than or equal function didn't return true when x == y.", SqlInt32.LessThanOrEqual (x,y), SqlBoolean.True); - } - - public void TestMod () - { - int a = 5; - int b = 7; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 y = new SqlInt32 (b); - SqlInt32 z = x % y; - AssertEquals ("Modulus operator does not work correctly", z.Value, a % b); - z = SqlInt32.Mod (x, y); - AssertEquals ("Modulus function does not work correctly", z.Value, a % b); - } - - public void TestMultiply () - { - int a = 5; - int b = 7; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 y = new SqlInt32 (b); - SqlInt32 z = x * y; - AssertEquals ("Multiplication operator does not work correctly", z.Value, a * b); - z = SqlInt32.Multiply (x, y); - AssertEquals ("Multiplication function does not work correctly", z.Value, a * b); - } - - public void TestNotEquals () - { - SqlInt32 x; - SqlInt32 y; - - x = new SqlInt32 (5); - y = SqlInt32.Null; - - AssertEquals ("Not Equals operator does not return null when one or both of the parameters is Null.", x != y, SqlBoolean.Null); - AssertEquals ("Not Equals function does not return null when one or both of the parameters is Null.", SqlInt32.NotEquals (x, y), SqlBoolean.Null); - - y = new SqlInt32 (5); - AssertEquals ("Not Equals operator does not return false when x == y.", x != y, SqlBoolean.False); - AssertEquals ("Not Equals function does not return false when x == y.", SqlInt32.NotEquals (x, y), SqlBoolean.False); - - y = new SqlInt32 (6); - AssertEquals ("Not Equals operator does not return true when x != y.", x != y, SqlBoolean.True); - AssertEquals ("Not Equals function does not return true when x != y.", SqlInt32.NotEquals (x, y), SqlBoolean.True); - } - - public void TestOnesComplement () - { - int a = 5; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 z = ~x; - AssertEquals ("Ones Complement operator does not work correctly", z.Value, ~a); - z = SqlInt32.OnesComplement (x); - AssertEquals ("Ones Complement function does not work correctly", z.Value, ~a); - } - - public void TestIsNullProperty () - { - SqlInt32 n = SqlInt32.Null; - Assert ("Null is not defined correctly", n.IsNull); - } - - public void TestSubtract () - { - int a = 7; - int b = 5; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 y = new SqlInt32 (b); - SqlInt32 z = x - y; - AssertEquals ("Subtraction operator does not work correctly", z.Value, a - b); - z = SqlInt32.Subtract (x, y); - AssertEquals ("Subtraction function does not work correctly", z.Value, a - b); - } - - public void TestConversionMethods () - { - SqlInt32 x; - - // Case 1: SqlInt32.Null -> SqlBoolean == SqlBoolean.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlBoolean does not yield SqlBoolean.Null.", x.ToSqlBoolean (), SqlBoolean.Null ); - - // Case 2: SqlInt32.Zero -> SqlBoolean == False - x = SqlInt32.Zero; - AssertEquals ("SqlInt32.Zero -> SqlBoolean does not yield SqlBoolean.False.", x.ToSqlBoolean (), SqlBoolean.False ); - - // Case 3: SqlInt32(nonzero) -> SqlBoolean == True - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlBoolean does not yield SqlBoolean.True.", x.ToSqlBoolean (), SqlBoolean.True ); - - // Case 4: SqlInt32.Null -> SqlByte == SqlByte.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlByte does not yield SqlByte.Null.", x.ToSqlByte (), SqlByte.Null ); - - // Case 5: Test non-null conversion to SqlByte - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlByte does not yield a value of 27", x.ToSqlByte ().Value, (byte)27); - - // Case 6: SqlInt32.Null -> SqlDecimal == SqlDecimal.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlDecimal does not yield SqlDecimal.Null.", x.ToSqlDecimal (), SqlDecimal.Null ); - - // Case 7: Test non-null conversion to SqlDecimal - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlDecimal does not yield a value of 27", x.ToSqlDecimal ().Value, (decimal)27); - - // Case 8: SqlInt32.Null -> SqlDouble == SqlDouble.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlDouble does not yield SqlDouble.Null.", x.ToSqlDouble (), SqlDouble.Null ); - - // Case 9: Test non-null conversion to SqlDouble - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlDouble does not yield a value of 27", x.ToSqlDouble ().Value, (double)27); - - // Case 10: SqlInt32.Null -> SqlInt16 == SqlInt16.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlInt16 does not yield SqlInt16.Null.", x.ToSqlInt16 (), SqlInt16.Null ); - - // Case 11: Test non-null conversion to SqlInt16 - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlInt16 does not yield a value of 27", x.ToSqlInt16 ().Value, (short)27); - - // Case 12: SqlInt32.Null -> SqlInt64 == SqlInt64.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlInt64 does not yield SqlInt64.Null.", x.ToSqlInt64 (), SqlInt64.Null ); - - // Case 13: Test non-null conversion to SqlInt64 - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlInt64 does not yield a value of 27", x.ToSqlInt64 ().Value, (long)27); - - // Case 14: SqlInt32.Null -> SqlMoney == SqlMoney.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlMoney does not yield SqlMoney.Null.", x.ToSqlMoney (), SqlMoney.Null ); - - // Case 15: Test non-null conversion to SqlMoney - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlMoney does not yield a value of 27", x.ToSqlMoney ().Value, (decimal)27); - - // Case 16: SqlInt32.Null -> SqlSingle == SqlSingle.Null - x = SqlInt32.Null; - AssertEquals ("SqlInt32.Null -> SqlSingle does not yield SqlSingle.Null.", x.ToSqlSingle (), SqlSingle.Null ); - - // Case 17: Test non-null conversion to SqlSingle - x = new SqlInt32 (27); - AssertEquals ("SqlInt32 (27) -> SqlSingle does not yield a value of 27", x.ToSqlSingle ().Value, (float)27); - } - - public void TestXor () - { - int a = 5; - int b = 7; - - SqlInt32 x = new SqlInt32 (a); - SqlInt32 y = new SqlInt32 (b); - SqlInt32 z = x ^ y; - AssertEquals ("Xor operator does not work correctly", z.Value, a ^ b); - z = SqlInt32.Xor (x, y); - AssertEquals ("Xor function does not work correctly", z.Value, a ^ b); - } - - } -} diff --git a/mcs/class/System.Data/Test/System.Data/AllTests.cs b/mcs/class/System.Data/Test/System.Data/AllTests.cs deleted file mode 100644 index 35e6cc43c29f6..0000000000000 --- a/mcs/class/System.Data/Test/System.Data/AllTests.cs +++ /dev/null @@ -1,34 +0,0 @@ -// MonoTests.System.Data.AllTests.cs -// -// Author: -// Rodrigo Moya -// -// (C) Copyright 2002 Rodrigo Moya -// - -using NUnit.Framework; - -namespace MonoTests.System.Data -{ - /// - /// Combines all unit tests for the System.Data.dll assembly - /// into one test suite. - /// - public class AllTests : TestCase - { - public AllTests (string name) : base (name) { } - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (new TestSuite (typeof (DataColumnTest))); - suite.AddTest (new TestSuite (typeof (UniqueConstraintTest))); - suite.AddTest (new TestSuite (typeof (ConstraintTest))); - suite.AddTest (new TestSuite (typeof (ConstraintCollectionTest))); - suite.AddTest (new TestSuite (typeof (ForeignKeyConstraintTest))); - suite.AddTest (new TestSuite (typeof (DataTableTest))); - return suite; - } - } - } -} diff --git a/mcs/class/System.Data/Test/System.Data/ConstraintCollectionTest.cs b/mcs/class/System.Data/Test/System.Data/ConstraintCollectionTest.cs deleted file mode 100644 index 71efd493698ba..0000000000000 --- a/mcs/class/System.Data/Test/System.Data/ConstraintCollectionTest.cs +++ /dev/null @@ -1,323 +0,0 @@ -// ConstraintCollection.cs - NUnit Test Cases for testing the ConstraintCollection -// class. -// -// -// Franklin Wise (gracenote@earthlink.net) -// -// (C) Franklin Wise -// - - -using NUnit.Framework; -using System; -using System.Data; - - -namespace MonoTests.System.Data -{ - - - public class ConstraintCollectionTest : TestCase - { - private DataTable _table; - private DataTable _table2; - private Constraint _constraint1; - private Constraint _constraint2; - - public ConstraintCollectionTest() : base ("MonoTests.System.Data.ConstraintCollectionTest") {} - public ConstraintCollectionTest(string name) : base(name) {} - - public void PublicSetup(){SetUp();} - protected override void SetUp() - { - //Setup DataTable - _table = new DataTable("TestTable"); - _table.Columns.Add("Col1",typeof(int)); - _table.Columns.Add("Col2",typeof(int)); - _table.Columns.Add("Col3",typeof(int)); - - _table2 = new DataTable("TestTable"); - _table2.Columns.Add("Col1",typeof(int)); - _table2.Columns.Add("Col2",typeof(int)); - - //Use UniqueConstraint to test Constraint Base Class - _constraint1 = new UniqueConstraint(_table.Columns[0],false); - _constraint2 = new UniqueConstraint(_table.Columns[1],false); - } - - protected override void TearDown() {} - - public static ITest Suite - { - get - { - return new TestSuite(typeof(ConstraintCollectionTest)); - } - } - - public void TestAdd() - { - ConstraintCollection col = _table.Constraints; - col.Add(_constraint1); - col.Add(_constraint2); - - Assertion.AssertEquals("Count doesn't equal added.",2, col.Count); - } - - public void TestAddExceptions() - { - ConstraintCollection col = _table.Constraints; - - //null - try - { - col.Add(null); - Assertion.Fail("B1: Failed to throw ArgumentNullException."); - } - catch (ArgumentNullException) {} - catch (AssertionFailedError exc) {throw exc;} - catch - { - Assertion.Fail("A1: Wrong exception type"); - } - - //duplicate name - try - { - _constraint1.ConstraintName = "Dog"; - _constraint2.ConstraintName = "dog"; //case insensitive - col.Add(_constraint1); - col.Add(_constraint2); - Assertion.Fail("Failed to throw Duplicate name exception."); - } - catch (DuplicateNameException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("A2: Wrong exception type. " + exc.ToString()); - } - - //Constraint Already exists - try - { - col.Add(_constraint1); - Assertion.Fail("B2: Failed to throw ArgumentException."); - } - catch (ArgumentException) {} - catch (AssertionFailedError exc) {throw exc;} - catch - { - Assertion.Fail("A3: Wrong exception type"); - } - } - - public void TestIndexer() - { - Constraint c1 = new UniqueConstraint(_table.Columns[0]); - Constraint c2 = new UniqueConstraint(_table.Columns[1]); - - c1.ConstraintName = "first"; - c2.ConstraintName = "second"; - - - _table.Constraints.Add(c1); - _table.Constraints.Add(c2); - - Assertion.AssertSame("A1", c1, _table.Constraints[0]); - Assertion.AssertSame("A2", c2, _table.Constraints[1]); - - Assertion.AssertSame("A3", c1, _table.Constraints["first"]); - Assertion.AssertSame("A4", c2, _table.Constraints["sEcond"]); //case insensitive - - } - - public void TestIndexOf() - { - Constraint c1 = new UniqueConstraint(_table.Columns[0]); - Constraint c2 = new UniqueConstraint(_table.Columns[1]); - - c1.ConstraintName = "first"; - c2.ConstraintName = "second"; - - _table.Constraints.Add(c1); - _table.Constraints.Add(c2); - - Assertion.AssertEquals("A1", 0, _table.Constraints.IndexOf(c1)); - Assertion.AssertEquals("A2", 1, _table.Constraints.IndexOf(c2)); - Assertion.AssertEquals("A3", 0, _table.Constraints.IndexOf("first")); - Assertion.AssertEquals("A4", 1, _table.Constraints.IndexOf("second")); - } - - public void TestContains() - { - Constraint c1 = new UniqueConstraint(_table.Columns[0]); - Constraint c2 = new UniqueConstraint(_table.Columns[1]); - - c1.ConstraintName = "first"; - c2.ConstraintName = "second"; - - _table.Constraints.Add(c1); - - Assertion.Assert("A1", _table.Constraints.Contains(c1.ConstraintName)); //true - Assertion.Assert("A2", _table.Constraints.Contains(c2.ConstraintName) == false); //doesn't contain - } - - public void TestIndexerFailures() - { - _table.Constraints.Add(new UniqueConstraint(_table.Columns[0])); - - //This doesn't throw - Assertion.AssertNull(_table.Constraints["notInCollection"]); - - //Index too high - try - { - Constraint c = _table.Constraints[_table.Constraints.Count]; - Assertion.Fail("B1: Failed to throw IndexOutOfRangeException."); - } - catch (IndexOutOfRangeException) {} - catch (AssertionFailedError exc) {throw exc;} - catch - { - Assertion.Fail("A1: Wrong exception type"); - } - - //Index too low - try - { - Constraint c = _table.Constraints[-1]; - Assertion.Fail("B2: Failed to throw IndexOutOfRangeException."); - } - catch (IndexOutOfRangeException) {} - catch (AssertionFailedError exc) {throw exc;} - catch - { - Assertion.Fail("A2: Wrong exception type"); - } - - } - - //TODO: Implementation not ready for this test yet -// public void TestAddFkException1() -// { -// DataSet ds = new DataSet(); -// ds.Tables.Add(_table); -// ds.Tables.Add(_table2); -// -// _table.Rows.Add(new object [] {1}); -// _table.Rows.Add(new object [] {1}); -// -// //FKC: can't create unique constraint because duplicate values already exist -// try -// { -// ForeignKeyConstraint fkc = new ForeignKeyConstraint( _table.Columns[0], -// _table2.Columns[0]); -// -// _table2.Constraints.Add(fkc); //should throw -// Assertion.Fail("B1: Failed to throw ArgumentException."); -// } -// catch (ArgumentException) {} -// catch (AssertionFailedError exc) {throw exc;} -// catch (Exception exc) -// { -// Assertion.Fail("A1: Wrong Exception type. " + exc.ToString()); -// } -// -// -// } - - - //TODO: Implementation not ready for this test yet -// public void TestAddFkException2() -// { -// //Foreign key rules only work when the tables -// //are apart of the dataset -// DataSet ds = new DataSet(); -// ds.Tables.Add(_table); -// ds.Tables.Add(_table2); -// -// _table.Rows.Add(new object [] {1}); -// -// // will need a matching parent value in -// // _table -// _table2.Rows.Add(new object [] {3}); -// -// -// //FKC: no matching parent value -// try -// { -// ForeignKeyConstraint fkc = new ForeignKeyConstraint( _table.Columns[0], -// _table2.Columns[0]); -// -// _table2.Constraints.Add(fkc); //should throw -// Assertion.Fail("B1: Failed to throw ArgumentException."); -// } -// catch (ArgumentException) {} -// catch (AssertionFailedError exc) {throw exc;} -// catch (Exception exc) -// { -// Assertion.Fail("A1: Wrong Exception type. " + exc.ToString()); -// } -// -// -// } - - - //TODO: Implementation not ready for this test yet -// public void TestAddUniqueExceptions() -// { -// -// -// //UC: can't create unique constraint because duplicate values already exist -// try -// { -// _table.Rows.Add(new object [] {1}); -// _table.Rows.Add(new object [] {1}); -// UniqueConstraint uc = new UniqueConstraint( _table.Columns[0]); -// -// _table.Constraints.Add(uc); //should throw -// Assertion.Fail("B1: Failed to throw ArgumentException."); -// } -// catch (ArgumentException) {} -// catch (AssertionFailedError exc) {throw exc;} -// catch (Exception exc) -// { -// Assertion.Fail("A1: Wrong Exception type. " + exc.ToString()); -// } -// } - - public void TestAddRange() - { - } - - public void TestClear() - { - - } - - public void TestCanRemove() - { - - } - - public void TestCollectionChanged() - { - - } - - public void TestRemoveAt() - { - } - - public void TestRemove() - { - } - - - public void TestRemoveExceptions() - { - - - } - } -} diff --git a/mcs/class/System.Data/Test/System.Data/ConstraintTest.cs b/mcs/class/System.Data/Test/System.Data/ConstraintTest.cs deleted file mode 100644 index e88883a4314fd..0000000000000 --- a/mcs/class/System.Data/Test/System.Data/ConstraintTest.cs +++ /dev/null @@ -1,135 +0,0 @@ -// ConstraintTest.cs - NUnit Test Cases for testing the abstract class System.Data.Constraint -// The tests use an inherited class (UniqueConstraint) to test the Constraint class. -// -// Franklin Wise -// -// (C) 2002 Franklin Wise -// - -using NUnit.Framework; -using System; -using System.Data; - -namespace MonoTests.System.Data -{ -// public class MyUniqueConstraint: UniqueConstraint { -// public MyUniqueConstraint(DataColumn col, bool pk): base(col,pk){} -// string _myval = ""; -// public override string ConstraintName { -// get{ -// return _myval; -// return base.ConstraintName; -// } -// set{ -// Console.WriteLine("NameSet = " + value); -// base.ConstraintName = value; -// _myval = value; -// } -// } -// } - - public class ConstraintTest : TestCase - { - private DataTable _table; - private Constraint _constraint1; - private Constraint _constraint2; - - public ConstraintTest() : base ("MonoTests.System.Data.ConstraintTest") {} - public ConstraintTest(string name) : base(name) {} - - public void PublicSetup(){SetUp();} - protected override void SetUp() { - - //Setup DataTable - _table = new DataTable("TestTable"); - _table.Columns.Add("Col1",typeof(int)); - _table.Columns.Add("Col2",typeof(int)); - - //Use UniqueConstraint to test Constraint Base Class - _constraint1 = new UniqueConstraint(_table.Columns[0],false); - _constraint2 = new UniqueConstraint(_table.Columns[1],false); - - } - - - protected override void TearDown() {} - - public static ITest Suite { - get { - return new TestSuite(typeof(ConstraintTest)); - } - } - - public void TestSetConstraintNameNullOrEmptyExceptions() { - bool exceptionCaught = false; - string name = null; - - _table.Constraints.Add (_constraint1); - - Console.WriteLine(_constraint1.ConstraintName); - - for (int i = 0; i <= 1; i++) { - exceptionCaught = false; - if (0 == i) name = null; - if (1 == i) name = String.Empty; - - try { - - //Next line should throw ArgumentException - //Because ConstraintName can't be set to null - //or empty while the constraint is part of the - //collection - _constraint1.ConstraintName = name; - } - catch (ArgumentException){ - exceptionCaught = true; - } - catch { - Assertion.Fail("Wrong exception type thrown."); - } - - Assertion.Assert("Failed to throw exception.", - true == exceptionCaught); - } - } - - public void TestSetConstraintNameDuplicateException() { - _constraint1.ConstraintName = "Dog"; - _constraint2.ConstraintName = "Cat"; - - _table.Constraints.Add(_constraint1); - _table.Constraints.Add(_constraint2); - - try { - //Should throw DuplicateNameException - _constraint2.ConstraintName = "Dog"; - - Assertion.Fail("Failed to throw " + - " DuplicateNameException exception."); - } - catch (DuplicateNameException) {} - catch (AssertionFailedError exc) {throw exc;} - catch { - Assertion.Fail("Wrong exception type thrown."); - } - - } - - public void TestToString() { - _constraint1.ConstraintName = "Test"; - Assertion.Assert("ToString is the same as constraint name.", _constraint1.ConstraintName.CompareTo( _constraint1.ToString()) == 0); - - _constraint1.ConstraintName = null; - Assertion.AssertNotNull("ToString should return empty.",_constraint1.ToString()); - } - - public void TestGetExtendedProperties() { - PropertyCollection col = _constraint1.ExtendedProperties as - PropertyCollection; - - Assertion.AssertNotNull("ExtendedProperties returned null or didn't " + - "return the correct type", col); - } - - } -} diff --git a/mcs/class/System.Data/Test/System.Data/DataColumnTest.cs b/mcs/class/System.Data/Test/System.Data/DataColumnTest.cs deleted file mode 100644 index c6509fcf49723..0000000000000 --- a/mcs/class/System.Data/Test/System.Data/DataColumnTest.cs +++ /dev/null @@ -1,32 +0,0 @@ -// DataColumnTest.cs - NUnit Test Cases for System.Data.DataColumn -// -// Author: -// Rodrigo Moya -// -// (C) Copyright 2002 Rodrigo Moya -// - -using NUnit.Framework; -using System; -using System.Data; - -namespace MonoTests.System.Data -{ - public class DataColumnTest : TestCase - { - public DataColumnTest () : base ("System.Data.DataColumn") {} - public DataColumnTest (string name) : base (name) {} - - protected override void SetUp () {} - - protected override void TearDown() {} - - public static ITest Suite { - get { - return new TestSuite (typeof (DataColumnTest)); - } - } - - public void TestBlank() {} //Remove me when we add some tests - } -} diff --git a/mcs/class/System.Data/Test/System.Data/DataTableTest.cs b/mcs/class/System.Data/Test/System.Data/DataTableTest.cs deleted file mode 100644 index 7f5d884dcbb01..0000000000000 --- a/mcs/class/System.Data/Test/System.Data/DataTableTest.cs +++ /dev/null @@ -1,58 +0,0 @@ -// DataTableTest.cs - NUnit Test Cases for testing the DataTable -// -// Franklin Wise (gracenote@earthlink.net) -// -// (C) Franklin Wise -// - -using NUnit.Framework; -using System; -using System.Data; - -namespace MonoTests.System.Data -{ - - public class DataTableTest : TestCase - { - - public DataTableTest() : base ("MonoTest.System.Data.DataTableTest") {} - public DataTableTest(string name) : base(name) {} - - protected override void SetUp() {} - - protected override void TearDown() {} - - public static ITest Suite - { - get - { - return new TestSuite(typeof(DataTableTest)); - } - } - - public void TestCtor() - { - DataTable dt = new DataTable(); - - Assertion.AssertEquals("CaseSensitive must be false." ,false,dt.CaseSensitive); - Assertion.Assert(dt.Columns != null); - //Assertion.Assert(dt.ChildRelations != null); - Assertion.Assert(dt.Constraints != null); - Assertion.Assert(dt.DataSet == null); - Assertion.Assert(dt.DefaultView != null); - Assertion.Assert(dt.DisplayExpression == ""); - Assertion.Assert(dt.ExtendedProperties != null); - Assertion.Assert(dt.HasErrors == false); - Assertion.Assert(dt.Locale != null); - Assertion.Assert(dt.MinimumCapacity == 50); //LAMESPEC: - Assertion.Assert(dt.Namespace == ""); - //Assertion.Assert(dt.ParentRelations != null); - Assertion.Assert(dt.Prefix == ""); - Assertion.Assert(dt.PrimaryKey != null); - Assertion.Assert(dt.Rows != null); - Assertion.Assert(dt.Site == null); - Assertion.Assert(dt.TableName == ""); - - } - } -} diff --git a/mcs/class/System.Data/Test/System.Data/ForeignKeyConstraintTest.cs b/mcs/class/System.Data/Test/System.Data/ForeignKeyConstraintTest.cs deleted file mode 100644 index c16718cf0d073..0000000000000 --- a/mcs/class/System.Data/Test/System.Data/ForeignKeyConstraintTest.cs +++ /dev/null @@ -1,202 +0,0 @@ -// ForeignKeyConstraintTest.cs - NUnit Test Cases for [explain here] -// -// Franklin Wise (gracenote@earthlink.net) -// -// (C) Franklin Wise -// - - -using NUnit.Framework; -using System; -using System.Data; - -namespace MonoTests.System.Data -{ - - public class ForeignKeyConstraintTest : TestCase - { - private DataSet _ds; - - //NOTE: fk constraints only work when the table is part of a DataSet - - public ForeignKeyConstraintTest() : base ("MonoTests.System.Data.ForeignKeyConstraintTest") {} - public ForeignKeyConstraintTest(string name) : base(name) {} - - protected override void SetUp() - { - _ds = new DataSet(); - - //Setup DataTable - DataTable table; - table = new DataTable("TestTable"); - table.Columns.Add("Col1",typeof(int)); - table.Columns.Add("Col2",typeof(int)); - table.Columns.Add("Col3",typeof(int)); - - _ds.Tables.Add(table); - - table = new DataTable("TestTable2"); - table.Columns.Add("Col1",typeof(int)); - table.Columns.Add("Col2",typeof(int)); - table.Columns.Add("Col3",typeof(int)); - - _ds.Tables.Add(table); - - } - - protected override void TearDown() {} - - public static ITest Suite - { - get - { - return new TestSuite(typeof(ForeignKeyConstraintTest)); - } - } - - - public void TestCtorExceptions () - { - ForeignKeyConstraint fkc; - - DataTable localTable = new DataTable(); - localTable.Columns.Add("Col1",typeof(int)); - localTable.Columns.Add("Col2",typeof(bool)); - - //Null - try - { - fkc = new ForeignKeyConstraint((DataColumn)null,(DataColumn)null); - Assertion.Fail("Failed to throw ArgumentNullException."); - } - catch (ArgumentNullException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("A1: Wrong Exception type. " + exc.ToString()); - } - - //zero length collection - try - { - fkc = new ForeignKeyConstraint(new DataColumn[]{},new DataColumn[]{}); - Assertion.Fail("B1: Failed to throw ArgumentException."); - } - catch (ArgumentException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("A2: Wrong Exception type. " + exc.ToString()); - } - - //different datasets - try - { - fkc = new ForeignKeyConstraint(_ds.Tables[0].Columns[0], localTable.Columns[0]); - Assertion.Fail("Failed to throw InvalidOperationException."); - } - catch (InvalidOperationException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("A3: Wrong Exception type. " + exc.ToString()); - } - - //different dataTypes - try - { - fkc = new ForeignKeyConstraint(_ds.Tables[0].Columns[0], localTable.Columns[1]); - Assertion.Fail("Failed to throw InvalidOperationException."); - } - catch (InvalidOperationException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("A4: Wrong Exception type. " + exc.ToString()); - } - - - } - public void TestCtorExceptions2 () - { - DataColumn col = new DataColumn("MyCol1",typeof(int)); - - ForeignKeyConstraint fkc; - - //Columns must belong to a Table - try - { - fkc = new ForeignKeyConstraint(col, _ds.Tables[0].Columns[0]); - Assertion.Fail("FTT1: Failed to throw ArgumentException."); - } - catch (ArgumentException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("WET1: Wrong Exception type. " + exc.ToString()); - } - - //Columns must belong to the same table - //InvalidConstraintException - - DataColumn [] difTable = new DataColumn [] {_ds.Tables[0].Columns[2], - _ds.Tables[1].Columns[0]}; - try - { - fkc = new ForeignKeyConstraint(difTable,new DataColumn[] { - _ds.Tables[0].Columns[1], - _ds.Tables[0].Columns[0]}); - - Assertion.Fail("FTT2: Failed to throw InvalidConstraintException."); - } - catch (InvalidConstraintException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("WET2: Wrong Exception type. " + exc.ToString()); - } - - - //parent columns and child columns should be the same length - //ArgumentException - DataColumn [] twoCol = - new DataColumn [] {_ds.Tables[0].Columns[0],_ds.Tables[0].Columns[1]}; - - - try - { - fkc = new ForeignKeyConstraint(twoCol, - new DataColumn[] { _ds.Tables[0].Columns[0]}); - - Assertion.Fail("FTT3: Failed to throw ArgumentException."); - } - catch (ArgumentException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("WET3: Wrong Exception type. " + exc.ToString()); - } - - //InvalidOperation: Parent and child are the same column. - try - { - fkc = new ForeignKeyConstraint( _ds.Tables[0].Columns[0], - _ds.Tables[0].Columns[0] ); - - Assertion.Fail("FTT4: Failed to throw InvalidOperationException."); - } - catch (InvalidOperationException) {} - catch (AssertionFailedError exc) {throw exc;} - catch (Exception exc) - { - Assertion.Fail("WET4: Wrong Exception type. " + exc.ToString()); - } - - } - - public void TestEquals() - { - //TODO: - } - } -} diff --git a/mcs/class/System.Data/Test/System.Data/UniqueConstraintTest.cs b/mcs/class/System.Data/Test/System.Data/UniqueConstraintTest.cs deleted file mode 100644 index 590720d4c7d73..0000000000000 --- a/mcs/class/System.Data/Test/System.Data/UniqueConstraintTest.cs +++ /dev/null @@ -1,181 +0,0 @@ -// UniqueConstraintTest.cs - NUnit Test Cases for testing the class System.Data.UniqueConstraint -// -// Franklin Wise -// -// (C) 2002 Franklin Wise -// - -using NUnit.Framework; -using System; -using System.Data; - -namespace MonoTests.System.Data -{ - public class UniqueConstraintTest : TestCase - { - private DataTable _table; - - public UniqueConstraintTest() : base ("MonoTests.System.Data.UniqueConstraintTest") {} - public UniqueConstraintTest(string name) : base(name) {} - - public void PublicSetup() {this.SetUp();} - protected override void SetUp() { - - //Setup DataTable - _table = new DataTable("TestTable"); - _table.Columns.Add("Col1",typeof(int)); - _table.Columns.Add("Col2",typeof(int)); - _table.Columns.Add("Col3",typeof(int)); - - } - - protected override void TearDown() {} - - public static ITest Suite { - get { - return new TestSuite(typeof(UniqueConstraintTest)); - } - } - - public void TestCtorExceptions() { - //UniqueConstraint(string name, DataColumn column, bool isPrimaryKey) - - UniqueConstraint cst; - - //must have DataTable exception - try{ - //Should throw an ArgumentException - //Can only add DataColumns that are attached - //to a DataTable - cst = new UniqueConstraint(new DataColumn("")); - - Assertion.Fail("Failed to throw ArgumentException."); - } - catch (ArgumentException) {} - catch (AssertionFailedError exc) {throw exc;} - catch { - Assertion.Fail("A1: Wrong Exception type."); - } - - //Null exception - try { - //Should throw argument null exception - cst = new UniqueConstraint((DataColumn)null); - } - catch (ArgumentNullException) {} - catch (AssertionFailedError exc) {throw exc;} - catch { - Assertion.Fail("A2: Wrong Exception type."); - } - - - try { - //Should throw exception - //must have at least one valid column - //InvalidConstraintException is thrown by msft ver - cst = new UniqueConstraint(new DataColumn [] {}); - - Assertion.Fail("B1: Failed to throw InvalidConstraintException."); - } - catch (InvalidConstraintException) {} - catch (AssertionFailedError exc) {throw exc;} - catch { - Assertion.Fail("A3: Wrong Exception type."); - } - - DataTable dt = new DataTable("Table1"); - dt.Columns.Add("Col1",typeof(int)); - DataTable dt2 = new DataTable("Table2"); - dt2.Columns.Add("Col1",typeof(int)); - - DataSet ds = new DataSet(); - ds.Tables.Add(dt); - ds.Tables.Add(dt2); - - //columns from two different tables. - try { - //next line should throw - //can't have columns from two different tables - cst = new UniqueConstraint(new DataColumn [] { - dt.Columns[0], dt2.Columns[0]}); - - Assertion.Fail("B2: Failed to throw InvalidConstraintException"); - } - catch (InvalidConstraintException) {} - catch (AssertionFailedError exc) {throw exc;} - catch { - Assertion.Fail("A4: Wrong Exception type."); - } - - - - } - - - public void TestCtor() { - - UniqueConstraint cst; - - //Success case - try { - cst = new UniqueConstraint(_table.Columns[0]); - } - catch (Exception exc) { - Assertion.Fail("A1: Failed to ctor. " + exc.ToString()); - } - - - try { - cst = new UniqueConstraint( new DataColumn [] { - _table.Columns[0], _table.Columns[1]}); - } - catch (Exception exc) { - Assertion.Fail("A2: Failed to ctor. " + exc.ToString()); - } - - - //table is set on ctor - cst = new UniqueConstraint(_table.Columns[0]); - - Assertion.AssertSame("B1", cst.Table, _table); - - //table is set on ctor - cst = new UniqueConstraint( new DataColumn [] { - _table.Columns[0], _table.Columns[1]}); - Assertion.AssertSame ("B2", cst.Table, _table); - - cst = new UniqueConstraint("MyName",_table.Columns[0],true); - - //Test ctor parm set for ConstraintName & IsPrimaryKey - Assertion.AssertEquals("ConstraintName not set in ctor.", - "MyName", cst.ConstraintName); - Assertion.AssertEquals("IsPrimaryKey not set in ctor.", - true, cst.IsPrimaryKey); - - } - - public void TestEquals() { - UniqueConstraint cst = new UniqueConstraint( new DataColumn [] { - _table.Columns[0], _table.Columns[1]}); - UniqueConstraint cst2 = new UniqueConstraint( new DataColumn [] { - _table.Columns[1], _table.Columns[0]}); - - UniqueConstraint cst3 = new UniqueConstraint(_table.Columns[0]); - UniqueConstraint cst4 = new UniqueConstraint(_table.Columns[2]); - - //true - Assertion.Assert(cst.Equals(cst2) == true); - - //false - Assertion.Assert("A1", cst.Equals(23) == false); - Assertion.Assert("A2", cst.Equals(cst3) == false); - Assertion.Assert("A3", cst3.Equals(cst) == false); - Assertion.Assert("A4", cst.Equals(cst4) == false); - - } - - - - - } -} diff --git a/mcs/class/System.Data/Test/System.Data_test.build b/mcs/class/System.Data/Test/System.Data_test.build deleted file mode 100644 index ce77e02c53910..0000000000000 --- a/mcs/class/System.Data/Test/System.Data_test.build +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Data/Test/TestExecuteScalar.cs b/mcs/class/System.Data/Test/TestExecuteScalar.cs deleted file mode 100644 index e350a3c61c5a7..0000000000000 --- a/mcs/class/System.Data/Test/TestExecuteScalar.cs +++ /dev/null @@ -1,149 +0,0 @@ -// -// Test/ExecuteScalar.cs -// -// Test the ExecuteScalar method in the -// System.Data.SqlClient.SqlCommand class -// -// ExecuteScalar is meant to be lightweight -// compared to ExecuteReader and only -// returns one column and one row as one object. -// -// It is meant for SELECT SQL statements that -// use an aggregate/group by function, such as, -// count(), sum(), avg(), min(), max(), etc... -// -// The object that is returned you do an -// explicit cast. For instance, to retrieve a -// Count of rows in a PostgreSQL table, you -// would use "SELECT COUNT(*) FROM SOMETABLE" -// which returns a number of oid type 20 which is -// a PostgreSQL int8 which maps to -// the .NET type System.Int64. You -// have to explicitly convert this returned object -// to the type you are expecting, such as, an Int64 -// is returned for a COUNT(). -// would be: -// Int64 myCount = (Int64) cmd.ExecuteScalar(selectStatement); -// -// Author: -// Daniel Morgan -// -// (C) 2002 Daniel Morgan -// - -using System; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient -{ - class TestSqlDataReader - { - - static void Test() { - SqlConnection con = null; - SqlCommand cmd = null; - - String connectionString = null; - String sql = null; - - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; - - try { - string maxStrValue; - - con = new SqlConnection(connectionString); - con.Open(); - - // test SQL Query for an aggregate count(*) - sql = "select count(*) " + - "from sometable"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - Int64 rowCount = (Int64) cmd.ExecuteScalar(); - Console.WriteLine("Row Count: " + rowCount); - - // test SQL Query for an aggregate min(text) - sql = "select max(tdesc) " + - "from sometable"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - string minValue = (string) cmd.ExecuteScalar(); - Console.WriteLine("Max Value: " + minValue); - - // test SQL Query for an aggregate max(text) - sql = "select min(tdesc) " + - "from sometable"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - maxStrValue = (string) cmd.ExecuteScalar(); - Console.WriteLine("Max Value: " + maxStrValue); - - // test SQL Query for an aggregate max(int) - sql = "select min(aint4) " + - "from sometable"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - int maxIntValue = (int) cmd.ExecuteScalar(); - Console.WriteLine("Max Value: " + maxIntValue.ToString()); - - // test SQL Query for an aggregate avg(int) - sql = "select avg(aint4) " + - "from sometable"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - decimal avgDecValue = (decimal) cmd.ExecuteScalar(); - Console.WriteLine("Max Value: " + avgDecValue.ToString()); - - // test SQL Query for an aggregate sum(int) - sql = "select sum(aint4) " + - "from sometable"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - Int64 summed = (Int64) cmd.ExecuteScalar(); - Console.WriteLine("Max Value: " + summed); - - // test a SQL Command is (INSERT, UPDATE, DELETE) - sql = "insert into sometable " + - "(tid,tdesc,aint4,atimestamp) " + - "values('qqq','www',234,NULL)"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - object objResult1 = cmd.ExecuteScalar(); - if(objResult1 == null) - Console.WriteLine("Result is null. (correct)"); - else - Console.WriteLine("Result is not null. (not correct)"); - - // test a SQL Command is not (INSERT, UPDATE, DELETE) - sql = "SET DATESTYLE TO 'ISO'"; - cmd = new SqlCommand(sql,con); - Console.WriteLine("Executing: " + sql); - object objResult2 = cmd.ExecuteScalar(); - if(objResult2 == null) - Console.WriteLine("Result is null. (correct)"); - else - Console.WriteLine("Result is not null. (not correct)"); - - } - catch(Exception e) { - Console.WriteLine(e.ToString()); - } - finally { - if(con != null) - if(con.State == ConnectionState.Open) - con.Close(); - } - } - - [STAThread] - static void Main(string[] args) - { - Test(); - } - - } -} diff --git a/mcs/class/System.Data/Test/TestSqlDataAdapter.cs b/mcs/class/System.Data/Test/TestSqlDataAdapter.cs deleted file mode 100644 index 684bfa834858d..0000000000000 --- a/mcs/class/System.Data/Test/TestSqlDataAdapter.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// TestSqlDataAdapter - tests SqlDataAdapter, DbDataAdapter, DataSet, DataTable, -// DataRow, and DataRowCollection by retrieving data -// -// Authors: -// Tim Coleman -// Daniel Morgan -// -// (c)copyright 2002 Tim Coleman -// (c)copyright 2002 Daniel Morgan -// - -using System; -using System.Collections; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient -{ - public class TestSqlDataAdapter - { - public static void Test() - { - string connectionString; - string sqlQuery; - SqlDataAdapter adapter; - DataSet dataSet = null; - - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; - - sqlQuery = "select * from pg_tables"; - - System.Console.WriteLine ("new SqlDataAdapter..."); - adapter = new SqlDataAdapter (sqlQuery, - connectionString); - - System.Console.WriteLine ("new DataSet..."); - dataSet = new DataSet (); - - try { - System.Console.WriteLine("Fill..."); - adapter.Fill (dataSet); - - } - catch (NotImplementedException e) { - Console.WriteLine("Exception Caught: " + e); - } - - System.Console.WriteLine ("get row..."); - if (dataSet != null) { - foreach (DataRow row in dataSet.Tables["Table"].Rows) - Console.WriteLine("tablename: " + row["tablename"]); - System.Console.WriteLine("Done."); - } - - } - - public static void Main() - { - Test(); - } - } -} diff --git a/mcs/class/System.Data/Test/TestSqlDataReader.cs b/mcs/class/System.Data/Test/TestSqlDataReader.cs deleted file mode 100644 index 17a61189de106..0000000000000 --- a/mcs/class/System.Data/Test/TestSqlDataReader.cs +++ /dev/null @@ -1,181 +0,0 @@ -// -// Test/SqlDataRead.cs -// -// Test to do read a simple forward read only record set. -// Using SqlCommand.ExecuteReader() to return a SqlDataReader -// which can be used to Read a row -// and Get a String or Int32. -// -// Author: -// Daniel Morgan -// -// (C) 2002 Daniel Morgan -// - -using System; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient { - class TestSqlDataReader { - - static void Test(SqlConnection con, string sql, - CommandType cmdType, CommandBehavior behavior, - string testDesc) - { - SqlCommand cmd = null; - SqlDataReader rdr = null; - - int c; - int results = 0; - - Console.WriteLine("Test: " + testDesc); - Console.WriteLine("[BEGIN SQL]"); - Console.WriteLine(sql); - Console.WriteLine("[END SQL]"); - - cmd = new SqlCommand(sql, con); - cmd.CommandType = cmdType; - - Console.WriteLine("ExecuteReader..."); - rdr = cmd.ExecuteReader(behavior); - - if(rdr == null) { - - Console.WriteLine("IDataReader has a Null Reference."); - } - else { - - do { - // get the DataTable that holds - // the schema - DataTable dt = rdr.GetSchemaTable(); - - if(rdr.RecordsAffected != -1) { - // Results for - // SQL INSERT, UPDATE, DELETE Commands - // have RecordsAffected >= 0 - Console.WriteLine("Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected); - } - else if (dt == null) - Console.WriteLine("Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected); - else { - // Results for - // SQL not INSERT, UPDATE, nor DELETE - // have RecordsAffected = -1 - Console.WriteLine("Result is from a SQL SELECT Query. Records Affected: " + rdr.RecordsAffected); - - // Results for a SQL Command (CREATE TABLE, SET, etc) - // will have a null reference returned from GetSchemaTable() - // - // Results for a SQL SELECT Query - // will have a DataTable returned from GetSchemaTable() - - results++; - Console.WriteLine("Result Set " + results + "..."); - - // number of columns in the table - Console.WriteLine(" Total Columns: " + - dt.Columns.Count); - - // display the schema - foreach (DataRow schemaRow in dt.Rows) { - foreach (DataColumn schemaCol in dt.Columns) - Console.WriteLine(schemaCol.ColumnName + - " = " + - schemaRow[schemaCol]); - Console.WriteLine(); - } - - int nRows = 0; - string output, metadataValue, dataValue; - // Read and display the rows - Console.WriteLine("Gonna do a Read() now..."); - while(rdr.Read()) { - Console.WriteLine(" Row " + nRows + ": "); - - for(c = 0; c < rdr.FieldCount; c++) { - // column meta data - DataRow dr = dt.Rows[c]; - metadataValue = - " Col " + - c + ": " + - dr["ColumnName"]; - - // column data - if(rdr.IsDBNull(c) == true) - dataValue = " is NULL"; - else - dataValue = - ": " + - rdr.GetValue(c); - - // display column meta data and data - output = metadataValue + dataValue; - Console.WriteLine(output); - } - nRows++; - } - Console.WriteLine(" Total Rows: " + - nRows); - } - } while(rdr.NextResult()); - Console.WriteLine("Total Result sets: " + results); - - rdr.Close(); - } - - } - - [STAThread] - static void Main(string[] args) { - String connectionString = null; - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; - - SqlConnection con; - con = new SqlConnection(connectionString); - con.Open(); - - string sql; - - // Text - only has one query (single query behavior) - sql = "select * from pg_tables"; - Test(con, sql, CommandType.Text, - CommandBehavior.SingleResult, "Text1"); - - // Text - only has one query (default behavior) - sql = "select * from pg_tables"; - Test(con, sql, CommandType.Text, - CommandBehavior.Default, "Text2"); - - // Text - has three queries - sql = - "select * from pg_user;" + - "select * from pg_tables;" + - "select * from pg_database"; - Test(con, sql, CommandType.Text, - CommandBehavior.Default, "Text3Queries"); - - // Table Direct - sql = "pg_tables"; - Test(con, sql, CommandType.TableDirect, - CommandBehavior.Default, "TableDirect1"); - - // Stored Procedure - sql = "version"; - Test(con, sql, CommandType.StoredProcedure, - CommandBehavior.Default, "SP1"); - - // Text - test a SQL Command (default behavior) - // Note: this not a SQL Query - sql = "SET DATESTYLE TO 'ISO'"; - Test(con, sql, CommandType.Text, - CommandBehavior.Default, "TextCmd1"); - - con.Close(); - } - } -} diff --git a/mcs/class/System.Data/Test/TestSqlException.cs b/mcs/class/System.Data/Test/TestSqlException.cs deleted file mode 100644 index 294a1ddfba3a4..0000000000000 --- a/mcs/class/System.Data/Test/TestSqlException.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// TestSqlInsert.cs -// -// To Test SqlConnection and SqlCommand by connecting -// to a PostgreSQL database -// and then executing an INSERT SQL statement -// -// To use: -// change strings to your database, userid, tables, etc...: -// connectionString -// insertStatement -// -// To test: -// mcs TestSqlInsert.cs -r System.Data -// mint TestSqlInsert.exe -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient -{ - class TestSqlInsert - { - [STAThread] - static void Main(string[] args) { - SqlConnection conn; - SqlCommand cmd; - SqlTransaction trans; - - int rowsAffected; - - String connectionString; - String insertStatement; - String deleteStatement; - - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; - - insertStatement = - "insert into NoSuchTable " + - "(tid, tdesc) " + - "values ('beer', 'Beer for All!') "; - - deleteStatement = - "delete from sometable " + - "where tid = 'beer' "; - - try { - // Connect to a PostgreSQL database - Console.WriteLine ("Connect to database..."); - conn = new SqlConnection(connectionString); - conn.Open(); - - // begin transaction - Console.WriteLine ("Begin Transaction..."); - trans = conn.BeginTransaction(); - - // create SQL DELETE command - Console.WriteLine ("Create Command initializing " + - "with an DELETE statement..."); - cmd = new SqlCommand (deleteStatement, conn); - - // execute the DELETE SQL command - Console.WriteLine ("Execute DELETE SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // change the SQL command to an SQL INSERT Command - Console.WriteLine ("Now use INSERT SQL Command..."); - cmd.CommandText = insertStatement; - - // execute the INSERT SQL command - Console.WriteLine ("Execute INSERT SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // if successfull at INSERT, commit the transaction, - // otherwise, do a rollback the transaction using - // trans.Rollback(); - Console.WriteLine ("Commit transaction..."); - trans.Commit(); - - // Close connection to database - Console.WriteLine ("Close database connection..."); - conn.Close(); - - Console.WriteLine ("Assuming everything " + - "was successful."); - Console.WriteLine ("Verify data in database to " + - "see if row is there."); - } - catch(SqlException e) { - // Display the SQL Errors and Rollback the database - Console.WriteLine("SqlException caught: " + - e.ToString()); - if(trans != null) { - trans.Rollback(); - Console.WriteLine("Database has been Rolled back!"); - } - } - finally { - if(conn != null) - if(conn.State == ConnectionState.Open) - conn.Close(); - } - } - } -} diff --git a/mcs/class/System.Data/Test/TestSqlInsert.cs b/mcs/class/System.Data/Test/TestSqlInsert.cs deleted file mode 100644 index d8d31348eff0f..0000000000000 --- a/mcs/class/System.Data/Test/TestSqlInsert.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// TestSqlInsert.cs -// -// To Test SqlConnection and SqlCommand by connecting -// to a PostgreSQL database -// and then executing an INSERT SQL statement -// -// To use: -// change strings to your database, userid, tables, etc...: -// connectionString -// insertStatement -// -// To test: -// mcs TestSqlInsert.cs -r System.Data -// mint TestSqlInsert.exe -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient -{ - class TestSqlInsert - { - [STAThread] - static void Main(string[] args) - { - SqlConnection conn; - SqlCommand cmd; - SqlTransaction trans; - - int rowsAffected; - - String connectionString; - String insertStatement; - String deleteStatement; - - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; - - insertStatement = - "insert into sometable " + - "(tid, tdesc) " + - "values ('beer', 'Beer for All!') "; - - deleteStatement = - "delete from sometable " + - "where tid = 'beer' "; - - // Connect to a PostgreSQL database - Console.WriteLine ("Connect to database..."); - conn = new SqlConnection(connectionString); - conn.Open(); - - // begin transaction - Console.WriteLine ("Begin Transaction..."); - trans = conn.BeginTransaction(); - - // create SQL DELETE command - Console.WriteLine ("Create Command initializing " + - "with an DELETE statement..."); - cmd = new SqlCommand (deleteStatement, conn); - - // execute the DELETE SQL command - Console.WriteLine ("Execute DELETE SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // change the SQL command to an SQL INSERT Command - Console.WriteLine ("Now use INSERT SQL Command..."); - cmd.CommandText = insertStatement; - - // execute the INSERT SQL command - Console.WriteLine ("Execute INSERT SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // if successfull at INSERT, commit the transaction, - // otherwise, do a rollback the transaction using - // trans.Rollback(); - // FIXME: need to have exceptions working in - // SqlClient classes before you can do rollback - Console.WriteLine ("Commit transaction..."); - trans.Commit(); - - // Close connection to database - Console.WriteLine ("Close database connection..."); - conn.Close(); - - Console.WriteLine ("Assuming everything " + - "was successful."); - Console.WriteLine ("Verify data in database to " + - "see if row is there."); - } - } -} diff --git a/mcs/class/System.Data/Test/TestSqlIsolationLevel.cs b/mcs/class/System.Data/Test/TestSqlIsolationLevel.cs deleted file mode 100644 index 8f0f282322224..0000000000000 --- a/mcs/class/System.Data/Test/TestSqlIsolationLevel.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// TestSqlIsolationLevel. -// -// To Test Setting Isolation Level of SqlTransaction -// to a PostgreSQL database -// -// To use: -// change strings to your database, userid, tables, etc...: -// connectionString -// insertStatement -// -// To test: -// mcs TestSqlIsolationLevel.cs -r System.Data -// mint TestSqlIsolationLevel.exe -// -// Author: -// Rodrigo Moya (rodrigo@ximian.com) -// Daniel Morgan (danmorg@sc.rr.com) -// -// (C) Ximian, Inc 2002 -// - -using System; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient -{ - class TestSqlInsert - { - [STAThread] - static void Main(string[] args) - { - SqlConnection conn; - SqlCommand cmd; - SqlTransaction trans; - - int rowsAffected; - - String connectionString; - String insertStatement; - String deleteStatement; - - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; - - insertStatement = - "insert into sometable " + - "(tid, tdesc) " + - "values ('beer', 'Beer for All!') "; - - deleteStatement = - "delete from sometable " + - "where tid = 'beer' "; - - // Connect to a PostgreSQL database - Console.WriteLine ("Connect to database..."); - conn = new SqlConnection(connectionString); - conn.Open(); - - // begin transaction - Console.WriteLine ("Begin Transaction..."); - trans = conn.BeginTransaction(IsolationLevel.Serializable); - - // create SQL DELETE command - Console.WriteLine ("Create Command initializing " + - "with an DELETE statement..."); - cmd = new SqlCommand (deleteStatement, conn); - - // execute the DELETE SQL command - Console.WriteLine ("Execute DELETE SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // change the SQL command to an SQL INSERT Command - Console.WriteLine ("Now use INSERT SQL Command..."); - cmd.CommandText = insertStatement; - - // execute the INSERT SQL command - Console.WriteLine ("Execute INSERT SQL Command..."); - rowsAffected = cmd.ExecuteNonQuery(); - Console.WriteLine ("Rows Affected: " + rowsAffected); - - // if successfull at INSERT, commit the transaction, - // otherwise, do a rollback the transaction using - // trans.Rollback(); - // FIXME: need to have exceptions working in - // SqlClient classes before you can do rollback - Console.WriteLine ("Commit transaction..."); - trans.Commit(); - - // Close connection to database - Console.WriteLine ("Close database connection..."); - conn.Close(); - - Console.WriteLine ("Assuming everything " + - "was successful."); - Console.WriteLine ("Verify data in database to " + - "see if row is there."); - } - } -} diff --git a/mcs/class/System.Data/Test/TestSqlParameters.cs b/mcs/class/System.Data/Test/TestSqlParameters.cs deleted file mode 100644 index 5080799959206..0000000000000 --- a/mcs/class/System.Data/Test/TestSqlParameters.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// TestSqlParameters.cs - test parameters for the PostgreSQL .NET Data Provider in Mono -// using *Parameter and *ParameterCollection -// -// Note: it currently only tests input parameters. Output is next on the list. -// Then output/input and return parameters. -// -// Author: -// Daniel Morgan -// -// (c)copyright 2002 Daniel Morgan -// - -using System; -using System.Collections; -using System.Data; -using System.Data.SqlClient; - -namespace TestSystemDataSqlClient { - - public class TestParameters { - public static void Main() { - Console.WriteLine("** Start Test..."); - - String connectionString = null; - connectionString = - "host=localhost;" + - "dbname=test;" + - "user=postgres"; - - SqlConnection con; - Console.WriteLine("** Creating connection..."); - con = new SqlConnection(connectionString); - Console.WriteLine("** opening connection..."); - con.Open(); - - string tableName = "pg_type"; - - string sql; - sql = "SELECT * FROM PG_TABLES WHERE TABLENAME = :inTableName"; - - Console.WriteLine("** Creating command..."); - SqlCommand cmd = new SqlCommand(sql, con); - - // add parameter for inTableName - Console.WriteLine("** Create parameter..."); - SqlParameter parm = new SqlParameter("inTableName", SqlDbType.Text); - - Console.WriteLine("** set dbtype of parameter to string"); - parm.DbType = DbType.String; - - Console.WriteLine("** set direction of parameter to input"); - parm.Direction = ParameterDirection.Input; - - Console.WriteLine("** set value to the tableName string..."); - parm.Value = tableName; - - Console.WriteLine("** add parameter to parameters collection in the command..."); - cmd.Parameters.Add(parm); - - SqlDataReader rdr; - Console.WriteLine("** ExecuteReader()..."); - - rdr = cmd.ExecuteReader(); - - Console.WriteLine("[][] And now we are going to our results [][]..."); - int c; - int results = 0; - do { - results++; - Console.WriteLine("Result Set " + results + "..."); - - // get the DataTable that holds - // the schema - DataTable dt = rdr.GetSchemaTable(); - - // number of columns in the table - Console.WriteLine(" Total Columns: " + - dt.Columns.Count); - - // display the schema - foreach (DataRow schemaRow in dt.Rows) { - foreach (DataColumn schemaCol in dt.Columns) - Console.WriteLine(schemaCol.ColumnName + - " = " + - schemaRow[schemaCol]); - Console.WriteLine(); - } - - string output, metadataValue, dataValue; - int nRows = 0; - - // Read and display the rows - while(rdr.Read()) { - Console.WriteLine(" Row " + nRows + ": "); - - for(c = 0; c < rdr.FieldCount; c++) { - // column meta data - DataRow dr = dt.Rows[c]; - metadataValue = - " Col " + - c + ": " + - dr["ColumnName"]; - - // column data - if(rdr.IsDBNull(c) == true) - dataValue = " is NULL"; - else - dataValue = - ": " + - rdr.GetValue(c); - - // display column meta data and data - output = metadataValue + dataValue; - Console.WriteLine(output); - } - nRows++; - } - Console.WriteLine(" Total Rows: " + - nRows); - } while(rdr.NextResult()); - Console.WriteLine("Total Result sets: " + results); - - con.Close(); - } - } -} diff --git a/mcs/class/System.Data/Test/TheTests.cs b/mcs/class/System.Data/Test/TheTests.cs deleted file mode 100644 index c69aedfe873c9..0000000000000 --- a/mcs/class/System.Data/Test/TheTests.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Author: Tim Coleman (tim@timcoleman.com) -// (C) Copyright 2002 Tim Coleman - - -using NUnit.Framework; -using System; -using System.Data; -using System.Threading; -using System.Globalization; - -namespace MonoTests.System.Data -{ - public class RunDataColumnTest : DataColumnTest - { - protected override void RunTest () - { - throw new NotImplementedException (); - } - } -} - -namespace MonoTests.System.Data.SqlTypes -{ - public class RunSqlInt32Test : SqlInt32Test - { - protected override void RunTest () - { - TestCreate (); - - // property tests - - TestIsNullProperty (); - - // method tests - - TestAdd (); - TestBitwiseAnd (); - TestBitwiseOr (); - TestDivide (); - TestEquals (); - TestGreaterThan (); - TestGreaterThanOrEqual (); - TestLessThan (); - TestLessThanOrEqual (); - TestMod (); - TestMultiply (); - TestNotEquals (); - TestOnesComplement (); - TestSubtract (); - TestConversionMethods (); - TestXor (); - } - } -} - -namespace MonoTests -{ - public class RunAllTests - { - public static void AddAllTests (TestSuite suite) - { - suite.AddTest (new MonoTests.System.Data.RunDataColumnTest ()); - suite.AddTest (new MonoTests.System.Data.SqlTypes.RunSqlInt32Test ()); - } - } -} - -class MainApp -{ - public static void Main () - { - TestResult result = new TestResult (); - TestSuite suite = new TestSuite (); - MonoTests.RunAllTests.AddAllTests (suite); - suite.Run (result); - MonoTests.MyTestRunner.Print (result); - } -} diff --git a/mcs/class/System.Data/list b/mcs/class/System.Data/list deleted file mode 100755 index 22108d8820de4..0000000000000 --- a/mcs/class/System.Data/list +++ /dev/null @@ -1,152 +0,0 @@ -System.Data/AcceptRejectRule.cs -System.Data/CommandBehavior.cs -System.Data/CommandType.cs -System.Data/ConnectionState.cs -System.Data/Constraint.cs -System.Data/ConstraintCollection.cs -System.Data/ConstraintException.cs -System.Data/DataColumn.cs -System.Data/DataColumnChangeEventArgs.cs -System.Data/DataColumnChangeEventHandler.cs -System.Data/DataColumnCollection.cs -System.Data/DataException.cs -System.Data/DataRelation.cs -System.Data/DataRelationCollection.cs -System.Data/DataRow.cs -System.Data/DataRowAction.cs -System.Data/DataRowBuilder.cs -System.Data/DataRowChangeEventArgs.cs -System.Data/DataRowChangeEventHandler.cs -System.Data/DataRowCollection.cs -System.Data/DataRowState.cs -System.Data/DataRowVersion.cs -System.Data/DataRowView.cs -System.Data/DataSet.cs -System.Data/DataTable.cs -System.Data/DataTableCollection.cs -System.Data/DataView.cs -System.Data/DataViewManager.cs -System.Data/DataViewRowState.cs -System.Data/DataViewSetting.cs -System.Data/DataViewSettingCollection.cs -System.Data/DBConcurrencyException.cs -System.Data/DbType.cs -System.Data/DeletedRowInaccessibleException.cs -System.Data/DuplicateNameException.cs -System.Data/EvaluateException.cs -System.Data/FillErrorEventArgs.cs -System.Data/FillErrorEventHandler.cs -System.Data/ForeignKeyConstraint.cs -System.Data/IColumnMapping.cs -System.Data/IColumnMappingCollection.cs -System.Data/IDataAdapter.cs -System.Data/IDataParameter.cs -System.Data/IDataParameterCollection.cs -System.Data/IDataReader.cs -System.Data/IDataRecord.cs -System.Data/IDbCommand.cs -System.Data/IDbConnection.cs -System.Data/IDbDataAdapter.cs -System.Data/IDbDataParameter.cs -System.Data/IDbTransaction.cs -System.Data/InRowChangingEventException.cs -System.Data/InternalDataCollectionBase.cs -System.Data/InvalidConstraintException.cs -System.Data/InvalidExpressionException.cs -System.Data/IsolationLevel.cs -System.Data/ITableMapping.cs -System.Data/ITableMappingCollection.cs -System.Data/Locale.cs -System.Data/MappingType.cs -System.Data/MergeFailedEventArgs.cs -System.Data/MergeFailedEventHandler.cs -System.Data/MissingMappingAction.cs -System.Data/MissingPrimaryKeyException.cs -System.Data/MissingSchemaAction.cs -System.Data/NoNullAllowedException.cs -System.Data/ParameterDirection.cs -System.Data/PropertyAttributes.cs -System.Data/PropertyCollection.cs -System.Data/ReadOnlyException.cs -System.Data/RowNotInTableException.cs -System.Data/Rule.cs -System.Data/SchemaType.cs -System.Data/SqlDbType.cs -System.Data/StateChangeEventArgs.cs -System.Data/StateChangeEventHandler.cs -System.Data/StatementType.cs -System.Data/StrongTypingException.cs -System.Data/SyntaxErrorException.cs -System.Data/TODOAttribute.cs -System.Data/TypeDataSetGeneratorException.cs -System.Data/UniqueConstraint.cs -System.Data/UpdateRowSource.cs -System.Data/UpdateStatus.cs -System.Data/VersionNotFoundException.cs -System.Data/XmlReadMode.cs -System.Data/XmlWriteMode.cs -System.Data.Common/DataAdapter.cs -System.Data.Common/DataColumnMapping.cs -System.Data.Common/DataColumnMappingCollection.cs -System.Data.Common/DataTableMapping.cs -System.Data.Common/DataTableMappingCollection.cs -System.Data.Common/DbDataAdapter.cs -System.Data.Common/DbDataPermission.cs -System.Data.Common/DbDataPermissionAttribute.cs -System.Data.Common/RowUpdatedEventArgs.cs -System.Data.Common/RowUpdatingEventArgs.cs -System.Data.OleDb/libgda.cs -System.Data.OleDb/OleDbCommand.cs -System.Data.OleDb/OleDbCommandBuilder.cs -System.Data.OleDb/OleDbConnection.cs -System.Data.OleDb/OleDbDataAdapter.cs -System.Data.OleDb/OleDbDataReader.cs -System.Data.OleDb/OleDbError.cs -System.Data.OleDb/OleDbErrorCollection.cs -System.Data.OleDb/OleDbException.cs -System.Data.OleDb/OleDbInfoMessageEventArgs.cs -System.Data.OleDb/OleDbInfoMessageEventHandler.cs -System.Data.OleDb/OleDbLiteral.cs -System.Data.OleDb/OleDbParameter.cs -System.Data.OleDb/OleDbParameterCollection.cs -System.Data.OleDb/OleDbPermission.cs -System.Data.OleDb/OleDbPermissionAttribute.cs -System.Data.OleDb/OleDbRowUpdatedEventArgs.cs -System.Data.OleDb/OleDbRowUpdatedEventHandler.cs -System.Data.OleDb/OleDbRowUpdatingEventArgs.cs -System.Data.OleDb/OleDbRowUpdatingEventHandler.cs -System.Data.OleDb/OleDbSchemaGuid.cs -System.Data.OleDb/OleDbTransaction.cs -System.Data.OleDb/OleDbType.cs -System.Data.SqlClient/ParmUtil.cs -System.Data.SqlClient/PostgresLibrary.cs -System.Data.SqlClient/PostgresTypes.cs -System.Data.SqlClient/SqlCommand.cs -System.Data.SqlClient/SqlConnection.cs -System.Data.SqlClient/SqlDataReader.cs -System.Data.SqlClient/SqlError.cs -System.Data.SqlClient/SqlErrorCollection.cs -System.Data.SqlClient/SqlException.cs -System.Data.SqlClient/SqlInfoMessageEventArgs.cs -System.Data.SqlClient/SqlInfoMessageEventHandler.cs -System.Data.SqlClient/SqlParameter.cs -System.Data.SqlClient/SqlParameterCollection.cs -System.Data.SqlClient/SqlTransaction.cs -System.Data.SqlTypes/INullable.cs -System.Data.SqlTypes/SqlBinary.cs -System.Data.SqlTypes/SqlBoolean.cs -System.Data.SqlTypes/SqlByte.cs -System.Data.SqlTypes/SqlCompareOptions.cs -System.Data.SqlTypes/SqlDateTime.cs -System.Data.SqlTypes/SqlDecimal.cs -System.Data.SqlTypes/SqlDouble.cs -System.Data.SqlTypes/SqlGuid.cs -System.Data.SqlTypes/SqlInt16.cs -System.Data.SqlTypes/SqlInt32.cs -System.Data.SqlTypes/SqlInt64.cs -System.Data.SqlTypes/SqlMoney.cs -System.Data.SqlTypes/SqlNullValueException.cs -System.Data.SqlTypes/SqlSingle.cs -System.Data.SqlTypes/SqlString.cs -System.Data.SqlTypes/SqlTruncateException.cs -System.Data.SqlTypes/SqlTypeException.cs diff --git a/mcs/class/System.Data/makefile.gnu b/mcs/class/System.Data/makefile.gnu deleted file mode 100644 index 7e547e0e5a4c7..0000000000000 --- a/mcs/class/System.Data/makefile.gnu +++ /dev/null @@ -1,16 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/System.Data.dll - -LIB_LIST = list -LIB_FLAGS = -r corlib -r System -r System.Xml - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=\ - ./Test* \ - *TestGDA.cs \ - ./System.Xml* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/System.Drawing/.cvsignore b/mcs/class/System.Drawing/.cvsignore deleted file mode 100644 index 3dc011267d6be..0000000000000 --- a/mcs/class/System.Drawing/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -.makefrag -.response diff --git a/mcs/class/System.Drawing/ChangeLog b/mcs/class/System.Drawing/ChangeLog deleted file mode 100644 index afd4f8cda2b67..0000000000000 --- a/mcs/class/System.Drawing/ChangeLog +++ /dev/null @@ -1,6 +0,0 @@ -2002-06-20 Gonzalo Paniagua Javier - - * ChangeLog: new file. - - * System.Drawing.build: added System.dll dependency - diff --git a/mcs/class/System.Drawing/System.Drawing.Design/UITypeEditorEditStyle.cs b/mcs/class/System.Drawing/System.Drawing.Design/UITypeEditorEditStyle.cs deleted file mode 100644 index 6a571cc7cc4bb..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Design/UITypeEditorEditStyle.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Drawing.Design.UITypeEditorEditStyle.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Design -{ - public enum UITypeEditorEditStyle{ - DropDown=1, - Modal=2, - None=3 - } -} \ No newline at end of file diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/ChangeLog b/mcs/class/System.Drawing/System.Drawing.Drawing2D/ChangeLog deleted file mode 100644 index cf74d68dffeaa..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Drawing2D/ChangeLog +++ /dev/null @@ -1,7 +0,0 @@ -2002-01-06 Ravi Pratap - - * ChangeLog : Add. - - * Matrix.cs : MonoTODO everywhere. - - * TODOAttribute.cs : Add here too. \ No newline at end of file diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/Enums.cs b/mcs/class/System.Drawing/System.Drawing.Drawing2D/Enums.cs deleted file mode 100644 index 3ba9f61892e75..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Drawing2D/Enums.cs +++ /dev/null @@ -1,258 +0,0 @@ -// -// System.Drawing.Drawing2D.Matrix.cs -// -// Author: -// Stefan Maierhofer -// -// (C) Ximian, Inc. http://www.ximian.com -// - -namespace System.Drawing.Drawing2D -{ - - public enum CombineMode - { - Complement, - Exclude, - Intersect, - Replace, - Union, - Xor - } - - public enum CompositingMode - { - SourceCopy, - SourceOver - } - - public enum CompositingQuality - { - AssumeLinear, - Default, - GammaCorrected, - HighQuality, - HighSpeed, - Invalid - } - - public enum CoordinateSpace - { - Device, - Page, - World - } - - public enum DashCap - { - Flat, - Round, - Triangle - } - - public enum DashStyle - { - Custom, - Dash, - DashDot, - DashDotDot, - Dot, - Solid - } - - public enum FillMode - { - Alternate, - Winding - } - - public enum FlushIntention - { - Flush, - Sync - } - - public enum HatchStyle - { - BackwardDiagonal, - Cross, - DarkDownwardDiagonal, - DarkHorizontal, - DarkUpwardDiagonal, - DarkVertical, - DashedDownwardDiagonal, - DashedHorizontal, - DashedUpwardDiagonal, - DashedVertical, - DiagonalBrick, - DiagonalCross, - Divot, - DottedDiamond, - DottedGrid, - ForwardDiagonal, - Horizontal, - HorizontalBrick, - LargeCheckerBoard, - LargeConfetti, - LargeGrid, - LightDownwardDiagonal, - LightHorizontal, - LightUpwardDiagonal, - LightVertical, - Max, - Min, - NarrowHorizontal, - NarrowVertical, - OutlinedDiamond, - Percent05, - Percent10, - Percent20, - Percent25, - Percent30, - Percent40, - Percent50, - Percent60, - Percent70, - Percent75, - Percent80, - Percent90, - Plaid, - Shingle, - SmallCheckerBoard, - SmallConfetti, - SmallGrid, - SolidDiamond, - Sphere, - Trellis, - Vertical, - Wave, - Weave, - WideDownwardDiagonal, - WideUpwardDiagonal, - ZigZag - } - - public enum InterpolationMode - { - Bicubic, - Bilinear, - Default, - High, - HighQualityBicubic, - HighQualityBilinear, - Invalid, - Low, - NearestNeighbour - } - - public enum LinearGradientMode - { - BackwardDiagonal, - ForwardDiagonal, - Horizontal, - Vertical - } - - public enum LineCap - { - AnchorMask, - ArrowAnchor, - Custom, - DiamondAnchor, - Flat, - NoAnchor, - Round, - RoundAnchor, - Square, - SquareAnchor, - Triangle - } - - public enum LineJoin - { - Bevel, - Miter, - MiterClipped, - Round - } - - public enum MatrixOrder - { - Append, - Prepend - } - - public enum PathPointType - { - Bezier, - Bezier3, - CloseSubpath, - DashMode, - Line, - PathMarker, - PathTypeMask, - Start - } - - public enum PenAlignment - { - Center, - Inset, - Left, - Outset, - Right - } - - public enum PenType - { - HatchFill, - LinearGradient, - PathGradient, - SolidColor, - TextureFill - } - - public enum PixelOffsetMode - { - Default, - Half, - HighQuality, - HighSpeed, - Invalid, - None - } - - public enum QualityMode - { - Default, - Hight, - Invalid, - Low - } - - public enum SmoothingMode - { - AntiAlias, - Default, - HighQuality, - HighSpeed, - Invalid, - None - } - - public enum WarpMode - { - Bilinear, - Perspective - } - - public enum WrapMode - { - Clamp, - Tile, - TileFlipX, - TileFlipXY, - TileFlipY - } - -} diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/Matrix.cs b/mcs/class/System.Drawing/System.Drawing.Drawing2D/Matrix.cs deleted file mode 100644 index 2163ac9498405..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Drawing2D/Matrix.cs +++ /dev/null @@ -1,453 +0,0 @@ -// -// System.Drawing.Drawing2D.Matrix.cs -// -// Author: -// Stefan Maierhofer -// -// (C) Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Drawing; -using System.Runtime.InteropServices; - -namespace System.Drawing.Drawing2D -{ - public sealed class Matrix : MarshalByRefObject, IDisposable - { - // initialize to identity - private float[] m = {1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f}; - - // constructors - public Matrix() { } - - /* TODO: depends on System.Drawing.Drawing2D.Rectangle - public Matrix(Rectangle rect , Point[] plgpts) - { - // TODO - } - */ - - /* TODO: depends on System.Drawing.Drawing2D.RectangleF - public Matrix(RectangleF rect , PointF[] pa) - { - // TODO - } - */ - public Matrix(float m11, float m12, - float m21, float m22, - float dx, float dy) - { - m[0] = m11; m[1] = m12; - m[2] = m21; m[3] = m22; - m[4] = dx; m[5] = dy; - } - - // properties - public float[] Elements - { - get { return m; } - } - - public bool IsIdentity - { - get - { - if ( (m[0] == 1.0f) && (m[1] == 0.0f) && - (m[2] == 0.0f) && (m[3] == 1.0f) && - (m[4] == 0.0f) && (m[5] == 0.0f) ) - return true; - else - return false; - } - } - - public bool IsInvertible - { - get - { - // matrix M is invertible if det(M) != 0 - float det = m[0] * m[3] - m[2] * m[1]; - if (det != 0.0f) return true; - else return false; - } - } - - public float OffsetX - { - get { return m[4]; } - } - - public float OffsetY - { - get { return m[5]; } - } - - // methods - public Matrix Clone() - { - return new Matrix(m[0], m[1], m[2], m[3], m[4], m[5]); - } - - public void Dispose() { } - - public override bool Equals(object obj) - { - if (obj is Matrix) - { - float[] a = ((Matrix)obj).Elements; - if ( m[0] == a[0] && m[1] == a[1] && - m[2] == a[2] && m[3] == a[3] && - m[4] == a[4] && m[5] == a[5] ) - return true; - else - return false; - } - else - { - return false; - } - } - - ~Matrix() {} - - [StructLayout(LayoutKind.Explicit)] - internal struct BitConverter - { - [FieldOffset(0)] public float f; - [FieldOffset(0)] public int i; - } - - public override int GetHashCode() - { - BitConverter b; - // compiler is not smart - b.i = 0; - int h = 0; - for (int i = 0; i < 6; i++) - { - b.f = m[i]; - h ^= b.i >> i; - } - return h; - } - - public void Invert() - { - float det = m[0] * m[3] - m[2] * m[1]; - if (det != 0.0f) // if invertible - { - float[] r = - { - m[3] / det, - -m[1] / det, - -m[2] / det, - m[0] / det, - (-m[3] * m[4] + m[1] * m[5]) / det, - (m[2] * m[4] - m[0] * m[5]) / det - }; - m = r; - } - } - - public void Multiply(Matrix matrix) - { - Multiply(matrix, MatrixOrder.Prepend); - } - - public void Multiply(Matrix matrix, MatrixOrder order) - { - switch (order) - { - case MatrixOrder.Prepend: - // this = matrix * this - float[] p = matrix.Elements; - float[] r0 = - { - p[0] * m[0] + p[1] * m[2], - p[0] * m[1] + p[1] * m[3], - p[2] * m[0] + p[3] * m[2], - p[2] * m[1] + p[3] * m[3], - p[4] * m[0] + p[5] * m[2] + m[4], - p[4] * m[1] + p[5] * m[3] + m[5] - }; - m = r0; - break; - case MatrixOrder.Append: - // this = this * matrix - float[] a = matrix.Elements; - float[] r1 = - { - m[0] * a[0] + m[1] * a[2], - m[0] * a[1] + m[1] * a[3], - m[2] * a[0] + m[3] * a[2], - m[2] * a[1] + m[3] * a[3], - m[4] * a[0] + m[5] * a[2] + a[4], - m[4] * a[1] + m[5] * a[3] + a[5] - }; - m = r1; - break; - } - } - - public void Reset() - { - m[0] = 1.0f; m[1] = 0.0f; - m[2] = 0.0f; m[3] = 1.0f; - m[4] = 0.0f; m[5] = 0.0f; - } - - public void Rotate(float angle) - { - Rotate(angle, MatrixOrder.Prepend); - } - - public void Rotate(float angle, MatrixOrder order) - { - angle *= (float)(Math.PI / 180.0); // degrees to randians - float cos = (float)Math.Cos(angle); - float sin = (float)Math.Sin(angle); - switch (order) - { - case MatrixOrder.Prepend: - // this = rotation * this - float[] r0 = - { - cos * m[0] + sin * m[2], - cos * m[1] + sin * m[3], - -sin * m[0] + cos * m[2], - -sin * m[1] + cos * m[3], - m[4], - m[5] - }; - m = r0; - break; - case MatrixOrder.Append: - // this = this * rotation - float[] r1 = - { - m[0] * cos + m[1] * -sin, - m[0] * sin + m[1] * cos, - m[2] * cos + m[3] * -sin, - m[2] * sin + m[3] * cos, - m[4] * cos + m[5] * -sin, - m[4] * sin + m[5] * cos - }; - m = r1; - break; - } - } - - public void RotateAt(float angle, PointF point) - { - RotateAt(angle, point, MatrixOrder.Prepend); - } - - public void RotateAt(float angle, PointF point, MatrixOrder order) - { - angle *= (float)(Math.PI / 180.0); // degrees to randians - float cos = (float)Math.Cos(angle); - float sin = (float)Math.Sin(angle); - float e4 = -point.X * cos + point.Y * sin + point.X; - float e5 = -point.X * sin - point.Y * cos + point.Y; - switch (order) - { - case MatrixOrder.Prepend: - // this = rotation * this - float[] r0 = - { - cos * m[0] + sin * m[2], - cos * m[1] + sin * m[3], - -sin * m[0] + cos * m[2], - -sin * m[1] + cos * m[3], - e4 * m[0] + e5 * m[2] + m[4], - e4 * m[1] + e5 * m[3] + m[5] - }; - m = r0; - break; - case MatrixOrder.Append: - // this = this * rotation - float[] r1 = - { - m[0] * cos + m[1] * -sin, - m[0] * sin + m[1] * cos, - m[2] * cos + m[3] * -sin, - m[2] * sin + m[3] * cos, - m[4] * cos + m[5] * -sin + e4, - m[4] * sin + m[5] * cos + e5 - }; - m = r1; - break; - } - } - - public void Scale(float scaleX, float scaleY) - { - Scale(scaleX, scaleY, MatrixOrder.Prepend); - } - - public void Scale(float scaleX, float scaleY, MatrixOrder order) - { - switch (order) - { - case MatrixOrder.Prepend: - // this = scale * this - m[0] *= scaleX; m[1] *= scaleX; - m[2] *= scaleY; m[3] *= scaleY; - break; - case MatrixOrder.Append: - // this = this * scale - m[0] *= scaleX; m[1] *= scaleY; - m[2] *= scaleX; m[3] *= scaleY; - m[4] *= scaleX; m[5] *= scaleY; - break; - } - } - - public void Shear(float shearX, float shearY) - { - Shear(shearX, shearY, MatrixOrder.Prepend); - } - - // LAMESPEC: quote from beta 2 sdk docs: "[To be supplied!]" - // - // assuming transformation matrix: - // - // (1 shearY 0) - // (shearX 1 0) - // (0 0 1) - // - public void Shear(float shearX, float shearY, MatrixOrder order) - { - switch (order) - { - case MatrixOrder.Prepend: - // this = shear * this - float[] r0 = - { - m[0] + shearY * m[2], - m[1] + shearY * m[3], - shearX * m[0] + m[2], - shearX * m[1] + m[3], - m[4], - m[5] - }; - m = r0; - break; - case MatrixOrder.Append: - // this = this * shear - float[] r1 = - { - m[0] + m[1] * shearX, - m[0] * shearY + m[1], - m[2] + m[3] * shearX, - m[2] * shearY + m[3], - m[4] + m[5] * shearX , - m[4] * shearY + m[5] - }; - m = r1; - break; - } - } - - public void TransformPoints(Point[] pts) - { - for (int i = 0; i < pts.Length; i++) - { - float x = (float)pts[i].X; - float y = (float)pts[i].Y; - pts[i].X = (int)(x * m[0] + y * m[2] + m[4]); - pts[i].Y = (int)(x * m[1] + y * m[3] + m[5]); - } - } - - public void TransformPoints(PointF[] pts) - { - for (int i = 0; i < pts.Length; i++) - { - float x = pts[i].X; - float y = pts[i].Y; - pts[i].X = x * m[0] + y * m[2] + m[4]; - pts[i].Y = x * m[1] + y * m[3] + m[5]; - } - } - - public void TransformVectors(Point[] pts) - { - for (int i = 0; i < pts.Length; i++) - { - float x = (float)pts[i].X; - float y = (float)pts[i].Y; - pts[i].X = (int)(x * m[0] + y * m[2]); - pts[i].Y = (int)(x * m[1] + y * m[3]); - } - } - - public void TransformVectors(PointF[] pts) - { - for (int i = 0; i < pts.Length; i++) - { - float x = pts[i].X; - float y = pts[i].Y; - pts[i].X = x * m[0] + y * m[2]; - pts[i].Y = x * m[1] + y * m[3]; - } - } - - public void Translate(float offsetX, float offsetY) - { - Translate(offsetX, offsetY, MatrixOrder.Prepend); - } - - public void Translate(float offsetX, float offsetY, MatrixOrder order) - { - switch (order) - { - case MatrixOrder.Prepend: - // this = translation * this - m[4] = offsetX * m[0] + offsetY * m[2] + m[4]; - m[5] = offsetX * m[1] + offsetY * m[3] + m[5]; - break; - case MatrixOrder.Append: - // this = this * translation - m[4] += offsetX; - m[5] += offsetY; - break; - } - } - - // LAMESPEC: quote from beta 2 sdk docs: "[To be supplied!]" - [MonoTODO] - public void VectorTransformPoints(Point[] pts) - { - // TODO - } - - // some simple test (TODO: remove) - /* - public static void Main() - { - PointF[] p = {new PointF(1.0f, 2.0f)}; - Console.WriteLine("(" + p[0].X + " " + p[0].Y + ")"); - Matrix m = new Matrix(); - - m.Translate(1.0f, 1.0f); - m.Scale(2.0f, 2.0f); - m.Rotate(180.0f); - - m.TransformPoints(p); - Console.WriteLine("(" + p[0].X + " " + p[0].Y + ")"); - m.Invert(); - m.TransformPoints(p); - Console.WriteLine("(" + p[0].X + " " + p[0].Y + ")"); - - Matrix a = new Matrix(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f); - Matrix b = new Matrix(2.0f, 0.0f, 0.0f, 2.0f, 0.0f, 0.0f); - - Console.WriteLine("h(a) = " + a.GetHashCode()); - Console.WriteLine("h(b) = " + b.GetHashCode()); - } - */ - - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/PenAlignment.cs b/mcs/class/System.Drawing/System.Drawing.Drawing2D/PenAlignment.cs deleted file mode 100755 index e5f49323e9698..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Drawing2D/PenAlignment.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.Drawing.Drawing2D.PenAlignment.cs -// -// Author: -// Miguel de Icaza (miguel@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -using System; - -namespace System.Drawing { - - public enum PenAlignment { - Center = 0, - Inset = 1, - Outset = 2, - Left = 3, - Right =4 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Drawing2D/TODOAttribute.cs b/mcs/class/System.Drawing/System.Drawing.Drawing2D/TODOAttribute.cs deleted file mode 100644 index 0920ce8f92dec..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Drawing2D/TODOAttribute.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -namespace System { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All, AllowMultiple=true)] - public class MonoTODOAttribute : Attribute { - - private string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - - public string Comment - { - get { return comment; } - } - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/BitmapData.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/BitmapData.cs deleted file mode 100755 index d072cde7eb007..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/BitmapData.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// System.Drawing.Imaging.BitmapData.cs -// -// Author: -// Miguel de Icaza (miguel@ximian.com -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -using System; - -namespace System.Drawing.Imaging -{ - public sealed class BitmapData { - int width, height, stride, reserved; - PixelFormat pixel_format; - IntPtr address; - - public int Height { - get { - return height; - } - - set { - height = value; - } - } - - public int Width { - get { - return width; - } - - set { - width = value; - } - } - - public PixelFormat PixelFormat { - get { - return pixel_format; - } - - set { - pixel_format = value; - } - } - - public int Reserved { - get { - return reserved; - } - - set { - reserved = value; - } - } - - public IntPtr Scan0 { - get { - return address; - } - - set { - address = value; - } - } - - public int Stride { - get { - return stride; - } - - set { - stride = value; - } - } - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog b/mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog deleted file mode 100644 index bbf9f2af2b717..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog +++ /dev/null @@ -1,17 +0,0 @@ -2002-05-03 Mike Kestner - - * Metafile.cs : Use System.IO. Fix exception typos. - -2002-04-27 Christian Meyer - - * Metafile.cs: Copyright now holds Ximian. - -2002-04-21 Dennis Hayes - - * corrected emum values. - -2002-04-14 Christian Meyer - - * ChangeLog: created. - * Metafile.cs: Added. Wrote some ctors. No impl done, yet. - diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorAdjustType.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ColorAdjustType.cs deleted file mode 100644 index d445a9b5afe05..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorAdjustType.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Drawing.Imaging.ColorAdjustType.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ColorAdjustType { - Any = 6, - Bitmap = 1, - Brush = 2, - Count = 5, - Default = 0, - Pen = 3, - Text = 4 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorChannelFlag.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ColorChannelFlag.cs deleted file mode 100644 index 82f07834b68cf..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorChannelFlag.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// System.Drawing.Imaging.ColorChannelFlag.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ColorChannelFlag { - ColorChannelC = 0, - ColorChannelK = 3, - ColorChannelLast = 4, - ColorChannelM = 1, - ColorChannelY = 2 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMapType.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMapType.cs deleted file mode 100644 index 0943f290da288..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMapType.cs +++ /dev/null @@ -1,14 +0,0 @@ -// -// System.Drawing.Imaging.ColorMapType.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ColorMapType{//check - Brush = 1, - Default = 0 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMatrixFlag.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMatrixFlag.cs deleted file mode 100644 index f244e02447f12..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMatrixFlag.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Drawing.Imaging.ColorMatrixFlag.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ColorMatrixFlag{ - AltGrays = 2, - Default = 0, - SkipGrays = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMode.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMode.cs deleted file mode 100644 index 91872fa62475d..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorMode.cs +++ /dev/null @@ -1,14 +0,0 @@ -// -// System.Drawing.Imaging.ColorMode.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ColorMode { - Argb32Mode = 0, - Argb64Mode = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorPalette.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ColorPalette.cs deleted file mode 100755 index 24dcf25d444a4..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ColorPalette.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.Drawing.Imaging.ColorPalette.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// -// Author: -// Miguel de Icaza (miguel@ximian.com -// - -using System; - -namespace System.Drawing.Imaging -{ - public sealed class ColorPalette { - // 0x1: the color values in the array contain alpha information - // 0x2: the color values are grayscale values. - // 0x4: the colors in the array are halftone values. - - int flags; - Color [] entries; - - // - // There is no public constructor, this will be used somewhere in the - // drawing code - // - internal ColorPalette () - { - flags = 0; - entries = new Color [0]; - } - - public Color [] Entries { - get { - return entries; - } - } - - public int Flags { - get { - return flags; - } - } - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/EmfPlusRecordType.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/EmfPlusRecordType.cs deleted file mode 100644 index 052604968e79a..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/EmfPlusRecordType.cs +++ /dev/null @@ -1,262 +0,0 @@ -// -// System.Drawing.Imaging.EmfPlusRecordType.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum EmfPlusRecordType { - BeginContainer = 16423, - BeginContainerNoParams = 16424, - Clear = 16393, - Comment = 16387, - DrawArc = 16402, - DrawBeziers = 16409, - DrawClosedCurve = 16407, - DrawCurve = 16408, - DrawDriverString = 16438, - DrawEllipse = 16399, - DrawImage = 16410, - DrawImagePoints = 16411, - DrawLines = 16397, - DrawPath = 16405, - DrawPie = 16401, - DrawRects = 16395, - DrawString = 16412, - EmfAbortPath = 68, - EmfAlphaBlend = 114, - EmfAngleArc = 41, - EmfArcTo = 55, - EmfBeginPath = 59, - EmfBitBlt = 76, - EmfChord = 46, - EmfCloseFigure = 61, - EmfColorCorrectPalette = 111, - EmfColorMatchToTargetW = 121, - EmfCreateBrushIndirect = 39, - EmfCreateColorSpace = 99, - EmfCreateColorSpaceW = 122, - EmfCreateDibPatternBrushPt = 94, - EmfCreateMonoBrush = 93, - EmfCreatePalette = 49, - EmfCreatePen = 38, - EmfDeleteColorSpace = 101, - EmfDeleteObject = 40, - EmfDrawEscape = 105, - EmfEllipse = 42, - EmfEndPath = 60, - EmfEof = 14, - EmfExcludeClipRect = 29, - EmfExtCreateFontIndirect = 82, - EmfExtCreatePen = 95, - EmfExtEscape = 106, - EmfExtFloodFill = 53, - EmfExtSelectClipRgn = 75, - EmfExtTextOutA = 83, - EmfExtTextOutW = 84, - EmfFillPath = 62, - EmfFillRgn = 71, - EmfFlattenPath = 65, - EmfForceUfiMapping = 109, - EmfFrameRgn = 72, - EmfGdiComment = 70, - EmfGlsBoundedRecord = 103, - EmfGlsRecord = 102, - EmfGradientFill = 118, - EmfHeader = 1, - EmfIntersectClipRect = 30, - EmfInvertRgn = 73, - EmfLineTo = 54, - EmfMaskBlt = 78, - EmfMin = 1, - EmfModifyWorldTransform = 36, - EmfMoveToEx = 27, - EmfNamedEscpae = 110, - EmfOffsetClipRgn = 26, - EmfPaintRgn = 74, - EmfPie = 47, - EmfPixelFormat = 104, - EmfPlgBlt = 79, - EmfPlusRecordBase = 16384, - EmfPolyBezier = 2, - EmfPolyBezier16 = 85, - EmfPolyBezierTo = 5, - EmfPolyBezierTo16 = 88, - EmfPolyDraw = 56, - EmfPolyDraw16 = 92, - EmfPolygon = 3, - EmfPolyPolygon16 = 86, - EmfPolyPolyline = 4, - EmfPolyline16 = 87, - EmfPolyPolygon = 8, - EmfPolyPolyline16 = 91, - EmfPolyTextOutA = 96, - EmfPolyTextOutW = 97, - EmfRealizePalette = 52, - EmfRectangle = 43, - EmfReserved069 = 69, - EmfReserved117 = 117, - EmfResizePalette = 51, - EmfRestoreDC = 34, - EmfRoundArc = 45, - EmfRoundRect = 44, - EmfSaveDC = 33, - EmfScaleViewportExtEx = 31, - EmfScaleWindowExtEx = 32, - EmfSelectClipPath = 67, - EmfSelectObject = 37, - EmfSelectPalette = 48, - EmfSetArcDirection = 57, - EmfSetBkColor = 25, - EmfSetBkMode = 18, - EmfSetBrushOrgEx = 13, - EmfSetColorAdjustment = 23, - EmfSetColorSpace = 100, - EmfSetDIBitsToDevice = 80, - EmfSetIcmMode = 98, - EmfSetIcmProfileA = 112, - EmfSetIcmProfileW = 113, - EmfSetLayout = 115, - EmfSetLinkedUfis = 119, - EmfSetMapMode = 17, - EmfSetMapperFlags = 16, - EmfSetMetaRgn = 28, - EmfSetMiterLimit = 58, - EmfSetPaletteEntries = 50, - EmfSetPixelV = 15, - EmfSetPolyFillMode = 19, - EmfSetROP2 = 20, - EmfSetStretchBltMode = 21, - EmfSetTextAlign = 22, - EmfSetTextColor = 24, - EmfSetTextJustification =120 , - EmfSetViewportExtEx = 11, - EmfSetViewportOrgEx = 12, - EmfSetWindowExtEx = 9, - EmfSetWindowOrgEx = 10, - EmfSetWorldTransform = 35, - EmfSmallTextOut = 108, - EmfStartDoc = 107, - EmfStretchBlt = 77, - EmfStretchDIBits = 81, - EmfStrokeAndFillPath = 63, - EmfStrokePath = 64, - EmfTransparentBlt = 116, - EmfWidenPath = 66, - EndContainer = 16425, - EndOfFile = 16386, - FillClosedCurve = 16406, - FillEllipse = 16398, - FillPath = 16404, - FillPie = 16400, - FillPolygon = 16396, - FillRects = 16394, - FillRegion = 16403, - GetDC = 16388, - Header = 16385, - Invalid = 16384, - Max = 16438, - Min = 16385, - MultiFormatEnd = 16391, - MultiFormatSection = 16390, - MultiFormatStart = 16389, - MultiplyWorldTransform = 16428, - Object = 16392, - OffsetClip = 16437, - ResetClip = 16433, - ResetWorldTransform = 16427, - Restore = 16422, - RotateWorldTransform = 16431, - Save = 16421, - ScaleWorldTransform = 16430, - SetAntiAliasMode = 16414, - SetClipPath = 16435, - SetClipRect = 16434, - SetClipRegion = 16436, - SetCompositingMode = 16419, - SetCompositingQuality = 16420, - SetInterpolationMode = 16417, - SetPageTransform = 16432, - SetPixelOffsetMode = 16418, - SetRenderingOrigin = 16413, - SetTextContrast = 16416, - SetTextRenderingHint = 16415, - SetWorldTransform = 16426, - Total = 16439, - TranslateWorldTransform = 16429, - WmfAnimatePalette = 66614, - WmfArc = 67607, - WmfBitBlt = 67874, - WmfChord = 67632, - WmfCreateBrushIndirect = 66300, - WmfCreateFontIndirect = 66299, - WmfCreatePalette = 65783, - WmfCreatePatternBrush = 66041, - WmfCreatePenIndirect = 66298, - WmfCreateRegion = 67327, - WmfDeleteObject = 66032, - WmfDibBitBlt = 67904, - WmfDibCreatePatternBrush = 65858, - WmfFillRegion = 66088, - WmfFloodFill = 66585, - WmfFrameRegion = 66601, - WmfIntersectClipRect = 66582, - WmfInvertRegion = 65834, - WmfLineTo = 66067, - WmfMoveTo = 66068, - WmfOffsetCilpRgn = 66080, - WmfOffsetViewportOrg = 66065, - WmfOffsetWindowOrg = 66063, - WmfPaintRegion = 65835, - WmfPatBlt = 67101, - WmfPie = 67610, - WmfPolygon = 66340, - WmfPolyline = 66341, - WmfPolyPolygon = 66872, - WmfRealizePalette = 65589, - WmfRecordBase = 65536, - WmfRectangle = 66587, - WmfResizePalette = 65849, - WmfRestoreDC = 65831, - WmfRoundRect = 67100, - WmfSaveDC = 65566, - WmfScaleViewportExt = 66578, - WmfScaleWindowExt = 66576, - WmfSelectClipRegion = 65836, - WmfSelectObject = 65837, - WmfSelectPalette = 66100, - WmfSetBkColor = 66049, - WmfSetBkMode = 65794, - WmfSetDibToDev = 68915, - WmfSetLayout = 65865, - WmfSetMapMode = 65795, - WmfSetMapperFlags = 66097, - WmfSetPalEntries = 65591, - WmfSetPixel = 66591, - WmfSetPolyFillMode = 65798, - WmfSetRelAbs = 65797, - WmfSetROP2 = 65796, - WmfSetStretchBltMode = 65799, - WmfSetTextAlign = 65838, - WmfSetTextCharExtra = 65800, - WmfSetTextColor = 66057, - WmfSetTextJustification = 66058, - WmfSetViewportExt = 66062, - WmfSetViewportOrg = 66061, - WmfSetWindowExt = 66060, - WmfSetWindowOrg = 66059, - WmfStretchBlt = 68387, - WmfStretchDib = 69443, - WmfTextOut = 66849, - EmfPolyLineTo = 6, - EmfPolylineTo16 = 89, - WmfDibStretchBlt = 68417, - WmfEllipse = 66584, - WmfEscape = 67110, - WmfExcludeClipRect = 66581, - WmfExtFloodFill = 66888, - WmfExtTextOut = 68146 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/EmfType.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/EmfType.cs deleted file mode 100644 index f02a42f492315..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/EmfType.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Drawing.Imaging.EmfType.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum EmfType { - EmfOnly = 3, - EmfPlusDual = 5, - EmfPlusOnly = 4 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/EncoderParameterValueType.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/EncoderParameterValueType.cs deleted file mode 100644 index 6a0071ad20d7f..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/EncoderParameterValueType.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.Drawing.Imaging.EncoderParameterValueType.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum EncoderParameterValueType { - ValueTypeAscii = 2, - ValueTypeByte = 1, - ValueTypeLong = 4, - ValueTypeLongRange = 6, - ValueTypeRational = 5, - ValueTypeRationalRange = 8, - ValueTypeShort = 3, - ValueTypeUndefined = 7 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/EncoderValue.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/EncoderValue.cs deleted file mode 100644 index 0e51a47031e4b..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/EncoderValue.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -// System.Drawing.Imaging.EncoderValue.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum EncoderValue { - ColorTypeCMYK = 0, - ColorTypeYCCK = 1, - CompressionCCITT3 = 3, - CompressionCCITT4 = 4, - CompressionLZW = 2, - CompressionNone = 6, - CompressionRle = 5, - Flush = 20, - FrameDimensionPage = 23, - FrameDimensionResolution = 22, - FrameDimensionTime = 21, - LastFrame = 19, - MultiFrame = 18, - RenderNonProgressive = 12, - RenderProgressive = 11, - ScanMethodInterlaced = 7, - ScanMethodNonInterlaced = 8, - TransformFlipHorizontal = 16, - TransformFlipVertical = 17, - TransformRotate180 = 14, - TransformRotate270 = 15, - TransformRotate90 = 13, - VersionGif87 = 9, - VersionGif89 = 10 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/FrameDimension.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/FrameDimension.cs deleted file mode 100644 index cc431619f310f..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/FrameDimension.cs +++ /dev/null @@ -1,59 +0,0 @@ -// created on 21.02.2002 at 17:06 -// -// FrameDimension.cs -// -// Author: Christian Meyer -// eMail: Christian.Meyer@cs.tum.edu -// - -namespace System.Drawing.Imaging { - -using System; - -public sealed class FrameDimension { - - // constructor - public FrameDimension (Guid guid) {} - - //properties - public Guid Guid { - get { - throw new NotImplementedException (); - } - } - - public static FrameDimension Page { - get { - throw new NotImplementedException (); - } - } - - public static FrameDimension Resolution { - get { - throw new NotImplementedException (); - } - } - - public static FrameDimension Time { - get { - throw new NotImplementedException (); - } - } - - //methods - public override bool Equals (object o) { - throw new NotImplementedException (); - } - - public override int GetHashCode () { - throw new NotImplementedException (); - } - - public override string ToString() { - throw new NotImplementedException (); - } - - //destructor - ~FrameDimension () {} -} -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecFlags.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecFlags.cs deleted file mode 100644 index 235ebed2fc092..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecFlags.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.Drawing.Imaging.ImageCodecFlags.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ImageCodecFlags { - BlockingDecode = 32, - Builtin = 65536, - Decoder = 2, - Encoder = 1, - SeekableEncode = 16, - SupportBitmap = 4, - SupportVector = 8, - System = 131072, - User = 262144 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ImageFlags.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ImageFlags.cs deleted file mode 100644 index 61e0ec878a1a8..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ImageFlags.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// System.Drawing.Imaging.ImageFlags.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ImageFlags { - Caching = 131072, - ColorSpaceCmyk = 32, - ColorSpaceGray = 64, - ColorSpaceRgb = 16, - ColorSpaceYcbcr = 128, - ColorSpaceYcck = 256, - HasAlpha = 2, - HasRealDpi = 4096, - HasRealPixelSize = 8192, - HasTranslucent = 4, - None = 0, - PartiallyScalable = 8, - ReadOnly = 65536, - Scalable = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/ImageLockMode.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/ImageLockMode.cs deleted file mode 100644 index 14b720acb2b07..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/ImageLockMode.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.Drawing.Imaging.ImageLockMode.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum ImageLockMode { - ReadOnly = 1, - ReadWrite = 3, - UserInputBuffer = 4, - WriteOnly = 2 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs deleted file mode 100644 index cfacd57e73a9a..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// System.Drawing.Imaging.Metafile.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Christian Meyer -// eMail: Christian.Meyer@cs.tum.edu -// -using System; -using System.IO; -using System.Reflection; - -namespace System.Drawing.Imaging { - - public sealed class Metafile : Image { - - // constructors - [MonoTODO] - public Metafile (Stream stream) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (string filename) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (IntPtr henhmetafile, bool deleteEmf) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (IntPtr referenceHtc, EmfType emfType) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (IntPtr referenceHtc, Rectangle frameRect) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (IntPtr referenceHtc, RectangleF frameRect) { - throw new NotImplementedException (); - } - - //[MonoTODO] - //public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader) { - // throw new NotImplementedException (); - //} - - [MonoTODO] - public Metafile (Stream stream, IntPtr referenceHtc) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (String fileName, IntPtr referenceHtc) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (IntPtr referenceHdc, EmfType emfType, string description) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit) { - throw new NotImplementedException (); - } - - //[MonoTODO] - //public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader, bool deleteWmf) { - // throw new NotImplementedException (); - //} - - [MonoTODO] - public Metafile (Stream stream, IntPtr referenceHdc, EmfType type) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (string fileName, IntPtr referenceHdc, EmfType type) { - throw new NotImplementedException (); - } - - [MonoTODO] - public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect) { - throw new NotImplementedException (); - } - - // methods - // properties - } - -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/MetafileFrameUnit.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/MetafileFrameUnit.cs deleted file mode 100644 index 97d59c6c0c1c8..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/MetafileFrameUnit.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Drawing.Imaging.MetafileFrameUnit.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum MetafileFrameUnit { - Document = 5, - GdiCompatible = 7, - Inch = 4, - Millimeter = 6, - Pixel = 2, - Point = 3 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/PaletteFlags.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/PaletteFlags.cs deleted file mode 100644 index 007313d06229d..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/PaletteFlags.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Drawing.Imaging.PaletteFlags.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Imaging -{ - public enum PaletteFlags { - GrayScale = 2, - Halftone = 4, - HasAlpha = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Imaging/PixelFormat.cs b/mcs/class/System.Drawing/System.Drawing.Imaging/PixelFormat.cs deleted file mode 100644 index abc675c473916..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Imaging/PixelFormat.cs +++ /dev/null @@ -1,39 +0,0 @@ -// created on 20.02.2002 at 21:18 -// -// Image.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Christian Meyer -// eMail: Christian.Meyer@cs.tum.edu -// Dennis Hayes -// dennish@raytek.com -// -// -namespace System.Drawing.Imaging { - - public enum PixelFormat { - Alpha = 262144, - Canonical = 2097152, - DontCare = 0, - Extended = 1048576, - Format16bppArgb1555 = 397319, - Format16bppGrayScale = 1052676, - Format16bppRgb555 = 135173, - Format16bppRgb565 = 135174, - Format1bppIndexed = 196865, - Format24bppRgb = 137224, - Format32bppArgb = 2498570, - Format32bppPArgb = 925707, - Format32bppRgb = 139273, - Format48bppRgb = 1060876, - Format4bppIndexed = 197634, - Format64bppArgb = 3424269, - Format64bppPArgb = 1851406, - Format8bppIndexed = 198659, - Gdi = 131072, - Indexed = 65536, - Max = 15, - PAlpha = 524288, - Undefined = 0 //shows up in enumcheck as second "dontcare". - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/Duplex.cs b/mcs/class/System.Drawing/System.Drawing.Printing/Duplex.cs deleted file mode 100644 index a158382eea32d..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Printing/Duplex.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.Drawing.Duplex.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Printing -{ - public enum Duplex { - Default = -1, - Horizontal = 3, - Simplex = 1, - Vertical = 2 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/PaperKind.cs b/mcs/class/System.Drawing/System.Drawing.Printing/PaperKind.cs deleted file mode 100644 index 137a0da4a9b0e..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Printing/PaperKind.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// System.Drawing.PaperKind.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Printing -{ - public enum PaperKind { - A2 = 66, - A3 = 8, - A3Extra = 63, - A3ExtraTransverse = 68, - A3Rotated = 76, - A3Transverse = 67, - A4 = 9, - A4Extra = 53, - A4Plus = 60, - A4Rotated = 77, - A4Small = 10, - A4Transverse = 55, - A5 = 11, - A5Extra = 64, - A5Rotated = 78, - A5Transverse = 61, - A6 = 70, - A6Rotated = 83, - APlus = 57, - B4 = 12, - B4Envelope = 33, - B4JisRotated = 79, - B5Extra, - B5JisRotated = 80, - B5Transverse = 61, - B6Envelope = 35, - B6Jis = 88, - B6JisRotated = 89, - BPlus = 58, - C3Envelope = 29, - C4Envelope = 30, - C5Envelope = 34, - C65Envelope = 32, - CSheet = 24, - Custom = 0, - DLEnvelope = 27, - DSheet = 25, - ESheet = 26, - Executive = 7, - Folio = 14, - GermanLegalFanfold = 41, - GermanStandardFanfold = 40, - InviteEnvelope = 47, - IsoB4 = 42, - JapaneseDoublePostcard = 69, - JapaneseDoublePostcardRotated = 81, - JapaneseEnvelopeChouNumber3 = 73, - JapaneseEnvelopeChouNumber3Rotated = 86, - JapaneseEnvelopeChouNumber4 = 74, - JapaneseEnvelopeChouNumber4Rotated = 87, - JapaneseEnvelopeKakuNumber2 = 71, - JapaneseEnvelopeKakuNumber2Rotated = 84, - JapaneseEnvelopeKakuNumber3 = 72, - JapaneseEnvelopeKakuNumber3Rotated = 85, - JapaneseEnvelopeYouNumber4 = 91, - JapaneseEnvelopeYouNumber4Rotated = 92, - JapanesePostcard = 43, - JapanesePostcardRotated = 81, - Ledger = 4, - Legal = 5, - LegalExtra = 51, - Letter = 1, - LetterExtra = 50, - LetterExtraTransverse = 56, - LetterPlus = 59, - LetterRotated = 75, - LetterSmall = 2, - LetterTransverse = 54, - MonarchEnvelope = 37, - Note = 18, - Number10Envelope = 20, - Number11Envelope = 21, - Number12Envelope = 22, - Number14Envelope = 23, - Number9Envelope = 19, - PersonalEnvelope = 38, - Prc16K = 93, - Prc16KRotated = 106, - Prc32K = 94, - Prc32KBig = 95, - Prc32KBigRotated = 108, - Prc32KRotated = 107, - PrcEnvelopeNumber1 = 96, - PrcEnvelopeNumber10 = 105, - PrcEnvelopeNumber10Rotated = 118, - PrcEnvelopeNumber1Rotated = 109, - PrcEnvelopeNumber2 = 97, - PrcEnvelopeNumber2Rotated = 110, - PrcEnvelopeNumber3 = 98, - PrcEnvelopeNumber3Rotated = 111, - PrcEnvelopeNumber4 = 99, - PrcEnvelopeNumber4Rotated = 112, - PrcEnvelopeNumber5 = 100, - PrcEnvelopeNumber5Rotated = 113, - PrcEnvelopeNumber6 = 101, - PrcEnvelopeNumber6Rotated = 114, - PrcEnvelopeNumber7 = 102, - PrcEnvelopeNumber7Rotated = 115, - PrcEnvelopeNumber8 = 103, - PrcEnvelopeNumber8Rotated = 116, - PrcEnvelopeNumber9 = 104, - PrcEnvelopeNumber9Rotated = 117, - Quarto = 15, - Standard10x11 = 45, - Standard10x14 = 16, - Standard11x17 = 17, - Standard12x11 = 90, - Standard15x11 = 46, - Standard9x11 = 44, - Statement = 6, - Tabloid = 3, - TabloidExtra = 52, - USStandardFanfold = 39 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/PaperSourceKind.cs b/mcs/class/System.Drawing/System.Drawing.Printing/PaperSourceKind.cs deleted file mode 100644 index a8cd9e0e68ef6..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Printing/PaperSourceKind.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// System.Drawing.PaperSourceKind.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Printing -{ - public enum PaperSourceKind { - AutomaticFeed = 7, - Cassette = 14, - Custom = 257, - Envelope = 5, - FormSource = 15, - LargeCapacity = 11, - LargeFormat = 10, - Lower = 2, - Manual = 4, - ManualFeed = 6, - Middle = 3, - SmallFormat = 9, - TractorFeed = 8, - Upper = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/PrintRange.cs b/mcs/class/System.Drawing/System.Drawing.Printing/PrintRange.cs deleted file mode 100644 index a43f9e8bf88e7..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Printing/PrintRange.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Drawing.PrintRange.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Printing -{ - public enum PrintRange { - AllPages = 0, - Selection = 1, - SomePages = 2 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/PrinterResolutionKind.cs b/mcs/class/System.Drawing/System.Drawing.Printing/PrinterResolutionKind.cs deleted file mode 100644 index 7580938c71ae8..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Printing/PrinterResolutionKind.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// System.Drawing.PrinterResolutionKind.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Printing -{ - public enum PrinterResolutionKind { - Custom = 0, - Draft = -1, - High = -4, - Low = -2, - Medium = -3 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/PrinterUnit.cs b/mcs/class/System.Drawing/System.Drawing.Printing/PrinterUnit.cs deleted file mode 100644 index ae4209301cc53..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Printing/PrinterUnit.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.Drawing.PrinterUnit.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Printing -{ - public enum PrinterUnit { - Display = 0, - HundredthsOfAMillimeter = 2, - TenthsOfAMillimeter = 3, - ThousandthsOfAnInch = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/PrintingPermissionLevel.cs b/mcs/class/System.Drawing/System.Drawing.Printing/PrintingPermissionLevel.cs deleted file mode 100644 index 0f77f63bf6b2a..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Printing/PrintingPermissionLevel.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.Drawing.PrintingPermissionLevel.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Printing -{ - public enum PrintingPermissionLevel { - AllPrinting = 3, - DefaultPrinting = 2, - NoPrinting = 0, - SafePrinting = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Text/GenericFontFamilies.cs b/mcs/class/System.Drawing/System.Drawing.Text/GenericFontFamilies.cs deleted file mode 100644 index 3b76c6b94b0ab..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Text/GenericFontFamilies.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Drawing.GenericFontFamilies.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Text -{ - public enum GenericFontFamilies { - Monospace = 2, - SansSerif = 1, - Serif = 0 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Text/HotkeyPrefix.cs b/mcs/class/System.Drawing/System.Drawing.Text/HotkeyPrefix.cs deleted file mode 100644 index df0418debc324..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Text/HotkeyPrefix.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Drawing.HotkeyPrefix.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Text -{ - public enum HotkeyPrefix { - Hide = 2, - None = 0, - Show = 1 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.Text/TextRenderingHint.cs b/mcs/class/System.Drawing/System.Drawing.Text/TextRenderingHint.cs deleted file mode 100644 index 5f11cdcbb737a..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.Text/TextRenderingHint.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Drawing.TextRenderingHint.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// -using System; -namespace System.Drawing.Text -{ - public enum TextRenderingHint { - AntiAlias = 4, - AntiAliasGridFit = 3, - ClearTypeGridFit = 5, - SingleBitPerPixel = 2, - SingleBitPerPixelGridFit = 1, - SystemDefault = 0 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing.build b/mcs/class/System.Drawing/System.Drawing.build deleted file mode 100644 index 729894ec2a480..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing.build +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Drawing/System.Drawing/Bitmap.cs b/mcs/class/System.Drawing/System.Drawing/Bitmap.cs deleted file mode 100755 index f874c056179ef..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Bitmap.cs +++ /dev/null @@ -1,278 +0,0 @@ -// -// System.Drawing.Bitmap.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Christian Meyer -// eMail: Christian.Meyer@cs.tum.edu -// -// No implementation has been done yet. I first want to write the method -// headers of every System.Drawing. -// -//Buid warnings. Note add 6 to line numbers for these comments! -//C:\cygwin\usr\local\mcs\class\System.Drawing\System.Drawing\Bitmap.cs(47,18): warning CS0649: Field 'System.Drawing.RGBQUAD.rgbBlue' is never assigned to, and will always have its default value 0 -//C:\cygwin\usr\local\mcs\class\System.Drawing\System.Drawing\Bitmap.cs(48,18): warning CS0649: Field 'System.Drawing.RGBQUAD.rgbGreen' is never assigned to, and will always have its default value 0 -//C:\cygwin\usr\local\mcs\class\System.Drawing\System.Drawing\Bitmap.cs(49,18): warning CS0649: Field 'System.Drawing.RGBQUAD.rgbRed' is never assigned to, and will always have its default value 0 -//C:\cygwin\usr\local\mcs\class\System.Drawing\System.Drawing\Bitmap.cs(50,18): warning CS0649: Field 'System.Drawing.RGBQUAD.rgbReserved' is never assigned to, and will always have its default value 0 -//C:\cygwin\usr\local\mcs\class\System.Drawing\System.Drawing\Bitmap.cs(54,20): warning CS0649: Field 'System.Drawing.BITMAPINFO.colorpalette' is never assigned to, and will always have its default value null -// 2002-03-27 Christian Meyer -// I'll have a closer look at it next week. -// -using System; -using System.Drawing; -using System.Drawing.Imaging; -using System.IO; - -namespace System.Drawing { - struct BITMAPFILEHEADER { // File info header - public uint bfType; // Specifies the type of file. This member must be BM. - public uint bfSize; // Specifies the size of the file, in bytes. - public uint bfReserved1; // Reserved; must be set to zero. - public uint bfReserved2; // Reserved; must be set to zero. - public uint bfOffBits; // Specifies the byte offset from the BITMAPFILEHEADER - // structure to the actual bitmap data in the file. - } - struct BITMAPINFOHEADER { // bitmap info header - public uint biSize; - public int biWidth; - public int biHeight; - public ushort biPlanes; - public ushort biBitCount; - public uint biCompression; - public uint biSizeImage; - public int biXPelsPerMeter; - public int biYPelsPerMeter; - public uint biClrUsed; - public uint biClrImportant; - } - - struct RGBQUAD { - public byte rgbBlue; - public byte rgbGreen; - public byte rgbRed; - public byte rgbReserved; - } - struct BITMAPINFO { // bitmap info - public BITMAPINFOHEADER bitmapinfoheader; - public RGBQUAD[] colorpalette; - } - // I do not think pinning is needed execpt for when locked - // Is layout packed attribute needed here? - struct bitmapstruct { - //placed in a struct to keep all 3 (4 including the color table) contugious in memory.) - public BITMAPFILEHEADER fileheader; //File info header - //bitmapinfo includes the color table - public BITMAPINFO info; //bitmap info - public byte[,] bits; //Actual bitmap bits - } - public sealed class Bitmap : Image { - // TODO: add following to an enum with BI_RLE4 and BI_RLE8 - const int BI_RGB = 0; //? 0 is from example; - bitmapstruct bitmap = new bitmapstruct(); - private void CommonInit (int width, int height) { - // Init BITMAPFILEHANDLE - // document I am working from says tyoe must allways be "BM", - // the example has this set to 19778. - // TODO: verify magic number 19778 for "BM" bfType - bitmap.fileheader.bfType = 19778; - // TODO: is this the correct file size? - bitmap.fileheader.bfSize = (uint) - //bitmap - (width * height * 4) - //add color table, 0 for now - + 0 - // add header - + 60; - bitmap.fileheader.bfReserved1 = 0; - bitmap.fileheader.bfReserved2 = 0; - // bfOffBits is bytes offset between start of bitmap (bimapfileheader) - // and start of actual data bits. - // Example puts it at 118 including 64 bytes of color table. - // I count 124. What is right? - // Also I force 32 bit color for first pass, so for now there is no color table (24 bit or greater) - // TODO: verify magic number 124 for bfOffBits - // TODO: Could also be sizeof(fileheader and bitmapinfo) - bitmap.fileheader.bfOffBits = 60; //14 * 4 for ints + 2 * 2 for words. - - // Init BITMAPINFO HEADER - // TODO: document on bitmaps shows only 1, 4, 8, 24 as valid pixel depths - // TODO; MS's document says 32ppARGB is 32 bits per pixle, the default. - - bitmap.info.bitmapinfoheader.biBitCount = 32; - // biclrused is the number of colors in the bitmap that are actualy used - // in the bitmap. 0 means all. default to this. - // TODO: As far as I know, it is fine to leave this as 0, but - // TODO: that it would be better to do an actual count. - // TODO: If we open an already created bitmap, we could in a later - // TODO: version store that. - bitmap.info.bitmapinfoheader.biClrUsed = 0; - // biclrused is the number of colors in the bitmap that are importiant - // in the bitmap. 0 means all. default to this. - // TODO: As far as I know, it is fine to leave this as 0, - // TODO: If we open an already created bitmap, we could in a later - // TODO: version store that. - // In a new bitmap, I do not know how we would know which colors are importiant. - bitmap.info.bitmapinfoheader.biClrImportant = 0; - // Options are BI_RGB for none, BI_RLE8 for 8 bit color ,BI_RLE4 for 4 bit color - // Only supprt BI_RGB for now; - // TODO: add definition for BI_*** - // TODO: correctly set biSizeImage before supporting compression. - bitmap.info.bitmapinfoheader.biCompression = BI_RGB; - bitmap.info.bitmapinfoheader.biHeight = height; - bitmap.info.bitmapinfoheader.biWidth = width; - // TODO: add support for more planes - bitmap.info.bitmapinfoheader.biPlanes = 1; - // TODO: replace 40 with a sizeof() call - bitmap.info.bitmapinfoheader.biSize = 40;// size of this structure. - // TODO: correctly set biSizeImage so compression can be supported. - bitmap.info.bitmapinfoheader.biSizeImage = 0; //0 is allowed for BI_RGB (no compression) - // The example uses 0 for pels per meter, so do I. - // TODO: support pels per meter - bitmap.info.bitmapinfoheader.biXPelsPerMeter = 0; - bitmap.info.bitmapinfoheader.biYPelsPerMeter = 0; - bitmap.bits = new byte[width*4, height]; - } - #region constructors - // constructors - public Bitmap (int width, int height) { - CommonInit (width, height); - } - - public Bitmap (int width, int height, Graphics g) { - //TODO: Error check X,Y - CommonInit (width,height); - //TODO: use graphics to set vertial and horzontal resolution. - //TODO: that is all the spec requires or desires - } - - public Bitmap (int width, int heigth, PixelFormat format) { - if ((int)format != BI_RGB) { - throw new NotImplementedException (); - } - CommonInit (width, heigth); - } - - public Bitmap (Image origial) { - throw new NotImplementedException (); - //this.original = original; - } - - public Bitmap (Stream stream) { - throw new NotImplementedException (); - //this.stream = stream; - } - - public Bitmap (string filename) { - throw new NotImplementedException (); - //this.filename = filename; - } - - public Bitmap (Image original, Size newSize) { - throw new NotImplementedException (); - //this.original = original; - //this.newSize = newSize; - } - - public Bitmap (Stream stream, bool useIcm) { - throw new NotImplementedException (); - //this.stream = stream; - //this.useIcm = useIcm; - } - - public Bitmap (string filename, bool useIcm) { - throw new NotImplementedException (); - //this.filename = filename; - //this.useIcm = useIcm; - } - - public Bitmap (Type type, string resource) { - throw new NotImplementedException (); - //this.type = type; - //this.resource = resource; - } - - public Bitmap (Image original, int width, int heigth) { - throw new NotImplementedException (); - //this.original = original; - //this.width = width; - //this.heigth = heigth; - } - - - public Bitmap (int width, int height, int stride, - PixelFormat format, IntPtr scan0) { - throw new NotImplementedException (); - //this.width = width; - //this.heigth = heigth; - //this.stride = stride; - //this.format = format; - //this.scan0 = scan0; - } - #endregion - // methods - public Color GetPixel (int x, int y) { - //TODO: Error check X,Y - return Color.FromArgb (bitmap.bits[x,y], bitmap.bits[x+1,y], bitmap.bits[x+2,y], bitmap.bits[x+3,y]); - } - - public void SetPixel (int x, int y, Color color) { - //TODO: Error check X,Y - bitmap.bits[x, y] = color.A; - bitmap.bits[x + 1, y] = color.R; - bitmap.bits[x + 2, y] = color.G; - bitmap.bits[x + 2, y] = color.B; - } - - public Bitmap Clone (Rectangle rect,PixelFormat format) { - throw new NotImplementedException (); - } - - public Bitmap Clone (RectangleF rect, PixelFormat format) { - throw new NotImplementedException (); - } - - public static Bitmap FromHicon (IntPtr hicon) { - throw new NotImplementedException (); - } - - public static Bitmap FromResource (IntPtr hinstance, - string bitmapName) { - throw new NotImplementedException (); - } - - public IntPtr GetHbitmap () { - throw new NotImplementedException (); - } - - public IntPtr GetHbitmap (Color background) { - throw new NotImplementedException (); - } - - public IntPtr GetHicon () { - throw new NotImplementedException (); - } - - public BitmapData LockBits (Rectangle rect, ImageLockMode flags, - PixelFormat format) { - throw new NotImplementedException (); - } - - public void MakeTransparent () { - throw new NotImplementedException (); - } - - public void MakeTransparent (Color transparentColor) { - throw new NotImplementedException (); - } - - public void SetResolution (float xDpi, float yDpi) { - throw new NotImplementedException (); - } - - public void UnlockBits (BitmapData bitmapdata) { - throw new NotImplementedException (); - } - - // properties - // needs to be done ###FIXME### - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/Brush.cs b/mcs/class/System.Drawing/System.Drawing/Brush.cs deleted file mode 100755 index 731f2d55408fe..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Brush.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// System.Drawing.Brush.cs -// -// Author: -// Miguel de Icaza (miguel@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -using System; - -namespace System.Drawing { - - public abstract class Brush : MarshalByRefObject, ICloneable, IDisposable { - - abstract public object Clone (); - - public void Dispose () - { - Dispose (true); - System.GC.SuppressFinalize (this); - } - - void Dispose (bool disposing) - { - // Nothing for now. - } - - ~Brush () - { - Dispose (false); - } - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/ChangeLog b/mcs/class/System.Drawing/System.Drawing/ChangeLog deleted file mode 100644 index eaf90d20a5899..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/ChangeLog +++ /dev/null @@ -1,85 +0,0 @@ -2002-07-28 Gonzalo Paniagua Javier - - * ColorTranslator.cs: use Color.Name. - -2002-07-18 Gonzalo Paniagua Javier - - * Color.cs: implemented SystemColors and NamedColors properties that - are used by ColorConverter, removed public constructor, use - SystemColors, and misc. fixes to make it behave as MS (ToString, - parsing names, FromKnownColor,...). - - * ColorConverter.cs: use NamedColors and SystemColors from Color when - trying to get the color from its name. - - * SystemColors.cs: new file. - -2002-07-16 Gonzalo Paniagua Javier - - * Color.cs: changed static properties to use FromArgbNamed. Also - modified the program included in comments that get the values for - static properties. - - (FromArgbNamed): build named colors. - (FromKnownColor): fixed. - (FromName): use a hash to look up colors by name. - (FillColorNames): create the hash of colors. - (Equals): compare values and name. - (ToString): improved. - - * ColorTranslator.cs: implemented ToHtml. - -2002-06-20 Gonzalo Paniagua Javier - - * Color.cs: added TypeConverter attribute. - - * ColorConverter.cs: added constructor. - -2002-06-15 Gonzalo Paniagua Javier - - * ColorConverter.cs: implemented minimal set of features needed by xsp. - -2002-05-03 Mike Kestner - - * Bitmap.cs : using System.IO - * ColorTranslator.cs : Stubbed off build breakers. - * Image.cs : Stub off IDisposable and ICloneable. - -2002-04-27 Christian Meyer - - * Bitmap.cs: Ximian is the new copyright holder now. - * Image.cs: ditto - -2002-04-05 Christian Meyer - - * Uppercased several files. - -2002-04-05 Christian Meyer - - * color.cs: Fixed a typo in GetSaturation (). - -2002-02-26 Christian Meyer - - * Bitmap.cs: Added method headers. - -2002-02-25 Christian Meyer - - * Bitmap.cs: Added, no implementation's done, yet. - -2001-12-15 Mike Kestner - - * Rectangle.cs : Add a doc comment. - * RectangleF.cs : New struct implementation. - -2001-12-15 Mike Kestner - - * Rectangle.cs : New struct implementation. - -2001-08-17 Mike Kestner - - * PointF.cs, Size.cs, SizeF.cs : New struct implementations. - -2001-08-16 Mike Kestner - - * Point.cs : New. Implementation of System.Drawing.Point struct. - diff --git a/mcs/class/System.Drawing/System.Drawing/Color.cs b/mcs/class/System.Drawing/System.Drawing/Color.cs deleted file mode 100644 index 94dde354b60f7..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Color.cs +++ /dev/null @@ -1,1453 +0,0 @@ -// -// System.Drawing.Color.cs -// -// Authors: -// Dennis Hayes (dennish@raytek.com) -// Ben Houston (ben@exocortex.org) -// Gonzalo Paniagua (gonzalo@ximian.com) -// -// (C) 2002 Dennis Hayes -// (c) 2002 Ximian, Inc. (http://www.ximiam.com) -// -// TODO: Are the static/non static functions declared correctly - -using System; -using System.Collections; -using System.ComponentModel; -using System.Reflection; - -namespace System.Drawing -{ - [TypeConverter(typeof(ColorConverter))] - [Serializable] - public struct Color - { - private static Hashtable namedColors; - private static Hashtable systemColors; - // Private transparancy (A) and R,G,B fields. - byte a; - byte r; - byte g; - byte b; - private static string creatingColorNames = "creatingColorNames"; - - // The specs also indicate that all three of these propities are true - // if created with FromKnownColor or FromNamedColor, false otherwise (FromARGB). - // Per Microsoft and ECMA specs these varibles are set by which constructor is used, not by their values. - bool isknowncolor; - bool isnamedcolor; - bool issystemcolor; - KnownColor knownColor; - - string myname; - - public string Name { - get{ - return myname; - } - } - - public bool IsKnownColor { - get{ - return isknowncolor; - } - } - - public bool IsSystemColor { - get{ - return issystemcolor; - } - } - - public bool IsNamedColor { - get{ - if (!isnamedcolor) - return IsKnownColor; - return isnamedcolor; - } - } - - - public static Color FromArgb (int red, int green, int blue) - { - return FromArgb (255, red, green, blue); - } - - public static Color FromArgb (int alpha, int red, int green, int blue) - { - CheckARGBValues (alpha, red, green, blue); - Color color = new Color (); - color.a = (byte) alpha; - color.r = (byte) red; - color.g = (byte) green; - color.b = (byte) blue; - color.myname = String.Empty; - return color; - } - - private static Color FromArgbNamed (int alpha, int red, int green, int blue, string name) - { - Color color = FromArgb (alpha, red, green, blue); - color.isknowncolor = true; - color.isnamedcolor = true; - //color.issystemcolor = false; //??? - color.myname = name; - color.knownColor = (KnownColor) Enum.Parse (typeof (KnownColor), name, false); - return color; - } - - internal static Color FromArgbSystem (int alpha, int red, int green, int blue, string name) - { - Color color = FromArgbNamed (alpha, red, green, blue, name); - color.issystemcolor = true; - return color; - } - - public int ToArgb() - { - return a << 24 | r << 16 | g << 8 | b; - } - - public static Color FromArgb (int alpha, Color baseColor) - { - return FromArgb (alpha, baseColor.r, baseColor.g, baseColor.b); - } - - public static Color FromArgb (int argb) - { - return FromArgb (argb >> 24, (argb >> 16) & 0x0FF, (argb >> 8) & 0x0FF, argb & 0x0FF); - } - - public static Color FromKnownColor (KnownColor knownColorToConvert) - { - Color c = FromName (knownColorToConvert.ToString ()); - c.knownColor = knownColorToConvert; - return c; - } - - private static Hashtable GetColorHashtableFromType (Type type) - { - Hashtable colorHash = new Hashtable (CaseInsensitiveHashCodeProvider.Default, - CaseInsensitiveComparer.Default); - - PropertyInfo [] props = type.GetProperties (); - foreach (PropertyInfo prop in props){ - if (prop.PropertyType != typeof (Color)) - continue; - - MethodInfo getget = prop.GetGetMethod (); - if (getget == null || getget.IsStatic == false) - continue; - - colorHash.Add (prop.Name, prop.GetValue (null, null)); - } - return colorHash; - } - - private static void FillColorNames () - { - if (systemColors != null) - return; - - lock (creatingColorNames) { - if (systemColors != null) - return; - - Hashtable colorHash = GetColorHashtableFromType (typeof (Color)); - namedColors = colorHash; - - colorHash = GetColorHashtableFromType (typeof (SystemColors)); - systemColors = colorHash; - } - } - - public static Color FromName (string colorName) - { - object c = NamedColors [colorName]; - if (c == null) { - c = SystemColors [colorName]; - if (c == null) { - // This is what it returns! - Color d = FromArgb (0, 0, 0, 0); - d.myname = colorName; - d.isnamedcolor = true; - c = d; - } - } - - return (Color) c; - } - - internal static Hashtable NamedColors - { - get { - FillColorNames (); - return namedColors; - } - } - - internal static Hashtable SystemColors - { - get { - FillColorNames (); - return systemColors; - } - } - - // ----------------------- - // Public Shared Members - // ----------------------- - - /// - /// Empty Shared Field - /// - /// - /// - /// An uninitialized Color Structure - /// - - public static readonly Color Empty; - - /// - /// Equality Operator - /// - /// - /// - /// Compares two Color objects. The return value is - /// based on the equivalence of the A,R,G,B properties - /// of the two Colors. - /// - - public static bool operator == (Color colorA, Color colorB) - { - return ((colorA.a == colorB.a) && (colorA.r == colorB.r) - && (colorA.g == colorB.g) && (colorA.b == colorB.b)); - } - - /// - /// Inequality Operator - /// - /// - /// - /// Compares two Color objects. The return value is - /// based on the equivalence of the A,R,G,B properties - /// of the two colors. - /// - - public static bool operator != (Color colorA, Color colorB) - { - return ((colorA.a != colorB.a) || (colorA.r != colorB.r) - || (colorA.g != colorB.g) || (colorA.b != colorB.b)); - } - - public float GetBrightness (){ - // Intensity is the normalized sum of the three RGB values.; - return ((float)(r + g + b))/(255*3); - } - public float GetSaturation (){ - // S = 1 - I * Min(r,g,b) - return (255 - - (((float)(r + g +b))/3)*Math.Min(r,Math.Min(g,b)) - )/255; - } - - public float GetHue (){ - float top = ((float)(2*r-g-b))/(2*255); - float bottom = (float)Math.Sqrt(((r-g)*(r-g) + (r-b)*(g-b))/255); - return (float)Math.Acos(top/bottom); - } - - // ----------------------- - // Public Instance Members - // ----------------------- - - /// - /// ToKnownColor method - /// - /// - /// - /// Returns the KnownColor enum value for this color, 0 if is not known. - /// - public KnownColor ToKnownColor () - { - return knownColor; - } - - /// - /// IsEmpty Property - /// - /// - /// - /// Indicates transparent black. R,G,B = 0; A=0? - /// - - public bool IsEmpty - { - get { - return (a + r + g + b) == 0; - } - } - - /// - /// A Property - /// - /// - /// - /// The transparancy of the Color. - /// - - public byte A - { - get { - return a; - } - } - - /// - /// R Property - /// - /// - /// - /// The red value of the Color. - /// - - public byte R - { - get { - return r; - } - } - - /// - /// G Property - /// - /// - /// - /// The green value of the Color. - /// - - public byte G - { - get { - return g; - } - } - - /// - /// B Property - /// - /// - /// - /// The blue value of the Color. - /// - - public byte B - { - get { - return b; - } - } - - /// - /// Equals Method - /// - /// - /// - /// Checks equivalence of this Color and another object. - /// - - public override bool Equals (object o) - { - if (!(o is Color)) - return false; - - Color c = (Color) o; - if (c.r == r && c.g == g && c.b == b) { - if (myname != null || c.myname != null) - return (myname == c.myname); - return true; - } - return false; - } - - /// - /// Reference Equals Method - /// Is commented out because this is handled by the base class. - /// TODO: Is it correct to let the base class handel reference equals - /// - /// - /// - /// Checks equivalence of this Color and another object. - /// - //public bool ReferenceEquals (object o) - //{ - // if (!(o is Color))return false; - // return (this == (Color) o); - //} - - - - /// - /// GetHashCode Method - /// - /// - /// - /// Calculates a hashing value. - /// - - public override int GetHashCode () - { - return ToArgb().GetHashCode(); - } - - /// - /// ToString Method - /// - /// - /// - /// Formats the Color as a string in ARGB notation. - /// - - public override string ToString () - { - if (myname != "") - return "Color [" + myname + "]"; - - return String.Format ("Color [A={0}, R={1}, G={2}, B={3}]", a, r, g, b); - } -  - private static void CheckRGBValues (int red,int green,int blue) - { - if( (red > 255) || (red < 0)) - throw new System.ArgumentOutOfRangeException - ("red",red,"Value must be in the range 0 - 255"); - if( (green > 255) || (green < 0)) - throw new System.ArgumentOutOfRangeException - ("green",green,"Value must be in the range 0 - 255"); - if( (blue > 255) || (blue < 0)) - throw new System.ArgumentOutOfRangeException - ("blue",blue,"Value must be in the range 0 - 255"); - } - - private static void CheckARGBValues (int alpha,int red,int green,int blue) - { - if( (alpha > 255) || (alpha < 0)) - throw new System.ArgumentOutOfRangeException - ("alpha",alpha,"Value must be in the range 0 - 255"); - CheckRGBValues(red,green,blue); - } - - //Documentation, do not remove! - //This is the program that was used to generate the C# source code below. - //using System; - //using System.Diagnostics; - //using System.Drawing; - //using System.Reflection; - //public class m { - //static void Main(string[] args) - //{ - // Type cType = typeof (Color); - // PropertyInfo [] properties = cType.GetProperties (); - // foreach (PropertyInfo property in properties) { - // MethodInfo method = property.GetGetMethod(); - // if (method != null && method.IsStatic && method.ReturnType == cType) { - // Color c = (Color) method.Invoke( null, new object[0] ); - // Console.WriteLine("static public Color " + property.Name); - // Console.WriteLine("{\t\n\tget {"); - // Console.WriteLine("\t\treturn Color.FromArgbNamed ({0}, {1}, {2}, {3}, \"{4}\");", - // c.A, c.R, c.G, c.B, property.Name); - // Console.WriteLine("\t}"); - // Console.WriteLine("}\n"); - // } - // } - //} - //} - - static public Color Transparent - { - get { - return Color.FromArgbNamed (0, 255, 255, 255, "Transparent"); - } - } - - static public Color AliceBlue - { - get { - return Color.FromArgbNamed (255, 240, 248, 255, "AliceBlue"); - } - } - - static public Color AntiqueWhite - { - get { - return Color.FromArgbNamed (255, 250, 235, 215, "AntiqueWhite"); - } - } - - static public Color Aqua - { - get { - return Color.FromArgbNamed (255, 0, 255, 255, "Aqua"); - } - } - - static public Color Aquamarine - { - get { - return Color.FromArgbNamed (255, 127, 255, 212, "Aquamarine"); - } - } - - static public Color Azure - { - get { - return Color.FromArgbNamed (255, 240, 255, 255, "Azure"); - } - } - - static public Color Beige - { - get { - return Color.FromArgbNamed (255, 245, 245, 220, "Beige"); - } - } - - static public Color Bisque - { - get { - return Color.FromArgbNamed (255, 255, 228, 196, "Bisque"); - } - } - - static public Color Black - { - get { - return Color.FromArgbNamed (255, 0, 0, 0, "Black"); - } - } - - static public Color BlanchedAlmond - { - get { - return Color.FromArgbNamed (255, 255, 235, 205, "BlanchedAlmond"); - } - } - - static public Color Blue - { - get { - return Color.FromArgbNamed (255, 0, 0, 255, "Blue"); - } - } - - static public Color BlueViolet - { - get { - return Color.FromArgbNamed (255, 138, 43, 226, "BlueViolet"); - } - } - - static public Color Brown - { - get { - return Color.FromArgbNamed (255, 165, 42, 42, "Brown"); - } - } - - static public Color BurlyWood - { - get { - return Color.FromArgbNamed (255, 222, 184, 135, "BurlyWood"); - } - } - - static public Color CadetBlue - { - get { - return Color.FromArgbNamed (255, 95, 158, 160, "CadetBlue"); - } - } - - static public Color Chartreuse - { - get { - return Color.FromArgbNamed (255, 127, 255, 0, "Chartreuse"); - } - } - - static public Color Chocolate - { - get { - return Color.FromArgbNamed (255, 210, 105, 30, "Chocolate"); - } - } - - static public Color Coral - { - get { - return Color.FromArgbNamed (255, 255, 127, 80, "Coral"); - } - } - - static public Color CornflowerBlue - { - get { - return Color.FromArgbNamed (255, 100, 149, 237, "CornflowerBlue"); - } - } - - static public Color Cornsilk - { - get { - return Color.FromArgbNamed (255, 255, 248, 220, "Cornsilk"); - } - } - - static public Color Crimson - { - get { - return Color.FromArgbNamed (255, 220, 20, 60, "Crimson"); - } - } - - static public Color Cyan - { - get { - return Color.FromArgbNamed (255, 0, 255, 255, "Cyan"); - } - } - - static public Color DarkBlue - { - get { - return Color.FromArgbNamed (255, 0, 0, 139, "DarkBlue"); - } - } - - static public Color DarkCyan - { - get { - return Color.FromArgbNamed (255, 0, 139, 139, "DarkCyan"); - } - } - - static public Color DarkGoldenrod - { - get { - return Color.FromArgbNamed (255, 184, 134, 11, "DarkGoldenrod"); - } - } - - static public Color DarkGray - { - get { - return Color.FromArgbNamed (255, 169, 169, 169, "DarkGray"); - } - } - - static public Color DarkGreen - { - get { - return Color.FromArgbNamed (255, 0, 100, 0, "DarkGreen"); - } - } - - static public Color DarkKhaki - { - get { - return Color.FromArgbNamed (255, 189, 183, 107, "DarkKhaki"); - } - } - - static public Color DarkMagenta - { - get { - return Color.FromArgbNamed (255, 139, 0, 139, "DarkMagenta"); - } - } - - static public Color DarkOliveGreen - { - get { - return Color.FromArgbNamed (255, 85, 107, 47, "DarkOliveGreen"); - } - } - - static public Color DarkOrange - { - get { - return Color.FromArgbNamed (255, 255, 140, 0, "DarkOrange"); - } - } - - static public Color DarkOrchid - { - get { - return Color.FromArgbNamed (255, 153, 50, 204, "DarkOrchid"); - } - } - - static public Color DarkRed - { - get { - return Color.FromArgbNamed (255, 139, 0, 0, "DarkRed"); - } - } - - static public Color DarkSalmon - { - get { - return Color.FromArgbNamed (255, 233, 150, 122, "DarkSalmon"); - } - } - - static public Color DarkSeaGreen - { - get { - return Color.FromArgbNamed (255, 143, 188, 139, "DarkSeaGreen"); - } - } - - static public Color DarkSlateBlue - { - get { - return Color.FromArgbNamed (255, 72, 61, 139, "DarkSlateBlue"); - } - } - - static public Color DarkSlateGray - { - get { - return Color.FromArgbNamed (255, 47, 79, 79, "DarkSlateGray"); - } - } - - static public Color DarkTurquoise - { - get { - return Color.FromArgbNamed (255, 0, 206, 209, "DarkTurquoise"); - } - } - - static public Color DarkViolet - { - get { - return Color.FromArgbNamed (255, 148, 0, 211, "DarkViolet"); - } - } - - static public Color DeepPink - { - get { - return Color.FromArgbNamed (255, 255, 20, 147, "DeepPink"); - } - } - - static public Color DeepSkyBlue - { - get { - return Color.FromArgbNamed (255, 0, 191, 255, "DeepSkyBlue"); - } - } - - static public Color DimGray - { - get { - return Color.FromArgbNamed (255, 105, 105, 105, "DimGray"); - } - } - - static public Color DodgerBlue - { - get { - return Color.FromArgbNamed (255, 30, 144, 255, "DodgerBlue"); - } - } - - static public Color Firebrick - { - get { - return Color.FromArgbNamed (255, 178, 34, 34, "Firebrick"); - } - } - - static public Color FloralWhite - { - get { - return Color.FromArgbNamed (255, 255, 250, 240, "FloralWhite"); - } - } - - static public Color ForestGreen - { - get { - return Color.FromArgbNamed (255, 34, 139, 34, "ForestGreen"); - } - } - - static public Color Fuchsia - { - get { - return Color.FromArgbNamed (255, 255, 0, 255, "Fuchsia"); - } - } - - static public Color Gainsboro - { - get { - return Color.FromArgbNamed (255, 220, 220, 220, "Gainsboro"); - } - } - - static public Color GhostWhite - { - get { - return Color.FromArgbNamed (255, 248, 248, 255, "GhostWhite"); - } - } - - static public Color Gold - { - get { - return Color.FromArgbNamed (255, 255, 215, 0, "Gold"); - } - } - - static public Color Goldenrod - { - get { - return Color.FromArgbNamed (255, 218, 165, 32, "Goldenrod"); - } - } - - static public Color Gray - { - get { - return Color.FromArgbNamed (255, 128, 128, 128, "Gray"); - } - } - - static public Color Green - { - get { - return Color.FromArgbNamed (255, 0, 128, 0, "Green"); - } - } - - static public Color GreenYellow - { - get { - return Color.FromArgbNamed (255, 173, 255, 47, "GreenYellow"); - } - } - - static public Color Honeydew - { - get { - return Color.FromArgbNamed (255, 240, 255, 240, "Honeydew"); - } - } - - static public Color HotPink - { - get { - return Color.FromArgbNamed (255, 255, 105, 180, "HotPink"); - } - } - - static public Color IndianRed - { - get { - return Color.FromArgbNamed (255, 205, 92, 92, "IndianRed"); - } - } - - static public Color Indigo - { - get { - return Color.FromArgbNamed (255, 75, 0, 130, "Indigo"); - } - } - - static public Color Ivory - { - get { - return Color.FromArgbNamed (255, 255, 255, 240, "Ivory"); - } - } - - static public Color Khaki - { - get { - return Color.FromArgbNamed (255, 240, 230, 140, "Khaki"); - } - } - - static public Color Lavender - { - get { - return Color.FromArgbNamed (255, 230, 230, 250, "Lavender"); - } - } - - static public Color LavenderBlush - { - get { - return Color.FromArgbNamed (255, 255, 240, 245, "LavenderBlush"); - } - } - - static public Color LawnGreen - { - get { - return Color.FromArgbNamed (255, 124, 252, 0, "LawnGreen"); - } - } - - static public Color LemonChiffon - { - get { - return Color.FromArgbNamed (255, 255, 250, 205, "LemonChiffon"); - } - } - - static public Color LightBlue - { - get { - return Color.FromArgbNamed (255, 173, 216, 230, "LightBlue"); - } - } - - static public Color LightCoral - { - get { - return Color.FromArgbNamed (255, 240, 128, 128, "LightCoral"); - } - } - - static public Color LightCyan - { - get { - return Color.FromArgbNamed (255, 224, 255, 255, "LightCyan"); - } - } - - static public Color LightGoldenrodYellow - { - get { - return Color.FromArgbNamed (255, 250, 250, 210, "LightGoldenrodYellow"); - } - } - - static public Color LightGreen - { - get { - return Color.FromArgbNamed (255, 144, 238, 144, "LightGreen"); - } - } - - static public Color LightGray - { - get { - return Color.FromArgbNamed (255, 211, 211, 211, "LightGray"); - } - } - - static public Color LightPink - { - get { - return Color.FromArgbNamed (255, 255, 182, 193, "LightPink"); - } - } - - static public Color LightSalmon - { - get { - return Color.FromArgbNamed (255, 255, 160, 122, "LightSalmon"); - } - } - - static public Color LightSeaGreen - { - get { - return Color.FromArgbNamed (255, 32, 178, 170, "LightSeaGreen"); - } - } - - static public Color LightSkyBlue - { - get { - return Color.FromArgbNamed (255, 135, 206, 250, "LightSkyBlue"); - } - } - - static public Color LightSlateGray - { - get { - return Color.FromArgbNamed (255, 119, 136, 153, "LightSlateGray"); - } - } - - static public Color LightSteelBlue - { - get { - return Color.FromArgbNamed (255, 176, 196, 222, "LightSteelBlue"); - } - } - - static public Color LightYellow - { - get { - return Color.FromArgbNamed (255, 255, 255, 224, "LightYellow"); - } - } - - static public Color Lime - { - get { - return Color.FromArgbNamed (255, 0, 255, 0, "Lime"); - } - } - - static public Color LimeGreen - { - get { - return Color.FromArgbNamed (255, 50, 205, 50, "LimeGreen"); - } - } - - static public Color Linen - { - get { - return Color.FromArgbNamed (255, 250, 240, 230, "Linen"); - } - } - - static public Color Magenta - { - get { - return Color.FromArgbNamed (255, 255, 0, 255, "Magenta"); - } - } - - static public Color Maroon - { - get { - return Color.FromArgbNamed (255, 128, 0, 0, "Maroon"); - } - } - - static public Color MediumAquamarine - { - get { - return Color.FromArgbNamed (255, 102, 205, 170, "MediumAquamarine"); - } - } - - static public Color MediumBlue - { - get { - return Color.FromArgbNamed (255, 0, 0, 205, "MediumBlue"); - } - } - - static public Color MediumOrchid - { - get { - return Color.FromArgbNamed (255, 186, 85, 211, "MediumOrchid"); - } - } - - static public Color MediumPurple - { - get { - return Color.FromArgbNamed (255, 147, 112, 219, "MediumPurple"); - } - } - - static public Color MediumSeaGreen - { - get { - return Color.FromArgbNamed (255, 60, 179, 113, "MediumSeaGreen"); - } - } - - static public Color MediumSlateBlue - { - get { - return Color.FromArgbNamed (255, 123, 104, 238, "MediumSlateBlue"); - } - } - - static public Color MediumSpringGreen - { - get { - return Color.FromArgbNamed (255, 0, 250, 154, "MediumSpringGreen"); - } - } - - static public Color MediumTurquoise - { - get { - return Color.FromArgbNamed (255, 72, 209, 204, "MediumTurquoise"); - } - } - - static public Color MediumVioletRed - { - get { - return Color.FromArgbNamed (255, 199, 21, 133, "MediumVioletRed"); - } - } - - static public Color MidnightBlue - { - get { - return Color.FromArgbNamed (255, 25, 25, 112, "MidnightBlue"); - } - } - - static public Color MintCream - { - get { - return Color.FromArgbNamed (255, 245, 255, 250, "MintCream"); - } - } - - static public Color MistyRose - { - get { - return Color.FromArgbNamed (255, 255, 228, 225, "MistyRose"); - } - } - - static public Color Moccasin - { - get { - return Color.FromArgbNamed (255, 255, 228, 181, "Moccasin"); - } - } - - static public Color NavajoWhite - { - get { - return Color.FromArgbNamed (255, 255, 222, 173, "NavajoWhite"); - } - } - - static public Color Navy - { - get { - return Color.FromArgbNamed (255, 0, 0, 128, "Navy"); - } - } - - static public Color OldLace - { - get { - return Color.FromArgbNamed (255, 253, 245, 230, "OldLace"); - } - } - - static public Color Olive - { - get { - return Color.FromArgbNamed (255, 128, 128, 0, "Olive"); - } - } - - static public Color OliveDrab - { - get { - return Color.FromArgbNamed (255, 107, 142, 35, "OliveDrab"); - } - } - - static public Color Orange - { - get { - return Color.FromArgbNamed (255, 255, 165, 0, "Orange"); - } - } - - static public Color OrangeRed - { - get { - return Color.FromArgbNamed (255, 255, 69, 0, "OrangeRed"); - } - } - - static public Color Orchid - { - get { - return Color.FromArgbNamed (255, 218, 112, 214, "Orchid"); - } - } - - static public Color PaleGoldenrod - { - get { - return Color.FromArgbNamed (255, 238, 232, 170, "PaleGoldenrod"); - } - } - - static public Color PaleGreen - { - get { - return Color.FromArgbNamed (255, 152, 251, 152, "PaleGreen"); - } - } - - static public Color PaleTurquoise - { - get { - return Color.FromArgbNamed (255, 175, 238, 238, "PaleTurquoise"); - } - } - - static public Color PaleVioletRed - { - get { - return Color.FromArgbNamed (255, 219, 112, 147, "PaleVioletRed"); - } - } - - static public Color PapayaWhip - { - get { - return Color.FromArgbNamed (255, 255, 239, 213, "PapayaWhip"); - } - } - - static public Color PeachPuff - { - get { - return Color.FromArgbNamed (255, 255, 218, 185, "PeachPuff"); - } - } - - static public Color Peru - { - get { - return Color.FromArgbNamed (255, 205, 133, 63, "Peru"); - } - } - - static public Color Pink - { - get { - return Color.FromArgbNamed (255, 255, 192, 203, "Pink"); - } - } - - static public Color Plum - { - get { - return Color.FromArgbNamed (255, 221, 160, 221, "Plum"); - } - } - - static public Color PowderBlue - { - get { - return Color.FromArgbNamed (255, 176, 224, 230, "PowderBlue"); - } - } - - static public Color Purple - { - get { - return Color.FromArgbNamed (255, 128, 0, 128, "Purple"); - } - } - - static public Color Red - { - get { - return Color.FromArgbNamed (255, 255, 0, 0, "Red"); - } - } - - static public Color RosyBrown - { - get { - return Color.FromArgbNamed (255, 188, 143, 143, "RosyBrown"); - } - } - - static public Color RoyalBlue - { - get { - return Color.FromArgbNamed (255, 65, 105, 225, "RoyalBlue"); - } - } - - static public Color SaddleBrown - { - get { - return Color.FromArgbNamed (255, 139, 69, 19, "SaddleBrown"); - } - } - - static public Color Salmon - { - get { - return Color.FromArgbNamed (255, 250, 128, 114, "Salmon"); - } - } - - static public Color SandyBrown - { - get { - return Color.FromArgbNamed (255, 244, 164, 96, "SandyBrown"); - } - } - - static public Color SeaGreen - { - get { - return Color.FromArgbNamed (255, 46, 139, 87, "SeaGreen"); - } - } - - static public Color SeaShell - { - get { - return Color.FromArgbNamed (255, 255, 245, 238, "SeaShell"); - } - } - - static public Color Sienna - { - get { - return Color.FromArgbNamed (255, 160, 82, 45, "Sienna"); - } - } - - static public Color Silver - { - get { - return Color.FromArgbNamed (255, 192, 192, 192, "Silver"); - } - } - - static public Color SkyBlue - { - get { - return Color.FromArgbNamed (255, 135, 206, 235, "SkyBlue"); - } - } - - static public Color SlateBlue - { - get { - return Color.FromArgbNamed (255, 106, 90, 205, "SlateBlue"); - } - } - - static public Color SlateGray - { - get { - return Color.FromArgbNamed (255, 112, 128, 144, "SlateGray"); - } - } - - static public Color Snow - { - get { - return Color.FromArgbNamed (255, 255, 250, 250, "Snow"); - } - } - - static public Color SpringGreen - { - get { - return Color.FromArgbNamed (255, 0, 255, 127, "SpringGreen"); - } - } - - static public Color SteelBlue - { - get { - return Color.FromArgbNamed (255, 70, 130, 180, "SteelBlue"); - } - } - - static public Color Tan - { - get { - return Color.FromArgbNamed (255, 210, 180, 140, "Tan"); - } - } - - static public Color Teal - { - get { - return Color.FromArgbNamed (255, 0, 128, 128, "Teal"); - } - } - - static public Color Thistle - { - get { - return Color.FromArgbNamed (255, 216, 191, 216, "Thistle"); - } - } - - static public Color Tomato - { - get { - return Color.FromArgbNamed (255, 255, 99, 71, "Tomato"); - } - } - - static public Color Turquoise - { - get { - return Color.FromArgbNamed (255, 64, 224, 208, "Turquoise"); - } - } - - static public Color Violet - { - get { - return Color.FromArgbNamed (255, 238, 130, 238, "Violet"); - } - } - - static public Color Wheat - { - get { - return Color.FromArgbNamed (255, 245, 222, 179, "Wheat"); - } - } - - static public Color White - { - get { - return Color.FromArgbNamed (255, 255, 255, 255, "White"); - } - } - - static public Color WhiteSmoke - { - get { - return Color.FromArgbNamed (255, 245, 245, 245, "WhiteSmoke"); - } - } - - static public Color Yellow - { - get { - return Color.FromArgbNamed (255, 255, 255, 0, "Yellow"); - } - } - - static public Color YellowGreen - { - get { - return Color.FromArgbNamed (255, 154, 205, 50, "YellowGreen"); - } - } - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/ColorConverter.cs b/mcs/class/System.Drawing/System.Drawing/ColorConverter.cs deleted file mode 100644 index c0d9a8bc7c8ee..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/ColorConverter.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// System.Drawing.ColorConverter -// -// Authors: -// Gonzalo Paniagua Javier (gonzalo@ximian.com) -// -// (C) 2002 Ximian, Inc (http://www.ximian.com) -// -using System; -using System.ComponentModel; -using System.Globalization; - -namespace System.Drawing { - -public class ColorConverter : TypeConverter -{ - public ColorConverter () - { - } - - public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) - { - if (sourceType == typeof (string)) - return true; - - return base.CanConvertFrom(context, sourceType); - } - - [MonoTODO] - public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType) - { - throw new NotImplementedException (); - } - - public override object ConvertFrom (ITypeDescriptorContext context, - CultureInfo culture, - object value) - { - string s = value as string; - if (s == null) - return base.ConvertFrom (context, culture, value); - - object named = Color.NamedColors [s]; - if (named != null) - return (Color) named; - - named = Color.SystemColors [s]; - if (named != null) - return (Color) named; - - int i; - if (s [0] == '#') - i = Int32.Parse (s.Substring (1), NumberStyles.HexNumber); - else - i = Int32.Parse (s, NumberStyles.Integer); - - int A = (int) (i & 0xFF000000) >> 24; - if (A == 0) - A = 255; - return Color.FromArgb (A, (i & 0x00FF0000) >> 16, (i & 0x00FF00) >> 8, (i & 0x0FF)); - } - - [MonoTODO] - public override object ConvertTo (ITypeDescriptorContext context, - CultureInfo culture, - object value, - Type destinationType) - { - throw new NotImplementedException (); - } -/* - * StandardValuesCollection is TypeDescriptor.StandardValuesCollection - * TODO: check if the compiler already supports that. - public override StandardValuesCollection GetStandardValues (ITypeDescriptorContext context) - { - } -*/ - - [MonoTODO] - public override bool GetStandardValuesSupported (ITypeDescriptorContext context) - { - // This should return true once GetStandardValues is implemented - throw new NotImplementedException (); - } -} -} - diff --git a/mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs b/mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs deleted file mode 100644 index 12579d09b40b9..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -// System.Drawing.ColorTranslator.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// -// Dennis Hayes (dennish@raytek.com) -// Inital Implimentation 3/25/2002 -// All conversions based on best guess, will improve over time -// -using System; -namespace System.Drawing { - public class ColorTranslator{ - // From converisons - /// - /// - /// - /// - /// - public static Color FromHtml(string HtmlFromColor){ - // TODO: - // If first char is "#" - //convert "#RRGGBB" to int and use Color.FromARGB(int) to create color - // else //it is a color name - //If there is a single digit at the end of the name, remove it. - // Call Color.FromKnownColor(HtmlFromColor) - - //At least some Html strings match .NET Colors, - // so this should work for those colors. - // .NET colors, XWindows colors, and WWWC web colors - // are (according to Charles Pretziod) base the same - //colors, so many shouold work if any do. - //return Color.FromKnownColor(HtmlFromColor); - return Color.Empty; - } - - /// - /// - /// - /// - /// - public static Color FromOle(int OLEFromColor){ - //int newcolor; - //TODO: swap RB bytes i.e. AARRGGBB to AABBGGRR - //return Color.FromArgb(newcolor); - return Color.Empty; - } - - /// - /// - /// - /// - /// - public static Color FromWin32(int Win32FromColor){ - //int newcolor; - //TODO: swap RB bytes i.e. AARRGGBB to AABBGGRR - //return Color.FromArgb(newcolor); - return Color.Empty; - } - - // To conversions - public static string ToHtml (Color c) - { - if (c.IsEmpty) - return ""; - - string result; - - if (c.IsNamedColor) - result = c.Name; - else - result = String.Format ("#{0:X2}{1:X2}{2:X2}", c.R, c.G, c.B); - - return result; - } - /// - /// converts from BGR to RGB - /// - /// - /// - public static int ToOle(Color FromColor){ - // TODO: Swap red and blue(from argb), convert to int(toargb) - // Same as ToWin32 - return (Color.FromArgb(FromColor.B,FromColor.G,FromColor.R)).ToArgb(); - } - - /// - /// converts from RGB to BGR - /// - /// - /// - public static int ToWin32(Color FromColor){ - // TODO: Swap red and blue(from argb), convert to int(toargb) - // Same as ToOle - return (Color.FromArgb(FromColor.B,FromColor.G,FromColor.R)).ToArgb(); - } - } -} - - - - diff --git a/mcs/class/System.Drawing/System.Drawing/ContentAlignment.cs b/mcs/class/System.Drawing/System.Drawing/ContentAlignment.cs deleted file mode 100644 index 15f9a6005321e..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/ContentAlignment.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// System.Drawing.ContentAlignment.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - -using System; -namespace System.Drawing -{ - public enum ContentAlignment { - BottomCenter = 1, - BottomLeft = 2, - BottomRight = 3, - MiddleCenter = 4, - MiddleLeft = 5, - MiddleRight = 6, - TopCenter = 7, - TopLeft = 8, - TopRight = 9 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/FontStyle.cs b/mcs/class/System.Drawing/System.Drawing/FontStyle.cs deleted file mode 100644 index 002bbb9fa3d7d..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/FontStyle.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Drawing.fontStyle.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - - -using System; -namespace System.Drawing -{ - public enum FontStyle { - Bold = 1, - Italic = 2, - Regular = 3, - Strikeout = 4, - Underline = 5 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/Graphics.cs b/mcs/class/System.Drawing/System.Drawing/Graphics.cs deleted file mode 100755 index b957e69684a6e..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Graphics.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Drawing.Bitmap.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// - -// -// Just to get things to compile -// -namespace System.Drawing { - - public sealed class Graphics : MarshalByRefObject, IDisposable { - - public void Dispose () - { - } - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/GraphicsUnit.cs b/mcs/class/System.Drawing/System.Drawing/GraphicsUnit.cs deleted file mode 100644 index a5428c3a603eb..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/GraphicsUnit.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.Drawing.GraphicsUnit.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - -using System; -namespace System.Drawing -{ - public enum GraphicsUnit { - Display = 1, - Document = 2, - Inch = 3, - Millimeter = 4, - Pixel = 5, - Point = 6, - World = 7, - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/Image.cs b/mcs/class/System.Drawing/System.Drawing/Image.cs deleted file mode 100644 index 5f3bd7f3f436d..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Image.cs +++ /dev/null @@ -1,199 +0,0 @@ -// -// System.Drawing.Image.cs -// -// (C) 2002 Ximian, Inc. http://www.ximian.com -// Author: Christian Meyer -// eMail: Christian.Meyer@cs.tum.edu -// -// Many methods are still commented. I'll care about them when all necessary -// classes are implemented. -// -namespace System.Drawing { - -using System; -using System.Runtime.Remoting; -using System.Runtime.Serialization; -using System.Drawing.Imaging; - -//[Serializable] -//[ComVisible(true)] - -public abstract class Image : MarshalByRefObject /*, ICloneable, IDisposable, ISerializable */ { - - // constructor - public Image () {} - - // public methods - // static - public static Image FromFile (string filename) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public static Image FromFile (string filename, bool useEmbeddedColorManagement) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public static Bitmap FromHbitmap (IntPtr hbitmap) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public static Bitmap FromHbitmap (IntPtr hbitmap, IntPtr hpalette) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public static int GetPixelFormatSize (PixelFormat pixfmt) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public static bool IsAlphaPixelFormat (PixelFormat pixfmt) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public static bool IsCanonicalPixelFormat (PixelFormat pixfmt) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public static bool IsExtendedPixelFormat (PixelFormat pixfmt) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - // non-static - public RectangleF GetBounds (ref GraphicsUnit pageUnit) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - //public EncoderParameters GetEncoderParameterList(Guid encoder); - //public int GetFrameCount(FrameDimension dimension); - //public PropertyItem GetPropertyItem(int propid); - /* - public Image GetThumbnailImage(int thumbWidth, int thumbHeight, - Image.GetThumbnailImageAbort callback, - IntPtr callbackData); - */ - - public void RemovePropertyItem (int propid) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public void RotateFlip (RotateFlipType rotateFlipType) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - public void Save (string filename) - { - // Fixme: implement me - throw new NotImplementedException (); - } - - //public void Save(Stream stream, ImageFormat format); - //public void Save(string filename, ImageFormat format); - //public void Save(Stream stream, ImageCodecInfo encoder, - // EncoderParameters encoderParams); - //public void Save(string filename, ImageCodecInfo encoder, - // EncoderParameters encoderParams); - //public void SaveAdd(EncoderParameters_ encoderParams); - //public void SaveAdd(Image image, EncoderParameters_ encoderParams); - //public int SelectActiveFrame(FrameDimension dimension, int frameIndex); - //public void SetPropertyItem(PropertyItem propitem); - - // destructor - ~Image() {} - - // properties - public int Flags { - get { - throw new NotImplementedException (); - } - } - - public Guid[] FrameDimensionsList { - get { - throw new NotImplementedException (); - } - } - - public int Height { - get { - throw new NotImplementedException (); - } - } - - public float HorizontalResolution { - get { - throw new NotImplementedException (); - } - } - - public ColorPalette Palette { - get { - throw new NotImplementedException (); - } - set { - throw new NotImplementedException (); - } - } - - public SizeF PhysicalDimension { - get { - throw new NotImplementedException (); - } - } - - public PixelFormat PixelFormat { - get { - throw new NotImplementedException (); - } - } - - public int[] PropertyIdList { - get { - throw new NotImplementedException (); - } - } - - //public PropertyItem[] PropertyItems {get;} - //public ImageFormat RawFormat {get;} - - public Size Size { - get { - throw new NotImplementedException (); - } - } - - public float VerticalResolution { - get { - throw new NotImplementedException (); - } - } - - public int Width { - get { - throw new NotImplementedException (); - } - } - -} - -} diff --git a/mcs/class/System.Drawing/System.Drawing/KnownColor.cs b/mcs/class/System.Drawing/System.Drawing/KnownColor.cs deleted file mode 100644 index 5a60973509f19..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/KnownColor.cs +++ /dev/null @@ -1,182 +0,0 @@ -// -// System.Drawing.Color.cs -// -// (C) 2002 Dennis Hayes -// Author: -// Dennis Hayes (dennish@raytek.com) -// Ben Houston (ben@exocortex.org) -// - -using System; -namespace System.Drawing -{ - public enum KnownColor { - ActiveBorder = 1, - ActiveCaption = 2, - ActiveCaptionText = 3, - AppWorkspace = 4, - Control = 5, - ControlDark = 6, - ControlDarkDark = 7, - ControlLight = 8, - ControlLightLight = 9, - ControlText = 10, - Desktop = 11, - GrayText = 12, - Highlight = 13, - HighlightText = 14, - HotTrack = 15, - InactiveBorder = 16, - InactiveCaption = 17, - InactiveCaptionText = 18, - Info = 19, - InfoText = 20, - Menu = 21, - MenuText = 22, - ScrollBar = 23, - Window = 24, - WindowFrame = 25, - WindowText = 26, - Transparent = 27, - AliceBlue = 28, - AntiqueWhite = 29, - Aqua = 30, - Aquamarine = 31, - Azure = 32, - Beige = 33, - Bisque = 34, - Black = 35, - BlanchedAlmond = 36, - Blue = 37, - BlueViolet = 38, - Brown = 39, - BurlyWood = 40, - CadetBlue = 41, - Chartreuse = 42, - Chocolate = 43, - Coral = 44, - CornflowerBlue = 45, - Cornsilk = 46, - Crimson = 47, - Cyan = 48, - DarkBlue = 49, - DarkCyan = 50, - DarkGoldenrod = 51, - DarkGray = 52, - DarkGreen = 53, - DarkKhaki = 54, - DarkMagenta = 55, - DarkOliveGreen = 56, - DarkOrange = 57, - DarkOrchid = 58, - DarkRed = 59, - DarkSalmon = 60, - DarkSeaGreen = 61, - DarkSlateBlue = 62, - DarkSlateGray = 63, - DarkTurquoise = 64, - DarkViolet = 65, - DeepPink = 66, - DeepSkyBlue = 67, - DimGray = 68, - DodgerBlue = 69, - Firebrick = 70, - FloralWhite = 71, - ForestGreen = 72, - Fuchsia = 73, - Gainsboro = 74, - GhostWhite = 75, - Gold = 76, - Goldenrod = 77, - Gray = 78, - Green = 79, - GreenYellow = 80, - Honeydew = 81, - HotPink = 82, - IndianRed = 83, - Indigo = 84, - Ivory = 85, - Khaki = 86, - Lavender = 87, - LavenderBlush = 88, - LawnGreen = 89, - LemonChiffon = 90, - LightBlue = 91, - LightCoral = 92, - LightCyan = 93, - LightGoldenrodYellow = 94, - LightGreen = 95, - LightGray = 96, - LightPink = 97, - LightSalmon = 98, - LightSeaGreen = 99, - LightSkyBlue = 100, - LightSlateGray = 101, - LightSteelBlue = 102, - LightYellow = 103, - Lime = 104, - LimeGreen = 105, - Linen = 106, - Magenta = 107, - Maroon = 108, - MediumAquamarine = 109, - MediumBlue = 110, - MediumOrchid = 111, - MediumPurple = 112, - MediumSeaGreen = 113, - MediumSlateBlue = 114, - MediumSpringGreen = 115, - MediumTurquoise = 116, - MediumVioletRed = 117, - MidnightBlue = 118, - MintCream = 119, - MistyRose = 120, - Moccasin = 121, - NavajoWhite = 122, - Navy = 123, - OldLace = 124, - Olive = 125, - OliveDrab = 126, - Orange = 127, - OrangeRed = 128, - Orchid = 129, - PaleGoldenrod = 130, - PaleGreen = 131, - PaleTurquoise = 132, - PaleVioletRed = 133, - PapayaWhip = 134, - PeachPuff = 135, - Peru = 136, - Pink = 137, - Plum = 138, - PowderBlue = 139, - Purple = 140, - Red = 141, - RosyBrown = 142, - RoyalBlue = 143, - SaddleBrown = 144, - Salmon = 145, - SandyBrown = 146, - SeaGreen = 147, - SeaShell = 148, - Sienna = 149, - Silver = 150, - SkyBlue = 151, - SlateBlue = 152, - SlateGray = 153, - Snow = 154, - SpringGreen = 155, - SteelBlue = 156, - Tan = 157, - Teal = 158, - Thistle = 159, - Tomato = 160, - Turquoise = 161, - Violet = 162, - Wheat = 163, - White = 164, - WhiteSmoke = 165, - Yellow = 166, - YellowGreen = 167 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/Pen.cs b/mcs/class/System.Drawing/System.Drawing/Pen.cs deleted file mode 100755 index 16c6263b049ed..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Pen.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// System.Drawing.Pen.cs -// -// Author: -// Miguel de Icaza (miguel@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Drawing.Drawing2D; - -namespace System.Drawing { - - public sealed class Pen : MarshalByRefObject, ICloneable, IDisposable { - Brush brush; - Color color; - float width; - PenAlignment alignment; - - public Pen (Brush brush) - { - this.brush = brush; - width = 1; - } - - public Pen (Color color) - { - this.color = color; - width = 1; - } - - public Pen (Brush brush, float width) - { - this.width = width; - this.brush = brush; - } - - public Pen (Color color, float width) - { - this.width = width; - this.color = color; - } - - // - // Properties - // - public PenAlignment Alignment { - get { - return alignment; - } - - set { - alignment = value; - } - } - - public Brush Brush { - get { - return brush; - } - - set { - brush = value; - } - } - - public Color Color { - get { - return color; - } - - set { - color = value; - } - } - - public float Width { - get { - return width; - } - set { - width = value; - } - } - - public object Clone () - { - Pen p = new Pen (brush, width); - - p.color = color; - p.alignment = alignment; - - return p; - } - - public void Dispose () - { - Dispose (true); - System.GC.SuppressFinalize (this); - } - - void Dispose (bool disposing) - { - // Nothing for now. - } - - ~Pen () - { - Dispose (false); - } - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/Point.cs b/mcs/class/System.Drawing/System.Drawing/Point.cs deleted file mode 100644 index fa0db9abc9bb1..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Point.cs +++ /dev/null @@ -1,339 +0,0 @@ -// -// System.Drawing.Point.cs -// -// Author: -// Mike Kestner (mkestner@speakeasy.net) -// -// (C) 2001 Mike Kestner -// - -using System; - -namespace System.Drawing { - - public struct Point { - - // Private x and y coordinate fields. - int cx, cy; - - // ----------------------- - // Public Shared Members - // ----------------------- - - /// - /// Empty Shared Field - /// - /// - /// - /// An uninitialized Point Structure. - /// - - public static readonly Point Empty; - - /// - /// Ceiling Shared Method - /// - /// - /// - /// Produces a Point structure from a PointF structure by - /// taking the ceiling of the X and Y properties. - /// - - public static Point Ceiling (PointF value) - { - int x, y; - checked { - x = (int) Math.Ceiling (value.X); - y = (int) Math.Ceiling (value.Y); - } - - return new Point (x, y); - } - - /// - /// Round Shared Method - /// - /// - /// - /// Produces a Point structure from a PointF structure by - /// rounding the X and Y properties. - /// - - public static Point Round (PointF value) - { - int x, y; - checked { - x = (int) Math.Round (value.X); - y = (int) Math.Round (value.Y); - } - - return new Point (x, y); - } - - /// - /// Truncate Shared Method - /// - /// - /// - /// Produces a Point structure from a PointF structure by - /// truncating the X and Y properties. - /// - - // LAMESPEC: Should this be floor, or a pure cast to int? - - public static Point Truncate (PointF value) - { - int x, y; - checked { - x = (int) value.X; - y = (int) value.Y; - } - - return new Point (x, y); - } - - /// - /// Addition Operator - /// - /// - /// - /// Translates a Point using the Width and Height - /// properties of the given Size. - /// - - public static Point operator + (Point pt, Size sz) - { - return new Point (pt.X + sz.Width, pt.Y + sz.Height); - } - - /// - /// Equality Operator - /// - /// - /// - /// Compares two Point objects. The return value is - /// based on the equivalence of the X and Y properties - /// of the two points. - /// - - public static bool operator == (Point pt_a, Point pt_b) - { - return ((pt_a.X == pt_b.X) && (pt_a.Y == pt_b.Y)); - } - - /// - /// Inequality Operator - /// - /// - /// - /// Compares two Point objects. The return value is - /// based on the equivalence of the X and Y properties - /// of the two points. - /// - - public static bool operator != (Point pt_a, Point pt_b) - { - return ((pt_a.X != pt_b.X) || (pt_a.Y != pt_b.Y)); - } - - /// - /// Subtraction Operator - /// - /// - /// - /// Translates a Point using the negation of the Width - /// and Height properties of the given Size. - /// - - public static Point operator - (Point pt, Size sz) - { - return new Point (pt.X - sz.Width, pt.Y - sz.Height); - } - - /// - /// Point to Size Conversion - /// - /// - /// - /// Returns a Size based on the Coordinates of a given - /// Point. Requires explicit cast. - /// - - public static explicit operator Size (Point pt) - { - return new Size (pt.X, pt.Y); - } - - /// - /// Point to PointF Conversion - /// - /// - /// - /// Creates a PointF based on the coordinates of a given - /// Point. No explicit cast is required. - /// - - public static implicit operator PointF (Point pt) - { - return new PointF (pt.X, pt.Y); - } - - - // ----------------------- - // Public Constructors - // ----------------------- - - /// - /// Point Constructor - /// - /// - /// - /// Creates a Point from an integer which holds the X - /// coordinate in the high order 16 bits and the Y - /// coordinate in the low order 16 bits. - /// - - public Point (int dw) - { - cx = dw >> 16; - cy = dw & 0xffff; - } - - /// - /// Point Constructor - /// - /// - /// - /// Creates a Point from a Size value. - /// - - public Point (Size sz) - { - cx = sz.Width; - cy = sz.Height; - } - - /// - /// Point Constructor - /// - /// - /// - /// Creates a Point from a specified x,y coordinate pair. - /// - - public Point (int x, int y) - { - cx = x; - cy = y; - } - - // ----------------------- - // Public Instance Members - // ----------------------- - - /// - /// IsEmpty Property - /// - /// - /// - /// Indicates if both X and Y are zero. - /// - - public bool IsEmpty { - get { - return ((cx == 0) && (cy == 0)); - } - } - - /// - /// X Property - /// - /// - /// - /// The X coordinate of the Point. - /// - - public int X { - get { - return cx; - } - set { - cx = value; - } - } - - /// - /// Y Property - /// - /// - /// - /// The Y coordinate of the Point. - /// - - public int Y { - get { - return cy; - } - set { - cy = value; - } - } - - /// - /// Equals Method - /// - /// - /// - /// Checks equivalence of this Point and another object. - /// - - public override bool Equals (object o) - { - if (!(o is Point)) - return false; - - return (this == (Point) o); - } - - /// - /// GetHashCode Method - /// - /// - /// - /// Calculates a hashing value. - /// - - public override int GetHashCode () - { - return cx^cy; - } - - /// - /// Offset Method - /// - /// - /// - /// Moves the Point a specified distance. - /// - - public void Offset (int dx, int dy) - { - cx += dx; - cy += dy; - } - - /// - /// ToString Method - /// - /// - /// - /// Formats the Point as a string in coordinate notation. - /// - - public override string ToString () - { - return String.Format ("[{0},{1}]", cx, cy); - } - - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/PointF.cs b/mcs/class/System.Drawing/System.Drawing/PointF.cs deleted file mode 100644 index 42895bdac4abf..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/PointF.cs +++ /dev/null @@ -1,204 +0,0 @@ -// -// System.Drawing.PointF.cs -// -// Author: -// Mike Kestner (mkestner@speakeasy.net) -// -// (C) 2001 Mike Kestner -// - -using System; - -namespace System.Drawing { - - public struct PointF { - - // Private x and y coordinate fields. - float cx, cy; - - // ----------------------- - // Public Shared Members - // ----------------------- - - /// - /// Empty Shared Field - /// - /// - /// - /// An uninitialized PointF Structure. - /// - - public static readonly PointF Empty; - - /// - /// Addition Operator - /// - /// - /// - /// Translates a PointF using the Width and Height - /// properties of the given Size. - /// - - public static PointF operator + (PointF pt, Size sz) - { - return new PointF (pt.X + sz.Width, pt.Y + sz.Height); - } - - /// - /// Equality Operator - /// - /// - /// - /// Compares two PointF objects. The return value is - /// based on the equivalence of the X and Y properties - /// of the two points. - /// - - public static bool operator == (PointF pt_a, PointF pt_b) - { - return ((pt_a.X == pt_b.X) && (pt_a.Y == pt_b.Y)); - } - - /// - /// Inequality Operator - /// - /// - /// - /// Compares two PointF objects. The return value is - /// based on the equivalence of the X and Y properties - /// of the two points. - /// - - public static bool operator != (PointF pt_a, PointF pt_b) - { - return ((pt_a.X != pt_b.X) || (pt_a.Y != pt_b.Y)); - } - - /// - /// Subtraction Operator - /// - /// - /// - /// Translates a PointF using the negation of the Width - /// and Height properties of the given Size. - /// - - public static PointF operator - (PointF pt, Size sz) - { - return new PointF (pt.X - sz.Width, pt.Y - sz.Height); - } - - // ----------------------- - // Public Constructor - // ----------------------- - - /// - /// PointF Constructor - /// - /// - /// - /// Creates a PointF from a specified x,y coordinate pair. - /// - - public PointF (float x, float y) - { - cx = x; - cy = y; - } - - // ----------------------- - // Public Instance Members - // ----------------------- - - /// - /// IsEmpty Property - /// - /// - /// - /// Indicates if both X and Y are zero. - /// - - public bool IsEmpty { - get { - return ((cx == 0.0) && (cy == 0.0)); - } - } - - /// - /// X Property - /// - /// - /// - /// The X coordinate of the PointF. - /// - - public float X { - get { - return cx; - } - set { - cx = value; - } - } - - /// - /// Y Property - /// - /// - /// - /// The Y coordinate of the PointF. - /// - - public float Y { - get { - return cy; - } - set { - cy = value; - } - } - - /// - /// Equals Method - /// - /// - /// - /// Checks equivalence of this PointF and another object. - /// - - public override bool Equals (object o) - { - if (!(o is PointF)) - return false; - - return (this == (PointF) o); - } - - /// - /// GetHashCode Method - /// - /// - /// - /// Calculates a hashing value. - /// - - public override int GetHashCode () - { - return (int) cx ^ (int) cy; - } - - /// - /// ToString Method - /// - /// - /// - /// Formats the PointF as a string in coordinate notation. - /// - - public override string ToString () - { - return String.Format ("[{0},{1}]", cx, cy); - } - - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/Rectangle.cs b/mcs/class/System.Drawing/System.Drawing/Rectangle.cs deleted file mode 100644 index 45f287551020c..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Rectangle.cs +++ /dev/null @@ -1,584 +0,0 @@ -// -// System.Drawing.Rectangle.cs -// -// Author: -// Mike Kestner (mkestner@speakeasy.net) -// -// (C) 2001 Mike Kestner -// - -using System; - -namespace System.Drawing { - - public struct Rectangle { - - // Private position and size fields. - private Point loc; - private Size sz; - - /// - /// Empty Shared Field - /// - /// - /// - /// An uninitialized Rectangle Structure. - /// - - public static readonly Rectangle Empty; - - /// - /// Ceiling Shared Method - /// - /// - /// - /// Produces a Rectangle structure from a RectangleF - /// structure by taking the ceiling of the X, Y, Width, - /// and Height properties. - /// - - public static Rectangle Ceiling (RectangleF value) - { - int x, y, w, h; - checked { - x = (int) Math.Ceiling (value.X); - y = (int) Math.Ceiling (value.Y); - w = (int) Math.Ceiling (value.Width); - h = (int) Math.Ceiling (value.Height); - } - - return new Rectangle (x, y, w, h); - } - - /// - /// FromLTRB Shared Method - /// - /// - /// - /// Produces a Rectangle structure from left, top, right, - /// and bottom coordinates. - /// - - public static Rectangle FromLTRB (int left, int top, - int right, int bottom) - { - return new Rectangle (left, top, right - left, - bottom - top); - } - - /// - /// Inflate Shared Method - /// - /// - /// - /// Produces a new Rectangle by inflating an existing - /// Rectangle by the specified coordinate values. - /// - - public static Rectangle Inflate (Rectangle rect, int x, int y) - { - Rectangle r = new Rectangle (rect.Location, rect.Size); - r.Inflate (x, y); - return r; - } - - /// - /// Inflate Method - /// - /// - /// - /// Inflates the Rectangle by a specified width and height. - /// - - public void Inflate (int width, int height) - { - Inflate (new Size (width, height)); - } - - /// - /// Inflate Method - /// - /// - /// - /// Inflates the Rectangle by a specified Size. - /// - - public void Inflate (Size sz) - { - loc -= sz; - Size ds = new Size (sz.Width * 2, sz.Height * 2); - this.sz += ds; - } - - /// - /// Intersect Shared Method - /// - /// - /// - /// Produces a new Rectangle by intersecting 2 existing - /// Rectangles. Returns null if there is no intersection. - /// - - public static Rectangle Intersect (Rectangle r1, Rectangle r2) - { - Rectangle r = new Rectangle (r1.Location, r1.Size); - r.Intersect (r2); - return r; - } - - /// - /// Intersect Method - /// - /// - /// - /// Replaces the Rectangle with the intersection of itself - /// and another Rectangle. - /// - - public void Intersect (Rectangle r) - { - if (!IntersectsWith (r)) { - loc = Point.Empty; - sz = Size.Empty; - } - - X = Math.Max (Left, r.Left); - Y = Math.Max (Top, r.Top); - Width = Math.Min (Right, r.Right) - X; - Height = Math.Min (Bottom, r.Bottom) - Y; - } - - /// - /// Round Shared Method - /// - /// - /// - /// Produces a Rectangle structure from a RectangleF by - /// rounding the X, Y, Width, and Height properties. - /// - - public static Rectangle Round (RectangleF value) - { - int x, y, w, h; - checked { - x = (int) Math.Round (value.X); - y = (int) Math.Round (value.Y); - w = (int) Math.Round (value.Width); - h = (int) Math.Round (value.Height); - } - - return new Rectangle (x, y, w, h); - } - - /// - /// Truncate Shared Method - /// - /// - /// - /// Produces a Rectangle structure from a RectangleF by - /// truncating the X, Y, Width, and Height properties. - /// - - // LAMESPEC: Should this be floor, or a pure cast to int? - - public static Rectangle Truncate (RectangleF value) - { - int x, y, w, h; - checked { - x = (int) value.X; - y = (int) value.Y; - w = (int) value.Width; - h = (int) value.Height; - } - - return new Rectangle (x, y, w, h); - } - - /// - /// Union Shared Method - /// - /// - /// - /// Produces a new Rectangle from the union of 2 existing - /// Rectangles. - /// - - public static Rectangle Union (Rectangle r1, Rectangle r2) - { - return FromLTRB (Math.Min (r1.Left, r2.Left), - Math.Min (r1.Top, r2.Top), - Math.Max (r1.Right, r2.Right), - Math.Max (r1.Bottom, r2.Bottom)); - } - - /// - /// Equality Operator - /// - /// - /// - /// Compares two Rectangle objects. The return value is - /// based on the equivalence of the Location and Size - /// properties of the two Rectangles. - /// - - public static bool operator == (Rectangle r1, Rectangle r2) - { - return ((r1.Location == r2.Location) && - (r1.Size == r2.Size)); - } - - /// - /// Inequality Operator - /// - /// - /// - /// Compares two Rectangle objects. The return value is - /// based on the equivalence of the Location and Size - /// properties of the two Rectangles. - /// - - public static bool operator != (Rectangle r1, Rectangle r2) - { - return ((r1.Location != r2.Location) || - (r1.Size != r2.Size)); - } - - - // ----------------------- - // Public Constructors - // ----------------------- - - /// - /// Rectangle Constructor - /// - /// - /// - /// Creates a Rectangle from Point and Size values. - /// - - public Rectangle (Point loc, Size sz) - { - this.loc = loc; - this.sz = sz; - } - - /// - /// Rectangle Constructor - /// - /// - /// - /// Creates a Rectangle from a specified x,y location and - /// width and height values. - /// - - public Rectangle (int x, int y, int width, int height) - { - loc = new Point (x, y); - sz = new Size (width, height); - } - - - - /// - /// Bottom Property - /// - /// - /// - /// The Y coordinate of the bottom edge of the Rectangle. - /// Read only. - /// - - public int Bottom { - get { - return Y + Height; - } - } - - /// - /// Height Property - /// - /// - /// - /// The Height of the Rectangle. - /// - - public int Height { - get { - return sz.Height; - } - set { - sz.Height = value; - } - } - - /// - /// IsEmpty Property - /// - /// - /// - /// Indicates if the width or height are zero. Read only. - /// - - public bool IsEmpty { - get { - return ((sz.Width == 0) || (sz.Height == 0)); - } - } - - /// - /// Left Property - /// - /// - /// - /// The X coordinate of the left edge of the Rectangle. - /// Read only. - /// - - public int Left { - get { - return X; - } - } - - /// - /// Location Property - /// - /// - /// - /// The Location of the top-left corner of the Rectangle. - /// - - public Point Location { - get { - return loc; - } - set { - loc = value; - } - } - - /// - /// Right Property - /// - /// - /// - /// The X coordinate of the right edge of the Rectangle. - /// Read only. - /// - - public int Right { - get { - return X + Width; - } - } - - /// - /// Size Property - /// - /// - /// - /// The Size of the Rectangle. - /// - - public Size Size { - get { - return sz; - } - set { - sz = value; - } - } - - /// - /// Top Property - /// - /// - /// - /// The Y coordinate of the top edge of the Rectangle. - /// Read only. - /// - - public int Top { - get { - return Y; - } - } - - /// - /// Width Property - /// - /// - /// - /// The Width of the Rectangle. - /// - - public int Width { - get { - return sz.Width; - } - set { - sz.Width = value; - } - } - - /// - /// X Property - /// - /// - /// - /// The X coordinate of the Rectangle. - /// - - public int X { - get { - return loc.X; - } - set { - loc.X = value; - } - } - - /// - /// Y Property - /// - /// - /// - /// The Y coordinate of the Rectangle. - /// - - public int Y { - get { - return loc.Y; - } - set { - loc.Y = value; - } - } - - /// - /// Contains Method - /// - /// - /// - /// Checks if an x,y coordinate lies within this Rectangle. - /// - - public bool Contains (int x, int y) - { - return ((x >= Left) && (x <= Right) && - (y >= Top) && (y <= Bottom)); - } - - /// - /// Contains Method - /// - /// - /// - /// Checks if a Point lies within this Rectangle. - /// - - public bool Contains (Point pt) - { - return Contains (pt.X, pt.Y); - } - - /// - /// Contains Method - /// - /// - /// - /// Checks if a Rectangle lies entirely within this - /// Rectangle. - /// - - public bool Contains (Rectangle rect) - { - return (rect == Intersect (this, rect)); - } - - /// - /// Equals Method - /// - /// - /// - /// Checks equivalence of this Rectangle and another object. - /// - - public override bool Equals (object o) - { - if (!(o is Rectangle)) - return false; - - return (this == (Rectangle) o); - } - - /// - /// GetHashCode Method - /// - /// - /// - /// Calculates a hashing value. - /// - - public override int GetHashCode () - { - return loc.GetHashCode()^sz.GetHashCode(); - } - - /// - /// IntersectsWith Method - /// - /// - /// - /// Checks if a Rectangle intersects with this one. - /// - - public bool IntersectsWith (Rectangle r) - { - return !((Left > r.Right) || (Right < r.Left) || - (Top > r.Bottom) || (Bottom < r.Top)); - } - - /// - /// Offset Method - /// - /// - /// - /// Moves the Rectangle a specified distance. - /// - - public void Offset (int dx, int dy) - { - X += dx; - Y += dy; - } - - /// - /// Offset Method - /// - /// - /// - /// Moves the Rectangle a specified distance. - /// - - public void Offset (Point pt) - { - loc.Offset(pt.X, pt.Y); - } - - /// - /// ToString Method - /// - /// - /// - /// Formats the Rectangle as a string in (x,y,w,h) notation. - /// - - public override string ToString () - { - return String.Format ("[{0},{1},{2},{3}]", - X, Y, Width, Height); - } - - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/RectangleF.cs b/mcs/class/System.Drawing/System.Drawing/RectangleF.cs deleted file mode 100644 index cfe4a7313edc1..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/RectangleF.cs +++ /dev/null @@ -1,531 +0,0 @@ -// -// System.Drawing.RectangleF.cs -// -// Author: -// Mike Kestner (mkestner@speakeasy.net) -// -// (C) 2001 Mike Kestner -// - -using System; - -namespace System.Drawing { - - public struct RectangleF { - - // Private position and size fields. - private PointF loc; - private SizeF sz; - - /// - /// Empty Shared Field - /// - /// - /// - /// An uninitialized RectangleF Structure. - /// - - public static readonly RectangleF Empty; - - - /// - /// FromLTRB Shared Method - /// - /// - /// - /// Produces a RectangleF structure from left, top, right, - /// and bottom coordinates. - /// - - public static RectangleF FromLTRB (float left, float top, - float right, float bottom) - { - return new RectangleF (left, top, right - left, - bottom - top); - } - - /// - /// Inflate Shared Method - /// - /// - /// - /// Produces a new RectangleF by inflating an existing - /// RectangleF by the specified coordinate values. - /// - - public static RectangleF Inflate (RectangleF r, - float x, float y) - { - RectangleF ir = new RectangleF (r.Location, r.Size); - ir.Inflate (x, y); - return ir; - } - - /// - /// Inflate Method - /// - /// - /// - /// Inflates the RectangleF by a specified width and height. - /// - - public void Inflate (float width, float height) - { - Inflate (new SizeF (width, height)); - } - - /// - /// Inflate Method - /// - /// - /// - /// Inflates the RectangleF by a specified Size. - /// - - public void Inflate (SizeF sz) - { - Offset(sz.Width, sz.Height); - SizeF ds = new SizeF (sz.Width * 2, sz.Height * 2); - this.sz += ds; - } - - /// - /// Intersect Shared Method - /// - /// - /// - /// Produces a new RectangleF by intersecting 2 existing - /// RectangleFs. Returns null if there is no intersection. - /// - - public static RectangleF Intersect (RectangleF r1, - RectangleF r2) - { - RectangleF r = new RectangleF (r1.Location, r1.Size); - r.Intersect (r2); - return r; - } - - /// - /// Intersect Method - /// - /// - /// - /// Replaces the RectangleF with the intersection of itself - /// and another RectangleF. - /// - - public void Intersect (RectangleF r) - { - if (!IntersectsWith (r)) { - loc = PointF.Empty; - sz = SizeF.Empty; - } - - X = Math.Max (Left, r.Left); - Y = Math.Max (Top, r.Top); - Width = Math.Min (Right, r.Right) - X; - Height = Math.Min (Bottom, r.Bottom) - Y; - } - - /// - /// Union Shared Method - /// - /// - /// - /// Produces a new RectangleF from the union of 2 existing - /// RectangleFs. - /// - - public static RectangleF Union (RectangleF r1, RectangleF r2) - { - return FromLTRB (Math.Min (r1.Left, r2.Left), - Math.Min (r1.Top, r2.Top), - Math.Max (r1.Right, r2.Right), - Math.Max (r1.Bottom, r2.Bottom)); - } - - /// - /// Equality Operator - /// - /// - /// - /// Compares two RectangleF objects. The return value is - /// based on the equivalence of the Location and Size - /// properties of the two RectangleFs. - /// - - public static bool operator == (RectangleF r1, RectangleF r2) - { - return ((r1.Location == r2.Location) && - (r1.Size == r2.Size)); - } - - /// - /// Inequality Operator - /// - /// - /// - /// Compares two RectangleF objects. The return value is - /// based on the equivalence of the Location and Size - /// properties of the two RectangleFs. - /// - - public static bool operator != (RectangleF r1, RectangleF r2) - { - return ((r1.Location != r2.Location) || - (r1.Size != r2.Size)); - } - - /// - /// Rectangle to RectangleF Conversion - /// - /// - /// - /// Converts a Rectangle object to a RectangleF. - /// - - public static implicit operator RectangleF (Rectangle r) - { - return new RectangleF (r.Location, r.Size); - } - - - // ----------------------- - // Public Constructors - // ----------------------- - - /// - /// RectangleF Constructor - /// - /// - /// - /// Creates a RectangleF from PointF and SizeF values. - /// - - public RectangleF (PointF loc, SizeF sz) - { - this.loc = loc; - this.sz = sz; - } - - /// - /// RectangleF Constructor - /// - /// - /// - /// Creates a RectangleF from a specified x,y location and - /// width and height values. - /// - - public RectangleF (float x, float y, float width, float height) - { - loc = new PointF (x, y); - sz = new SizeF (width, height); - } - - - - /// - /// Bottom Property - /// - /// - /// - /// The Y coordinate of the bottom edge of the RectangleF. - /// Read only. - /// - - public float Bottom { - get { - return Y + Height; - } - } - - /// - /// Height Property - /// - /// - /// - /// The Height of the RectangleF. - /// - - public float Height { - get { - return sz.Height; - } - set { - sz.Height = value; - } - } - - /// - /// IsEmpty Property - /// - /// - /// - /// Indicates if the width or height are zero. Read only. - /// - - public bool IsEmpty { - get { - return ((sz.Width == 0) || (sz.Height == 0)); - } - } - - /// - /// Left Property - /// - /// - /// - /// The X coordinate of the left edge of the RectangleF. - /// Read only. - /// - - public float Left { - get { - return X; - } - } - - /// - /// Location Property - /// - /// - /// - /// The Location of the top-left corner of the RectangleF. - /// - - public PointF Location { - get { - return loc; - } - set { - loc = value; - } - } - - /// - /// Right Property - /// - /// - /// - /// The X coordinate of the right edge of the RectangleF. - /// Read only. - /// - - public float Right { - get { - return X + Width; - } - } - - /// - /// Size Property - /// - /// - /// - /// The Size of the RectangleF. - /// - - public SizeF Size { - get { - return sz; - } - set { - sz = value; - } - } - - /// - /// Top Property - /// - /// - /// - /// The Y coordinate of the top edge of the RectangleF. - /// Read only. - /// - - public float Top { - get { - return Y; - } - } - - /// - /// Width Property - /// - /// - /// - /// The Width of the RectangleF. - /// - - public float Width { - get { - return sz.Width; - } - set { - sz.Width = value; - } - } - - /// - /// X Property - /// - /// - /// - /// The X coordinate of the RectangleF. - /// - - public float X { - get { - return loc.X; - } - set { - loc.X = value; - } - } - - /// - /// Y Property - /// - /// - /// - /// The Y coordinate of the RectangleF. - /// - - public float Y { - get { - return loc.Y; - } - set { - loc.Y = value; - } - } - - /// - /// Contains Method - /// - /// - /// - /// Checks if an x,y coordinate lies within this RectangleF. - /// - - public bool Contains (float x, float y) - { - return ((x >= Left) && (x <= Right) && - (y >= Top) && (y <= Bottom)); - } - - /// - /// Contains Method - /// - /// - /// - /// Checks if a Point lies within this RectangleF. - /// - - public bool Contains (PointF pt) - { - return Contains (pt.X, pt.Y); - } - - /// - /// Contains Method - /// - /// - /// - /// Checks if a RectangleF lies entirely within this - /// RectangleF. - /// - - public bool Contains (RectangleF rect) - { - return (rect == Intersect (this, rect)); - } - - /// - /// Equals Method - /// - /// - /// - /// Checks equivalence of this RectangleF and an object. - /// - - public override bool Equals (object o) - { - if (!(o is RectangleF)) - return false; - - return (this == (RectangleF) o); - } - - /// - /// GetHashCode Method - /// - /// - /// - /// Calculates a hashing value. - /// - - public override int GetHashCode () - { - return loc.GetHashCode()^sz.GetHashCode(); - } - - /// - /// IntersectsWith Method - /// - /// - /// - /// Checks if a RectangleF intersects with this one. - /// - - public bool IntersectsWith (RectangleF r) - { - return !((Left > r.Right) || (Right < r.Left) || - (Top > r.Bottom) || (Bottom < r.Top)); - } - - /// - /// Offset Method - /// - /// - /// - /// Moves the RectangleF a specified distance. - /// - - public void Offset (float dx, float dy) - { - X += dx; - Y += dy; - } - - /// - /// Offset Method - /// - /// - /// - /// Moves the RectangleF a specified distance. - /// - - public void Offset (PointF pt) - { - Offset(pt.X, pt.Y); - } - - /// - /// ToString Method - /// - /// - /// - /// Formats the RectangleF in (x,y,w,h) notation. - /// - - public override string ToString () - { - return String.Format ("[{0},{1},{2},{3}]", - X, Y, Width, Height); - } - - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/RotateFlipType.cs b/mcs/class/System.Drawing/System.Drawing/RotateFlipType.cs deleted file mode 100644 index c50f32b0bc386..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/RotateFlipType.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -// System.Drawing.RotateFlipType .cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - -using System; -namespace System.Drawing -{ - public enum RotateFlipType { - Rotate180FlipNone = 1, - Rotate180FlipX = 2, - Rotate180FlipXY = 3, - Rotate180FlipY = 4, - Rotate270FlipNone = 5, - Rotate270FlipX = 6, - Rotate270FlipXY = 7, - Rotate270FlipY = 8, - Rotate90FlipNone = 9, - Rotate90FlipX = 10, - Rotate90FlipXY = 11, - Rotate90FlipY = 12, - RotateNoneFlipNone = 13, - RotateNoneFlipX = 14, - RotateNoneFlipXY = 15, - RotateNoneFlipY = 16 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/Size.cs b/mcs/class/System.Drawing/System.Drawing/Size.cs deleted file mode 100644 index d5b56d3a4536c..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/Size.cs +++ /dev/null @@ -1,309 +0,0 @@ -// -// System.Drawing.Size.cs -// -// Author: -// Mike Kestner (mkestner@speakeasy.net) -// -// (C) 2001 Mike Kestner -// - -using System; - -namespace System.Drawing { - - public struct Size { - - // Private height and width fields. - int wd, ht; - - // ----------------------- - // Public Shared Members - // ----------------------- - - /// - /// Empty Shared Field - /// - /// - /// - /// An uninitialized Size Structure. - /// - - public static readonly Size Empty; - - /// - /// Ceiling Shared Method - /// - /// - /// - /// Produces a Size structure from a SizeF structure by - /// taking the ceiling of the Width and Height properties. - /// - - public static Size Ceiling (SizeF value) - { - int w, h; - checked { - w = (int) Math.Ceiling (value.Width); - h = (int) Math.Ceiling (value.Height); - } - - return new Size (w, h); - } - - /// - /// Round Shared Method - /// - /// - /// - /// Produces a Size structure from a SizeF structure by - /// rounding the Width and Height properties. - /// - - public static Size Round (SizeF value) - { - int w, h; - checked { - w = (int) Math.Round (value.Width); - h = (int) Math.Round (value.Height); - } - - return new Size (w, h); - } - - /// - /// Truncate Shared Method - /// - /// - /// - /// Produces a Size structure from a SizeF structure by - /// truncating the Width and Height properties. - /// - - public static Size Truncate (SizeF value) - { - int w, h; - checked { - w = (int) value.Width; - h = (int) value.Height; - } - - return new Size (w, h); - } - - /// - /// Addition Operator - /// - /// - /// - /// Addition of two Size structures. - /// - - public static Size operator + (Size sz1, Size sz2) - { - return new Size (sz1.Width + sz2.Width, - sz1.Height + sz2.Height); - } - - /// - /// Equality Operator - /// - /// - /// - /// Compares two Size objects. The return value is - /// based on the equivalence of the Width and Height - /// properties of the two Sizes. - /// - - public static bool operator == (Size sz_a, Size sz_b) - { - return ((sz_a.Width == sz_b.Width) && - (sz_a.Height == sz_b.Height)); - } - - /// - /// Inequality Operator - /// - /// - /// - /// Compares two Size objects. The return value is - /// based on the equivalence of the Width and Height - /// properties of the two Sizes. - /// - - public static bool operator != (Size sz_a, Size sz_b) - { - return ((sz_a.Width != sz_b.Width) || - (sz_a.Height != sz_b.Height)); - } - - /// - /// Subtraction Operator - /// - /// - /// - /// Subtracts two Size structures. - /// - - public static Size operator - (Size sz1, Size sz2) - { - return new Size (sz1.Width - sz2.Width, - sz1.Height - sz2.Height); - } - - /// - /// Size to Point Conversion - /// - /// - /// - /// Returns a Point based on the dimensions of a given - /// Size. Requires explicit cast. - /// - - public static explicit operator Point (Size sz) - { - return new Point (sz.Width, sz.Height); - } - - /// - /// Size to SizeF Conversion - /// - /// - /// - /// Creates a SizeF based on the dimensions of a given - /// Size. No explicit cast is required. - /// - - public static implicit operator SizeF (Size sz) - { - return new SizeF (sz.Width, sz.Height); - } - - - // ----------------------- - // Public Constructors - // ----------------------- - - /// - /// Size Constructor - /// - /// - /// - /// Creates a Size from a Point value. - /// - - public Size (Point pt) - { - wd = pt.X; - ht = pt.Y; - } - - /// - /// Size Constructor - /// - /// - /// - /// Creates a Size from specified dimensions. - /// - - public Size (int width, int height) - { - wd = width; - ht = height; - } - - // ----------------------- - // Public Instance Members - // ----------------------- - - /// - /// IsEmpty Property - /// - /// - /// - /// Indicates if both Width and Height are zero. - /// - - public bool IsEmpty { - get { - return ((wd == 0) && (ht == 0)); - } - } - - /// - /// Width Property - /// - /// - /// - /// The Width coordinate of the Size. - /// - - public int Width { - get { - return wd; - } - set { - wd = value; - } - } - - /// - /// Height Property - /// - /// - /// - /// The Height coordinate of the Size. - /// - - public int Height { - get { - return ht; - } - set { - ht = value; - } - } - - /// - /// Equals Method - /// - /// - /// - /// Checks equivalence of this Size and another object. - /// - - public override bool Equals (object o) - { - if (!(o is Size)) - return false; - - return (this == (Size) o); - } - - /// - /// GetHashCode Method - /// - /// - /// - /// Calculates a hashing value. - /// - - public override int GetHashCode () - { - return wd^ht; - } - - /// - /// ToString Method - /// - /// - /// - /// Formats the Size as a string in coordinate notation. - /// - - public override string ToString () - { - return String.Format ("[{0},{1}]", wd, ht); - } - - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/SizeF.cs b/mcs/class/System.Drawing/System.Drawing/SizeF.cs deleted file mode 100644 index 1aa0155c56dca..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/SizeF.cs +++ /dev/null @@ -1,249 +0,0 @@ -// -// System.Drawing.SizeF.cs -// -// Author: -// Mike Kestner (mkestner@speakeasy.net) -// -// (C) 2001 Mike Kestner -// - -using System; - -namespace System.Drawing { - - public struct SizeF { - - // Private height and width fields. - float wd, ht; - - // ----------------------- - // Public Shared Members - // ----------------------- - - /// - /// Empty Shared Field - /// - /// - /// - /// An uninitialized SizeF Structure. - /// - - public static readonly SizeF Empty; - - /// - /// Addition Operator - /// - /// - /// - /// Addition of two SizeF structures. - /// - - public static SizeF operator + (SizeF sz1, SizeF sz2) - { - return new SizeF (sz1.Width + sz2.Width, - sz1.Height + sz2.Height); - } - - /// - /// Equality Operator - /// - /// - /// - /// Compares two SizeF objects. The return value is - /// based on the equivalence of the Width and Height - /// properties of the two Sizes. - /// - - public static bool operator == (SizeF sz_a, SizeF sz_b) - { - return ((sz_a.Width == sz_b.Width) && - (sz_a.Height == sz_b.Height)); - } - - /// - /// Inequality Operator - /// - /// - /// - /// Compares two SizeF objects. The return value is - /// based on the equivalence of the Width and Height - /// properties of the two Sizes. - /// - - public static bool operator != (SizeF sz_a, SizeF sz_b) - { - return ((sz_a.Width != sz_b.Width) || - (sz_a.Height != sz_b.Height)); - } - - /// - /// Subtraction Operator - /// - /// - /// - /// Subtracts two SizeF structures. - /// - - public static SizeF operator - (SizeF sz1, SizeF sz2) - { - return new SizeF (sz1.Width - sz2.Width, - sz1.Height - sz2.Height); - } - - /// - /// SizeF to PointF Conversion - /// - /// - /// - /// Returns a PointF based on the dimensions of a given - /// SizeF. Requires explicit cast. - /// - - public static explicit operator PointF (SizeF sz) - { - return new PointF (sz.Width, sz.Height); - } - - - // ----------------------- - // Public Constructors - // ----------------------- - - /// - /// SizeF Constructor - /// - /// - /// - /// Creates a SizeF from a PointF value. - /// - - public SizeF (PointF pt) - { - wd = pt.X; - ht = pt.Y; - } - - /// - /// SizeF Constructor - /// - /// - /// - /// Creates a SizeF from an existing SizeF value. - /// - - public SizeF (SizeF sz) - { - wd = sz.Width; - ht = sz.Height; - } - - /// - /// SizeF Constructor - /// - /// - /// - /// Creates a SizeF from specified dimensions. - /// - - public SizeF (float width, float height) - { - wd = width; - ht = height; - } - - // ----------------------- - // Public Instance Members - // ----------------------- - - /// - /// IsEmpty Property - /// - /// - /// - /// Indicates if both Width and Height are zero. - /// - - public bool IsEmpty { - get { - return ((wd == 0.0) && (ht == 0.0)); - } - } - - /// - /// Width Property - /// - /// - /// - /// The Width coordinate of the SizeF. - /// - - public float Width { - get { - return wd; - } - set { - wd = value; - } - } - - /// - /// Height Property - /// - /// - /// - /// The Height coordinate of the SizeF. - /// - - public float Height { - get { - return ht; - } - set { - ht = value; - } - } - - /// - /// Equals Method - /// - /// - /// - /// Checks equivalence of this SizeF and another object. - /// - - public override bool Equals (object o) - { - if (!(o is SizeF)) - return false; - - return (this == (SizeF) o); - } - - /// - /// GetHashCode Method - /// - /// - /// - /// Calculates a hashing value. - /// - - public override int GetHashCode () - { - return (int) wd ^ (int) ht; - } - - /// - /// ToString Method - /// - /// - /// - /// Formats the SizeF as a string in coordinate notation. - /// - - public override string ToString () - { - return String.Format ("[{0},{1}]", wd, ht); - } - - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/StringAligment.cs b/mcs/class/System.Drawing/System.Drawing/StringAligment.cs deleted file mode 100644 index 08539bc617640..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/StringAligment.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// System.Drawing.StringAligment.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - - -using System; -namespace System.Drawing -{ - public enum StringAligment { - Center = 1, - Far = 2, - Near = 3 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/StringDigitSubstitute.cs b/mcs/class/System.Drawing/System.Drawing/StringDigitSubstitute.cs deleted file mode 100644 index 377894f26f6a1..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/StringDigitSubstitute.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Drawing.StringDigitSubstitute.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - - -using System; -namespace System.Drawing -{ - public enum StringDigitSubstitute { - National = 1, - None = 2, - Traditional = 3, - User = 4 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/StringFormatFlags.cs b/mcs/class/System.Drawing/System.Drawing/StringFormatFlags.cs deleted file mode 100644 index c323522b83801..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/StringFormatFlags.cs +++ /dev/null @@ -1,23 +0,0 @@ -// -// System.Drawing.StringFormatFlags.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - - -using System; -namespace System.Drawing -{ - public enum StringFormatFlags { - DirectionRightToLeft = 1, - DirectionVertical = 2, - DisplayFormatControl = 3, - FitBlackBox = 4, - LineLimit = 5, - MeasureTrailingSpaces = 6, - NoClip = 7, - NoFontFallback = 8, - NoWrap = 9, - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/StringTrimming.cs b/mcs/class/System.Drawing/System.Drawing/StringTrimming.cs deleted file mode 100644 index ee4f1bb738a73..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/StringTrimming.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.Drawing.StringTrimming.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - - -using System; -namespace System.Drawing -{ - public enum StringTrimming{ - Character = 1, - EllipsisCharacter = 2, - EllipsisPath = 3, - EllipsisWord = 4, - None = 5, - Word = 6 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/StringUnit.cs b/mcs/class/System.Drawing/System.Drawing/StringUnit.cs deleted file mode 100644 index 82dd42b969da9..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/StringUnit.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// System.Drawing.StringUnit.cs -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// Author: Dennis Hayes (dennish@raytek.com) -// - - -using System; -namespace System.Drawing -{ - public enum StringUnit{ - Display = 1, - Document = 2, - Em = 3, - Inch = 3, - Millimeter = 4, - Pixel = 5, - Point = 6, - World = 7 - } -} diff --git a/mcs/class/System.Drawing/System.Drawing/SystemColors.cs b/mcs/class/System.Drawing/System.Drawing/SystemColors.cs deleted file mode 100644 index 5ffc54e9cf0c4..0000000000000 --- a/mcs/class/System.Drawing/System.Drawing/SystemColors.cs +++ /dev/null @@ -1,200 +0,0 @@ -// -// System.Drawing.SystemColors -// -// Authors: -// Gonzalo Paniagua Javier (gonzalo@ximian.com) -// -// (C) 2002 Ximian, Inc (http://www.ximian.com) -// -// Generated using a slightly modified version of the program listed inside comments -// in Color.cs -// - -namespace System.Drawing { - - public sealed class SystemColors - { - static public Color ActiveBorder - { - get { - return Color.FromArgbSystem (255, 131, 153, 177, "ActiveBorder"); - } - } - - static public Color ActiveCaption - { - get { - return Color.FromArgbSystem (255, 79, 101, 125, "ActiveCaption"); - } - } - - static public Color ActiveCaptionText - { - get { - return Color.FromArgbSystem (255, 255, 255, 255, "ActiveCaptionText"); - } - } - - static public Color AppWorkspace - { - get { - return Color.FromArgbSystem (255, 128, 128, 128, "AppWorkspace"); - } - } - - static public Color Control - { - get { - return Color.FromArgbSystem (255, 131, 153, 177, "Control"); - } - } - - static public Color ControlDark - { - get { - return Color.FromArgbSystem (255, 79, 101, 125, "ControlDark"); - } - } - - static public Color ControlDarkDark - { - get { - return Color.FromArgbSystem (255, 0, 0, 0, "ControlDarkDark"); - } - } - - static public Color ControlLight - { - get { - return Color.FromArgbSystem (255, 131, 153, 177, "ControlLight"); - } - } - - static public Color ControlLightLight - { - get { - return Color.FromArgbSystem (255, 193, 204, 217, "ControlLightLight"); - } - } - - static public Color ControlText - { - get { - return Color.FromArgbSystem (255, 0, 0, 0, "ControlText"); - } - } - - static public Color Desktop - { - get { - return Color.FromArgbSystem (255, 0, 0, 0, "Desktop"); - } - } - - static public Color GrayText - { - get { - return Color.FromArgbSystem (255, 79, 101, 125, "GrayText"); - } - } - - static public Color Highlight - { - get { - return Color.FromArgbSystem (255, 79, 101, 125, "Highlight"); - } - } - - static public Color HighlightText - { - get { - return Color.FromArgbSystem (255, 255, 255, 255, "HighlightText"); - } - } - - static public Color HotTrack - { - get { - return Color.FromArgbSystem (255, 0, 0, 255, "HotTrack"); - } - } - - static public Color InactiveBorder - { - get { - return Color.FromArgbSystem (255, 131, 153, 177, "InactiveBorder"); - } - } - - static public Color InactiveCaption - { - get { - return Color.FromArgbSystem (255, 128, 128, 128, "InactiveCaption"); - } - } - - static public Color InactiveCaptionText - { - get { - return Color.FromArgbSystem (255, 193, 204, 217, "InactiveCaptionText"); - } - } - - static public Color Info - { - get { - return Color.FromArgbSystem (255, 255, 255, 255, "Info"); - } - } - - static public Color InfoText - { - get { - return Color.FromArgbSystem (255, 0, 0, 0, "InfoText"); - } - } - - static public Color Menu - { - get { - return Color.FromArgbSystem (255, 131, 153, 177, "Menu"); - } - } - - static public Color MenuText - { - get { - return Color.FromArgbSystem (255, 0, 0, 0, "MenuText"); - } - } - - static public Color ScrollBar - { - get { - return Color.FromArgbSystem (255, 193, 204, 217, "ScrollBar"); - } - } - - static public Color Window - { - get { - return Color.FromArgbSystem (255, 255, 255, 255, "Window"); - } - } - - static public Color WindowFrame - { - get { - return Color.FromArgbSystem (255, 0, 0, 0, "WindowFrame"); - } - } - - static public Color WindowText - { - get { - return Color.FromArgbSystem (255, 0, 0, 0, "WindowText"); - } - } - } -} - diff --git a/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog b/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog deleted file mode 100644 index 62c04eb18081a..0000000000000 --- a/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog +++ /dev/null @@ -1,4 +0,0 @@ -2001-10-31 Mike Kestner - - * TestPoint.cs : Tests I've had in my node forever. - diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestPoint.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestPoint.cs deleted file mode 100644 index 01de794dc02dd..0000000000000 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestPoint.cs +++ /dev/null @@ -1,159 +0,0 @@ -// Tests for System.Drawing.Point.cs -// -// Author: Mike Kestner (mkestner@speakeasy.net) -// -// Copyright (c) 2001 Ximian, Inc. - -using NUnit.Framework; -using System; -using System.Drawing; - -public class PointTest : TestCase { - Point pt1_1; - Point pt1_0; - Point pt0_1; - - protected override void SetUp () - { - pt1_1 = new Point (1, 1); - pt1_0 = new Point (1, 0); - pt0_1 = new Point (0, 1); - } - - public PointTest(String name) : base (name) {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (new PointTest ("EqualsTest")); - suite.AddTest (new PointTest ("EqualityOpTest")); - suite.AddTest (new PointTest ("InequalityOpTest")); - suite.AddTest (new PointTest ("CeilingTest")); - suite.AddTest (new PointTest ("RoundTest")); - suite.AddTest (new PointTest ("TruncateTest")); - suite.AddTest (new PointTest ("NullTest")); - suite.AddTest (new PointTest ("AdditionTest")); - suite.AddTest (new PointTest ("SubtractionTest")); - suite.AddTest (new PointTest ("Point2SizeTest")); - suite.AddTest (new PointTest ("Point2PointFTest")); - suite.AddTest (new PointTest ("ConstructorTest")); - suite.AddTest (new PointTest ("PropertyTest")); - suite.AddTest (new PointTest ("OffsetTest")); - return suite; - } - } - - public void EqualsTest () - { - AssertEquals (pt1_1, pt1_1); - AssertEquals (pt1_1, new Point (1, 1)); - Assert (!pt1_1.Equals (pt1_0)); - Assert (!pt1_1.Equals (pt0_1)); - Assert (!pt1_0.Equals (pt0_1)); - } - - public void EqualityOpTest () - { - Assert (pt1_1 == pt1_1); - Assert (pt1_1 == new Point (1, 1)); - Assert (!(pt1_1 == pt1_0)); - Assert (!(pt1_1 == pt0_1)); - Assert (!(pt1_0 == pt0_1)); - } - - public void InequalityOpTest () - { - Assert (!(pt1_1 != pt1_1)); - Assert (!(pt1_1 != new Point (1, 1))); - Assert (pt1_1 != pt1_0); - Assert (pt1_1 != pt0_1); - Assert (pt1_0 != pt0_1); - } - - public void CeilingTest () - { - PointF ptf = new PointF (0.8f, 0.3f); - AssertEquals (pt1_1, Point.Ceiling (ptf)); - } - - public void RoundTest () - { - PointF ptf = new PointF (0.8f, 1.3f); - AssertEquals (pt1_1, Point.Round (ptf)); - } - - public void TruncateTest () - { - PointF ptf = new PointF (0.8f, 1.3f); - AssertEquals (pt0_1, Point.Truncate (ptf)); - } - - public void NullTest () - { - Point pt = new Point (0, 0); - AssertEquals (pt, Point.Empty); - } - - public void AdditionTest () - { - AssertEquals (pt1_1, pt1_0 + new Size (0, 1)); - AssertEquals (pt1_1, pt0_1 + new Size (1, 0)); - } - - public void SubtractionTest () - { - AssertEquals (pt1_0, pt1_1 - new Size (0, 1)); - AssertEquals (pt0_1, pt1_1 - new Size (1, 0)); - } - - public void Point2SizeTest () - { - Size sz1 = new Size (1, 1); - Size sz2 = (Size) pt1_1; - - AssertEquals (sz1, sz2); - } - - public void Point2PointFTest () - { - PointF ptf1 = new PointF (1, 1); - PointF ptf2 = pt1_1; - - AssertEquals (ptf1, ptf2); - } - - public void ConstructorTest () - { - int i = (1 << 16) + 1; - Size sz = new Size (1, 1); - Point pt_i = new Point (i); - Point pt_sz = new Point (sz); - - AssertEquals (pt_i, pt_sz); - AssertEquals (pt_i, pt1_1); - AssertEquals (pt_sz, pt1_1); - } - - public void PropertyTest () - { - Point pt = new Point (0, 0); - - Assert (pt.IsEmpty); - Assert (!pt1_1.IsEmpty); - AssertEquals (1, pt1_0.X); - AssertEquals (1, pt0_1.Y); - } - - public void OffsetTest () - { - Point pt = new Point (0, 0); - pt.Offset (0, 1); - AssertEquals (pt, pt0_1); - pt.Offset (1, 0); - AssertEquals (pt, pt1_1); - pt.Offset (0, -1); - AssertEquals (pt, pt1_0); - } -} - - diff --git a/mcs/class/System.Drawing/list.unix b/mcs/class/System.Drawing/list.unix deleted file mode 100755 index 063ab5c66e0d6..0000000000000 --- a/mcs/class/System.Drawing/list.unix +++ /dev/null @@ -1,60 +0,0 @@ --o System.Drawing.dll --target library -System.Drawing/Point.cs -System.Drawing/PointF.cs -System.Drawing/Size.cs -System.Drawing/SizeF.cs -System.Drawing/Rectangle.cs -System.Drawing/RectangleF.cs -System.Drawing/Brush.cs -System.Drawing/Pen.cs -System.Drawing/GraphicsUnit.cs -System.Drawing/Graphics.cs -System.Drawing/ColorTranslator.cs -System.Drawing/Bitmap.cs -System.Drawing/Image.cs -System.Drawing/Color.cs -System.Drawing/ColorConverter.cs -System.Drawing/KnownColor.cs -System.Drawing/RotateFlipType.cs -System.Drawing/StringAligment.cs -System.Drawing/StringDigitSubstitute.cs -System.Drawing/StringFormatFlags.cs -System.Drawing/StringTrimming.cs -System.Drawing/StringUnit.cs -System.Drawing/SystemColors.cs -System.Drawing/ContentAlignment.cs -System.Drawing/FontStyle.cs -System.Drawing.Drawing2D/Enums.cs -System.Drawing.Drawing2D/Matrix.cs -System.Drawing.Drawing2D/TODOAttribute.cs -System.Drawing.Drawing2D/PenAlignment.cs -System.Drawing.Imaging/FrameDimension.cs -System.Drawing.Imaging/ColorPalette.cs -System.Drawing.Imaging/PixelFormat.cs -System.Drawing.Imaging/Metafile.cs -System.Drawing.Imaging/BitmapData.cs -System.Drawing.Imaging/ColorAdjustType.cs -System.Drawing.Imaging/ColorChannelFlag.cs -System.Drawing.Imaging/ColorMapType.cs -System.Drawing.Imaging/ColorMatrixFlag.cs -System.Drawing.Imaging/ColorMode.cs -System.Drawing.Imaging/EmfPlusRecordType.cs -System.Drawing.Imaging/EmfType.cs -System.Drawing.Imaging/EncoderParameterValueType.cs -System.Drawing.Imaging/EncoderValue.cs -System.Drawing.Imaging/ImageCodecFlags.cs -System.Drawing.Imaging/ImageFlags.cs -System.Drawing.Imaging/ImageLockMode.cs -System.Drawing.Imaging/MetafileFrameUnit.cs -System.Drawing.Imaging/PaletteFlags.cs -System.Drawing.Design/UITypeEditorEditStyle.cs -System.Drawing.Text/GenericFontFamilies.cs -System.Drawing.Text/HotkeyPrefix.cs -System.Drawing.Text/TextRenderingHint.cs -System.Drawing.Printing/Duplex.cs -System.Drawing.Printing/PaperKind.cs -System.Drawing.Printing/PaperSourceKind.cs -System.Drawing.Printing/PrintRange.cs -System.Drawing.Printing/PrinterResolutionKind.cs -System.Drawing.Printing/PrinterUnit.cs -System.Drawing.Printing/PrintingPermissionLevel.cs diff --git a/mcs/class/System.Drawing/makefile.gnu b/mcs/class/System.Drawing/makefile.gnu deleted file mode 100644 index 2df515a980288..0000000000000 --- a/mcs/class/System.Drawing/makefile.gnu +++ /dev/null @@ -1,13 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/System.Drawing.dll - -LIB_LIST = list.unix -LIB_FLAGS = -r corlib -r System - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=./Test* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/System.EnterpriseServices/ChangeLog b/mcs/class/System.EnterpriseServices/ChangeLog deleted file mode 100644 index cc6218af56009..0000000000000 --- a/mcs/class/System.EnterpriseServices/ChangeLog +++ /dev/null @@ -1,25 +0,0 @@ -2002-08-13 Tim Coleman - * list: new files added to build - -2002-08-08 Tim Coleman - * list: new files added to build. - -2002-08-07 Tim Coleman - * list: new files added to build. - -2002-08-06 Tim Coleman - * list: new files added to build. - * System.EnterpriseServices.CompensatingResourceManager: - New directory added - -2002-08-03 Tim Coleman - * list: new files added to build list. - -2002-07-22 Tim Coleman - * makefile.gnu: added to build on linux - -2002-07-22 Tim Coleman - * System.EnterpriseServices: New namespace created - to provide enum needed by Web Services - * System.EnterpriseServices.build: New file - * list: New file diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/ChangeLog b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/ChangeLog deleted file mode 100644 index 6e6e83600011d..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/ChangeLog +++ /dev/null @@ -1,19 +0,0 @@ -2002-08-13 Tim Coleman - * Clerk.cs: - * Compensator.cs: - New stubs added. - -2002-08-07 Tim Coleman - * CompensatorOptions.cs: - * LogRecordFlags.cs: - * TransactionState.cs: - Changed enum values to agree with .NET - * LogRecord.cs: - New stubs added - -2002-08-06 Tim Coleman - * ChangeLog.cs: - * CompensatorOptions.cs: - * LogRecordFlags.cs: - * TransactionState.cs: - New stubs added diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Clerk.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Clerk.cs deleted file mode 100644 index 291ecdd027174..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Clerk.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// System.EnterpriseServices.CompensatingResourceManager.Clerk.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.EnterpriseServices; - -namespace System.EnterpriseServices.CompensatingResourceManager { - public sealed class Clerk { - - #region Constructors - - //internal Clerk (CrmLogControl logControl) - //{ - //} - - [MonoTODO] - public Clerk (string compensator, string description, CompensatorOptions flags) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Clerk (Type compensator, string description, CompensatorOptions flags) - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public int LogRecordCount { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public string TransactionUOW { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - ~Clerk () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ForceLog () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ForceTransactionToAbort () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ForgetLogRecord () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void WriteLogRecord (object record) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Compensator.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Compensator.cs deleted file mode 100644 index 0d2a7028b518b..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/Compensator.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// System.EnterpriseServices.CompensatingResourceManager.Compensator.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.EnterpriseServices; - -namespace System.EnterpriseServices.CompensatingResourceManager { - public class Compensator : ServicedComponent{ - - #region Constructors - - [MonoTODO] - public Compensator () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public Clerk Clerk { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public virtual bool AbortRecord (LogRecord rec) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void BeginAbort (bool fRecovery) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void BeginCommit (bool fRecovery) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void BeginPrepare () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void CommitRecord (LogRecord rec) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void EndAbort () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void EndCommit () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual bool EndPrepare () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual bool PrepareRecord (LogRecord rec) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/CompensatorOptions.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/CompensatorOptions.cs deleted file mode 100644 index 8a2466a8c8a84..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/CompensatorOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// System.EnterpriseServices.CompensatingResourceManager.CompensatorOptions.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices.CompensatingResourceManager { - [Flags] - [Serializable] - public enum CompensatorOptions { - PreparePhase = 0x1, - CommitPhase = 0x2, - AbortPhase = 0x4, - AllPhases = 0x7, - FailIfInDoubtsRemain = 0x10 - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecord.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecord.cs deleted file mode 100644 index 3344f4ecf725e..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecord.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// System.EnterpriseServices.CompensatingResourceManager.LogRecord.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.EnterpriseServices; - -namespace System.EnterpriseServices.CompensatingResourceManager { - - public sealed class LogRecord { - - #region Fields - - LogRecordFlags flags; - object record; - int sequence; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - internal LogRecord () - { - } - - [MonoTODO] - internal LogRecord (_LogRecord logRecord) - { - flags = (LogRecordFlags) logRecord.dwCrmFlags; - sequence = logRecord.dwSequenceNumber; - record = logRecord.blobUserData; - } - - #endregion // Constructors - - #region Properties - - public LogRecordFlags Flags { - get { return flags; } - } - - public object Record { - get { return record; } - } - - public int Sequence { - get { return sequence; } - } - - #endregion // Properties - } - - internal struct _LogRecord { - - #region Fields - - public int dwCrmFlags; - public int dwSequenceNumber; - public object blobUserData; // FIXME: This is not the correct type - - #endregion // Fields - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecordFlags.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecordFlags.cs deleted file mode 100644 index 57b519e1dfa1d..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/LogRecordFlags.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.EnterpriseServices.CompensatingResourceManager.LogRecordFlags.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices.CompensatingResourceManager { - [Flags] - [Serializable] - public enum LogRecordFlags { - ForgetTarget = 0x1, - WrittenDuringPrepare = 0x2, - WrittenDuringCommit = 0x4, - WrittenDuringAbort = 0x8, - WrittenDurringRecovery = 0x10, // Typo present in .NET - WrittenDuringReplay = 0x20, - ReplayInProgress = 0x40 - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/TransactionState.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/TransactionState.cs deleted file mode 100644 index 192bab5973728..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.CompensatingResourceManager/TransactionState.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.EnterpriseServices.CompensatingResourceManager.TransactionState.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices.CompensatingResourceManager { - [Serializable] - public enum TransactionState { - Active = 0x0, - Committed = 0x1, - Aborted = 0x2, - Indoubt = 0x3 - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.build b/mcs/class/System.EnterpriseServices/System.EnterpriseServices.build deleted file mode 100644 index 2aa50111dad41..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices.build +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AccessChecksLevelOption.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AccessChecksLevelOption.cs deleted file mode 100644 index 453db008630ea..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AccessChecksLevelOption.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.EnterpriseServices.AccessChecksLevelOption.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.EnterpriseServices { - [Serializable] - public enum AccessChecksLevelOption { - Application, - ApplicationComponent - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ActivationOption.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ActivationOption.cs deleted file mode 100644 index 8149daaf4584a..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ActivationOption.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.EnterpriseServices.ActivationOption.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.EnterpriseServices { - [Serializable] - public enum ActivationOption { - Library, - Server - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationAccessControlAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationAccessControlAttribute.cs deleted file mode 100644 index 2c1262457da1c..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationAccessControlAttribute.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// System.EnterpriseServices.ApplicationAccessControlAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly)] - public sealed class ApplicationAccessControlAttribute : Attribute { - - #region Fields - - AccessChecksLevelOption accessChecksLevel; - AuthenticationOption authentication; - ImpersonationLevelOption impersonation; - bool val; - - #endregion // Fields - - #region Constructors - - public ApplicationAccessControlAttribute () - { - this.val = false; - } - - public ApplicationAccessControlAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public AccessChecksLevelOption AccessChecksLevel { - get { return accessChecksLevel; } - set { accessChecksLevel = value; } - } - - public AuthenticationOption Authentication { - get { return authentication; } - set { authentication = value; } - } - - public ImpersonationLevelOption Impersonation { - get { return impersonation; } - set { impersonation = value; } - } - - public bool Value { - get { return val; } - set { val = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationActivationAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationActivationAttribute.cs deleted file mode 100644 index 38fd353973259..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationActivationAttribute.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// System.EnterpriseServices.ApplicationActivationAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly)] - public sealed class ApplicationActivationAttribute : Attribute { - - #region Fields - - ActivationOption opt; - string soapMailbox; - string soapVRoot; - - #endregion // Fields - - #region Constructors - - public ApplicationActivationAttribute (ActivationOption opt) - { - this.opt = opt; - } - - #endregion // Constructors - - #region Properties - - public string SoapMailbox { - get { return soapMailbox; } - set { soapMailbox = value; } - } - - public string SoapVRoot { - get { return soapVRoot; } - set { soapVRoot = value; } - } - - public ActivationOption Value { - get { return opt; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationIDAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationIDAttribute.cs deleted file mode 100644 index 332051c1fa279..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationIDAttribute.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -// System.EnterpriseServices.ApplicationIDAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly)] - public sealed class ApplicationIDAttribute : Attribute { - - #region Fields - - Guid guid; - - #endregion // Fields - - #region Constructors - - public ApplicationIDAttribute (string guid) - { - this.guid = new Guid (guid); - } - - #endregion // Constructors - - #region Properties - - public Guid Value { - get { return guid; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationNameAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationNameAttribute.cs deleted file mode 100644 index 65700494dce41..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationNameAttribute.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -// System.EnterpriseServices.ApplicationNameAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly)] - public sealed class ApplicationNameAttribute : Attribute { - - #region Fields - - string name; - - #endregion // Fields - - #region Constructors - - public ApplicationNameAttribute (string name) - { - this.name = name; - } - - #endregion // Constructors - - #region Properties - - public string Value { - get { return name; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationQueuingAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationQueuingAttribute.cs deleted file mode 100644 index de0c7911e4271..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ApplicationQueuingAttribute.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// System.EnterpriseServices.ApplicationQueuingAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly)] - public sealed class ApplicationQueuingAttribute : Attribute { - - #region Fields - - bool enabled; - int maxListenerThreads; - bool queueListenerEnabled; - - #endregion // Fields - - #region Constructors - - public ApplicationQueuingAttribute () - { - enabled = true; - queueListenerEnabled = false; - maxListenerThreads = 0; - } - - #endregion // Constructors - - #region Properties - - public bool Enabled { - get { return enabled; } - set { enabled = value; } - } - - public int MaxListenerThreads { - get { return maxListenerThreads; } - set { maxListenerThreads = value; } - } - - public bool QueueListenerEnabled { - get { return queueListenerEnabled; } - set { queueListenerEnabled = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AuthenticationOption.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AuthenticationOption.cs deleted file mode 100644 index 52612f2a5c1f0..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AuthenticationOption.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.EnterpriseServices.AuthenticationOption.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.EnterpriseServices { - [Serializable] - public enum AuthenticationOption { - Call, - Connect, - Default, - Integrity, - None, - Packet, - Privacy - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AutoCompleteAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AutoCompleteAttribute.cs deleted file mode 100644 index 033f418f0e061..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/AutoCompleteAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.EnterpriseServices.AutoCompleteAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Method)] - public sealed class AutoCompleteAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public AutoCompleteAttribute () - { - val = true; - } - - public AutoCompleteAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/BOID.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/BOID.cs deleted file mode 100644 index a1117a3a22e26..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/BOID.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.EnterpriseServices.BOID.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - public struct BOID { - - #region Fields - - public byte[] rgb; - - #endregion // Fields - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/BYOT.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/BYOT.cs deleted file mode 100644 index a96c967b5f55a..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/BYOT.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// System.EnterpriseServices.BYOT.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - public sealed class BYOT { - - #region Methods - - [MonoTODO] - public static object CreateWithTipTransaction (string url, Type t) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static object CreateWithTransaction (object transaction, Type t) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/COMTIIntrinsicsAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/COMTIIntrinsicsAttribute.cs deleted file mode 100644 index 9b862db145a6b..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/COMTIIntrinsicsAttribute.cs +++ /dev/null @@ -1,45 +0,0 @@ -// -// System.EnterpriseServices.COMTIIntrinsicsAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class COMTIIntrinsicsAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public COMTIIntrinsicsAttribute () - { - this.val = false; - } - - public COMTIIntrinsicsAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - set { val = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ChangeLog b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ChangeLog deleted file mode 100644 index 8a993302e658e..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ChangeLog +++ /dev/null @@ -1,99 +0,0 @@ -2002-08-10 Gonzalo Paniagua Javier - - * RegistrationHelper.cs: fixed compilation. - -2002-08-09 Tim Coleman - * RegistrationHelperTx.cs: - Commit the add of RegistrationHelperTx.cs - -2002-08-08 Tim Coleman - * ISecurityCallContext.cs: - * ISecurityCallersColl.cs: - * ISecurityIdentityColl.cs: - * ISharedProperty.cs: - * ISharedPropertyGroup.cs: - * RegistrationHelperTx.cs: - * ResourcePool.cs: - * SecureMethodAttribute.cs: - * SecurityCallContext.cs: - * SecurityCallers.cs: - * SecurityIdentity.cs: - * SecurityRoleAttribute.cs: - * ServicedComponentException.cs: - * SharedProperty.cs: - * SharedPropertyGroup.cs: - * SharedPropertyGroupManager.cs: - * SynchronizationAttribute.cs: - * SynchronizationOption.cs: - * TransactionAttribute.cs: - * TransactionIsolationLevel.cs: - New files added. - * ContextUtil.cs: - New internal constructor added, methods added. - * IRemoteDispatch.cs: - AutoComplete attributes added to methods - * TODOAttribute.cs: - Namespace adjusted. - - -2002-08-07 Tim Coleman - * RegistrationErrorInfo.cs: - * RegistrationException.cs: - * RegistrationHelper.cs: - * ServicedComponent.cs: - New stubs added - -2002-08-06 Tim Coleman - * IRegistrationHelper.cs: - * IRemoteDispatch.cs: - * IServicedComponentInfo.cs: - * ITransaction.cs: - Comment out Guid attribute for now - because it doesn't build with CSC unless - you supply a valid Guid. - -2002-08-06 Tim Coleman - * DescriptionAttribute.cs: - * EventClassAttribute.cs: - * EventTrackingEnabledAttribute.cs: - * ExceptionClassAttribute.cs: - * IISIntrinsicsAttribute.cs: - * IRegistrationHelper.cs: - * IRemoteDispatch.cs: - * IServicedComponentInfo.cs: - * ITransaction.cs: - * InstallationFlags.cs: - * InterfaceQueuingAttribute.cs: - * JustInTimeActivationAttribute.cs: - * LoadBalancingSupportedAttribute.cs: - * MustRunInClientContextAttribute.cs: - * ObjectPoolingAttribute.cs: - * PrivateComponentAttribute.cs: - * PropertyLockMode.cs: - * PropertyReleaseMode.cs: - * XACTTRANSINFO.cs: - New stubs added. - -2002-08-03 Tim Coleman - * AccessChecksLevelOption.cs: - * ActivationOption.cs: - * ApplicationAccessControlAttribute.cs: - * ApplicationActivationAttribute.cs: - * ApplicationIDAttribute.cs: - * ApplicationNameAttribute.cs: - * ApplicationQueuingAttribute.cs: - * AuthenticationOption.cs: - * AutoCompleteAttribute.cs: - * BOID.cs: - * BYOT.cs: - * COMTIIntrinsicsAttribute.cs: - * ComponentAccessControlAttribute.cs: - * ConstructionEnabledAttribute.cs: - * ContextUtil.cs: - * ImpersonationLevelOption.cs: - * TransactionVote.cs: - New stubs added - -2002-07-22 Tim Coleman - * TransactionOption.cs: New enum added as - required by System.Web.Services diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ComponentAccessControlAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ComponentAccessControlAttribute.cs deleted file mode 100644 index fa9aa28674643..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ComponentAccessControlAttribute.cs +++ /dev/null @@ -1,45 +0,0 @@ -// -// System.EnterpriseServices.ComponentAccessControlAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class ComponentAccessControlAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public ComponentAccessControlAttribute () - { - this.val = false; - } - - public ComponentAccessControlAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - set { val = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ConstructionEnabledAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ConstructionEnabledAttribute.cs deleted file mode 100644 index 38a4345756cbf..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ConstructionEnabledAttribute.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// System.EnterpriseServices.ConstructionEnabledAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class ConstructionEnabledAttribute : Attribute { - - #region Fields - - string def; - bool val; - - #endregion // Fields - - #region Constructors - - public ConstructionEnabledAttribute () - { - def = String.Empty; - this.val = false; - } - - public ConstructionEnabledAttribute (bool val) - { - def = String.Empty; - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public string Default { - get { return def; } - set { def = value; } - } - - public bool Value { - get { return val; } - set { val = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ContextUtil.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ContextUtil.cs deleted file mode 100644 index 70136b421f4fc..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ContextUtil.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// System.EnterpriseServices.ContextUtil.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - public sealed class ContextUtil { - - #region Fields - - static bool deactivateOnReturn; - static TransactionVote myTransactionVote; - - #endregion // Fields - - #region Constructors - - internal ContextUtil () - { - } - - #endregion // Constructors - - #region Properties - - public static Guid ActivityId { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static Guid ApplicationId { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static Guid ApplicationInstanceId { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static Guid ContextId { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static bool DeactivateOnReturn { - get { return deactivateOnReturn; } - set { deactivateOnReturn = value; } - } - - public static bool IsInTransaction { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static bool IsSecurityEnabled { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public static TransactionVote MyTransactionVote { - get { return myTransactionVote; } - set { myTransactionVote = value; } - } - - public static Guid PartitionId { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static object Transaction { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static Guid TransactionId { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public static void DisableCommit () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static void EnableCommit () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static object GetNamedProperty () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static bool IsCallerInRole () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static void SetAbort () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static void SetComplete () - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/DescriptionAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/DescriptionAttribute.cs deleted file mode 100644 index 11cb04b019613..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/DescriptionAttribute.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// System.EnterpriseServices.DescriptionAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Interface)] - public sealed class DescriptionAttribute : Attribute { - - #region Fields - - string desc; - - #endregion // Fields - - #region Constructors - - public DescriptionAttribute (string desc) - { - this.desc = desc; - } - - #endregion // Constructors - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventClassAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventClassAttribute.cs deleted file mode 100644 index b3d6f4647212f..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventClassAttribute.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// System.EnterpriseServices.EventClassAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class EventClassAttribute : Attribute { - - #region Fields - - bool allowInProcSubscribers; - bool fireInParallel; - string publisherFilter; - - #endregion // Fields - - #region Constructors - - public EventClassAttribute () - { - allowInProcSubscribers = true; - fireInParallel = false; - publisherFilter = null; - } - - #endregion // Constructors - - #region Properties - - public bool AllowInProcSubscribers { - get { return allowInProcSubscribers; } - set { allowInProcSubscribers = value; } - } - - public bool FireInParallel { - get { return fireInParallel; } - set { fireInParallel = value; } - } - - public string PublisherFilter { - get { return publisherFilter; } - set { publisherFilter = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventTrackingEnabledAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventTrackingEnabledAttribute.cs deleted file mode 100644 index 774d534afb950..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/EventTrackingEnabledAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.EnterpriseServices.EventTrackingEnabledAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class EventTrackingEnabledAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public EventTrackingEnabledAttribute () - { - val = true; - } - - public EventTrackingEnabledAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ExceptionClassAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ExceptionClassAttribute.cs deleted file mode 100644 index fd128f38ce3a0..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ExceptionClassAttribute.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -// System.EnterpriseServices.ExceptionClassAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class ExceptionClassAttribute : Attribute { - - #region Fields - - string name; - - #endregion // Fields - - #region Constructors - - public ExceptionClassAttribute (string name) - { - this.name = name; - } - - #endregion // Constructors - - #region Properties - - public string Value { - get { return name; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IISIntrinsicsAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IISIntrinsicsAttribute.cs deleted file mode 100644 index 37517855edd6f..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IISIntrinsicsAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.EnterpriseServices.IISIntrinsicsAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class IISIntrinsicsAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public IISIntrinsicsAttribute () - { - val = true; - } - - public IISIntrinsicsAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRegistrationHelper.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRegistrationHelper.cs deleted file mode 100644 index cd8c014a9ba3a..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRegistrationHelper.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// System.EnterpriseServices.IRegistrationHelper.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - //[Guid ("")] - [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)] - public interface IRegistrationHelper { - - #region Methods - - void InstallAssembly (string assembly, out string application, out string tlb, InstallationFlags installFlags); - void UninstallAssembly (string assembly, string application); - - #endregion - - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRemoteDispatch.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRemoteDispatch.cs deleted file mode 100644 index 663e8747c7926..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IRemoteDispatch.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.EnterpriseServices.IRemoteDispatch.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - //[Guid ("")] - public interface IRemoteDispatch { - - #region Methods - - [AutoComplete] - string RemoteDispatchAutoDone (string s); - - [AutoComplete] - string RemoteDispatchNotAutoDone (string s); - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallContext.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallContext.cs deleted file mode 100644 index 0b5a419caf0c3..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallContext.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// System.EnterpriseServices.ISecurityCallContext.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Collections; - -namespace System.EnterpriseServices { - internal interface ISecurityCallContext { - - #region Properties - - int Count { - get; - } - - #endregion - - #region Methods - - void GetEnumerator (ref IEnumerator enumerator); - object GetItem (string user); - bool IsCallerInRole (string role); - bool IsSecurityEnabled (); - bool IsUserInRole (ref object user, string role); - - #endregion - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallersColl.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallersColl.cs deleted file mode 100644 index abea3422488b9..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityCallersColl.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// System.EnterpriseServices.ISecurityCallersColl.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Collections; - -namespace System.EnterpriseServices { - internal interface ISecurityCallersColl { - - #region Properties - - int Count { - get; - } - - #endregion - - #region Methods - - void GetEnumerator (out IEnumerator enumerator); - ISecurityIdentityColl GetItem (int idx); - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityIdentityColl.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityIdentityColl.cs deleted file mode 100644 index 09b5974ab077f..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISecurityIdentityColl.cs +++ /dev/null @@ -1,31 +0,0 @@ -// -// System.EnterpriseServices.ISecurityIdentityColl.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Collections; - -namespace System.EnterpriseServices { - internal interface ISecurityIdentityColl { - - #region Properties - - int Count { - get; - } - - #endregion // Properties - - #region Methods - - void GetEnumerator (out IEnumerator enumerator); - SecurityIdentity GetItem (int idx); - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IServicedComponentInfo.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IServicedComponentInfo.cs deleted file mode 100644 index cc23e4eb53a5e..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/IServicedComponentInfo.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.EnterpriseServices.IServicedComponentInfo.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - //[Guid ("")] - [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)] - public interface IServicedComponentInfo { - - #region Methods - - void GetComponentInfo (ref int infoMask, out string[] infoArray); - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedProperty.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedProperty.cs deleted file mode 100644 index ba5d3f03ca667..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedProperty.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.EnterpriseServices.SharedProperty.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - internal interface ISharedProperty { - - #region Properties - - object Value { - get; - set; - } - - #endregion - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedPropertyGroup.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedPropertyGroup.cs deleted file mode 100644 index ab8d4e4fb1311..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ISharedPropertyGroup.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.EnterpriseServices.ISharedPropertyGroup.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - internal interface ISharedPropertyGroup { - - #region Methods - - ISharedProperty CreateProperty (string name, out bool fExists); - ISharedProperty CreatePropertyByPosition (int position, out bool fExists); - ISharedProperty Property (string name); - ISharedProperty PropertyByPosition (int position); - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ITransaction.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ITransaction.cs deleted file mode 100644 index 3499750928230..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ITransaction.cs +++ /dev/null @@ -1,26 +0,0 @@ -// -// System.EnterpriseServices.ITransaction.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - //[Guid ("")] - [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)] - public interface ITransaction { - - #region Methods - - void Abort (ref BOID pboidReason, int fRetaining, int fAsync); - void Commit (int fRetaining, int grfTC, int grfRM); - void GetTransactionInfo (out XACTTRANSINFO pinfo); - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ImpersonationLevelOption.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ImpersonationLevelOption.cs deleted file mode 100644 index f9a06ddb4f6f0..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ImpersonationLevelOption.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.EnterpriseServices.ImpersonationLevelOption.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.EnterpriseServices { - [Serializable] - public enum ImpersonationLevelOption { - Anonymous, - Default, - Delegate, - Identify, - Impersonate - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/InstallationFlags.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/InstallationFlags.cs deleted file mode 100644 index bd11d1443f4d5..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/InstallationFlags.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// System.EnterpriseServices.InstallationFlags.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.EnterpriseServices { - [Flags] - [Serializable] - public enum InstallationFlags { - Configure, - ConfigureComponentsOnly, - CreateTargetApplication, - Default, - ExpectExistingTypeLib, - FindOrCreateTargetApplication, - Install, - ReconfigureExistingApplication, - Register, - ReportWarningsToConsole - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/InterfaceQueuingAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/InterfaceQueuingAttribute.cs deleted file mode 100644 index d999c6ebd572e..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/InterfaceQueuingAttribute.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// System.EnterpriseServices.InterfaceQueuingAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface)] - public sealed class InterfaceQueuingAttribute : Attribute { - - #region Fields - - bool enabled; - string interfaceName; - - #endregion // Fields - - #region Constructors - - public InterfaceQueuingAttribute () - : this (true) - { - } - - public InterfaceQueuingAttribute (bool enabled) - { - this.enabled = enabled; - interfaceName = null; - } - - #endregion // Constructors - - #region Properties - - public bool Enabled { - get { return enabled; } - set { enabled = value; } - } - - public string Interface { - get { return interfaceName; } - set { interfaceName = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/JustInTimeActivationAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/JustInTimeActivationAttribute.cs deleted file mode 100644 index b5a991a23fb10..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/JustInTimeActivationAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.EnterpriseServices.JustInTimeActivationAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class JustInTimeActivationAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public JustInTimeActivationAttribute () - : this (true) - { - } - - public JustInTimeActivationAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/LoadBalancingSupportedAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/LoadBalancingSupportedAttribute.cs deleted file mode 100644 index 1dfefc49d4238..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/LoadBalancingSupportedAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.EnterpriseServices.LoadBalancingSupportedAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class LoadBalancingSupportedAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public LoadBalancingSupportedAttribute () - : this (true) - { - } - - public LoadBalancingSupportedAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/MustRunInClientContextAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/MustRunInClientContextAttribute.cs deleted file mode 100644 index 7d1bbdf8ecf16..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/MustRunInClientContextAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.EnterpriseServices.MustRunInClientContextAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class MustRunInClientContextAttribute : Attribute { - - #region Fields - - bool val; - - #endregion // Fields - - #region Constructors - - public MustRunInClientContextAttribute () - : this (true) - { - } - - public MustRunInClientContextAttribute (bool val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public bool Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ObjectPoolingAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ObjectPoolingAttribute.cs deleted file mode 100644 index 3d03f4f8b276e..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ObjectPoolingAttribute.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// System.EnterpriseServices.ObjectPoolingAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Collections; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class ObjectPoolingAttribute : Attribute { - - #region Fields - - int creationTimeout; - bool enabled; - int minPoolSize; - int maxPoolSize; - - #endregion // Fields - - #region Constructors - - public ObjectPoolingAttribute () - : this (true) - { - } - - public ObjectPoolingAttribute (bool enable) - { - this.enabled = enable; - } - - public ObjectPoolingAttribute (int minPoolSize, int maxPoolSize) - : this (true, minPoolSize, maxPoolSize) - { - } - - public ObjectPoolingAttribute (bool enable, int minPoolSize, int maxPoolSize) - { - this.enabled = enable; - this.minPoolSize = minPoolSize; - this.maxPoolSize = maxPoolSize; - } - - #endregion // Constructors - - #region Properties - - public int CreationTimeout { - get { return creationTimeout; } - set { creationTimeout = value; } - } - - public bool Enabled { - get { return enabled; } - set { enabled = value; } - } - - public int MaxPoolSize { - get { return maxPoolSize; } - set { maxPoolSize = value; } - } - - public int MinPoolSize { - get { return minPoolSize; } - set { minPoolSize = value; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public bool AfterSaveChanges (Hashtable info) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool Apply (Hashtable info) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool IsValidTarget (string s) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PrivateComponentAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PrivateComponentAttribute.cs deleted file mode 100644 index 75b455239a9d9..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PrivateComponentAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.EnterpriseServices.PrivateComponentAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class PrivateComponentAttribute : Attribute { - - #region Constructors - - public PrivateComponentAttribute () - { - } - - #endregion // Constructors - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyLockMode.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyLockMode.cs deleted file mode 100644 index d84f25bb642f3..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyLockMode.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.EnterpriseServices.PropertyLockMode.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - [Serializable] - [ComVisible (false)] - public enum PropertyLockMode { - Method, - SetGet - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyReleaseMode.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyReleaseMode.cs deleted file mode 100644 index 23da41d9f62c3..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/PropertyReleaseMode.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.EnterpriseServices.PropertyReleaseMode.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - [Serializable] - [ComVisible (false)] - public enum PropertyReleaseMode { - Process, - Standard - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationErrorInfo.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationErrorInfo.cs deleted file mode 100644 index 583ae6774317b..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationErrorInfo.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// System.EnterpriseServices.RegistrationErrorInfo.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [Serializable] - public sealed class RegistrationErrorInfo { - - #region Fields - - int errorCode; - string errorString; - string majorRef; - string minorRef; - string name; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public RegistrationErrorInfo (string name, string majorRef, string minorRef, int errorCode) - { - this.name = name; - this.majorRef = majorRef; - this.minorRef = minorRef; - this.errorCode = errorCode; - } - - #endregion // Constructors - - #region Properties - - public int ErrorCode { - get { return errorCode; } - } - - public string ErrorString { - get { return errorString; } - } - - public string MajorRef { - get { return majorRef; } - } - - public string MinorRef { - get { return minorRef; } - } - - public string Name { - get { return name; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationException.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationException.cs deleted file mode 100644 index 415188116869c..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationException.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// System.EnterpriseServices.RegistrationException.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.Serialization; - -namespace System.EnterpriseServices { - [Serializable] - public sealed class RegistrationException : SystemException { - - #region Fields - - RegistrationErrorInfo[] errorInfo; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public RegistrationException (string msg) - : base (msg) - { - } - - #endregion // Constructors - - #region Properties - - public RegistrationErrorInfo[] ErrorInfo { - get { return errorInfo; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override void GetObjectData (SerializationInfo info, StreamingContext ctx) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelper.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelper.cs deleted file mode 100644 index 79d0db9b386e6..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelper.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// System.EnterpriseServices.RegistrationHelper.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - //[Guid ("")] - public sealed class RegistrationHelper : MarshalByRefObject, IRegistrationHelper { - - #region Constructors - - public RegistrationHelper () - { - } - - #endregion - - #region Methods - - public void InstallAssembly (string assembly, out string application, out string tlb, InstallationFlags installFlags) - { - application = String.Empty; - tlb = String.Empty; - - InstallAssembly (assembly, ref application, null, ref tlb, installFlags); - } - - [MonoTODO] - public void InstallAssembly (string assembly, ref string application, string partition, ref string tlb, InstallationFlags installFlags) - { - throw new NotImplementedException (); - } - - public void UninstallAssembly (string assembly, string application) - { - UninstallAssembly (assembly, application, null); - } - - [MonoTODO] - public void UninstallAssembly (string assembly, string application, string partition) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelperTx.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelperTx.cs deleted file mode 100644 index a8ac859edcace..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/RegistrationHelperTx.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// System.EnterpriseServices.RegistrationHelperTx.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - public sealed class RegistrationHelperTx : ServicedComponent { - - #region Constructors - - [MonoTODO] - public RegistrationHelperTx () - { - } - - #endregion - - #region Methods - - [MonoTODO] - protected internal override void Activate () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal override void Deactivate () - { - throw new NotImplementedException (); - } - - public void InstallAssembly (string assembly, ref string application, ref string tlb, InstallationFlags installFlags, object sync) - { - InstallAssembly (assembly, ref application, null, ref tlb, installFlags, sync); - } - - [MonoTODO] - public void InstallAssembly (string assembly, ref string application, string partition, ref string tlb, InstallationFlags installFlags, object sync) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool IsInTransaction () - { - throw new NotImplementedException (); - } - - public void UninstallAssembly (string assembly, string application, object sync) - { - UninstallAssembly (assembly, application, null, sync); - } - - [MonoTODO] - public void UninstallAssembly (string assembly, string application, string partition, object sync) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ResourcePool.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ResourcePool.cs deleted file mode 100644 index 63e9666ca708e..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ResourcePool.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// System.EnterpriseServices.ResourcePool.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - public sealed class ResourcePool { - - #region Fields - - ResourcePool.TransactionEndDelegate cb; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public ResourcePool (ResourcePool.TransactionEndDelegate cb) - { - this.cb = cb; - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public object GetResource () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool PutResource (object resource) - { - throw new NotImplementedException (); - } - - #endregion // Methods - - #region Delegates - - public delegate void TransactionEndDelegate (object resource); - - #endregion - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecureMethodAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecureMethodAttribute.cs deleted file mode 100644 index 5d27bd16c5d33..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecureMethodAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.EnterpriseServices.SecureMethodAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)] - public sealed class SecureMethodAttribute : Attribute { - - #region Constructors - - public SecureMethodAttribute () - { - } - - #endregion // Constructors - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallContext.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallContext.cs deleted file mode 100644 index 10d116a7616cf..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallContext.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// System.EnterpriseServices.SecurityCallContext.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - public sealed class SecurityCallContext { - - #region Fields - - #endregion // Fields - - #region Constructors - - internal SecurityCallContext () - { - } - - internal SecurityCallContext (ISecurityCallContext context) - { - } - - #endregion // Constructors - - #region Properties - - public SecurityCallers Callers { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public static SecurityCallContext CurrentCall { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public SecurityIdentity DirectCaller { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public bool IsSecurityEnabled { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public int MinAuthenticationLevel { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public int NumCallers { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public SecurityIdentity OriginalCaller { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public bool IsCallerInRole (string role) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool IsUserInRole (string user, string role) - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallers.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallers.cs deleted file mode 100644 index ba6f8c7bb53cf..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityCallers.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// System.EnterpriseServices.SecurityCallers.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Collections; - -namespace System.EnterpriseServices { - public sealed class SecurityCallers : IEnumerable { - - #region Constructors - - internal SecurityCallers () - { - } - - internal SecurityCallers (ISecurityCallersColl collection) - { - } - - #endregion // Constructors - - #region Properties - - public int Count { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public SecurityIdentity this [int idx] { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public IEnumerator GetEnumerator () - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityIdentity.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityIdentity.cs deleted file mode 100644 index 81fab4afec13b..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityIdentity.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// System.EnterpriseServices.SecurityIdentity.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Collections; - -namespace System.EnterpriseServices { - public sealed class SecurityIdentity { - - #region Constructors - - [MonoTODO] - internal SecurityIdentity () - { - } - - [MonoTODO] - internal SecurityIdentity (ISecurityIdentityColl collection) - { - } - - #endregion // Constructors - - #region Properties - - public string AccountName { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public AuthenticationOption AuthenticationLevel { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public int AuthenticationService { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ImpersonationLevelOption ImpersonationLevel { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityRoleAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityRoleAttribute.cs deleted file mode 100644 index 4a28fd021df6b..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SecurityRoleAttribute.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -// System.EnterpriseServices.SecurityRoleAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Interface)] - public sealed class SecurityRoleAttribute : Attribute { - - #region Fields - - string description; - bool everyone; - string role; - - #endregion // Fields - - #region Constructors - - public SecurityRoleAttribute (string role) - : this (role, false) - { - } - - public SecurityRoleAttribute (string role, bool everyone) - { - this.description = String.Empty; - this.everyone = everyone; - this.role = role; - } - - #endregion // Constructors - - #region Properties - - public string Description { - get { return description; } - set { description = value; } - } - - public string Role { - get { return role; } - set { role = value; } - } - - public bool SetEveryoneAccess { - get { return everyone; } - set { everyone = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponent.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponent.cs deleted file mode 100644 index 558e343207b82..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponent.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// System.EnterpriseServices.ServicedComponent.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [Serializable] - public abstract class ServicedComponent : ContextBoundObject, IDisposable, IRemoteDispatch, IServicedComponentInfo { - - #region Constructors - - public ServicedComponent () - { - } - - #endregion - - #region Methods - - [MonoTODO] - protected internal virtual void Activate () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal virtual bool CanBePooled () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal virtual void Construct (string s) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal virtual void Deactivate () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Dispose () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual void Dispose (bool disposing) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static void DisposeObject (ServicedComponent sc) - { - throw new NotImplementedException (); - } - - [MonoTODO] - string IRemoteDispatch.RemoteDispatchAutoDone (string s) - { - throw new NotImplementedException (); - } - - [MonoTODO] - string IRemoteDispatch.RemoteDispatchNotAutoDone (string s) - { - throw new NotImplementedException (); - } - - [MonoTODO] - void IServicedComponentInfo.GetComponentInfo (ref int infoMask, out string[] infoArray) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponentException.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponentException.cs deleted file mode 100644 index 582be988add3b..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ServicedComponentException.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -// System.EnterpriseServices.ServicedComponentException.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [Serializable] - public sealed class ServicedComponentException : SystemException { - - #region Constructors - - public ServicedComponentException () - : base () - { - } - - public ServicedComponentException (string message) - : base (message) - { - } - - public ServicedComponentException (string message, Exception innerException) - : base (message, innerException) - { - } - - #endregion // Constructors - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedProperty.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedProperty.cs deleted file mode 100644 index 502e3bcefd2ef..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedProperty.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.EnterpriseServices.SharedProperty.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - [ComVisible (false)] - public sealed class SharedProperty { - - #region Fields - - ISharedProperty property; - - #endregion - - #region Constructors - - internal SharedProperty (ISharedProperty property) - { - this.property = property; - } - - #endregion // Constructors - - #region Properties - - public object Value { - get { return property.Value; } - set { property.Value = value; } - } - - #endregion - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroup.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroup.cs deleted file mode 100644 index 18b15e6973113..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroup.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// System.EnterpriseServices.SharedPropertyGroup.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - [ComVisible (false)] - public sealed class SharedPropertyGroup { - - #region Fields - - ISharedPropertyGroup propertyGroup; - - #endregion - - #region Constructors - - internal SharedPropertyGroup (ISharedPropertyGroup propertyGroup) - { - this.propertyGroup = propertyGroup; - } - - #endregion // Constructors - - #region Methods - - public SharedProperty CreateProperty (string name, out bool fExists) - { - return new SharedProperty (propertyGroup.CreateProperty (name, out fExists)); - } - - public SharedProperty CreatePropertyByPosition (int position, out bool fExists) - { - return new SharedProperty (propertyGroup.CreatePropertyByPosition (position, out fExists)); - } - - public SharedProperty Property (string name) - { - return new SharedProperty (propertyGroup.Property (name)); - } - - public SharedProperty PropertyByPosition (int position) - { - return new SharedProperty (propertyGroup.PropertyByPosition (position)); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroupManager.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroupManager.cs deleted file mode 100644 index 1125b64846a71..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SharedPropertyGroupManager.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// System.EnterpriseServices.SharedPropertyGroupManager.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Collections; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - [ComVisible (false)] - public sealed class SharedPropertyGroupManager : IEnumerable { - - #region Constructors - - public SharedPropertyGroupManager () - { - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public SharedPropertyGroup CreatePropertyGroup (string name, ref PropertyLockMode dwIsoMode, ref PropertyReleaseMode dwRelMode, out bool fExist) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public IEnumerator GetEnumerator () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public SharedPropertyGroup Group (string name) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationAttribute.cs deleted file mode 100644 index 2add45b81b532..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.EnterpriseServices.SynchronizationAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class SynchronizationAttribute : Attribute { - - #region Fields - - SynchronizationOption val; - - #endregion // Fields - - #region Constructors - - public SynchronizationAttribute () - : this (SynchronizationOption.Required) - { - } - - public SynchronizationAttribute (SynchronizationOption val) - { - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public SynchronizationOption Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationOption.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationOption.cs deleted file mode 100644 index 2186e63875b19..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/SynchronizationOption.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.EnterpriseServices.SynchronizationOption.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [Serializable] - public enum SynchronizationOption { - Disabled, - NotSupported, - Required, - RequiresNew, - Supported - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TODOAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TODOAttribute.cs deleted file mode 100755 index d134ddcff7cc6..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TODOAttribute.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -namespace System.EnterpriseServices { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All, AllowMultiple=true)] - public class MonoTODOAttribute : Attribute { - - private string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - - public string Comment - { - get { return comment; } - } - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionAttribute.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionAttribute.cs deleted file mode 100644 index d308b1fa839ae..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionAttribute.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// System.EnterpriseServices.TransactionAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - [AttributeUsage (AttributeTargets.Class)] - public sealed class TransactionAttribute : Attribute { - - #region Fields - - TransactionIsolationLevel isolation; - int timeout; - TransactionOption val; - - #endregion // Fields - - #region Constructors - - public TransactionAttribute () - : this (TransactionOption.Required) - { - } - - public TransactionAttribute (TransactionOption val) - { - this.isolation = TransactionIsolationLevel.Serializable; - this.timeout = -1; - this.val = val; - } - - #endregion // Constructors - - #region Properties - - public TransactionIsolationLevel Isolation { - get { return isolation; } - set { isolation = value; } - } - - public int Timeout { - get { return timeout; } - set { timeout = value; } - } - - public TransactionOption Value { - get { return val; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionIsolationLevel.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionIsolationLevel.cs deleted file mode 100644 index d350b4e1951b3..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionIsolationLevel.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.EnterpriseServices.TransactionIsolationLevel.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.EnterpriseServices { - [Serializable] - public enum TransactionIsolationLevel { - Any, - ReadCommitted, - ReadUncommitted, - RepeatableRead, - Serializable - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionOption.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionOption.cs deleted file mode 100644 index 96e104f5fe4ce..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionOption.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.EnterpriseServices.TransactionOption.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.EnterpriseServices { - [Serializable] - public enum TransactionOption { - Disabled, - NotSupported, - Required, - RequiresNew, - Supported - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionVote.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionVote.cs deleted file mode 100644 index 4811fdcd85080..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/TransactionVote.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.EnterpriseServices.TransactionVote.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.Runtime.InteropServices; - -namespace System.EnterpriseServices { - [Serializable] - [ComVisible (false)] - public enum TransactionVote { - Abort, - Commit - } -} diff --git a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/XACTTRANSINFO.cs b/mcs/class/System.EnterpriseServices/System.EnterpriseServices/XACTTRANSINFO.cs deleted file mode 100644 index e0a520b9ebc20..0000000000000 --- a/mcs/class/System.EnterpriseServices/System.EnterpriseServices/XACTTRANSINFO.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.EnterpriseServices.XACTTRANSINFO.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; - -namespace System.EnterpriseServices { - public struct XACTTRANSINFO { - - #region Fields - - public int grfRMSupported; - public int grfRMSupportedRetaining; - public int grfTCSupported; - public int grfTCSupportedRetaining; - public int isoFlags; - public int isoLevel; - public BOID uow; - - #endregion // Fields - } -} diff --git a/mcs/class/System.EnterpriseServices/list b/mcs/class/System.EnterpriseServices/list deleted file mode 100644 index 53d2feee8478e..0000000000000 --- a/mcs/class/System.EnterpriseServices/list +++ /dev/null @@ -1,68 +0,0 @@ -./System.EnterpriseServices/AccessChecksLevelOption.cs -./System.EnterpriseServices/ActivationOption.cs -./System.EnterpriseServices/ApplicationAccessControlAttribute.cs -./System.EnterpriseServices/ApplicationActivationAttribute.cs -./System.EnterpriseServices/ApplicationIDAttribute.cs -./System.EnterpriseServices/ApplicationNameAttribute.cs -./System.EnterpriseServices/ApplicationQueuingAttribute.cs -./System.EnterpriseServices/AuthenticationOption.cs -./System.EnterpriseServices/AutoCompleteAttribute.cs -./System.EnterpriseServices/BOID.cs -./System.EnterpriseServices/BYOT.cs -./System.EnterpriseServices/COMTIIntrinsicsAttribute.cs -./System.EnterpriseServices/ComponentAccessControlAttribute.cs -./System.EnterpriseServices/ConstructionEnabledAttribute.cs -./System.EnterpriseServices/ContextUtil.cs -./System.EnterpriseServices/DescriptionAttribute.cs -./System.EnterpriseServices/EventClassAttribute.cs -./System.EnterpriseServices/EventTrackingEnabledAttribute.cs -./System.EnterpriseServices/ExceptionClassAttribute.cs -./System.EnterpriseServices/IISIntrinsicsAttribute.cs -./System.EnterpriseServices/ImpersonationLevelOption.cs -./System.EnterpriseServices/InstallationFlags.cs -./System.EnterpriseServices/InterfaceQueuingAttribute.cs -./System.EnterpriseServices/IRegistrationHelper.cs -./System.EnterpriseServices/IRemoteDispatch.cs -./System.EnterpriseServices/ISecurityCallContext.cs -./System.EnterpriseServices/ISecurityCallersColl.cs -./System.EnterpriseServices/ISecurityIdentityColl.cs -./System.EnterpriseServices/IServicedComponentInfo.cs -./System.EnterpriseServices/ISharedProperty.cs -./System.EnterpriseServices/ISharedPropertyGroup.cs -./System.EnterpriseServices/ITransaction.cs -./System.EnterpriseServices/JustInTimeActivationAttribute.cs -./System.EnterpriseServices/LoadBalancingSupportedAttribute.cs -./System.EnterpriseServices/MustRunInClientContextAttribute.cs -./System.EnterpriseServices/ObjectPoolingAttribute.cs -./System.EnterpriseServices/PrivateComponentAttribute.cs -./System.EnterpriseServices/PropertyLockMode.cs -./System.EnterpriseServices/PropertyReleaseMode.cs -./System.EnterpriseServices/RegistrationErrorInfo.cs -./System.EnterpriseServices/RegistrationException.cs -./System.EnterpriseServices/RegistrationHelper.cs -./System.EnterpriseServices/RegistrationHelperTx.cs -./System.EnterpriseServices/ResourcePool.cs -./System.EnterpriseServices/SecureMethodAttribute.cs -./System.EnterpriseServices/SecurityCallContext.cs -./System.EnterpriseServices/SecurityCallers.cs -./System.EnterpriseServices/SecurityIdentity.cs -./System.EnterpriseServices/SecurityRoleAttribute.cs -./System.EnterpriseServices/ServicedComponent.cs -./System.EnterpriseServices/ServicedComponentException.cs -./System.EnterpriseServices/SharedProperty.cs -./System.EnterpriseServices/SharedPropertyGroup.cs -./System.EnterpriseServices/SharedPropertyGroupManager.cs -./System.EnterpriseServices/SynchronizationAttribute.cs -./System.EnterpriseServices/SynchronizationOption.cs -./System.EnterpriseServices/TODOAttribute.cs -./System.EnterpriseServices/TransactionAttribute.cs -./System.EnterpriseServices/TransactionIsolationLevel.cs -./System.EnterpriseServices/TransactionOption.cs -./System.EnterpriseServices/TransactionVote.cs -./System.EnterpriseServices/XACTTRANSINFO.cs -./System.EnterpriseServices.CompensatingResourceManager/Clerk.cs -./System.EnterpriseServices.CompensatingResourceManager/Compensator.cs -./System.EnterpriseServices.CompensatingResourceManager/CompensatorOptions.cs -./System.EnterpriseServices.CompensatingResourceManager/LogRecord.cs -./System.EnterpriseServices.CompensatingResourceManager/LogRecordFlags.cs -./System.EnterpriseServices.CompensatingResourceManager/TransactionState.cs diff --git a/mcs/class/System.EnterpriseServices/makefile.gnu b/mcs/class/System.EnterpriseServices/makefile.gnu deleted file mode 100644 index 8a87d3baa0064..0000000000000 --- a/mcs/class/System.EnterpriseServices/makefile.gnu +++ /dev/null @@ -1,13 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/System.EnterpriseServices.dll - -LIB_LIST = list -LIB_FLAGS = -r corlib - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=./Test* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/System.Runtime.Remoting/ChangeLog b/mcs/class/System.Runtime.Remoting/ChangeLog deleted file mode 100644 index 90c32eb2c3338..0000000000000 --- a/mcs/class/System.Runtime.Remoting/ChangeLog +++ /dev/null @@ -1,3 +0,0 @@ -2002-08-14 Rodrigo Moya - - * TcpChannel.cs: new classes. \ No newline at end of file diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs deleted file mode 100644 index e360daf41b4aa..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// System.Runtime.Remoting.Channels.Tcp.TcpChannel.cs -// -// Author: Rodrigo Moya (rodrigo@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; -using System.Runtime.Remoting.Messaging; - -namespace System.Runtime.Remoting.Channels.Tcp -{ - public class TcpChannel : IChannelReceiver, IChannel, - IChannelSender - { - private int tcp_port; - - public TcpChannel () - { - tcp_port = 0; - } - - public TcpChannel (int port) - { - tcp_port = port; - } - - [MonoTODO] - public TcpChannel (IDictionary properties, - IClientChannelSinkProvider clientSinkProvider, - IServerChannelSinkProvider serverSinkProvider) - { - throw new NotImplementedException (); - } - - public object ChannelData - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public string ChannelName - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public int ChannelPriority - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public IMessageSink CreateMessageSink (string url, - object remoteChannelData, - out string objectURI) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public string[] GetUrlsForUri (string objectURI) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public string Parse (string url, out string objectURI) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void StartListening (object data) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void StopListening (object data) - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs deleted file mode 100644 index e1a51b8cc19c9..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// System.Runtime.Remoting.Channels.Tcp.TcpClientChannel.cs -// -// Author: Dietmar Maurer (dietmar@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; -using System.Runtime.Remoting.Messaging; -using System.Runtime.Remoting.Channels; - -namespace System.Runtime.Remoting.Channels.Tcp -{ - public class TcpClientChannel : IChannelSender, IChannel - { - int priority = 1; - string name = "tcp"; - IClientChannelSinkProvider sink_provider; - - public TcpClientChannel () - { - sink_provider = null; - } - - public TcpClientChannel (IDictionary properties, IClientChannelSinkProvider sinkProvider) - { - priority = 1; - sink_provider = sinkProvider; - } - - public TcpClientChannel (string name, IClientChannelSinkProvider sinkProvider) - { - priority = 1; - this.name = name; - sink_provider = sinkProvider; - } - - public string ChannelName - { - get { - return name; - } - } - - public int ChannelPriority - { - get { - return priority; - } - } - - [MonoTODO] - public IMessageSink CreateMessageSink (string url, - object remoteChannelData, - out string objectURI) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public string Parse (string url, out string objectURI) - { - throw new NotImplementedException (); - } - - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs deleted file mode 100644 index 88e096b5eef64..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -// System.Runtime.Remoting.Channels.BinaryClientFormatterSink.cs -// -// Author: Rodrigo Moya (rodrigo@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; -using System.IO; -using System.Runtime.Remoting.Messaging; - -namespace System.Runtime.Remoting.Channels -{ - public class BinaryClientFormatterSink : IClientFormatterSink, - IMessageSink, IClientChannelSink, IChannelSinkBase - { - private IClientChannelSink nextInChain; - - public BinaryClientFormatterSink (IClientChannelSink nextSink) - { - nextInChain = nextSink; - } - - public IClientChannelSink NextChannelSink - { - get { - return nextInChain; - } - } - - public IMessageSink NextSink - { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public IDictionary Properties - { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public IMessageCtrl AsyncProcessMessage (IMessage msg, - IMessageSink replySink) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void AsyncProcessRequest (IClientChannelSinkStack sinkStack, - IMessage msg, - ITransportHeaders headers, - Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void AsyncProcessResponse (IClientResponseChannelSinkStack sinkStack, - object state, - ITransportHeaders headers, - Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Stream GetRequestStream (IMessage msg, - ITransportHeaders headers) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ProcessMessage (IMessage msg, - ITransportHeaders requestHeaders, - Stream requestStream, - out ITransportHeaders responseHeaders, - out Stream responseStream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public IMessage SyncProcessMessage (IMessage msg) - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs deleted file mode 100644 index bc4a8a2e6c996..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -// System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider.cs -// -// Author: Rodrigo Moya (rodrigo@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; - -namespace System.Runtime.Remoting.Channels -{ - public class BinaryClientFormatterSinkProvider : - IClientFormatterSinkProvider, IClientChannelSinkProvider - { - [MonoTODO] - public BinaryClientFormatterSinkProvider () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public BinaryClientFormatterSinkProvider (IDictionary properties, - ICollection providerData) - { - throw new NotImplementedException (); - } - - public IClientChannelSinkProvider Next - { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public IClientChannelSink CreateSink (IChannelSender channel, - string url, - object remoteChannelData) - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs deleted file mode 100644 index 18190aff71e24..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// System.Runtime.Remoting.Channels.BinaryServerFormatterSink.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; -using System.IO; -using System.Runtime.Remoting.Messaging; - -namespace System.Runtime.Remoting.Channels { - - public class BinaryServerFormatterSink : IServerChannelSink, IChannelSinkBase - { - IServerChannelSink next_sink; - - [MonoTODO] - public BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol protocol, - IServerChannelSink nextSink, - IChannelReceiver receiver) - { - this.next_sink = nextSink; - } - - public IServerChannelSink NextChannelSink { - get { - return next_sink; - } - } - - [MonoTODO] - public IDictionary Properties { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public void AsyncProcessResponse (IServerResponseChannelSinkStack sinkStack, object state, - IMessage msg, ITransportHeaders headers, Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Stream GetResponseStream (IServerResponseChannelSinkStack sinkStack, object state, - IMessage msg, ITransportHeaders headers) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public ServerProcessing ProcessMessage (IServerChannelSinkStack sinkStack, - IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, - out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream) - { - throw new NotImplementedException (); - } - - [Serializable] - public enum Protocol - { - Http = 0, - Other = 1, - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs deleted file mode 100644 index a4c2c24c80adb..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider.cs -// -// Author: Rodrigo Moya (rodrigo@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; - -namespace System.Runtime.Remoting.Channels -{ - public class BinaryServerFormatterSinkProvider : - IServerFormatterSinkProvider, IServerChannelSinkProvider - { - [MonoTODO] - public BinaryServerFormatterSinkProvider () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public BinaryServerFormatterSinkProvider (IDictionary properties, - ICollection providerData) - { - throw new NotImplementedException (); - } - - public IServerChannelSinkProvider Next - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public IServerChannelSink CreateSink (IChannelReceiver channel) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void GetChannelData (IChannelDataStore channelData) - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/ChangeLog b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/ChangeLog deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/CommonTransportKeys.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/CommonTransportKeys.cs deleted file mode 100644 index efb66588f2273..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/CommonTransportKeys.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.Runtime.Remoting.Channels.CommonTransportKeys.cs -// -// Author: Rodrigo Moya (rodrigo@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -namespace System.Runtime.Remoting.Channels -{ - public class CommonTransportKeys - { - public const string ConnectionId = ""; - public const string IPAddress = ""; - public const string RequestUri = ""; - - public CommonTransportKeys () - { - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs deleted file mode 100644 index b0a2cb80f9e3a..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// System.Runtime.Remoting.Channels.SoapClientFormatterSink.cs -// -// Author: Rodrigo Moya (rodrigo@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; -using System.IO; -using System.Runtime.Remoting.Messaging; - -namespace System.Runtime.Remoting.Channels -{ - public class SoapClientFormatterSink : IClientFormatterSink, - IMessageSink, IClientChannelSink, IChannelSinkBase - { - private IClientChannelSink nextClientSink; - - public SoapClientFormatterSink (IClientChannelSink sink) - { - nextClientSink = sink; - } - - public IClientChannelSink NextChannelSink - { - get { - return nextClientSink; - } - } - - public IMessageSink NextSink - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - public IDictionary Properties - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public IMessageCtrl AsyncProcessMessage (IMessage msg, - IMessageSink replySink) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void AsyncProcessRequest (IClientChannelSinkStack sinkStack, - IMessage msg, - ITransportHeaders headers, - Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void AsyncProcessResponse (IClientResponseChannelSinkStack sinkStack, - object state, - ITransportHeaders headers, - Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Stream GetRequestStream (IMessage msg, - ITransportHeaders headers) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ProcessMessage (IMessage msg, - ITransportHeaders requestHeaders, - Stream requestStream, - out ITransportHeaders responseHeaders, - out Stream responseStream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public IMessage SyncProcessMessage (IMessage msg) - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs deleted file mode 100644 index cad836280a221..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// System.Runtime.Remoting.Channels.SoapServerFormatterSink.cs -// -// Author: Duncan Mak (duncan@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; -using System.IO; -using System.Runtime.Remoting.Messaging; - -namespace System.Runtime.Remoting.Channels { - - public class SoapServerFormatterSink : IServerChannelSink, IChannelSinkBase - { - IServerChannelSink next_sink; - - [MonoTODO] - public SoapServerFormatterSink (SoapServerFormatterSink.Protocol protocol, - IServerChannelSink nextSink, - IChannelReceiver receiver) - { - this.next_sink = nextSink; - } - - public IServerChannelSink NextChannelSink { - get { - return next_sink; - } - } - - [MonoTODO] - public IDictionary Properties { - get { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public void AsyncProcessResponse (IServerResponseChannelSinkStack sinkStack, object state, - IMessage msg, ITransportHeaders headers, Stream stream) - - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Stream GetResponseStream (IServerResponseChannelSinkStack sinkStack, object state, - IMessage msg, ITransportHeaders headers) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public ServerProcessing ProcessMessage (IServerChannelSinkStack sinkStack, - IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, - out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream) - { - throw new NotImplementedException (); - } - - [Serializable] - public enum Protocol - { - Http = 0, - Other = 1, - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs deleted file mode 100644 index 0dfa9a3b08d53..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider.cs -// -// Author: Rodrigo Moya (rodrigo@ximian.com) -// -// 2002 (C) Copyright, Ximian, Inc. -// - -using System.Collections; - -namespace System.Runtime.Remoting.Channels -{ - public class SoapServerFormatterSinkProvider : - IServerFormatterSinkProvider, IServerChannelSinkProvider - { - [MonoTODO] - public SoapServerFormatterSinkProvider () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public SoapServerFormatterSinkProvider (IDictionary properties, - ICollection providerData) - { - throw new NotImplementedException (); - } - - public IServerChannelSinkProvider Next - { - [MonoTODO] - get { - throw new NotImplementedException (); - } - - [MonoTODO] - set { - throw new NotImplementedException (); - } - } - - [MonoTODO] - public IServerChannelSink CreateSink (IChannelReceiver channel) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void GetChannelData (IChannelDataStore channelData) - { - throw new NotImplementedException (); - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.build b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.build deleted file mode 100644 index b794acf7f3d78..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.build +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting/TODOAttribute.cs b/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting/TODOAttribute.cs deleted file mode 100644 index 0920ce8f92dec..0000000000000 --- a/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting/TODOAttribute.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -namespace System { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All, AllowMultiple=true)] - public class MonoTODOAttribute : Attribute { - - private string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - - public string Comment - { - get { return comment; } - } - } -} diff --git a/mcs/class/System.Runtime.Remoting/makefile.gnu b/mcs/class/System.Runtime.Remoting/makefile.gnu deleted file mode 100644 index 2b48e14dcc4af..0000000000000 --- a/mcs/class/System.Runtime.Remoting/makefile.gnu +++ /dev/null @@ -1,13 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/System.Runtime.Remoting.dll - -LIB_LIST = unix.args -LIB_FLAGS = -r corlib -r System - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=./Test* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/System.Runtime.Remoting/unix.args b/mcs/class/System.Runtime.Remoting/unix.args deleted file mode 100644 index 74ff767af1195..0000000000000 --- a/mcs/class/System.Runtime.Remoting/unix.args +++ /dev/null @@ -1,11 +0,0 @@ -./System.Runtime.Remoting/TODOAttribute.cs -./System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs -./System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs -./System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs -./System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs -./System.Runtime.Remoting.Channels/CommonTransportKeys.cs -./System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs -./System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs -./System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs -./System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs -./System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/ChangeLog b/mcs/class/System.Runtime.Serialization.Formatters.Soap/ChangeLog deleted file mode 100644 index e68710bdec0c0..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/ChangeLog +++ /dev/null @@ -1,6 +0,0 @@ -2002-08-15 Tim Coleman - * ChangeLog: - New changelog added - * list: - * makefile.gnu: - Added so we can build this assembly on linux now. diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/README b/mcs/class/System.Runtime.Serialization.Formatters.Soap/README deleted file mode 100755 index d4127cf128931..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/README +++ /dev/null @@ -1,4 +0,0 @@ -The SOAP Serialization Formatter is maintained by -Jesus Suarez - -Contact him regarding questions about this module. diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/Sample.txt b/mcs/class/System.Runtime.Serialization.Formatters.Soap/Sample.txt deleted file mode 100755 index dfa9e52a62b3f..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/Sample.txt +++ /dev/null @@ -1,179 +0,0 @@ -namespace WindowsApplicationProve -{ - namespace Cxxx - { - [Serializable] - public struct OtherStruct - { - public int FInt; - } - - [Serializable] - public struct StructSample - { - public int FInt; - public char FChar; - public object FObj; - } - [Serializable] - public enum EnumSample - { - aa, - bb, - cc - } - - [Serializable] - public delegate int DelegateProve(int i); - - [Serializable] - public delegate void OtherDelegate(); - - public interface ISample - { - int FirstMethod(char charParam); - } - - - [Serializable] - public class cIntProve: ISample - { - public long FLongField; - public int FirstMethod(char charParam) - { - return 6; - } - } - - public delegate string DlgProve(int i); - - [Serializable] - public class cAgregationClass:BaseClass - { - public Char FCharField; - public string FStr; - public cSerializableProve Fobj; - public ISample Fintf; - //public int[][] FIntList; - public string DlgCatcher(int i) - { - return "Hello"; - } - } - - [Serializable] - public class BaseClass - { - public int FBaseint; - public cIntProve FIntObj; - } - [Serializable] - public class cXXX - { - public int FI; - } - - [Serializable] - public class cSerializableProve - { - public object[] FArrayProve; - public object[] FNullArray; - //public ClassProve FOtherAssObj; - public cAgregationClass FAggField; - //value types - public DelegateProve FDelegateProve; - public event OtherDelegate FEventField; - public ISample FInterfaceField; - public string FStrField; - private int FPintField; - public int FIntField; - public uint FUintField; - public short FShortField; - public ushort FUShortField; - public long FLongField; - public ulong FULongField; - public bool FBoolField; - public double FDoubleField; - public decimal FDecimalField; - public char FCharField; - public StructSample FStructField; - public EnumSample FEnumField; - - public cSerializableProve() - { - InitReferences(); - InitSimpleTypes(); - InitStructs(); - InitArray(); - } - - private void InitReferences() - { - FAggField = new cAgregationClass(); - FAggField.FCharField = 'a'; - FAggField.FBaseint = 10; - FAggField.Fobj= this; - FAggField.FStr= "Hhhh"; - FStrField= FAggField.FStr; - FAggField.FIntObj= new cIntProve (); - FInterfaceField= FAggField.FIntObj; - FAggField.Fintf= FInterfaceField; - } - - private void InitSimpleTypes() - { - FArrayProve= new Object[20]; - FPintField= 10; - FIntField = 6; - FUintField = 6; - FShortField = 6; - FUShortField = 6; - FLongField = 6; - FULongField = 6; - FDoubleField = 6; - FDecimalField = 5; - FBoolField = true; - FCharField = 'a'; - FEnumField = EnumSample.aa; - } - - private void InitStructs() - { - FStructField= new StructSample(); - FStructField.FChar= 'a'; - FStructField.FInt= 10; - FStructField.FObj= this.FAggField; - } - - private void InitArray() - { - FArrayProve[0]= new cAgregationClass(); - ((cAgregationClass)FArrayProve[0]).FStr= "Hello"; - FArrayProve[1]= new cAgregationClass[2]; - ((cAgregationClass[])FArrayProve[1])[0]= this.FAggField; - FArrayProve[2]= new int[][][]{new int[][]{new int[3], new int[3], new int[3]}, new int[][]{new int[3], new int[3], new int[3]}}; - /*Fill the integer array*/ - ((int[][][])FArrayProve[2])[1][1][1]= 10; - ((int[][][])FArrayProve[2])[1][1][2]= 10; - ((int[][][])FArrayProve[2])[1][1][0]= 10; - FArrayProve[3]= new OtherStruct(); - FArrayProve[4]= 6; - FArrayProve[5]= true; - FArrayProve[6]= 2.5; - FArrayProve[7]= EnumSample.bb; - FArrayProve[8]= this.FInterfaceField; - FArrayProve[9]= "Hello"; - FArrayProve[10]= new UInt32(); - FArrayProve[11]= new short(); - FArrayProve[12]= new UInt16(); - FArrayProve[13]= new decimal(); - FArrayProve[15]= new ulong(); - FArrayProve[16]= new char(); - FArrayProve[18]= null; - } - - public void InitDelegates() - { - FDelegateProve= new DelegateProve(SIntProve); - FEventField= new OtherDelegate(OtherProve); - } \ No newline at end of file diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap.build b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap.build deleted file mode 100755 index 8e6cbad252514..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap.build +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog deleted file mode 100644 index 2b92835cd3e7d..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog +++ /dev/null @@ -1,10 +0,0 @@ -2002-08-15 Tim Coleman - * SoapFormatter.cs: - That should be IRemotingFormatter, not IRemoteFormatter. - Some stubs to make it compile on linux. - * TODOAttribute.cs: - Added this class to this assembly. - -2002-07-23 Duncan Mak - - * SoapFormatter.cs: This implements IFormatter and IRemoteFormatter. diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectDeserializer.cs b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectDeserializer.cs deleted file mode 100755 index 82ba312160f0c..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectDeserializer.cs +++ /dev/null @@ -1,450 +0,0 @@ -using System; -using System.IO; -using System.Xml; -using System.Reflection; -using System.Collections; - -namespace System.Runtime.Serialization.Formatters.soap -{ - internal class ObjectDeserializer - { - /**const section**/ - const string cStringType = "System.String"; - const string basicassembly = "mscorlib"; - const string xmlnsassem = "http://schemas.microsoft.com/clr/nsassem/"; - const string xmlns = "http://schemas.microsoft.com/clr/ns/"; - const string cTarget = "Target"; - const string cDelegatesClass = "System.MulticastDelegate"; - const string cMethodName = "MethodName"; - const string cSoapEncArray = "SOAP-ENC:Array"; - const string cId = "id"; - - private ArrayList FObjectList; - private int FObjectNumber; - private SoapReader ObjectRdr; - - public XmlDocument FXmlDoc; - - private int AddObject(object graph, out bool AlreadyExists, int ObjectIndex, out object ResultObject) - { - AlreadyExists= true; - ResultObject= null; - if((FObjectList.Count< ObjectIndex)||(FObjectList[ObjectIndex - 1]==null))//the object not exits - { - if(FObjectList.Count< ObjectIndex) - { - int Capacity= FObjectList.Capacity; - int Start= FObjectList.Count; - for(int i= Start; i<= Capacity; i++) - {FObjectList.Add(null);} - } - if(FObjectList[ObjectIndex - 1]==null) - { - FObjectList.Insert(ObjectIndex - 1, graph); - AlreadyExists= false; - ResultObject= graph; - FObjectNumber++; - } - } - else - ResultObject= FObjectList[ObjectIndex - 1]; - return ObjectIndex; - } - - private string GetAssemblyIndex(string SoapNamespace, string ReferenceName) - { - XmlAttributeCollection XmlAttrCollection= FXmlDoc.DocumentElement.Attributes; - bool Continue= true; - int i= 0; - string ItemName= ""; - while((Continue)&&(i<= XmlAttrCollection.Count - 1)) - { - string AttrValue= XmlAttrCollection.Item(i).Value; - if(AttrValue==SoapNamespace) - { - ItemName= XmlAttrCollection.Item(i).Name; - ItemName= ItemName.Substring(ItemName.IndexOf(":") + 1, ItemName.Length - ItemName.IndexOf(":") - 1); - Continue= false; - } - i++; - } - return ItemName + ":" + ReferenceName; - } - - public void ClearLits() - { - FObjectList.Clear(); - } - - public ObjectDeserializer(Stream serializationStream) - { - FXmlDoc= new XmlDocument(); - FXmlDoc.Load(serializationStream); - FObjectList= new ArrayList(); - ObjectRdr= new SoapReader(); - ObjectRdr.FXmlDoc= FXmlDoc; - } - /**simple types deserialization**/ - private void DeserialiazeValueType(FieldInfo objectfield, XmlElement ParentElement/*string XmlParentElement*/, object ActualObject/*, string XmlParentElementId*/) - { - if((objectfield.FieldType.Assembly.GetName().Name == basicassembly)||(objectfield.FieldType.IsEnum)) - { - string fieldvalue= ObjectRdr.ReadValueTypeFromXml(objectfield.Name, ParentElement); - ValueType objvalue= ObjectRdr.GetValueTypeFromString(objectfield.FieldType.UnderlyingSystemType.Name, fieldvalue); - objectfield.SetValue(ActualObject, objvalue); - } - else //is an struct - DeserializeStruct(objectfield, ParentElement, ActualObject, false); - } - /**Structs deserialization**/ - private void DeserializeStructValueType(FieldInfo structfield, XmlElement ParentElement/*string XmlParentElement*/, object ActualObject/*, string XmlParentElementId*/, string StructName, object StructObject, bool NestedStruct) - { - if(structfield.FieldType.Assembly.GetName().Name == basicassembly) - { - string fieldvalue= ObjectRdr.ReadStructValueFieldFromXml(structfield.Name, ParentElement, StructName, false); - ValueType objValue= ObjectRdr.GetValueTypeFromString(structfield.FieldType.UnderlyingSystemType.Name, fieldvalue); - structfield.SetValue(StructObject, objValue); - } - else //is a nested struct - { - XmlElement StructElement= (XmlElement)ParentElement.GetElementsByTagName(structfield.Name).Item(0); - DeserializeStruct(structfield, StructElement, StructObject, true); - } - } - - private void DeserializeStructReferenceType(FieldInfo structfield, XmlElement ParentElement, object ActualObject, bool NestedStruct, int FieldIndex) - { - DeserializeReferenceType(structfield, ParentElement, ActualObject, FieldIndex); - } - - private void DeserializeStruct(FieldInfo objectfield, XmlElement ParentElement, /*, string XmlParentElement*/ object ActualObject/*, string XmlParentElementId*/, bool NestedStruct) - { - object StructValue= Assembly.Load(objectfield.FieldType.Assembly.GetName().Name).CreateInstance(objectfield.FieldType.FullName); - if(StructValue != null) - { - FieldInfo[] structfields= objectfield.FieldType.GetFields(); - for(int index= 0; index <= structfields.Length - 1; index++) - { - if(!structfields[index].IsNotSerialized) - { - if(structfields[index].FieldType.IsValueType) - DeserializeStructValueType(structfields[index], ParentElement, ActualObject, objectfield.Name, StructValue, NestedStruct); - else //is a reference type - DeserializeStructReferenceType(structfields[index], ParentElement, StructValue, NestedStruct, index); - - } - } - objectfield.SetValue(ActualObject, StructValue); - } - else - objectfield.SetValue(ActualObject, null); - } - - private void DeserializeStruct(ref Array ArrayValue, int ItemIndex, XmlElement ParentElement, object ActualObject, bool NestedStruct) - { - string XsdType= ((XmlElement)ParentElement.ChildNodes.Item(ItemIndex)).GetAttribute("xsi:type"); - string NsName; - string AssemblyName= ObjectRdr.GetFullObjectLocation(XsdType, out NsName); - object StructValue= Assembly.Load(AssemblyName).CreateInstance(NsName); - if(StructValue != null) - { - FieldInfo[] structfields= StructValue.GetType().GetFields(); - for(int index= 0; index <= structfields.Length - 1; index++) - { - if(!structfields[index].IsNotSerialized) - { - if(structfields[index].FieldType.IsValueType) - DeserializeStructValueType(structfields[index], ParentElement, ActualObject, "", StructValue, NestedStruct); - else //is a reference type - DeserializeStructReferenceType(structfields[index], ParentElement, StructValue, NestedStruct, index); - - } - } - ArrayValue.SetValue(StructValue, ItemIndex); - } - else - ArrayValue.SetValue(null, ItemIndex); - } - - /**Reference types deserialization**/ - private void DeserializeReferenceType(FieldInfo objectfield, XmlElement ParentElement, object ActualObject, int FieldIndex) - { - XmlElement RefElement= null; - ReferenceTypes RefType= ObjectRdr.GetReferenceType(objectfield.Name, ParentElement, ref RefElement); - switch(RefType) - { - case ReferenceTypes.String_Type : DeserializeString(objectfield, ParentElement, ActualObject); - break; - case ReferenceTypes.Object_Type : DeserializeInterfacedObjectField(objectfield, ParentElement, ActualObject); - break; - case ReferenceTypes.Delegate_Type : DeserializeDelegates(objectfield, ParentElement, ActualObject); - break; - case ReferenceTypes.Array_Type : DeserializeArray(objectfield, ParentElement, ActualObject); - break; - } - } - - private void DeseralizeArrayItemReferenceType(ref Array ArrayValue, int index, XmlElement ArrayElement, object ActualObject) - { - XmlElement RefElement= null; - ReferenceTypes RefType= ObjectRdr.GetReferenceType(index, ArrayElement, ref RefElement); - switch(RefType) - { - case ReferenceTypes.String_Type : DeserializeString(ref ArrayValue, index, ArrayElement, ActualObject); - break; - case ReferenceTypes.Object_Type : DeserializeInterfacedObjectField(ref ArrayValue, index, ArrayElement, ActualObject); - break; - case ReferenceTypes.Delegate_Type : DeserializeDelegates(ref ArrayValue, index, ArrayElement, ActualObject); - break; - case ReferenceTypes.Array_Type : DeserializeArray(ref ArrayValue, index, ArrayElement, ActualObject); - break; - } - } - - /**Strings deseralization**/ - private void DeserializeString(ref Array ArrayValue, int ItemIndex, XmlElement ParentElement, object ActualObject) - { - int ReferenceIndex= ObjectRdr.ReadStringIdFromXml(ItemIndex, ParentElement);//the reference index - string StringObj; - if(ReferenceIndex == -1) - StringObj= null; - else - StringObj= ObjectRdr.ReadStringTypeFromXml(ItemIndex, ParentElement); - object ResultObject; - bool AlreadyExist; - AddObject(StringObj, out AlreadyExist, ReferenceIndex, out ResultObject); - ((Array)ArrayValue).SetValue((string)ResultObject, ItemIndex); - } - - private void DeserializeString(FieldInfo objectfield, XmlElement ParentElement, object ActualObject) - { - int ReferenceIndex= ObjectRdr.ReadStringIdFromXml(objectfield.Name, ParentElement);//the reference index - string StringObj; - if(ReferenceIndex == -1) - StringObj= null; - else - StringObj= ObjectRdr.ReadStringTypeFromXml(objectfield.Name, ParentElement); - object ResultObject; - bool AlreadyExist; - AddObject(StringObj, out AlreadyExist, ReferenceIndex, out ResultObject); - objectfield.SetValue(ActualObject, (string)ResultObject); - } - /**interfaces deserialization**/ - //object's interfaces fields serialization - private void DeserializeInterfacedObjectField(FieldInfo objectfield, XmlElement ParentElement, object ActualObject) - { - int ReferenceIndex= ObjectRdr.ReadReferenceIndexFromXml(objectfield.Name, ParentElement);//the reference index - string ReferenceFullName= ObjectRdr.ReadReferenceFullNameFromXml(ReferenceIndex.ToString());//objectfield.FieldType.FullName; - if(ReferenceIndex != -1) //not null - { - object ItemValue= CommonIntObjectDeserialization(ReferenceIndex, ReferenceFullName, ParentElement); - objectfield.SetValue(ActualObject, ItemValue); - } - else - objectfield.SetValue(ActualObject, null); - } - - //Array's items interfaces serialization - private void DeserializeInterfacedObjectField(ref Array ArrayValue, int ItemIndex, XmlElement ParentElement, object ActualObject) - { - int ReferenceIndex= ObjectRdr.ReadReferenceIndexFromXml(ItemIndex, ParentElement);//the reference index - string ReferenceFullName= ObjectRdr.ReadReferenceFullNameFromXml(ReferenceIndex.ToString());//objectfield.FieldType.FullName; - if(ReferenceIndex != -1) //not null - { - object ItemValue= CommonIntObjectDeserialization(ReferenceIndex, ReferenceFullName, ParentElement); - ((Array)ArrayValue).SetValue(ItemValue, ItemIndex); - } - else - ((Array)ArrayValue).SetValue(null, ItemIndex); - - } - - private object CommonIntObjectDeserialization(int ReferenceIndex, string ReferenceFullName, XmlElement ParentElement) - { - bool AlreadyExists; - string AssemblyName= ObjectRdr.GetAssemblyNameFromId(ReferenceIndex);//ReadAssemblyNameFromXml(/*objectfield.Name, */ParentElement); - object ItemValue= Assembly.Load(AssemblyName).CreateInstance(ReferenceFullName); - DeserializeObject(ref ItemValue, ReferenceIndex); - return ItemValue; - } - /**Delegates Deserialization**/ - //object's delegates fields serialization - private void DeserializeDelegates(FieldInfo Delegatefield, XmlElement ParentElement, object ActualObject) - { - int ReferenceIndex= ObjectRdr.ReadReferenceIndexFromXml(Delegatefield.Name, ParentElement);//the reference index - string DelegateElementName= ObjectRdr.GetDelegateElementName(ReferenceIndex); - XmlElement CurrentElement= ObjectRdr.GetCurrentElement(DelegateElementName, ReferenceIndex.ToString()); - if(ReferenceIndex != -1) //not null - { - object DelegateValue= CommonDelegateDeserialization(CurrentElement, Delegatefield.FieldType); - Delegatefield.SetValue(ActualObject, DelegateValue); - } - } - - //Array's delegates items serialization - private void DeserializeDelegates(ref Array ArrayValue, int ItemIndex, XmlElement ParentElement, object ActualObject) - { - int ReferenceIndex= ObjectRdr.ReadReferenceIndexFromXml(ItemIndex, ParentElement);//the reference index - string DelegateElementName= ObjectRdr.GetDelegateElementName(ReferenceIndex); - XmlElement CurrentElement= ObjectRdr.GetCurrentElement(DelegateElementName, ReferenceIndex.ToString()); - if(ReferenceIndex != -1) //not null - { - Type DlgType= ObjectRdr.GetDelegateTypeFromXml(CurrentElement); - object DelegateValue= CommonDelegateDeserialization(CurrentElement, DlgType); - ((Array)ArrayValue).SetValue(DelegateValue, ItemIndex); - } - } - - private object CommonDelegateDeserialization(XmlElement CurrentElement, Type DlgType) - { - int TargetIndex= ObjectRdr.ReadReferenceIndexFromXml(cTarget, CurrentElement);//the reference index - string AssemblyName= ObjectRdr.GetAssemblyNameFromId(TargetIndex); - string TargetFullName= ObjectRdr.ReadReferenceFullNameFromXml(TargetIndex.ToString()); - object Target= Assembly.Load(AssemblyName).CreateInstance(TargetFullName); - DeserializeObject(ref Target, TargetIndex); - string MethodName= ObjectRdr.ReadStringTypeFromXml(cMethodName ,CurrentElement); - Delegate DelegateValue= MulticastDelegate.CreateDelegate(DlgType, Target, MethodName); - return DelegateValue; - } - - /**Arrays Deserialization**/ - //Object's fields desearialization - private void DeserializeArray(FieldInfo ArrayField, XmlElement ParentElement, object ActualObject) - { - int ArrayIndex= ObjectRdr.ReadReferenceIndexFromXml(ArrayField.Name, ParentElement); - XmlElement ArrayElement; - string ArrayTypeName; - Array ArrayValue= CommonArrayDeserialization(ArrayIndex, out ArrayTypeName, out ArrayElement); - object ResultObject; - bool AlreadyExists; - AddObject(ArrayValue, out AlreadyExists, ArrayIndex, out ResultObject);//add the array - ArrayField.SetValue(ActualObject, ResultObject); - if(!AlreadyExists) - DeserializeArrayItems(ArrayValue, ArrayElement, ActualObject, ArrayTypeName); - } - //Array's items deserialization - private void DeserializeArray(ref Array ArrayValue, int ItemIndex, XmlElement ParentElement, object ActualObject) - { - int ArrayIndex= ObjectRdr.ReadReferenceIndexFromXml(ItemIndex, ParentElement); - XmlElement ArrayElement; - string ArrayTypeName; - Array ArrayActualValue= CommonArrayDeserialization(ArrayIndex, out ArrayTypeName, out ArrayElement); - ((Array)ArrayValue).SetValue(ArrayActualValue, ItemIndex); - bool AlreadyExists; - object ResultObject; - AddObject(ArrayActualValue, out AlreadyExists, ArrayIndex, out ResultObject); - if(!AlreadyExists) - DeserializeArrayItems(ArrayActualValue, ArrayElement, ActualObject, ArrayTypeName); - } - - - private Array CommonArrayDeserialization(int ArrayIndex, out string ArrTypeName, out XmlElement ArrayElement) - { - ArrayElement= ObjectRdr.GetCurrentElement(cSoapEncArray, ArrayIndex.ToString()); - string AssemblyName; - string ArrayTypeName= ObjectRdr.ReadArrayTypeFromXml(ArrayElement, out AssemblyName); - int StartIndex= ArrayTypeName.LastIndexOf("["); - string ArrayLength= ArrayTypeName.Substring(StartIndex + 1, ArrayTypeName.Length - 2 - StartIndex); - ArrayTypeName= ArrayTypeName.Substring(0, ArrayTypeName.LastIndexOf("[")); - Assembly.Load(AssemblyName); - Type ArrayType= Type.GetType(ArrayTypeName); - ArrTypeName= ArrayType.Name; - Array ArrayActualValue= Array.CreateInstance(ArrayType, Convert.ToInt32(ArrayLength)); - return ArrayActualValue; - } - - private void DeserializeArrayItems(Array ArrayValue, XmlElement ArrayElement, object ActualObject, string ArrayTypeName) - { - bool IsStruct= false; - bool IsNull= false; - for(int index= 0; index<= ((Array)ArrayValue).Length - 1; index++) - { - bool IsValueType= ObjectRdr.IsArrayItemValueType(ArrayElement, index, ref IsNull, ref IsStruct); - if(IsNull) - ((Array)ArrayValue).SetValue(null, index); - else - if(IsValueType) - DeserializeArrayItemValueType(ref ArrayValue, index, ArrayElement, ArrayTypeName, IsStruct, ActualObject); - else //is a reference type - DeseralizeArrayItemReferenceType(ref ArrayValue, index, ArrayElement, ActualObject); - } - } - - private void DeserializeArrayItemValueType(ref Array ArrayValue, int index, XmlElement ArrayElement, string ItemTypeName, bool IsStruct, object ActualObject) - { - if(!IsStruct) - { - ValueType ItemValue= ObjectRdr.ReadArrayItemSimpleTypeFromXml(ArrayElement, index, ItemTypeName); - ((Array)ArrayValue).SetValue(ItemValue, index); - } - else - DeserializeStruct(ref ArrayValue, index, ArrayElement, ActualObject, false); - } - - /**objects desrialization**/ - private int DeserializeObject(ref object graph, int ObjectIndex) - { - bool AlreadyExits; - string XmlElemtName= GetAssemblyIndex(GetXmlNamespace(graph.GetType().Namespace, graph.GetType().Assembly.GetName().Name), graph.GetType().Name); - /**this is temporal**/ - XmlElement ObjectElement= ObjectRdr.GetCurrentElement(XmlElemtName, ObjectIndex.ToString()); - object ResultObject; - ObjectIndex= AddObject(graph, out AlreadyExits, ObjectIndex, out ResultObject); - if(!AlreadyExits)//new object - { - FieldInfo[]objectfields= ResultObject.GetType().GetFields(BindingFlags.NonPublic|BindingFlags.Public|BindingFlags.Instance); - for(int index= 0; index<= objectfields.Length - 1; index++) - { - if(!objectfields[index].IsNotSerialized) - { - if(objectfields[index].FieldType.IsValueType)// the field is a value type - DeserialiazeValueType(objectfields[index], ObjectElement, /*XmlElemtName,*/ ResultObject/*, ObjectIndex.ToString()*/); - else - DeserializeReferenceType(objectfields[index], ObjectElement, ResultObject, index); - } - } - } - graph= ResultObject; - return ObjectIndex; - } - - private string GetMainAssemblyFullNameFromXml(out string AssemblyName) - { - XmlNode SoapEnvNode= FXmlDoc.DocumentElement.GetElementsByTagName("SOAP-ENV:Body").Item(0); - XmlNode MainObjectNode= SoapEnvNode.ChildNodes.Item(0); - int StartIndex= MainObjectNode.Name.IndexOf(":"); - string ClassName= MainObjectNode.Name.Substring(StartIndex + 1, MainObjectNode.Name.Length - StartIndex - 1); - string AttributeName= FXmlDoc.DocumentElement.Attributes.GetNamedItem("xmlns:" + MainObjectNode.Name.Substring(0, 2)).Value; - StartIndex= AttributeName.LastIndexOf("/"); - AssemblyName= AttributeName.Substring(StartIndex + 1, AttributeName.Length - StartIndex - 1); - string TempStr= AttributeName.Substring(0, StartIndex); - StartIndex= TempStr.LastIndexOf("/"); - string ReferenceFullName= TempStr.Substring(StartIndex + 1, TempStr.Length - StartIndex - 1); - return ReferenceFullName + "." + ClassName; - } - - private object GetMainObjectFromXml() - { - string AssName; - string ReferenceFullName= GetMainAssemblyFullNameFromXml(out AssName); - return Assembly.Load(AssName).CreateInstance(ReferenceFullName); - } - - public string GetXmlNamespace(string NamepaceName, string AssemblyName) - { - string XmlAssNs; - if(AssemblyName == basicassembly) - XmlAssNs= xmlns + NamepaceName; - else - XmlAssNs= xmlnsassem + NamepaceName + '/' + AssemblyName; - return XmlAssNs; - } - - public object Deserialize(Stream serializationStream) - { - object MainObject= GetMainObjectFromXml(); - DeserializeObject(ref MainObject, 1); - return MainObject; - } - } -} diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectSerializer.cs b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectSerializer.cs deleted file mode 100755 index 20882b314321d..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ObjectSerializer.cs +++ /dev/null @@ -1,374 +0,0 @@ -/****************************************************/ -/*ObjectSerializer class implementation */ -/*Author: Jesús M. Rodríguez de la Vega */ -/*gsus@brujula.net */ -/****************************************************/ - -using System; -using System.IO; -using System.Xml; -using System.Reflection; -using System.Collections; - -namespace System.Runtime.Serialization.Formatters.soap -{ - internal class ObjectSerializer - { - /*******const's section******/ - const string cStringType = "System.String"; - const string startxmlns = "xmlns:a"; - const string startdoc = "" + " " + - "" + " " + - "" + " " + - ""; - const string xmlnsassem = "http://schemas.microsoft.com/clr/nsassem/"; - const string xmlns = "http://schemas.microsoft.com/clr/ns/"; - const string basicassembly = "mscorlib"; - /*****Delegates const******/ - const string cDelegatesClass = "System.MulticastDelegate"; - const string cDelegateSerClass = "DelegateSerializationHolder"; - const string cDelegateType = "DelegateType"; - const string cDelegateAssembly = "DelegateAssembly"; - const string cTarget = "Target"; - const string cTargetTypAssem = "TargetTypeAssembly"; - const string cTargetTypName = "TargetTypeName"; - const string cMethodName = "MethodName"; - const string cDefaultValue = "_0x00_"; - /******field's sections******/ - private Stream FCurrentStream; - private ArrayList AssemblyList; //the assemblies's been serialized - public ArrayList XmlObjectList; //the list of the xml representation of all objects - private ArrayList FObjectList; //the listof the object been seralized - private SoapWriter ObjectWrt; - private string FCurrentXml;// the object's xml representation - /******method's section******/ - private void AddAssemblyToXml(string assemns) - { - XmlDocument xmldoc = new XmlDocument(); - xmldoc.LoadXml(FCurrentXml); - XmlElement RootElemt = xmldoc.DocumentElement; - string xmlns = startxmlns + AssemblyList.Count.ToString(); - XmlAttribute NewAttr= xmldoc.CreateAttribute(xmlns); - RootElemt.SetAttributeNode(NewAttr); - RootElemt.SetAttribute(xmlns, assemns); - FCurrentXml= xmldoc.InnerXml; - } - - private int AddAssembly(string assname, string nespname) - { - string XmlAssNs; - - if(assname == basicassembly) - XmlAssNs= xmlns + nespname; - else - XmlAssNs= xmlnsassem + nespname + '/' + assname; - int Result= AssemblyList.IndexOf(XmlAssNs); - if(Result< 0) - { - Result= AssemblyList.Add(XmlAssNs); - AddAssemblyToXml(XmlAssNs); - } - return Result; - } - - private int AddObject(object graph, out bool AlreadyExists) - { - int index= FObjectList.IndexOf(graph); - AlreadyExists= true; - if(index < 0) //is a new object - { - AlreadyExists= false; - index= FObjectList.Add(graph); - } - return index; - } - - private int AddString(object StrObject, out bool AlreadyExists) - { - int index= FObjectList.IndexOf(StrObject); - AlreadyExists= true; - if(index < 0) //is a new object - { - AlreadyExists= false; - index= FObjectList.Add(StrObject); - } - return index; - } - /******Xml Writer Methods******/ - private void AddObjectTagToXml(object ObjectField, int ParentIndex, string ObjectName) - { - } - private void AddSimpleTagToXml() - { - } - private int AddAssemblytoXml(Type ObjectType) - { - string assname, nespname; - assname = ObjectType.Assembly.GetName().Name; - nespname = ObjectType.Namespace; - return AddAssembly(assname, nespname); - } - /******Serialization Methods******/ - private void SerializeEnum(object ActualObject, FieldInfo field, int ObjectIndex) - { - string FieldName= field.Name; - string FieldValue= field.GetValue(ActualObject).ToString(); - ObjectWrt.WriteValueTypeToXml(FieldName, FieldValue, ObjectIndex); - } - - private void SerializeStruct(object StructValue, string FieldName, int ObjectIndex, bool IsArrayItem) - { - int AssemblyIndex= AddAssemblytoXml(StructValue.GetType()) + 1; - string StructTypeName= StructValue.GetType().Name; - ObjectWrt.WriteStructInitTagToXml(FieldName, ObjectIndex, IsArrayItem, AssemblyIndex, StructTypeName); - FieldInfo[] fieldtypes = StructValue.GetType().GetFields(BindingFlags.NonPublic|BindingFlags.Public|BindingFlags.Instance); //get the fields - for(int index = 0; index<= fieldtypes.Length - 1; index++) - { - if(!fieldtypes[index].IsNotSerialized) - { - AssemblyIndex= AddAssemblytoXml(fieldtypes[index].FieldType); - if(fieldtypes[index].FieldType.IsValueType)//if the field is a value type - SerializeValueTypes(StructValue, fieldtypes[index], ObjectIndex); - else - SerializeReferenceTypes(ObjectIndex, fieldtypes[index].GetValue(StructValue), fieldtypes[index].FieldType, fieldtypes[index].Name); - - } - } - ObjectWrt.WriteStructEndTagToXml(FieldName, ObjectIndex); - } - - private void SerializeValueTypes(object ActualObject, FieldInfo field, int ObjectIndex) //Serialize the value types - { - if(field.FieldType.IsEnum) - SerializeEnum(ActualObject, field, ObjectIndex); - else - { - if(field.FieldType.Assembly.GetName().Name == basicassembly)//is a simple field - { - string FieldName= field.Name; - string FieldValue= field.GetValue(ActualObject).ToString(); - if(FieldValue.ToString().CompareTo("")==0) - FieldValue= cDefaultValue; - ObjectWrt.WriteValueTypeToXml(FieldName, FieldValue, ObjectIndex); - } - else //is a struct field - { - object StructValue= field.GetValue(ActualObject); - SerializeStruct(StructValue, field.Name, ObjectIndex, false); - } - } - } - - private void SerializeArrayItemValueType(object ArrayItem, int ArrayIndex, int AssemblyIndex, string ArrayItemsType) - { - if((ArrayItem.GetType().IsEnum)|(ArrayItem.GetType().Assembly.GetName().Name== basicassembly)) - { - int ItemAssemblyIndex= AddAssemblytoXml(ArrayItem.GetType()) + 1; - string ItemValue= ArrayItem.ToString(); - if(ArrayItem.ToString().CompareTo("")==0) - ItemValue= cDefaultValue; - ObjectWrt.WriteArrayValueItemToXml(ArrayItem.GetType().Name, ItemValue, ArrayIndex, ArrayItemsType, ItemAssemblyIndex); - } - else //is an struct - SerializeStruct(ArrayItem, "item", ArrayIndex, true); - } - - private void SerializeReferenceTypes(int ObjectIndex, object Instance, Type InstanceType, string InstanceName) - { - if(InstanceType.IsArray) - { - Array ArrayField= (Array)Instance; - if(ArrayField!= null) - { - int ArrayIndex= SerializeArray(ArrayField); - ObjectWrt.WriteObjectFieldToXml(InstanceName, ObjectIndex, ArrayIndex); - } - else - ObjectWrt.WriteNullObjectFieldToXml(InstanceName, ObjectIndex); - } - else - { - if(InstanceType.FullName == cStringType) - SerializeString(Instance, ObjectIndex, InstanceName); - else - { - if((InstanceType.BaseType != null)&&(InstanceType.BaseType.ToString() == cDelegatesClass))//is a delegate's field - { - if(Instance!= null) - { - int DlgIndex= SerialializedDelegates(Instance, ObjectIndex); - ObjectWrt.WriteObjectFieldToXml(InstanceName, ObjectIndex, DlgIndex); - } - else - ObjectWrt.WriteNullObjectFieldToXml(InstanceName, ObjectIndex); - } - else - { - if((InstanceType.IsClass)||(InstanceType.IsInterface)) //if the field is a class's instance or an interface - { - if(Instance != null) - { - int FieldIndex= SerializeObject(Instance, ObjectIndex); - ObjectWrt.WriteObjectFieldToXml(InstanceName, ObjectIndex, FieldIndex); - } - else - ObjectWrt.WriteNullObjectFieldToXml(InstanceName, ObjectIndex); - } - } - } - } - } - - private int SerializeArray(Array ArrayField) - { - int Length= ArrayField.Length; - int AssemblyIndex= AddAssemblytoXml(ArrayField.GetType()) + 1; - bool AlreadyExist; - int ArrayIndex= AddObject(ArrayField, out AlreadyExist) + 1; - if(!AlreadyExist) - { - string ArrayType= ArrayField.GetType().Name; - string ArrayItemsType= ArrayField.GetType().Name.Substring(0, ArrayField.GetType().Name.IndexOf("[")); - string XmlSchemaArrayType= ObjectWrt.GenerateSchemaArrayType(ArrayType, Length, AssemblyIndex); - ObjectWrt.WriteArrayToXml(XmlSchemaArrayType, ArrayIndex); - object ItemValue; - for(int index= 0; index<= Length - 1; index++) - { - ItemValue= ArrayField.GetValue(index); - if(ItemValue== null) - ObjectWrt.WriteNullObjectFieldToXml("item", ArrayIndex); - else - { - if(ItemValue.GetType().IsValueType) - { - SerializeArrayItemValueType(ItemValue, ArrayIndex, AssemblyIndex, ArrayItemsType); - } - else//is a reference type - { - SerializeReferenceTypes(ArrayIndex, ItemValue, ItemValue.GetType(), "item"); - } - } - } - } - return ArrayIndex; - } - - private void SerializeString(object StringObject, int ObjectIndex, string StringName) - { - bool AlreadyExits; - int StringIndex= AddString(StringObject, out AlreadyExits) + 1; - if(!AlreadyExits) - { - ObjectWrt.WriteStringTypeToXml(StringName, StringObject.ToString(), ObjectIndex, StringIndex); - XmlObjectList.Add(""); - } - else - ObjectWrt.WriteObjectFieldToXml(StringName, ObjectIndex, StringIndex); - } - - private void SerializeStringField(string StringName, string StringValue, int ObjectIndex) - { - bool AlreadyExits; - int StringIndex= AddString(StringValue, out AlreadyExits) + 1; - if(!AlreadyExits) - { - ObjectWrt.WriteStringTypeToXml(StringName, StringValue, ObjectIndex, StringIndex); - XmlObjectList.Add(""); - } - else - ObjectWrt.WriteObjectFieldToXml(StringName, ObjectIndex, StringIndex); - } - - - private int SerialializedDelegates(object DelegateObject, int ParentObjectIndex) - { - bool AlreadyExits; - int AssemblyIndex= AddAssembly(basicassembly, "System") + 1; - int DelegatesIndex= AddObject(DelegateObject, out AlreadyExits) + 1; - if(!AlreadyExits) - { - MulticastDelegate DelegateObj= (MulticastDelegate)DelegateObject; - if(DelegateObj != null) - { - ObjectWrt.WriteObjectToXml(AssemblyIndex, DelegatesIndex, cDelegateSerClass); //write the delegates's init - SerializeStringField(cDelegateType, DelegateObj.GetType().FullName, DelegatesIndex); //the delegate type - SerializeStringField(cDelegateAssembly, DelegateObj.GetType().Assembly.FullName, DelegatesIndex); //the delegate assembly - int FieldIndex= SerializeObject(DelegateObj.Target, DelegatesIndex); //Serialize the target - ObjectWrt.WriteObjectFieldToXml(cTarget, DelegatesIndex, FieldIndex); - SerializeStringField(cTargetTypAssem, DelegateObj.Target.GetType().Assembly.FullName, DelegatesIndex); - SerializeStringField(cTargetTypName, DelegateObj.Target.GetType().FullName, DelegatesIndex); - SerializeStringField(cMethodName, DelegateObj.Method.Name, DelegatesIndex); - } - } - return DelegatesIndex; - } - - private int SerializeObject(object graph, int ParentIndex) - { - string ClassName; - int AssemblyIndex, ObjectIndex; - bool AlreadyExits; - if(graph.GetType().IsSerializable) - { - object ActualObject= graph; - ObjectIndex= AddObject(ActualObject, out AlreadyExits) + 1; //add the object to the object's list - if(!AlreadyExits) - { - AssemblyIndex= AddAssemblytoXml(ActualObject.GetType()) + 1;//add the assembly to the assemblies's list - ClassName= graph.GetType().Name; //the class's name - ObjectWrt.WriteObjectToXml(AssemblyIndex, ObjectIndex, ClassName); //write the object to the xml list - FieldInfo[] fieldtypes = ActualObject.GetType().GetFields(BindingFlags.NonPublic|BindingFlags.Public|BindingFlags.Instance); //get the fields - for(int index = 0; index<= fieldtypes.Length - 1; index++) - { - if(!fieldtypes[index].IsNotSerialized) - { - AssemblyIndex= AddAssemblytoXml(fieldtypes[index].FieldType); - if(fieldtypes[index].FieldType.IsValueType)//if the field is a value type - SerializeValueTypes(ActualObject, fieldtypes[index], ObjectIndex); - else - SerializeReferenceTypes(ObjectIndex, fieldtypes[index].GetValue(ActualObject), fieldtypes[index].FieldType, fieldtypes[index].Name); - } - } - } - return ObjectIndex; - } - else - return -15000; - } - - public void BeginWrite() //writes the basic elements of a soap message - { - FCurrentXml = startdoc; - } - - public ObjectSerializer(Stream store) //assign the current stream - { - FCurrentStream = store; - AssemblyList = new ArrayList(); //Init the lists - XmlObjectList = new ArrayList(); - FObjectList = new ArrayList(); - ObjectWrt = new SoapWriter(); - ObjectWrt.FXmlObjectList= XmlObjectList; - } - - public void CleatLists() - { - AssemblyList.Clear(); - XmlObjectList.Clear(); - FObjectList.Clear(); - FCurrentXml= ""; - } - - public void Serialize(object graph) - { - SerializeObject(graph, 0); - ObjectWrt.WriteObjectListToXml(FCurrentXml, FCurrentStream); - CleatLists(); - } - } -} diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs deleted file mode 100755 index 4a42bd96cf9b1..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs +++ /dev/null @@ -1,91 +0,0 @@ -/****************************************************/ -/*Soapformatter class implementation */ -/*Author: Jesús M. Rodríguez de la Vega */ -/*gsus@brujula.net */ -/****************************************************/ - -using System; -using System.Reflection; -using System.Xml; -using System.IO; -using System.Runtime.Remoting.Messaging; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters; - - -namespace System.Runtime.Serialization.Formatters.soap -{ - public class SoapFormatter : IRemotingFormatter, IFormatter - { - private ObjectSerializer ObjSerializer; - private ObjectDeserializer ObjDeserializer; - /*this is the soapformater's properties - the Binder, Context and SurrogateSelector properties - have not been declared yet*/ - - public FormatterAssemblyStyle AssemblyFormat - { - get{return AssemblyFormat;} - set{AssemblyFormat= value;} - } - - [MonoTODO] - public SerializationBinder Binder { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public StreamingContext Context { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - [MonoTODO] - public ISurrogateSelector SurrogateSelector { - get { throw new NotImplementedException (); } - set { throw new NotImplementedException (); } - } - - public ISoapMessage TopObject - { - get{return TopObject;} - set{TopObject= value;} - } - - public FormatterTypeStyle TypeFormat - { - get{return TypeFormat;} - set{TypeFormat= value;} - } - - //the other constructor are not supplied yet - public SoapFormatter() - { - } - - public void Serialize(Stream serializationStream, object graph) - { - Serialize (serializationStream, graph, null); - } - - public void Serialize(Stream serializationStream, object graph, Header[] headers) - { - ObjSerializer= new ObjectSerializer(serializationStream); - ObjSerializer.BeginWrite(); - ObjSerializer.Serialize(graph); - } - - public object Deserialize(Stream serializationStream) - { - return Deserialize (serializationStream, null); - } - - public object Deserialize(Stream serializationStream, HeaderHandler handler) - { - ObjDeserializer= new ObjectDeserializer(serializationStream); - return ObjDeserializer.Deserialize(serializationStream); - } - - } -} diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs deleted file mode 100755 index 28f090a7b5f0f..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapReader.cs +++ /dev/null @@ -1,584 +0,0 @@ -using System; -using System.Xml; -using System.Reflection; - -namespace System.Runtime.Serialization.Formatters.soap -{ - - public enum ReferenceTypes {Array_Type, Object_Type, Interface_Type, Delegate_Type, String_Type}; - - internal class SoapReader - { - /******const section******/ - - const string cSoapRef = "href"; - const string cObjectRef = "ref-"; - const string cId = "id"; - const string cXsiNull = "xsi:null"; - const string basicassembly = "mscorlib"; - const string startxmlns = "xmlns:a"; - const string Systemns = "http://schemas.microsoft.com/clr/ns/System"; - const string cDefaultValue = "_0x00_"; - /******Array's serialization section******/ - const string cItem = "item"; - const string cSoapEncArray = "SOAP-ENC:Array"; - const string cSoapArrayType = "SOAP-ENC:arrayType"; - const string cXsiType = "xsi:type"; - const string cNullObject = "xsi:null=\"1\"/"; - /******Delegate's serialization section******/ - const string cDelegateSerClass = "DelegateSerializationHolder"; - const string cDelegateType = "DelegateType"; - const string cDelegateAssembly = "DelegateAssembly"; - /******fields's section******/ - public XmlDocument FXmlDoc; - public XmlElement DeepElement; //the current Xml Struct Element - //public Utils FUtils; - - public SoapReader() - { - //FUtils= new Utils(); - } - - /**Reference Types reader**/ - public int ReadObjectIndexFromXml(string ObjectElemt) - { - XmlNodeList ObjectElement= FXmlDoc.DocumentElement.GetElementsByTagName(ObjectElemt); - XmlElement FCurrentElement= (XmlElement)ObjectElement.Item(0); - string refid= (FCurrentElement).GetAttribute(cId); - int startindex= refid.IndexOf("-"); - refid= refid.Substring(startindex + 1, refid.Length - startindex - 1); - return Convert.ToInt32(refid); - } - - private string ReadReferenceFullNameFromXmlNode(XmlNode ReferenceNode) - { - int StartIndex= ReferenceNode.Name.IndexOf(":"); - string ClassName= ReferenceNode.Name.Substring(StartIndex + 1, ReferenceNode.Name.Length - StartIndex - 1); - string AttributeName= FXmlDoc.DocumentElement.Attributes.GetNamedItem("xmlns:" + ReferenceNode.Name.Substring(0, StartIndex)).Value; - StartIndex= AttributeName.LastIndexOf("/"); - string TempStr= AttributeName.Substring(0, StartIndex); - StartIndex= TempStr.LastIndexOf("/"); - string ReferenceFullName= TempStr.Substring(StartIndex + 1, TempStr.Length - StartIndex - 1); - return ReferenceFullName + "." + ClassName; - } - - public string ReadReferenceFullNameFromXml(string RefereneId) - { - string RefId= cObjectRef + RefereneId; - XmlNodeList NodeList = FXmlDoc.DocumentElement.GetElementsByTagName("SOAP-ENV:Body").Item(0).ChildNodes; - bool Continue= true; - int index= 0; - string Result= ""; - while((Continue)&&(index <= NodeList.Count - 1)) - { - XmlElement ActElement= (XmlElement)NodeList.Item(index); - if(ActElement.GetAttribute("id")== RefId)//the attributes match - { - Result= ReadReferenceFullNameFromXmlNode(ActElement); - Continue= false; - } - else - index++; - } - return Result; - } - - /**ReadReferenceIndexFromXml**/ - public int ReadReferenceIndexFromXml(string FieldName, XmlElement ParentElement) - { - XmlElement FieldElement= (XmlElement)ParentElement.GetElementsByTagName(FieldName).Item(0); - if(FieldElement.GetAttribute(cXsiNull)== "") //if it is not a null field - { - string hrefvalue= FieldElement.GetAttribute(cSoapRef); - int StartIndex= hrefvalue.IndexOf("-"); - return Convert.ToInt32(hrefvalue.Substring(StartIndex + 1, hrefvalue.Length - 1 - StartIndex)); - } - else - return -1; - } - - public int ReadReferenceIndexFromXml(int ItemIndex, XmlElement ParentElement) - { - XmlElement FieldElement= (XmlElement)ParentElement.ChildNodes.Item(ItemIndex); - if(FieldElement.GetAttribute(cXsiNull)== "") //if it is not a null field - { - string hrefvalue= FieldElement.GetAttribute(cSoapRef); - int StartIndex= hrefvalue.IndexOf("-"); - return Convert.ToInt32(hrefvalue.Substring(StartIndex + 1, hrefvalue.Length - 1 - StartIndex)); - } - else - return -1; - } - - - - /**String reader**/ - public int ReadStringIdFromXml(/*string XmlParentElement, */string FieldName,/* string XmlParentElementId, */XmlElement ParentElement) - { - XmlElement FieldElement= (XmlElement)ParentElement.GetElementsByTagName(FieldName).Item(0);//(XmlElement)GetCurrentElement(XmlParentElement, XmlParentElementId).GetElementsByTagName(FieldName).Item(0); - if(FieldElement.GetAttribute(cId)== "") - return ReadReferenceIndexFromXml(FieldName, ParentElement); - else - return ReadFieldIdValueFromXml(FieldName, ParentElement); - } - - public int ReadStringIdFromXml(int ItemIndex, XmlElement ParentElement) - { - XmlElement FieldElement= (XmlElement)ParentElement.ChildNodes.Item(ItemIndex); - string StrId= FieldElement.GetAttribute(cId); - if(StrId == "") - return ReadReferenceIndexFromXml(ItemIndex, ParentElement); - else - return ReadFieldIdValueFromXml(ItemIndex, ParentElement); - } - - public string ReadStringTypeFromXml(string FieldName, XmlElement ParentElement) - { - XmlNode XmlField= ParentElement.GetElementsByTagName(FieldName).Item(0); - if(XmlField!= null) - return XmlField.InnerXml; - else - return null; - } - - public string ReadStringTypeFromXml(int ItemIndex, XmlElement ParentElement) - { - XmlNode XmlField= ParentElement.ChildNodes.Item(ItemIndex); - if(XmlField!= null) - return XmlField.InnerXml; - else - return null; - } - - /**Delegates reader**/ - public string GetDelegateElementName(int DelegateId) - { - XmlAttributeCollection XmlAttrCollection= FXmlDoc.DocumentElement.Attributes; - bool Continue= true; - int i= 0; - string ItemName= ""; - while((Continue)&&(i<= XmlAttrCollection.Count - 1)) - { - string AttrValue= XmlAttrCollection.Item(i).Value; - if(AttrValue == Systemns) - { - ItemName= XmlAttrCollection.Item(i).Name; - ItemName= ItemName.Substring(ItemName.LastIndexOf(":") + 1, ItemName.Length - 1 - ItemName.LastIndexOf(":")); - Continue= false; - } - i++; - } - return ItemName + ":" + cDelegateSerClass; - } - - public Type GetDelegateTypeFromXml(XmlElement ParentElement) - { - string DelegateAssembly= ParentElement.GetElementsByTagName(cDelegateAssembly).Item(0).InnerXml; - DelegateAssembly= DelegateAssembly.Substring(0, DelegateAssembly.IndexOf(",")); - string DelegateType= ParentElement.GetElementsByTagName(cDelegateType).Item(0).InnerXml; - return Assembly.Load(DelegateAssembly).GetType(DelegateType); - } - - /**Arrays reader**/ - public string ReadArrayTypeFromXml(XmlElement ArrayElement, out string AssemblyName) - { - string ArrayTypeAttr= ArrayElement.GetAttribute(cSoapArrayType); - int StartIndex= ArrayTypeAttr.LastIndexOf(":"); - string Result; - if(ArrayTypeAttr.Substring(0, 4) == "xsd:") - { - Result= "System"; - string CLRType= GetCLRTypeFromXsdType(ArrayTypeAttr.Substring(0, ArrayTypeAttr.IndexOf("["))); - StartIndex= ArrayTypeAttr.IndexOf("["); - Result= "System." + CLRType + ArrayTypeAttr.Substring(StartIndex, ArrayTypeAttr.Length - StartIndex); - AssemblyName= basicassembly; - } - else - { - AssemblyName= ReadAssemblyNameFromXml(ArrayTypeAttr); - string NsIndex= ArrayTypeAttr.Substring(1, StartIndex - 1); - Result= ReadNamespaceFromXml(NsIndex); - Result= Result + "." + ArrayTypeAttr.Substring(StartIndex + 1, ArrayTypeAttr.Length - StartIndex - 1); - } - return Result; - } - - - public bool IsArrayItemValueType(XmlElement ParentElement, int ItemIndex, ref bool IsNull, ref bool IsStruct) - { - XmlElement ArrayItem= (XmlElement)ParentElement.ChildNodes.Item(ItemIndex); - bool Result= false; - if(ArrayItem.GetAttribute(cXsiNull)== "")//is not null - { - IsNull= false; - if((ArrayItem.InnerXml != "")&&(ArrayItem.GetAttribute(cId) == "")) - { - Result= true; - if(ArrayItem.InnerXml.Substring(0, 1)== "<") //is an atruct - IsStruct= true; - } - } - else - IsNull= true; - return Result; - } - - public ValueType ReadArrayItemSimpleTypeFromXml(XmlElement ParentElement, int ItemIndex, string ItemTypeName) - { - XmlElement ArrayItem= (XmlElement)ParentElement.ChildNodes.Item(ItemIndex);//at this moment you know that this field is a value type - string ItemValue= ArrayItem.InnerXml; - string XsiType= ((XmlElement)ArrayItem).GetAttribute(cXsiType); - if(XsiType != "") - return GetValueTypeFromXsdType(XsiType, ItemValue); - else - return GetValueTypeFromString(ItemTypeName, ItemValue); - } - - public ReferenceTypes GetReferenceType(string FieldName, XmlElement ParentElement, ref XmlElement RefElement) - { - XmlElement ArrayItem= (XmlElement)ParentElement.GetElementsByTagName(FieldName).Item(0); - RefElement= ArrayItem; - ReferenceTypes Result= ReferenceTypes.Object_Type; - if(ArrayItem.GetAttribute(cId) != "") //is an string - Result= ReferenceTypes.String_Type; - else - { - string RefIndex= ArrayItem.GetAttribute(cSoapRef); - if(RefIndex != "") //is a other reference - { - int Id= RefIndex.IndexOf("-"); - Id= Convert.ToInt32(RefIndex.Substring(Id + 1, RefIndex.Length - 1 - Id)); - string RefName= GetReferenceNameFromId(Convert.ToInt32(Id), ref RefElement); - if(RefName== cSoapEncArray) //is an array - Result= ReferenceTypes.Array_Type; - else - if(RefName == "") - Result= ReferenceTypes.String_Type; - else - { - if((RefName.IndexOf(cDelegateSerClass) != -1)&&(RefElement.ChildNodes.Item(0).Name== cDelegateType)) //is a delegates - Result= ReferenceTypes.Delegate_Type; - else - Result= ReferenceTypes.Object_Type; - } - } - } - return Result; - } - - public ReferenceTypes GetReferenceType(int index, XmlElement ParentElement, ref XmlElement RefElement) - { - XmlElement ArrayItem= (XmlElement)ParentElement.ChildNodes.Item(index); - RefElement= ArrayItem; - ReferenceTypes Result= ReferenceTypes.Object_Type; - if(ArrayItem.GetAttribute(cId) != "") //is an string - Result= ReferenceTypes.String_Type; - else - { - string RefIndex= ArrayItem.GetAttribute(cSoapRef); - if(RefIndex != "") //is a other reference - { - int Id= RefIndex.IndexOf("-"); - Id= Convert.ToInt32(RefIndex.Substring(Id + 1, RefIndex.Length - 1 - Id)); - string RefName= GetReferenceNameFromId(Convert.ToInt32(Id), ref RefElement); - if(RefName== cSoapEncArray) //is an array - Result= ReferenceTypes.Array_Type; - else - if(RefName == "") - Result= ReferenceTypes.String_Type; - else - { - if((RefName.IndexOf(cDelegateSerClass) != -1)&&(RefElement.ChildNodes.Item(0).Name== cDelegateType)) //is a delegates - Result= ReferenceTypes.Delegate_Type; - else - Result= ReferenceTypes.Object_Type; - } - } - } - return Result; - } - - public string GetFullObjectLocation(string XsdType, out string NsName) - { - string AssemblyName= ReadAssemblyNameFromXml(XsdType); - int StartIndex= XsdType.LastIndexOf(":"); - string NsIndex= XsdType.Substring(1, StartIndex - 1); - NsName= ReadNamespaceFromXml(NsIndex); - NsName= NsName + "." + XsdType.Substring(StartIndex + 1, XsdType.Length - StartIndex - 1); - return AssemblyName; - } - - private ValueType GetValueTypeFromNotSimpleType(string XsdType, string ItemValue) - { - string NsName; - string AssemblyName= GetFullObjectLocation(XsdType, out NsName); - Type ItemType= Assembly.Load(AssemblyName).GetType(NsName); - object Result; - if(ItemType.IsEnum)//is an enum - Result= Enum.Parse(ItemType, ItemValue); - else //is a char - { - if(ItemValue == cDefaultValue) - Result= new char(); - else - Result= Char.Parse(ItemValue); - } - return (ValueType)Result; - } - - private string GetCLRTypeFromXsdType(string XsdType) - { - string Result= ""; - switch(XsdType) - { - case "xsd:int" :Result= "Int32"; - break; - case "xsd:short" :Result= "Int16"; - break; - case "xsd:long" :Result= "Int64"; - break; - case "xsd:unsignedInt" :Result= "UInt32"; - break; - case "xsd:unsignedShort":Result= "UInt16"; - break; - case "xsd:unsignedLong" :Result= "UInt64"; - break; - case "xsd:byte" :Result= "Byte"; - break; - case "xsd:decimal" :Result= "Decimal"; - break; - case "xsd:double" :Result= "Double"; - break; - case "xsd:boolean" :Result= "Boolean"; - break; - case "xsd:dateTime" :Result= "DateTime"; - break; - case "xsd:string" :Result= "String"; - break; - } - return Result; - } - - public ValueType GetValueTypeFromXsdType(string XsdType, string ItemValue) - { - ValueType Result= null; - switch(XsdType) - { - case "xsd:int" : Result= Convert.ToInt32(ItemValue); - break; - case "xsd:short" :Result= Convert.ToInt16(ItemValue); - break; - case "xsd:long" :Result= Convert.ToInt64(ItemValue); - break; - case "xsd:unsignedInt" :Result= Convert.ToUInt32(ItemValue); - break; - case "xsd:unsignedShort":Result= Convert.ToUInt16(ItemValue); - break; - case "xsd:unsignedLong" :Result= Convert.ToUInt64(ItemValue); - break; - case "xsd:byte" :Result= Convert.ToByte(ItemValue); - break; - case "xsd:decimal" :Result= Convert.ToDecimal(ItemValue); - break; - case "xsd:double" :Result= Convert.ToDouble(ItemValue); - break; - case "xsd:boolean" :Result= Convert.ToBoolean(ItemValue); - break; - case "xsd:dateTime" :Result= Convert.ToDateTime(ItemValue); - break; - default :Result= GetValueTypeFromNotSimpleType(XsdType, ItemValue); - break; - } - return Result; - } - - /**Value types reader**/ - public string ReadValueTypeFromXml(string FieldName, XmlElement ParentElement/*string ParentElement, string ParentElementId*/) - { - XmlNode XmlField= ParentElement.GetElementsByTagName(FieldName).Item(0);///*FCurrentElement*/GetCurrentElement(ParentElement, ParentElementId).GetElementsByTagName(FieldName).Item(0); - if(XmlField!= null) - return XmlField.InnerXml; - else - return null; - } - - public ValueType GetValueTypeFromString(string fieldtype, string fieldvalue) - { - ValueType result= null; - switch(fieldtype) - { - case "Int32" : result= Convert.ToInt32(fieldvalue); - break; - case "Int16" : result= Convert.ToInt16(fieldvalue); - break; - case "Int64" : result= Convert.ToInt64(fieldvalue); - break; - case "UInt32" : result= Convert.ToUInt32(fieldvalue); - break; - case "UInt16" : result= Convert.ToUInt16(fieldvalue); - break; - case "UInt64" : result= Convert.ToUInt64(fieldvalue); - break; - case "Byte" : result= Convert.ToByte(fieldvalue); - break; - case "Decimal" : result= Convert.ToDecimal(fieldvalue); - break; - case "Double" : result= Convert.ToDouble(fieldvalue); - break; - case "Boolean" : result= Convert.ToBoolean(fieldvalue); - break; - case "DateTime" : result= Convert.ToDateTime(fieldvalue); - break; - case "Char" : result= Convert.ToChar(fieldvalue); - break; - } - return result; - } - - /**Structs reader**/ - public string ReadStructValueFieldFromXml(/*string XmlParentElement, */string FieldName, XmlElement ParentElement/*string XmlParentElementId, */, string StructName, bool NestedStruct) - { - XmlElement FieldElement; - FieldElement= (XmlElement)ParentElement.GetElementsByTagName(FieldName).Item(0); - if(FieldElement != null) - return FieldElement.InnerXml; - else - return null; - } - - public void ReadStructParentElementFromXml(string StructName, XmlElement ParentElement, bool NestedStruct) - { - if(!NestedStruct)//is not a nested struct - DeepElement= (XmlElement)ParentElement.GetElementsByTagName(StructName).Item(0);//GetCurrentElement(XmlParentElement, XmlParentElementId).GetElementsByTagName(StructName).Item(0); - else - DeepElement= (XmlElement)DeepElement.GetElementsByTagName(StructName).Item(0); - } - - /**Assemblies reader**/ - public string GetAssemblyNameFromId(int id) - { - XmlNodeList ObjList= ((XmlElement)FXmlDoc.DocumentElement.GetElementsByTagName("SOAP-ENV:Body").Item(0)).ChildNodes; - bool Continue= true; - int index= 0; - string AssemblyName= ""; - while((Continue)&&(index<= ObjList.Count - 1)) - { - string refid= ((XmlElement)ObjList.Item(index)).GetAttribute(cId); - int StartIndex= refid.IndexOf("-"); - refid= refid.Substring(StartIndex + 1, refid.Length - 1 - StartIndex); - if(refid== id.ToString()) - { - Continue= false; - AssemblyName= ReadAssemblyNameFromXml(((XmlElement)ObjList.Item(index)).Name); - } - else - index++; - } - return AssemblyName; - } - - private string GetReferenceNameFromId(int id, ref XmlElement RefElement) - { - XmlNodeList ObjList= ((XmlElement)FXmlDoc.DocumentElement.GetElementsByTagName("SOAP-ENV:Body").Item(0)).ChildNodes; - bool Continue= true; - int index= 0; - string Result= ""; - while((Continue)&&(index<= ObjList.Count - 1)) - { - string refid= ((XmlElement)ObjList.Item(index)).GetAttribute(cId); - int StartIndex= refid.IndexOf("-"); - refid= refid.Substring(StartIndex + 1, refid.Length - 1 - StartIndex); - if(refid== id.ToString()) - { - Continue= false; - Result= ((XmlElement)ObjList.Item(index)).Name; - RefElement= (XmlElement)ObjList.Item(index); - } - else - index++; - } - return Result; - } - - public string ReadAssemblyNameFromXml(string ParentElementName) - { - string RefName= ParentElementName.Substring(1, ParentElementName.LastIndexOf(":") - 1); - string XmlNamespaceName= startxmlns + RefName; - string AttributeName= FXmlDoc.DocumentElement.Attributes.GetNamedItem(XmlNamespaceName).Value; - int StartIndex= AttributeName.LastIndexOf("/"); - string AssemblyName= AttributeName.Substring(StartIndex + 1, AttributeName.Length - StartIndex - 1); - if(AssemblyName == "System") - AssemblyName= basicassembly; - return AssemblyName; - } - - /**Namespace reader**/ - public string ReadNamespaceFromXml(string ReferenceName) - { - string XmlNamespaceName= startxmlns + ReferenceName; - string AttributeName= FXmlDoc.DocumentElement.Attributes.GetNamedItem(XmlNamespaceName).Value; - int StartIndex= AttributeName.LastIndexOf("/"); - string Result= ""; - string NsName= AttributeName.Substring(StartIndex + 1, AttributeName.Length - StartIndex - 1); - if(NsName == "System") - Result= NsName; - else - { - string TmpStr= AttributeName.Substring(0, StartIndex); - StartIndex= TmpStr.LastIndexOf("/"); - Result= TmpStr.Substring(StartIndex + 1, TmpStr.Length - StartIndex - 1); - } - return Result; - - } - - /**Utils**/ - public XmlElement GetCurrentElement(string ElementName, string ElementId) - { - string RefId= cObjectRef + ElementId; - XmlNodeList NodeList = ((XmlElement)FXmlDoc.DocumentElement.GetElementsByTagName("SOAP-ENV:Body").Item(0)).GetElementsByTagName(ElementName); - bool Continue= true; - int index= 0; - string Result= ""; - XmlElement ActElement = null; - while((Continue)&&(index <= NodeList.Count - 1)) - { - ActElement= (XmlElement)NodeList.Item(index); - if(ActElement.GetAttribute("id")== RefId)//the attributes match - Continue= false; - else - index++; - } - if(!Continue) - return ActElement; - else - return null; - } - - private int ReadFieldIdValueFromXml(string FieldName, XmlElement ParentElement) - { - XmlElement FieldElement= (XmlElement)ParentElement.GetElementsByTagName(FieldName).Item(0);//(XmlElement)GetCurrentElement(XmlParentElement, XmlParentElementId).GetElementsByTagName(FieldName).Item(0); - if(FieldElement.GetAttribute(cXsiNull)== "") //if it is not a null field - { - string refvalue= FieldElement.GetAttribute(cId); - int StartIndex= refvalue.IndexOf("-"); - return Convert.ToInt32(refvalue.Substring(StartIndex + 1, refvalue.Length - 1 - StartIndex)); - } - else - return -1; - } - - private int ReadFieldIdValueFromXml(int ItemIndex, XmlElement ParentElement) - { - XmlElement FieldElement= (XmlElement)ParentElement.ChildNodes.Item(ItemIndex); - if(FieldElement.GetAttribute(cXsiNull)== "") //if it is not a null field - { - string refvalue= FieldElement.GetAttribute(cId); - int StartIndex= refvalue.IndexOf("-"); - return Convert.ToInt32(refvalue.Substring(StartIndex + 1, refvalue.Length - 1 - StartIndex)); - } - else - return -1; - } - } -} diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs deleted file mode 100755 index da1009f4514e4..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs +++ /dev/null @@ -1,222 +0,0 @@ -/****************************************************/ -/*SoapWritter class implementation */ -/*Author: Jesús M. Rodríguez de la Vega */ -/*gsus@brujula.net */ -/****************************************************/ - -using System; -using System.Text; -using System.Collections; -using System.Xml; -using System.IO; - -namespace System.Runtime.Serialization.Formatters.soap -{ - - internal class SoapWriter - { - /******const section******/ - const string cNullObject = "xsi:null=\"1\"/"; - const string cSoapEnv = "SOAP-ENV:Body"; - const string cStartTag = "<"; - const string cEndTag = ">"; - const string cNumber = "#"; - const string cEqual = "="; - const string cTwoColon = ":"; - const string cAssId = "a"; - const string cslash = "/"; - const string cSoapRef = "href"; - const string cObjectRef = "ref-"; - const string cId = "id"; - /******Array's serialization section******/ - const string cItem = "item"; - const string cSoapEncArray = "SOAP-ENC:Array"; - const string cSoapArrayType = "SOAP-ENC:arrayType"; - const string cXsiType = "xsi:type"; - /******field's section******/ - public ArrayList FXmlObjectList; - public int FReferenceNumber; - /******method's section******/ - private string ConcatenateObjectList() - { - string XmlResult= ""; - object[] XmlList= FXmlObjectList.ToArray(); - for(int index= 0; index<= FXmlObjectList.Count - 1; index++) - XmlResult= XmlResult + XmlList[index].ToString(); - return XmlResult; - } - - private StringBuilder GetXmlObject(int ObjectIndex) - { - object[] XmlList= FXmlObjectList.ToArray(); - string Actstring= XmlList[ObjectIndex - 1].ToString(); - return new StringBuilder(Actstring); - } - - public void WriteObjectToXml(int AssemblyIndex, int ReferenceIndex, string ClassName) - { - StringBuilder ObjWriter= new StringBuilder(); - string XmlStartTag= cStartTag + cAssId + AssemblyIndex.ToString() + cTwoColon + ClassName + - ' ' + cId + cEqual + '"' + cObjectRef + ReferenceIndex + '"' + cEndTag; - string XmlEndTag= cStartTag + cslash + cAssId + AssemblyIndex.ToString() + cTwoColon + ClassName + cEndTag; - ObjWriter.Append(XmlStartTag); - ObjWriter.Append(XmlEndTag); - FXmlObjectList.Add(ObjWriter.ToString()); - } - - public void WriteArrayToXml(string XmlSchemaArrayType, int ArrayIndex) - { - StringBuilder ObjWriter= new StringBuilder(); - string XmlStartTag= cStartTag + cSoapEncArray + ' ' + cId + cEqual + '"' + - cObjectRef + ArrayIndex + '"' + ' ' + cSoapArrayType + - cEqual + XmlSchemaArrayType + cEndTag; - string XmlEndTag= cStartTag + cslash + cSoapEncArray + cEndTag; - ObjWriter.Append(XmlStartTag); - ObjWriter.Append(XmlEndTag); - FXmlObjectList.Add(ObjWriter.ToString()); - } - - public void WriteStringTypeToXml(string StringName, string StringValue, int ParentObjectIndex, int StringIndex) - { - StringBuilder ObjWriter= GetXmlObject(ParentObjectIndex); - string StrFieldStartTag= cStartTag + StringName + ' ' + cId + cEqual + '"' + cObjectRef + StringIndex + '"' + cEndTag; - string StrFieldEndTag = cStartTag + cslash + StringName + cEndTag; - int index= ObjWriter.ToString().LastIndexOf(cStartTag); - ObjWriter.Insert(index, StrFieldStartTag + StringValue + StrFieldEndTag); - FXmlObjectList.RemoveAt(ParentObjectIndex - 1); - FXmlObjectList.Insert(ParentObjectIndex - 1, ObjWriter.ToString()); - } - - public void WriteObjectFieldToXml(string FieldName, int ParentObjectIndex, int ObjectIndex) - { - StringBuilder ObjWriter= GetXmlObject(ParentObjectIndex); - string XmlField= cStartTag + FieldName + ' ' + cSoapRef + cEqual - + '"' + cNumber + cObjectRef + ObjectIndex.ToString() + '"'+ cslash + cEndTag; - int index= ObjWriter.ToString().LastIndexOf(cStartTag); - ObjWriter.Insert(index, XmlField); - FXmlObjectList.RemoveAt(ParentObjectIndex - 1); - FXmlObjectList.Insert(ParentObjectIndex - 1, ObjWriter.ToString()); - } - - public void WriteNullObjectFieldToXml(string FieldName, int ParentObjectIndex) - { - StringBuilder ObjWriter= GetXmlObject(ParentObjectIndex); - string XmlField= cStartTag + FieldName + ' ' + cNullObject + cEndTag; - int index= ObjWriter.ToString().LastIndexOf(cStartTag); - ObjWriter.Insert(index, XmlField); - FXmlObjectList.RemoveAt(ParentObjectIndex - 1); - FXmlObjectList.Insert(ParentObjectIndex - 1, ObjWriter.ToString()); - } - - public void WriteValueTypeToXml(string FieldName, string FieldValue, int ObjectIndex) - { - StringBuilder ObjWriter= GetXmlObject(ObjectIndex); - string XmlField= cStartTag + FieldName + cEndTag + FieldValue + - cStartTag + cslash + FieldName + cEndTag; - int index= ObjWriter.ToString().LastIndexOf(cStartTag); - ObjWriter.Insert(index, XmlField); - FXmlObjectList.RemoveAt(ObjectIndex - 1); - FXmlObjectList.Insert(ObjectIndex - 1, ObjWriter.ToString()); - } - - public void WriteStructInitTagToXml(string StructName, int ObjectIndex, bool XsiType, int AssemblyIndex, string StructType) - { - StringBuilder ObjWriter= GetXmlObject(ObjectIndex); - string StructInitTag= cStartTag + StructName; - if(XsiType) - StructInitTag= StructInitTag + ' ' + cXsiType + cEqual + '"' + "a" + AssemblyIndex + cTwoColon + StructType + '"'; - StructInitTag= StructInitTag + cEndTag; - int index= ObjWriter.ToString().LastIndexOf(cStartTag); - ObjWriter.Insert(index, StructInitTag); - FXmlObjectList.RemoveAt(ObjectIndex - 1); - FXmlObjectList.Insert(ObjectIndex - 1, ObjWriter.ToString()); - } - - public void WriteStructEndTagToXml(string StructName, int ObjectIndex) - { - StringBuilder ObjWriter= GetXmlObject(ObjectIndex); - string StructInitTag= cStartTag + cslash + StructName + cEndTag; - int index= ObjWriter.ToString().LastIndexOf(cStartTag); - ObjWriter.Insert(index, StructInitTag); - FXmlObjectList.RemoveAt(ObjectIndex - 1); - FXmlObjectList.Insert(ObjectIndex - 1, ObjWriter.ToString()); - } - - public void WriteArrayValueItemToXml(string ItemType, string ItemValue, int ArrayIndex, string ArrayItemsType, int AssemblyIndex) - { - StringBuilder ObjWriter= GetXmlObject(ArrayIndex); - string ItemInitTag= cStartTag + cItem; - if(ArrayItemsType== "Object") - { - ItemInitTag= ItemInitTag + ' ' + cXsiType + cEqual + '"' + GenerateXmlSchemaType(ItemType, AssemblyIndex) + '"'; - } - ItemInitTag= ItemInitTag + cEndTag + ItemValue + cStartTag + cslash + cItem + cEndTag; - int index= ObjWriter.ToString().LastIndexOf(cStartTag); - ObjWriter.Insert(index, ItemInitTag); - FXmlObjectList.RemoveAt(ArrayIndex - 1); - FXmlObjectList.Insert(ArrayIndex - 1, ObjWriter.ToString()); - } - - public void WriteStructTypeToXml(string StructName) - { - } - - public void WriteObjectListToXml(string SoapDoc, Stream SoapStream) - { - string XmlResult= ConcatenateObjectList(); - XmlDocument XmlDoc= new XmlDocument(); - XmlDoc.LoadXml(SoapDoc); - XmlNode XNode= XmlDoc.DocumentElement.GetElementsByTagName(cSoapEnv).Item(0); - XNode.InnerXml= XmlResult; - StreamWriter SoapWrt= new StreamWriter(SoapStream); - SoapWrt.Write(XmlDoc.InnerXml); - SoapWrt.Close(); - } - - public string GenerateSchemaArrayType(string ArrayType, int ArrayLength, int AssemblyIndex) - { - string StrResult= ArrayType; - string ArrayItems= ArrayType.Substring(0, ArrayType.IndexOf("[")); - string XmlSchType= GenerateXmlSchemaType(ArrayItems, AssemblyIndex); - StrResult=StrResult.Replace(ArrayItems, XmlSchType); - StrResult= StrResult.Insert(StrResult.LastIndexOf(']'), ArrayLength.ToString()); - StrResult= '"' + StrResult + '"'; - return StrResult; - } - - public string GenerateXmlSchemaType(string TypeName, int AssemblyIndex) - { - string XmlSchType; - switch(TypeName) - { - case "Int32" : XmlSchType= "xsd:int"; - break; - case "Int16" : XmlSchType= "xsd:short"; - break; - case "Int64" : XmlSchType= "xsd:long"; - break; - case "UInt32" : XmlSchType= "xsd:unsignedInt"; - break; - case "UInt16" : XmlSchType= "xsd:unsignedShort"; - break; - case "UInt64" : XmlSchType= "xsd:unsignedLong"; - break; - case "Byte" : XmlSchType= "xsd:byte"; - break; - case "Decimal" : XmlSchType= "xsd:decimal"; - break; - case "Double" : XmlSchType= "xsd:double"; - break; - case "String" : XmlSchType= "xsd:string"; - break; - case "Boolean" : XmlSchType= "xsd:boolean"; - break; - case "DateTime" : XmlSchType= "xsd:dateTime"; - break; - default : XmlSchType= "a" + AssemblyIndex + cTwoColon + TypeName; - break; - } - return XmlSchType; - } - } -} diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/TODOAttribute.cs b/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/TODOAttribute.cs deleted file mode 100755 index 0b89c8b0a77e2..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/TODOAttribute.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -namespace System.Runtime.Serialization.Formatters.Soap { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All, AllowMultiple=true)] - public class MonoTODOAttribute : Attribute { - - private string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - - public string Comment - { - get { return comment; } - } - } -} diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/list b/mcs/class/System.Runtime.Serialization.Formatters.Soap/list deleted file mode 100644 index 1584dbacbfbff..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/list +++ /dev/null @@ -1,6 +0,0 @@ -System.Runtime.Serialization.Formatters.Soap/ObjectDeserializer.cs -System.Runtime.Serialization.Formatters.Soap/ObjectSerializer.cs -System.Runtime.Serialization.Formatters.Soap/SoapFormatter.cs -System.Runtime.Serialization.Formatters.Soap/SoapReader.cs -System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs -System.Runtime.Serialization.Formatters.Soap/TODOAttribute.cs diff --git a/mcs/class/System.Runtime.Serialization.Formatters.Soap/makefile.gnu b/mcs/class/System.Runtime.Serialization.Formatters.Soap/makefile.gnu deleted file mode 100644 index ae3ae19983185..0000000000000 --- a/mcs/class/System.Runtime.Serialization.Formatters.Soap/makefile.gnu +++ /dev/null @@ -1,13 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/System.Runtime.Serialization.Formatters.Soap.dll - -LIB_LIST = list -LIB_FLAGS = -r corlib -r System.Xml - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=./Test* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/System.Web.Services/.cvsignore b/mcs/class/System.Web.Services/.cvsignore deleted file mode 100755 index 7d6c125a1981f..0000000000000 --- a/mcs/class/System.Web.Services/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -*.dll -*.suo -*.csproj.user -bin -obj -.makefrag -.response diff --git a/mcs/class/System.Web.Services/ChangeLog b/mcs/class/System.Web.Services/ChangeLog deleted file mode 100644 index 22cd8451a876b..0000000000000 --- a/mcs/class/System.Web.Services/ChangeLog +++ /dev/null @@ -1,45 +0,0 @@ -2002-08-07 Tim Coleman - * System.Web.Services.build: - Added "test" target to build. - Added "clean" target to build. - * Test: - New test suites added. - -2002-08-06 Tim Coleman - * list: Added System.Web.Services.Protocols/ServerProtocol.cs - -2002-07-29 Dave Bettin - * list: added new Discovery classes - * System.Web.Services.Discovery: added stubs - * .cvsignore: added - * Mono.System.Web.Services: added VS.net project for assembly - -2002-07-25 Tim Coleman - * list: add new classes - -2002-07-24 Tim Coleman - * list: - Added System.Web.Services.Description/SoapProtocolReflector.cs - -2002-07-22 Tim Coleman - * makefile.gnu: - * list: - Modifications to make this library buildable on - linux. - - -2002-07-22 Tim Coleman - * list: Added new files from System.Web.Services.Protocols - and System.Web.Services.Configuration - -2002-07-19 Tim Coleman - * list: Added - -2002-07-19 Tim Coleman - * System.Web.Services.build: added - * System.Web.Services: - * System.Web.Services.Configuration: - * System.Web.Services.Description: - * System.Web.Services.Discovery: - * System.Web.Services.Protocols: - New directories added diff --git a/mcs/class/System.Web.Services/Mono.System.Web.Services.csproj b/mcs/class/System.Web.Services/Mono.System.Web.Services.csproj deleted file mode 100755 index bc69dceffd2f4..0000000000000 --- a/mcs/class/System.Web.Services/Mono.System.Web.Services.csproj +++ /dev/null @@ -1,869 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog deleted file mode 100644 index b91825974fc90..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/ChangeLog +++ /dev/null @@ -1,6 +0,0 @@ -2002-07-21 Tim Coleman - * ChangeLog: - * XmlFormatExtensionAttribute.cs: - * XmlFormatExtensionPointAttribute.cs: - * XmlFormatExtensionPrefixAttribute.cs: - New files added diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionAttribute.cs deleted file mode 100644 index eda21c22cecbd..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionAttribute.cs +++ /dev/null @@ -1,77 +0,0 @@ - // -// System.Web.Services.Configuration.XmlFormatExtensionAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Configuration { - [AttributeUsage (AttributeTargets.Class)] - public sealed class XmlFormatExtensionAttribute : Attribute { - - #region Fields - - string elementName; - string ns; - Type[] extensionPoints; - - #endregion // Fields - - #region Constructors - - public XmlFormatExtensionAttribute () - { - } - - public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1) - : this (elementName, ns, new Type[1] {extensionPoint1}) - { - } - - public XmlFormatExtensionAttribute (string elementName, string ns, Type[] extensionPoints) - : this () - { - this.elementName = elementName; - this.ns = ns; - this.extensionPoints = extensionPoints; - } - - public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2) - : this (elementName, ns, new Type[2] {extensionPoint1, extensionPoint2}) - { - } - - public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3) - : this (elementName, ns, new Type[3] {extensionPoint1, extensionPoint2, extensionPoint3}) - { - } - - public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4) - : this (elementName, ns, new Type[4] {extensionPoint1, extensionPoint2, extensionPoint3, extensionPoint4}) - { - } - - #endregion // Constructors - - #region Properties - - public string ElementName { - get { return elementName; } - set { elementName = value; } - } - - public Type[] ExtensionPoints { - get { return extensionPoints; } - set { extensionPoints = value; } - } - - public string Namespace { - get { return ns; } - set { ns = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPointAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPointAttribute.cs deleted file mode 100644 index f7cac2e032f4a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPointAttribute.cs +++ /dev/null @@ -1,44 +0,0 @@ - // -// System.Web.Services.Configuration.XmlFormatExtensionPointAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Configuration { - [AttributeUsage (AttributeTargets.Class)] - public sealed class XmlFormatExtensionPointAttribute : Attribute { - - #region Fields - - bool allowElements; - string memberName; - - #endregion // Fields - - #region Constructors - - public XmlFormatExtensionPointAttribute (string memberName) - { - allowElements = false; // FIXME - } - - #endregion // Constructors - - #region Properties - - public bool AllowElements { - get { return allowElements; } - set { allowElements = value; } - } - - public string MemberName { - get { return memberName; } - set { memberName = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPrefixAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPrefixAttribute.cs deleted file mode 100644 index 91ed4038e6043..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Configuration/XmlFormatExtensionPrefixAttribute.cs +++ /dev/null @@ -1,50 +0,0 @@ - // -// System.Web.Services.Configuration.XmlFormatExtensionPrefixAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Configuration { - [AttributeUsage (AttributeTargets.Class)] - public sealed class XmlFormatExtensionPrefixAttribute : Attribute { - - #region Fields - - string prefix; - string ns; - - #endregion // Fields - - #region Constructors - - public XmlFormatExtensionPrefixAttribute () - { - } - - public XmlFormatExtensionPrefixAttribute (string prefix, string ns) - : this () - { - this.prefix = prefix; - this.ns = ns; - } - - #endregion // Constructors - - #region Properties - - public string Prefix { - get { return prefix; } - set { prefix = value; } - } - - public string Namespace { - get { return ns; } - set { ns = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs deleted file mode 100644 index 9b7206f596e3f..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// System.Web.Services.Description.Binding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class Binding : DocumentableItem { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; - string name; - OperationBindingCollection operations; - ServiceDescription serviceDescription; - XmlQualifiedName type; - - #endregion // Fields - - #region Constructors - - public Binding () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - name = String.Empty; - operations = new OperationBindingCollection (this); - serviceDescription = null; - type = XmlQualifiedName.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlElement ("operation")] - public OperationBindingCollection Operations { - get { return operations; } - } - - public ServiceDescription ServiceDescription { - get { return serviceDescription; } - } - - [XmlAttribute ("type")] - public XmlQualifiedName Type { - get { return type; } - set { type = value; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (ServiceDescription serviceDescription) - { - this.serviceDescription = serviceDescription; - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/BindingCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/BindingCollection.cs deleted file mode 100644 index 257bda99c6a1e..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/BindingCollection.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -// System.Web.Services.Description.BindingCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class BindingCollection : ServiceDescriptionBaseCollection { - - #region Fields - - ServiceDescription serviceDescription; - - #endregion // Fields - - #region Constructors - - internal BindingCollection (ServiceDescription serviceDescription) - : base (serviceDescription) - { - } - - #endregion // Constructors - - #region Properties - - public Binding this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - return (Binding) List[index]; - } - set { List [index] = value; } - } - - public Binding this [string name] { - get { return this[IndexOf ((Binding) Table[name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (Binding binding) - { - Insert (Count, binding); - return (Count - 1); - } - - public bool Contains (Binding binding) - { - return List.Contains (binding); - } - - public void CopyTo (Binding[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is Binding)) - throw new InvalidCastException (); - return ((Binding) value).Name; - } - - public int IndexOf (Binding binding) - { - return List.IndexOf (binding); - } - - public void Insert (int index, Binding binding) - { - List.Insert (index, binding); - } - - public void Remove (Binding binding) - { - List.Remove (binding); - } - - protected override void SetParent (object value, object parent) - { - ((Binding) value).SetParent ((ServiceDescription) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog deleted file mode 100644 index 779d19a55c901..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog +++ /dev/null @@ -1,289 +0,0 @@ -2002-08-20 Tim Coleman - * ServiceDescription.cs: - Add ServiceDescription.ServiceDescriptionSerializer - class. - * ServiceDescriptionFormatExtensionCollection.cs: - Remove reference to "parent". - -2002-08-19 Tim Coleman - * BindingCollection.cs: - Use base constructor, remove SetParent call - * FaultBindingCollection.cs: - * ImportCollection.cs: - * MessageCollection.cs: - * MessagePartCollection.cs: - * OperationBindingCollection.cs: - * OperationCollection.cs: - * OperationFaultCollection.cs: - * PortCollection.cs: - * PortTypeCollection.cs: - * ServiceCollection.cs: - * ServiceDescriptionFormatExtensionCollection.cs: - Use base constructor - * ServiceDescriptionCollection.cs: - Use base constructor, Remove SetParent method - * ServiceDescriptionBaseCollection.cs: - Make parent object private as according to - class status page. - * OperationMessageCollection.cs: - Use base constructor - Remove excess break's to avoid compiler warning - Remove TODO attribute (confirmed default retval) - -2002-08-15 Tim Coleman - * FaultBindingCollection.cs: - * ImportCollection.cs: - * MessageCollection.cs: - * MessagePartCollection.cs: - * OperationBindingCollection.cs: - * OperationCollection.cs: - * OperationFaultCollection.cs: - * OperationMessageCollection.cs: - * PortCollection.cs: - * PortTypeCollection.cs: - * ServiceCollection.cs: - * ServiceDescriptionFormatExtensionCollection.cs: - Use parent from ServiceDescriptionBaseCollection - * ServiceDescriptionCollection.cs: - Use parent from ServiceDescriptionBaseCollection - Implement SetParent () method - * ServiceDescriptionBaseCollection.cs: - Add "parent" object. - Add SetParent call to OnSet() and OnInsert () - -2002-08-12 Tim Coleman - * Operation.cs: - Fix ParameterOrderString in case ParameterOrder is - null. - * BindingCollection.cs: - Remove Table handling on insert/delete/indexer - because it is handled in base class. - * ServiceDescriptionBaseCollection.cs: - Only add an element to the hashtable if its GetKey () - method does not return null. - -2002-08-09 Tim Coleman - * BindingCollection.cs: - * ServiceDescriptionCollection.cs: - Implement Set indexer - * FaultBindingCollection.cs: - * MessageCollection.cs: - * MessagePartCollection.cs: - * OperationFaultCollection.cs: - * PortCollection.cs: - * PortTypeCollection.cs: - * ServiceCollection.cs: - Implement Set indexer, code cleanup - * Message.cs: - Implement FindPartByName () - * OperationMessageCollection.cs: - Alter OnSet () method - * ServiceDescriptionBaseCollection.cs: - Implement some methods. - * ServiceDescriptionFormatExtensionCollection.cs: - Implement Find (), FindAll (), OnValidate () methods - - -2002-08-06 Tim Coleman - * ServiceDescription.cs: - Add namespace definitions when serializing. - * HttpBinding.cs: - Change namespace definition (wsdl was spelt wsld) - -2002-08-06 Tim Coleman - * ServiceDescription.cs: - Change the XmlElement name from "type" to "types" for - the Types object - -2002-08-06 Tim Coleman - * ServerProtocol.cs: - Add new class as implied by class statuc page. - SoapServerProtocol is derived from this. - * SoapServerProtocol.cs: - Change base class to ServerProtocol. - * SoapClientMethod.cs: - This class should not be sealed. - -2002-08-03 Tim Coleman - * SoapProtocolReflector.cs: - Removed SoapBinding property and made the class - not sealed to agree with class reference page. - -2002-08-03 Tim Coleman - * ServiceDescriptionBaseCollection.cs: - Removed some NotImplementedException()'s so that - it runs. - -2002-07-26 Tim Coleman - * ServiceDescription.cs: - Changed the creation of the XmlSerializer after - consulting the System.Xml.Serialization namespace - and trying to serialize a document. Now works somewhat! - -2002-07-25 Tim Coleman - * OperationMessageCollection.cs: - Some implementation of this class after consulting a - WSDL reference. Now validates the inputs. - -2002-07-24 Tim Coleman - * ProtocolImporter.cs: - * ProtocolReflector.cs: - Some implementation of these classes. MonoTODO's begone! - * SoapProtocolImporter.cs: - Changed description to literal string "Soap" - * SoapProtocolReflector.cs: - Added a new class based on guesswork and conjecture. - -2002-07-24 Tim Coleman - * ServiceDescription.cs: - Implement Read/Write methods for serialization/ - deserialization. - -2002-07-23 Tim Coleman - * ServiceDescription.cs: - Add XmlIgnore attribute to ServiceDescriptions property - * OperationFlow.cs: - * ServiceDescriptionImportWarnings.cs: - Explicitly set values in enumeration to match - .NET. - -2002-07-22 Tim Coleman - * Binding.cs: - * BindingCollection.cs: - * DocumentableItem.cs: - * FaultBinding.cs: - * FaultBindingCollection.cs: - * HttpAddressBinding.cs: - * HttpBinding.cs: - * HttpOperationBinding.cs: - * HttpUrlEncodedBinding.cs: - * HttpUrlReplacementBinding.cs: - * Import.cs: - * ImportCollection.cs: - * InputBinding.cs: - * Message.cs: - * MessageBinding.cs: - * MessageCollection.cs: - * MessagePart.cs: - * MessagePartCollection.cs: - * MimeContentBinding.cs: - * MimeMultipartRelatedBinding.cs: - * MimePart.cs: - * MimePartCollection.cs: - * MimeTextBinding.cs: - * MimeTextMatch.cs: - * MimeTextMatchCollection.cs: - * MimeXmlBinding.cs: - * Operation.cs: - * OperationBinding.cs: - * OperationBindingCollection.cs: - * OperationCollection.cs: - * OperationFaultCollection.cs: - * OperationFlow.cs: - * OperationMessage.cs: - * OperationMessageCollection.cs: - * OutputBinding.cs: - * Port.cs: - * PortCollection.cs: - * PortType.cs: - * PortTypeCollection.cs: - * ProtocolImporter.cs: - * Service.cs: - * ServiceCollection.cs: - * ServiceDescription.cs: - * ServiceDescriptionBaseCollection.cs: - * ServiceDescriptionCollection.cs: - * ServiceDescriptionFormatExtension.cs: - * ServiceDescriptionFormatExtensionCollection.cs: - * ServiceDescriptionImportWarnings.cs: - * SoapAddressBinding.cs: - * SoapBinding.cs: - * SoapBindingStyle.cs: - * SoapBindingUse.cs: - * SoapBodyBinding.cs: - * SoapExtensionImporter.cs: - * SoapExtensionReflector.cs: - * SoapFaultBinding.cs: - * SoapHeaderBinding.cs: - * SoapHeaderFaultBinding.cs: - * SoapOperationBinding.cs: - * SoapTransportImporter.cs: - * Types.cs: - 1. Add missing attributes as determined by reflection - 2. Fix protection levels where appropriate - 3. Add missing items where appropriate - Basically, this was a change to remove all the X's from - the project status page for this namespace :) - -2002-07-19 Tim Coleman - * Binding.cs: - * BindingCollection.cs: - * ChangeLog: - * DocumentableItem.cs: - * FaultBinding.cs: - * FaultBindingCollection.cs: - * HttpAddressBinding.cs: - * HttpBinding.cs: - * HttpOperationBinding.cs: - * HttpUrlEncodedBinding.cs: - * HttpUrlReplacementBinding.cs: - * Import.cs: - * ImportCollection.cs: - * InputBinding.cs: - * Message.cs: - * MessageBinding.cs: - * MessageCollection.cs: - * MessagePart.cs: - * MessagePartCollection.cs: - * MimeContentBinding.cs: - * MimeMultipartRelatedBinding.cs: - * MimePart.cs: - * MimePartCollection.cs: - * MimeTextBinding.cs: - * MimeTextMatch.cs: - * MimeTextMatchCollection.cs: - * MimeXmlBinding.cs: - * Operation.cs: - * OperationBinding.cs: - * OperationBindingCollection.cs: - * OperationCollection.cs: - * OperationFault.cs: - * OperationFaultCollection.cs: - * OperationFlow.cs: - * OperationInput.cs: - * OperationMessage.cs: - * OperationMessageCollection.cs: - * OperationOutput.cs: - * OutputBinding.cs: - * Port.cs: - * PortCollection.cs: - * PortType.cs: - * PortTypeCollection.cs: - * ProtocolImporter.cs: - * ProtocolReflector.cs: - * Service.cs: - * ServiceCollection.cs: - * ServiceDescription.cs: - * ServiceDescriptionBaseCollection.cs: - * ServiceDescriptionCollection.cs: - * ServiceDescriptionFormatExtension.cs: - * ServiceDescriptionFormatExtensionCollection.cs: - * ServiceDescriptionImportStyle.cs: - * ServiceDescriptionImportWarnings.cs: - * ServiceDescriptionImporter.cs: - * ServiceDescriptionReflector.cs: - * SoapAddressBinding.cs: - * SoapBinding.cs: - * SoapBindingStyle.cs: - * SoapBindingUse.cs: - * SoapBodyBinding.cs: - * SoapExtensionImporter.cs: - * SoapExtensionReflector.cs: - * SoapFaultBinding.cs: - * SoapHeaderBinding.cs: - * SoapHeaderFaultBinding.cs: - * SoapOperationBinding.cs: - * SoapProtocolImporter.cs: - * SoapTransportImporter.cs: - * Types.cs: - Initial implementation diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/DocumentableItem.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/DocumentableItem.cs deleted file mode 100644 index 8c4e2a78f3c7b..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/DocumentableItem.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// System.Web.Services.Description.DocumentableItem.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public abstract class DocumentableItem { - - #region Fields - - string documentation; - - #endregion // Fields - - #region Constructors - - protected DocumentableItem () - { - documentation = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlElement ("documentation")] - [DefaultValue ("")] - public string Documentation { - get { return documentation; } - set { documentation = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/FaultBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/FaultBinding.cs deleted file mode 100644 index 423a08060b28b..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/FaultBinding.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// System.Web.Services.Description.FaultBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class FaultBinding : MessageBinding { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; - OperationBinding operationBinding; - - #endregion // Fields - - #region Constructors - - public FaultBinding () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - operationBinding = null; - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public override ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (OperationBinding operationBinding) - { - this.operationBinding = operationBinding; - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/FaultBindingCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/FaultBindingCollection.cs deleted file mode 100644 index fe885c1bd4ed6..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/FaultBindingCollection.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// System.Web.Services.Description.FaultBindingCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class FaultBindingCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal FaultBindingCollection (OperationBinding operationBinding) - : base (operationBinding) - { - } - - #endregion // Constructors - - #region Properties - - public FaultBinding this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - return (FaultBinding) List[index]; - } - set { List [index] = value; } - } - - public FaultBinding this [string name] { - get { return this [IndexOf ((FaultBinding) Table[name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (FaultBinding bindingOperationFault) - { - Insert (Count, bindingOperationFault); - return (Count - 1); - } - - public bool Contains (FaultBinding bindingOperationFault) - { - return List.Contains (bindingOperationFault); - } - - public void CopyTo (FaultBinding[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is FaultBinding)) - throw new InvalidCastException (); - - return ((FaultBinding) value).Name; - } - - public int IndexOf (FaultBinding bindingOperationFault) - { - return List.IndexOf (bindingOperationFault); - } - - public void Insert (int index, FaultBinding bindingOperationFault) - { - List.Insert (index, bindingOperationFault); - } - - public void Remove (FaultBinding bindingOperationFault) - { - List.Remove (bindingOperationFault); - } - - protected override void SetParent (object value, object parent) - { - ((FaultBinding) value).SetParent ((OperationBinding) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpAddressBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/HttpAddressBinding.cs deleted file mode 100644 index b35eb111bf818..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpAddressBinding.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// System.Web.Services.Description.HttpAddressBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("address", "http://schemas.xmlsoap.org/wsdl/http/", typeof (Port))] - public sealed class HttpAddressBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string location; - - #endregion // Fields - - #region Constructors - - public HttpAddressBinding () - { - location = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("location")] - public string Location { - get { return location; } - set { location = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/HttpBinding.cs deleted file mode 100644 index fe5adf056a92e..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpBinding.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.Web.Services.Description.HttpBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("binding", "http://schemas.xmlsoap.org/wsdl/http/", typeof (Binding))] - [XmlFormatExtensionPrefix ("http", "http://schemas.xmlsoap.org/wsdl/http/")] - public sealed class HttpBinding : ServiceDescriptionFormatExtension { - - #region Fields - - public const string Namespace = "http://schemas.xmlsoap.org/wsdl/http/"; - string verb; - - #endregion // Fields - - #region Constructors - - public HttpBinding () - { - verb = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("verb", DataType = "NMTOKEN")] - public string Verb { - get { return verb; } - set { verb = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpOperationBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/HttpOperationBinding.cs deleted file mode 100644 index 0115dbb0b61ff..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpOperationBinding.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// System.Web.Services.Description.HttpOperationBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("operation", "http://schemas.xmlsoap.org/wsdl/http/", typeof (OperationBinding))] - public sealed class HttpOperationBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string location; - - #endregion // Fields - - #region Constructors - - public HttpOperationBinding () - { - location = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("location")] - public string Location { - get { return location; } - set { location = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlEncodedBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlEncodedBinding.cs deleted file mode 100644 index 4ce0e0fe4f9d3..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlEncodedBinding.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.Web.Services.Description.HttpUrlEncodedBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("urlEncoded", "http://schemas.xmlsoap.org/wsdl/http/", typeof (InputBinding))] - public sealed class HttpUrlEncodedBinding : ServiceDescriptionFormatExtension { - - #region Constructors - - public HttpUrlEncodedBinding () - { - } - - #endregion // Constructors - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlReplacementBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlReplacementBinding.cs deleted file mode 100644 index 9414c8cbd460c..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/HttpUrlReplacementBinding.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// System.Web.Services.Description.HttpUrlReplacementBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("urlReplacement", "http://schemas.xmlsoap.org/wsdl/http/", typeof (InputBinding))] - public sealed class HttpUrlReplacementBinding : ServiceDescriptionFormatExtension { - - #region Constructors - - public HttpUrlReplacementBinding () - { - } - - #endregion // Constructors - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Import.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Import.cs deleted file mode 100644 index 8c36325bf197a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Import.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// System.Web.Services.Description.Import.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class Import : DocumentableItem { - - #region Fields - - string location; - string ns; - ServiceDescription serviceDescription; - - #endregion // Fields - - #region Constructors - - public Import () - { - location = String.Empty; - ns = String.Empty; - serviceDescription = null; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("location")] - public string Location { - get { return location; } - set { location = value; } - } - - [XmlAttribute ("namespace")] - public string Namespace { - get { return ns; } - set { ns = value; } - } - - public ServiceDescription ServiceDescription { - get { return serviceDescription; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (ServiceDescription serviceDescription) - { - this.serviceDescription = serviceDescription; - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ImportCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ImportCollection.cs deleted file mode 100644 index a1cfd6eb14f16..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ImportCollection.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// System.Web.Services.Description.ImportCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class ImportCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal ImportCollection (ServiceDescription serviceDescription) - : base (serviceDescription) - { - } - - #endregion - - #region Properties - - public Import this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - return (Import) List[index]; - } - set { List [index] = value; } - } - - #endregion // Properties - - #region Methods - - public int Add (Import import) - { - Insert (Count, import); - return (Count - 1); - } - - public bool Contains (Import import) - { - return List.Contains (import); - } - - public void CopyTo (Import[] array, int index) - { - List.CopyTo (array, index); - } - - public int IndexOf (Import import) - { - return List.IndexOf (import); - } - - public void Insert (int index, Import import) - { - List.Insert (index, import); - } - - public void Remove (Import import) - { - List.Remove (import); - } - - protected override void SetParent (object value, object parent) - { - ((Import) value).SetParent ((ServiceDescription) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/InputBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/InputBinding.cs deleted file mode 100644 index d8b9483b2b122..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/InputBinding.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Web.Services.Description.InputBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class InputBinding : MessageBinding { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; - - #endregion // Fields - - #region Constructors - - public InputBinding () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public override ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Message.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Message.cs deleted file mode 100644 index 3d812ee2c8d4b..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Message.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// System.Web.Services.Description.Message.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; -using System.Web.Services; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class Message : DocumentableItem { - - #region Fields - - string name; - MessagePartCollection parts; - ServiceDescription serviceDescription; - - #endregion // Fields - - #region Constructors - - public Message () - { - name = String.Empty; - parts = new MessagePartCollection (this); - serviceDescription = null; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlElement ("part")] - public MessagePartCollection Parts { - get { return parts; } - } - - public ServiceDescription ServiceDescription { - get { return serviceDescription; } - } - - #endregion // Properties - - #region Methods - - public MessagePart FindPartByName (string partName) - { - return parts [partName]; - } - - public MessagePart[] FindPartsByName (string[] partNames) - { - ArrayList searchResults = new ArrayList (); - - foreach (string partName in partNames) - searchResults.Add (FindPartByName (partName)); - - int count = searchResults.Count; - - if (count == 0) - throw new ArgumentException (); - - MessagePart[] returnValue = new MessagePart[count]; - searchResults.CopyTo (returnValue); - return returnValue; - } - - internal void SetParent (ServiceDescription serviceDescription) - { - this.serviceDescription = serviceDescription; - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MessageBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MessageBinding.cs deleted file mode 100644 index 6488901d9ff57..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MessageBinding.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// System.Web.Services.Description.MessageBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public abstract class MessageBinding : DocumentableItem { - - #region Fields - - string name; - OperationBinding operationBinding; - - #endregion // Fields - - #region Constructors - - protected MessageBinding () - { - name = String.Empty; - operationBinding = new OperationBinding (); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public abstract ServiceDescriptionFormatExtensionCollection Extensions { - get; - } - - [XmlAttribute ("name", DataType = "NMTOKEN")] - public string Name { - get { return name; } - set { name = value; } - } - - public OperationBinding OperationBinding { - get { return operationBinding; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MessageCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MessageCollection.cs deleted file mode 100644 index 1ba2bcf0afcf1..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MessageCollection.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// System.Web.Services.Description.MessageCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class MessageCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal MessageCollection (ServiceDescription serviceDescription) - : base (serviceDescription) - { - } - - #endregion - - #region Properties - - public Message this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return (Message) List [index]; - } - set { List [index] = value; } - } - - public Message this [string name] { - get { return this [IndexOf ((Message) Table [name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (Message message) - { - Insert (Count, message); - return (Count - 1); - } - - public bool Contains (Message message) - { - return List.Contains (message); - } - - public void CopyTo (Message[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is Message)) - throw new InvalidCastException (); - - return ((Message) value).Name; - } - - public int IndexOf (Message message) - { - return List.IndexOf (message); - } - - public void Insert (int index, Message message) - { - List.Insert (index, message); - } - - public void Remove (Message message) - { - List.Remove (message); - } - - protected override void SetParent (object value, object parent) - { - ((Message) value).SetParent ((ServiceDescription) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MessagePart.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MessagePart.cs deleted file mode 100644 index 8b6923807f3ed..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MessagePart.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// System.Web.Services.Description.MessagePart.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class MessagePart : DocumentableItem { - - #region Fields - - XmlQualifiedName element; - Message message; - string name; - XmlQualifiedName type; - - #endregion // Fields - - #region Constructors - - public MessagePart () - { - element = XmlQualifiedName.Empty; - message = null; - name = String.Empty; - type = XmlQualifiedName.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("element")] - public XmlQualifiedName Element { - get { return element; } - set { element = value; } - } - - public Message Message { - get { return message; } - } - - [XmlAttribute ("name", DataType = "NMTOKEN")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlAttribute ("type")] - public XmlQualifiedName Type { - get { return type; } - set { type = value; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (Message message) - { - this.message = message; - } - - #endregion // Methods - - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MessagePartCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MessagePartCollection.cs deleted file mode 100644 index 6f35c6d9ef4e2..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MessagePartCollection.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// System.Web.Services.Description.MessagePartCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class MessagePartCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal MessagePartCollection (Message message) - : base (message) - { - } - - #endregion - - #region Properties - - public MessagePart this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - return (MessagePart) List[index]; - } - set { List [index] = value; } - } - - public MessagePart this [string name] { - get { return this [IndexOf ((MessagePart) Table[name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (MessagePart messagePart) - { - Insert (Count, messagePart); - return (Count - 1); - } - - public bool Contains (MessagePart messagePart) - { - return List.Contains (messagePart); - } - - public void CopyTo (MessagePart[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is MessagePart)) - throw new InvalidCastException (); - return ((MessagePart) value).Name; - } - - public int IndexOf (MessagePart messagePart) - { - return List.IndexOf (messagePart); - } - - public void Insert (int index, MessagePart messagePart) - { - List.Insert (index, messagePart); - } - - public void Remove (MessagePart messagePart) - { - List.Remove (messagePart); - } - - protected override void SetParent (object value, object parent) - { - ((MessagePart) value).SetParent ((Message) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeContentBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimeContentBinding.cs deleted file mode 100644 index 6c1871f0002ea..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeContentBinding.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// System.Web.Services.Description.MimeContentBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPrefix ("mime", "http://schemas.xmlsoap.org/wsdl/mime/")] - [XmlFormatExtension ("content", "http://schemas.xmlsoap.org/wsdl/mime/", typeof (InputBinding), typeof (OutputBinding))] - public sealed class MimeContentBinding : ServiceDescriptionFormatExtension { - - #region Fields - - public const string Namespace = "http://schemas.xmlsoap.org/wsdl/mime/"; - string part; - string type; - - #endregion // Fields - - #region Constructors - - public MimeContentBinding () - { - part = String.Empty; - type = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("part", DataType = "NMTOKEN")] - public string Part { - get { return part; } - set { part = value; } - } - - [XmlAttribute ("type")] - public string Type { - get { return type; } - set { type = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeMultipartRelatedBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimeMultipartRelatedBinding.cs deleted file mode 100644 index 625638a4e7f57..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeMultipartRelatedBinding.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Web.Services.Description.MimeMultipartRelatedBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("multipartRelated", "http://schemas.xmlsoap.org/wsdl/mime/", typeof (InputBinding), typeof (OutputBinding))] - public sealed class MimeMultipartRelatedBinding : ServiceDescriptionFormatExtension { - - #region Fields - - MimePartCollection parts; - - #endregion // Fields - - #region Constructors - - public MimeMultipartRelatedBinding () - { - parts = new MimePartCollection (); - } - - #endregion // Constructors - - #region Properties - - [XmlElement ("parts")] - public MimePartCollection Parts { - get { return parts; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimePart.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimePart.cs deleted file mode 100644 index 9723912f4a35d..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimePart.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Web.Services.Description.MimePart.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class MimePart : ServiceDescriptionFormatExtension { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; - - #endregion // Fields - - #region Constructors - - public MimePart () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimePartCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimePartCollection.cs deleted file mode 100644 index fefe85c9304cd..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimePartCollection.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// System.Web.Services.Description.MimePartCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Description { - public sealed class MimePartCollection : CollectionBase { - - #region Properties - - public MimePart this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return (MimePart) List[index]; - } - set { List[index] = value; } - } - - #endregion // Properties - - #region Methods - - public int Add (MimePart mimePart) - { - Insert (Count, mimePart); - return (Count - 1); - } - - public bool Contains (MimePart mimePart) - { - return List.Contains (mimePart); - } - - public void CopyTo (MimePart[] array, int index) - { - List.CopyTo (array, index); - } - - public int IndexOf (MimePart mimePart) - { - return List.IndexOf (mimePart); - } - - public void Insert (int index, MimePart mimePart) - { - List.Insert (index, mimePart); - } - - public void Remove (MimePart mimePart) - { - List.Remove (mimePart); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextBinding.cs deleted file mode 100644 index 9ce4fd4945d08..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextBinding.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -// System.Web.Services.Description.MimeTextBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("text", "http://microsoft.com/wsdl/mime/textMatching/", typeof (InputBinding), typeof (OutputBinding), typeof (MimePart))] - [XmlFormatExtensionPrefix ("tm", "http://microsoft.com/wsdl/mime/textMatching/")] - public sealed class MimeTextBinding : ServiceDescriptionFormatExtension { - - #region Fields - - public const string Namespace = "http://microsoft.com/wsdl/mime/textMatching/"; - MimeTextMatchCollection matches; - - #endregion // Fields - - #region Constructors - - public MimeTextBinding () - { - matches = new MimeTextMatchCollection (); - } - - #endregion // Constructors - - #region Properties - - [XmlElement ("match", typeof (MimeTextMatch))] - public MimeTextMatchCollection Matches { - get { return matches; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatch.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatch.cs deleted file mode 100644 index 87c9b20122dbe..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatch.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// System.Web.Services.Description.MimeTextMatch.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class MimeTextMatch { - - #region Fields - - int capture; - int group; - bool ignoreCase; - MimeTextMatchCollection matches; - string name; - string pattern; - int repeats; - string type; - - #endregion // Fields - - #region Constructors - - public MimeTextMatch () - { - capture = 0; - group = 1; - ignoreCase = false; - matches = null; - name = String.Empty; - pattern = String.Empty; - repeats = 1; - type = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [DefaultValue (0)] - [XmlAttribute ("capture")] - public int Capture { - get { return capture; } - set { - if (value < 0) - throw new ArgumentException (); - capture = value; - } - } - - [DefaultValue (1)] - [XmlAttribute ("group")] - public int Group { - get { return group; } - set { - if (value < 0) - throw new ArgumentException (); - group = value; - } - } - - [XmlAttribute ("ignoreCase")] - public bool IgnoreCase { - get { return ignoreCase; } - set { ignoreCase = value; } - } - - [XmlElement ("match")] - public MimeTextMatchCollection Matches { - get { return matches; } - } - - [XmlAttribute ("name")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlAttribute ("pattern")] - public string Pattern { - get { return pattern; } - set { pattern = value; } - } - - [XmlIgnore] - public int Repeats { - get { return repeats; } - set { - if (value < 0) - throw new ArgumentException (); - repeats = value; - } - } - - [DefaultValue ("1")] - [XmlAttribute ("repeats")] - public string RepeatsString { - get { return Repeats.ToString (); } - set { Repeats = Int32.Parse (value); } - } - - [XmlAttribute ("type")] - public string Type { - get { return type; } - set { type = value; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (MimeTextMatchCollection matches) - { - this.matches = matches; - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatchCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatchCollection.cs deleted file mode 100644 index 59dd634a01720..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeTextMatchCollection.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// System.Web.Services.Description.MimeTextMatchCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Description { - public sealed class MimeTextMatchCollection : CollectionBase { - - #region Properties - - public MimeTextMatch this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return (MimeTextMatch) List [index]; - } - set { List[index] = value; } - } - - #endregion // Properties - - #region Methods - - public int Add (MimeTextMatch match) - { - Insert (Count, match); - return (Count - 1); - } - - public bool Contains (MimeTextMatch match) - { - return List.Contains (match); - } - - public void CopyTo (MimeTextMatch[] array, int index) - { - List.CopyTo (array, index); - } - - public int IndexOf (MimeTextMatch match) - { - return List.IndexOf (match); - } - - public void Insert (int index, MimeTextMatch match) - { - SetParent (match, this); - List.Insert (index, match); - } - - public void Remove (MimeTextMatch match) - { - List.Remove (match); - } - - private void SetParent (object value, object parent) - { - ((MimeTextMatch) value).SetParent ((MimeTextMatchCollection) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeXmlBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/MimeXmlBinding.cs deleted file mode 100644 index 93859fdaa1f4c..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/MimeXmlBinding.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// System.Web.Services.Description.MimeXmlBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("mimeXml", "http://schemas.xmlsoap.org/wsdl/mime/", typeof (MimePart), typeof (InputBinding), typeof (OutputBinding))] - public sealed class MimeXmlBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string part; - - #endregion // Fields - - #region Constructors - - public MimeXmlBinding () - { - part = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("part", DataType = "NMTOKEN")] - public string Part { - get { return part; } - set { part = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Operation.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Operation.cs deleted file mode 100644 index 2823503f126eb..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Operation.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// System.Web.Services.Description.Operation.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class Operation : DocumentableItem { - - #region Fields - - OperationFaultCollection faults; - OperationMessageCollection messages; - string name; - string[] parameterOrder; - PortType portType; - - #endregion // Fields - - #region Constructors - - public Operation () - { - faults = new OperationFaultCollection (this); - messages = new OperationMessageCollection (this); - name = String.Empty; - parameterOrder = null; - portType = null; - } - - #endregion // Constructors - - #region Properties - - [XmlElement ("fault")] - public OperationFaultCollection Faults { - get { return faults; } - } - - [XmlElement ("output", typeof (OperationOutput))] - [XmlElement ("input", typeof (OperationInput))] - public OperationMessageCollection Messages { - get { return messages; } - } - - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlIgnore] - public string[] ParameterOrder { - get { return parameterOrder; } - set { parameterOrder = value; } - } - - [DefaultValue ("")] - [XmlAttribute ("parameterOrder")] - public string ParameterOrderString { - get { - if (parameterOrder == null) - return String.Empty; - return String.Join (" ", parameterOrder); - } - set { ParameterOrder = value.Split (' '); } - } - - public PortType PortType { - get { return portType; } - } - - #endregion // Properties - - #region Methods - - public bool IsBoundBy (OperationBinding operationBinding) - { - return (operationBinding.Name == Name); - } - - internal void SetParent (PortType portType) - { - this.portType = portType; - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationBinding.cs deleted file mode 100644 index 0bdb5e9579a66..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationBinding.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// System.Web.Services.Description.OperationBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class OperationBinding : DocumentableItem { - - #region Fields - - Binding binding; - ServiceDescriptionFormatExtensionCollection extensions; - FaultBindingCollection faults; - InputBinding input; - string name; - OutputBinding output; - - #endregion // Fields - - #region Constructors - - public OperationBinding () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - faults = new FaultBindingCollection (this); - input = null; - name = String.Empty; - output = null; - } - - #endregion // Constructors - - #region Properties - - public Binding Binding { - get { return binding; } - } - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - [XmlElement ("fault")] - public FaultBindingCollection Faults { - get { return faults; } - } - - [XmlElement ("input")] - public InputBinding Input { - get { return input; } - set { input = value; } - } - - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlElement ("output")] - public OutputBinding Output { - get { return output; } - set { output= value; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (Binding binding) - { - this.binding = binding; - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationBindingCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationBindingCollection.cs deleted file mode 100644 index f81a409a6a983..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationBindingCollection.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// System.Web.Services.Description.OperationBindingCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class OperationBindingCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal OperationBindingCollection (Binding binding) - : base (binding) - { - } - - #endregion // Constructors - - #region Properties - - public OperationBinding this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - return (OperationBinding) List[index]; - } - set { List[index] = value; } - } - - #endregion // Properties - - #region Methods - - public int Add (OperationBinding bindingOperation) - { - Insert (Count, bindingOperation); - return (Count - 1); - } - - public bool Contains (OperationBinding bindingOperation) - { - return List.Contains (bindingOperation); - } - - public void CopyTo (OperationBinding[] array, int index) - { - List.CopyTo (array, index); - } - - public int IndexOf (OperationBinding bindingOperation) - { - return List.IndexOf (bindingOperation); - } - - public void Insert (int index, OperationBinding bindingOperation) - { - List.Insert (index, bindingOperation); - } - - public void Remove (OperationBinding bindingOperation) - { - List.Remove (bindingOperation); - } - - protected override void SetParent (object value, object parent) - { - ((OperationBinding) value).SetParent ((Binding) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationCollection.cs deleted file mode 100644 index a92cf343db57c..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationCollection.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// System.Web.Services.Description.OperationCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class OperationCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal OperationCollection (PortType portType) - : base (portType) - { - } - - #endregion // Constructors - - #region Properties - - public Operation this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - return (Operation) List[index]; - } - set { List[index] = value; } - } - - #endregion // Properties - - #region Methods - - public int Add (Operation operation) - { - Insert (Count, operation); - return (Count - 1); - } - - public bool Contains (Operation operation) - { - return List.Contains (operation); - } - - public void CopyTo (Operation[] array, int index) - { - List.CopyTo (array, index); - } - - public int IndexOf (Operation operation) - { - return List.IndexOf (operation); - } - - public void Insert (int index, Operation operation) - { - List.Insert (index, operation); - } - - public void Remove (Operation operation) - { - List.Remove (operation); - } - - protected override void SetParent (object value, object parent) - { - ((Operation) value).SetParent ((PortType) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFault.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFault.cs deleted file mode 100644 index f4055dbf5a4bf..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFault.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Web.Services.Description.OperationFault.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Description { - public sealed class OperationFault : OperationMessage { - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFaultCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFaultCollection.cs deleted file mode 100644 index 492c1d1caf643..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFaultCollection.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// System.Web.Services.Description.OperationFaultCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class OperationFaultCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal OperationFaultCollection (Operation operation) - : base (operation) - { - } - - #endregion // Constructors - - #region Properties - - public OperationFault this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - return (OperationFault) List[index]; - } - set { List [index] = value; } - } - - public OperationFault this [string name] { - get { return this [IndexOf ((OperationFault) Table[name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (OperationFault operationFaultMessage) - { - Insert (Count, operationFaultMessage); - return (Count - 1); - } - - public bool Contains (OperationFault operationFaultMessage) - { - return List.Contains (operationFaultMessage); - } - - public void CopyTo (OperationFault[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is OperationFault)) - throw new InvalidCastException (); - - return ((OperationFault) value).Name; - } - - public int IndexOf (OperationFault operationFaultMessage) - { - return List.IndexOf (operationFaultMessage); - } - - public void Insert (int index, OperationFault operationFaultMessage) - { - List.Insert (index, operationFaultMessage); - } - - public void Remove (OperationFault operationFaultMessage) - { - List.Remove (operationFaultMessage); - } - - protected override void SetParent (object value, object parent) - { - ((OperationFault) value).SetParent ((Operation) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFlow.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFlow.cs deleted file mode 100644 index a3c517aa24b9a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationFlow.cs +++ /dev/null @@ -1,19 +0,0 @@ -// -// System.Web.Services.Description.OperationFlow.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - [Serializable] - public enum OperationFlow { - None = 0x0, - Notification = 0x2, - OneWay = 0x1, - RequestResponse = 0x3, - SolicitResponse = 0x4 - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationInput.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationInput.cs deleted file mode 100644 index 4df8f046678c6..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationInput.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.Web.Services.Description.OperationInput.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; -using System.Xml; - -namespace System.Web.Services.Description { - public sealed class OperationInput : OperationMessage { - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessage.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessage.cs deleted file mode 100644 index e24f045131abc..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessage.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// System.Web.Services.Description.OperationMessage.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public abstract class OperationMessage : DocumentableItem { - - #region Fields - - XmlQualifiedName message; - string name; - Operation operation; - - #endregion // Fields - - #region Constructors - - protected OperationMessage () - { - message = null; - name = String.Empty; - operation = null; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("message")] - public XmlQualifiedName Message { - get { return message; } - set { message = value; } - } - - [XmlAttribute ("name", DataType = "NMTOKEN")] - public string Name { - get { return name; } - set { name = value; } - } - - public Operation Operation { - get { return operation; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (Operation operation) - { - this.operation = operation; - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessageCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessageCollection.cs deleted file mode 100644 index 86aefe85c2e96..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationMessageCollection.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// System.Web.Services.Description.OperationMessageCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Description { - public sealed class OperationMessageCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal OperationMessageCollection (Operation operation) - : base (operation) - { - } - - #endregion // Constructors - - #region Properties - - public OperationFlow Flow { - get { - switch (Count) { - case 1: - if (this[0] is OperationInput) - return OperationFlow.OneWay; - else - return OperationFlow.Notification; - case 2: - if (this[0] is OperationInput) - return OperationFlow.RequestResponse; - else - return OperationFlow.SolicitResponse; - } - return OperationFlow.None; - } - } - - public OperationInput Input { - get { - foreach (object message in List) - if (message is OperationInput) - return (OperationInput) message; - return null; - } - } - - public OperationMessage this [int index] { - get { return (OperationMessage) List[index]; } - set { List[index] = value; } - } - - public OperationOutput Output { - get { - foreach (object message in List) - if (message is OperationOutput) - return (OperationOutput) message; - return null; - } - } - - #endregion // Properties - - #region Methods - - public int Add (OperationMessage operationMessage) - { - Insert (Count, operationMessage); - return (Count - 1); - } - - public bool Contains (OperationMessage operationMessage) - { - return List.Contains (operationMessage); - } - - public void CopyTo (OperationMessage[] array, int index) - { - List.CopyTo (array, index); - } - - public int IndexOf (OperationMessage operationMessage) - { - return List.IndexOf (operationMessage); - } - - public void Insert (int index, OperationMessage operationMessage) - { - List.Insert (index, operationMessage); - } - - protected override void OnInsert (int index, object value) - { - if (Count > 2 || value.GetType () == this [0].GetType ()) - throw new InvalidOperationException ("The operation object can only contain one input and one output message."); - } - - protected override void OnSet (int index, object oldValue, object newValue) - { - if (oldValue.GetType () != newValue.GetType ()) - throw new InvalidOperationException ("The message types of the old and new value are not the same."); - base.OnSet (index, oldValue, newValue); - } - - protected override void OnValidate (object value) - { - if (value == null) - throw new NullReferenceException ("The message object is a null reference."); - if (!(value is OperationInput || value is OperationOutput)) - throw new ArgumentException ("The message object is not an input or an output message."); - } - - public void Remove (OperationMessage operationMessage) - { - List.Remove (operationMessage); - } - - protected override void SetParent (object value, object parent) - { - ((OperationMessage) value).SetParent ((Operation) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationOutput.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OperationOutput.cs deleted file mode 100644 index 7c7ac0f9acc4a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OperationOutput.cs +++ /dev/null @@ -1,13 +0,0 @@ -// -// System.Web.Services.Description.OperationOutput.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class OperationOutput : OperationMessage { - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/OutputBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/OutputBinding.cs deleted file mode 100644 index d1dacc2cbd297..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/OutputBinding.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Web.Services.Description.OutputBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class OutputBinding : MessageBinding { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; - - #endregion // Fields - - #region Constructors - - public OutputBinding () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public override ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs deleted file mode 100644 index cdd86d9885e28..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// System.Web.Services.Description.Port.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class Port : DocumentableItem { - - #region Fields - - XmlQualifiedName binding; - ServiceDescriptionFormatExtensionCollection extensions; - string name; - Service service; - - #endregion // Fields - - #region Constructors - - public Port () - { - binding = null; - extensions = new ServiceDescriptionFormatExtensionCollection (this); - name = String.Empty; - service = null; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("binding")] - public XmlQualifiedName Binding { - get { return binding; } - set { binding = value; } - } - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } - - public Service Service { - get { return service; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (Service service) - { - this.service = service; - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/PortCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/PortCollection.cs deleted file mode 100644 index b7061c8430b87..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/PortCollection.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// System.Web.Services.Description.PortCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class PortCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal PortCollection (Service service) - : base (service) - { - } - - #endregion - - #region Properties - - public Port this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return (Port) List[index]; - } - set { List [index] = value; } - } - - public Port this [string name] { - get { return this [IndexOf ((Port) Table[name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (Port port) - { - Insert (Count, port); - return (Count - 1); - } - - public bool Contains (Port port) - { - return List.Contains (port); - } - - public void CopyTo (Port[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is Port)) - throw new InvalidCastException (); - - return ((Port) value).Name; - } - - public int IndexOf (Port port) - { - return List.IndexOf (port); - } - - public void Insert (int index, Port port) - { - List.Insert (index, port); - } - - public void Remove (Port port) - { - List.Remove (port); - } - - protected override void SetParent (object value, object parent) - { - ((Port) value).SetParent ((Service) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/PortType.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/PortType.cs deleted file mode 100644 index c5f9205484cf2..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/PortType.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// System.Web.Services.Description.PortType.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class PortType : DocumentableItem { - - #region Fields - - string name; - OperationCollection operations; - ServiceDescription serviceDescription; - - #endregion // Fields - - #region Constructors - - public PortType () - { - name = String.Empty; - operations = new OperationCollection (this); - serviceDescription = null; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlElement ("operation")] - public OperationCollection Operations { - get { return operations; } - } - - public ServiceDescription ServiceDescription { - get { return serviceDescription; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (ServiceDescription serviceDescription) - { - this.serviceDescription = serviceDescription; - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/PortTypeCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/PortTypeCollection.cs deleted file mode 100644 index 427a72e215d17..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/PortTypeCollection.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// System.Web.Services.Description.PortTypeCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public sealed class PortTypeCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal PortTypeCollection (ServiceDescription serviceDescription) - : base (serviceDescription) - { - } - - #endregion // Constructors - - #region Properties - - public PortType this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return (PortType) List[index]; - } - set { List [index] = value; } - } - - public PortType this [string name] { - get { return this [IndexOf ((PortType) Table[name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (PortType portType) - { - Insert (Count, portType); - return (Count - 1); - } - - public bool Contains (PortType portType) - { - return List.Contains (portType); - } - - public void CopyTo (PortType[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is PortType)) - throw new InvalidCastException (); - return ((PortType) value).Name; - } - - public int IndexOf (PortType portType) - { - return List.IndexOf (portType); - } - - public void Insert (int index, PortType portType) - { - List.Insert (index, portType); - } - - public void Remove (PortType portType) - { - List.Remove (portType); - } - - protected override void SetParent (object value, object parent) - { - ((PortType) value).SetParent ((ServiceDescription) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolImporter.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolImporter.cs deleted file mode 100644 index f37547f788b9a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolImporter.cs +++ /dev/null @@ -1,201 +0,0 @@ -// -// System.Web.Services.Description.ProtocolImporter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.CodeDom; -using System.Web.Services; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public abstract class ProtocolImporter { - - #region Fields - - XmlSchemas abstractSchemas; - Binding binding; - string className; - CodeIdentifiers classNames; - CodeNamespace codeNamespace; - CodeTypeDeclaration codeTypeDeclaration; - XmlSchemas concreteSchemas; - Message inputMessage; - string methodName; - Operation operation; - OperationBinding operationBinding; - Message outputMessage; - Port port; - PortType portType; - string protocolName; - XmlSchemas schemas; - Service service; - ServiceDescriptionCollection serviceDescriptions; - ServiceDescriptionImportStyle style; - ServiceDescriptionImportWarnings warnings; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - protected ProtocolImporter () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public XmlSchemas AbstractSchemas { - get { return abstractSchemas; } - } - - public Binding Binding { - get { return binding; } - } - - public string ClassName { - get { return className; } - } - - public CodeIdentifiers ClassNames { - get { return classNames; } - } - - public CodeNamespace CodeNamespace { - get { return codeNamespace; } - } - - public CodeTypeDeclaration CodeTypeDeclaration { - get { return codeTypeDeclaration; } - } - - public XmlSchemas ConcreteSchemas { - get { return concreteSchemas; } - } - - public Message InputMessage { - get { return inputMessage; } - } - - public string MethodName { - get { return methodName; } - } - - public Operation Operation { - get { return operation; } - } - - public OperationBinding OperationBinding { - get { return operationBinding; } - } - - public Message OutputMessage { - get { return outputMessage; } - } - - public Port Port { - get { return port; } - } - - public PortType PortType { - get { return portType; } - } - - public abstract string ProtocolName { - get; - } - - public XmlSchemas Schemas { - get { return schemas; } - } - - public Service Service { - get { return service; } - } - - public ServiceDescriptionCollection ServiceDescriptions { - get { return serviceDescriptions; } - } - - public ServiceDescriptionImportStyle Style { - get { return style; } - } - - public ServiceDescriptionImportWarnings Warnings { - get { return warnings; } - set { warnings = value; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public void AddExtensionWarningComments (CodeCommentStatementCollection comments, ServiceDescriptionFormatExtensionCollection extensions) - { - throw new NotImplementedException (); - } - - protected abstract CodeTypeDeclaration BeginClass (); - - [MonoTODO] - protected virtual void BeginNamespace () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual void EndClass () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual void EndNamespace () - { - throw new NotImplementedException (); - } - - protected abstract CodeMemberMethod GenerateMethod (); - protected abstract bool IsBindingSupported (); - protected abstract bool IsOperationFlowSupported (OperationFlow flow); - - [MonoTODO] - public Exception OperationBindingSyntaxException (string text) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Exception OperationSyntaxException (string text) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void UnsupportedBindingWarning (string text) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void UnsupportedOperationBindingWarning (string text) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void UnsupportedOperationWarning (string text) - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolReflector.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolReflector.cs deleted file mode 100644 index ad7b209387b42..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolReflector.cs +++ /dev/null @@ -1,170 +0,0 @@ -// -// System.Web.Services.Description.ProtocolReflector.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; -using System.Web.Services.Protocols; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public abstract class ProtocolReflector { - - #region Fields - - Binding binding; - string defaultNamespace; - MessageCollection headerMessages; - Message inputMessage; - LogicalMethodInfo method; - WebMethodAttribute methodAttribute; - LogicalMethodInfo[] methods; - Operation operation; - OperationBinding operationBinding; - Message outputMessage; - Port port; - PortType portType; - string protocolName; - XmlReflectionImporter reflectionImporter; - XmlSchemaExporter schemaExporter; - XmlSchemas schemas; - Service service; - ServiceDescription serviceDescription; - ServiceDescriptionCollection serviceDescriptions; - Type serviceType; - string serviceUrl; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - protected ProtocolReflector () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public Binding Binding { - get { return binding; } - } - - public string DefaultNamespace { - get { return defaultNamespace; } - } - - public MessageCollection HeaderMessages { - get { return headerMessages; } - } - - public Message InputMessage { - get { return inputMessage; } - } - - public LogicalMethodInfo Method { - get { return method; } - } - - public WebMethodAttribute MethodAttribute { - get { return methodAttribute; } - } - - public LogicalMethodInfo[] Methods { - get { return methods; } - } - - public Operation Operation { - get { return operation; } - } - - public OperationBinding OperationBinding { - get { return operationBinding; } - } - - public Message OutputMessage { - get { return outputMessage; } - } - - public Port Port { - get { return port; } - } - - public PortType PortType { - get { return portType; } - } - - public abstract string ProtocolName { - get; - } - - public XmlReflectionImporter ReflectionImporter { - get { return reflectionImporter; } - } - - public XmlSchemaExporter SchemaExporter { - get { return schemaExporter; } - } - - public XmlSchemas Schemas { - get { return schemas; } - } - - public Service Service { - get { return service; } - } - - public ServiceDescription ServiceDescription { - get { return serviceDescription; } - } - - public ServiceDescriptionCollection ServiceDescriptions { - get { return serviceDescriptions; } - } - - public Type ServiceType { - get { return serviceType; } - } - - public string ServiceUrl { - get { return serviceUrl; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected virtual void BeginClass () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected virtual void EndClass () - { - throw new NotImplementedException (); - } - - public ServiceDescription GetServiceDescription (string ns) - { - return serviceDescriptions [ns]; - } - - protected abstract bool ReflectMethod (); - - [MonoTODO] - protected virtual string ReflectMethodBinding () - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Service.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Service.cs deleted file mode 100644 index a214bd0531aac..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Service.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// System.Web.Services.Description.Service.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class Service : DocumentableItem { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; - string name; - PortCollection ports; - ServiceDescription serviceDescription; - - #endregion // Fields - - #region Constructors - - public Service () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - name = String.Empty; - ports = new PortCollection (this); - serviceDescription = null; - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlElement ("port")] - public PortCollection Ports { - get { return ports; } - } - - public ServiceDescription ServiceDescription { - get { return serviceDescription; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (ServiceDescription serviceDescription) - { - this.serviceDescription = serviceDescription; - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceCollection.cs deleted file mode 100644 index fa781e6ce8b74..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceCollection.cs +++ /dev/null @@ -1,90 +0,0 @@ -// -// System.Web.Services.Description.ServiceCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Description { - public sealed class ServiceCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - internal ServiceCollection (ServiceDescription serviceDescription) - : base (serviceDescription) - { - } - - #endregion // Constructors - - #region Properties - - public Service this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return (Service) List[index]; - } - set { List [index] = value; } - } - - public Service this [string name] { - get { return this [IndexOf ((Service) Table[name])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (Service service) - { - Insert (Count, service); - return (Count - 1); - } - - public bool Contains (Service service) - { - return List.Contains (service); - } - - public void CopyTo (Service[] array, int index) - { - List.CopyTo (array, index); - } - - protected override string GetKey (object value) - { - if (!(value is Service)) - throw new InvalidCastException (); - - return ((Service) value).Name; - } - - public int IndexOf (Service service) - { - return List.IndexOf (service); - } - - public void Insert (int index, Service service) - { - List.Insert (index, service); - } - - public void Remove (Service service) - { - List.Remove (service); - } - - protected override void SetParent (object value, object parent) - { - ((Service) value).SetParent ((ServiceDescription) parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs deleted file mode 100644 index 737324c5acd58..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs +++ /dev/null @@ -1,260 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescription.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Web.Services; -using System.Web.Services.Configuration; -using System.Xml; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - [XmlRoot ("definitions", Namespace = "http://schemas.xmlsoap.org/wsdl/")] - public sealed class ServiceDescription : DocumentableItem { - - #region Fields - - public const string Namespace = "http://schemas.xmlsoap.org/wsdl/"; - - BindingCollection bindings; - ServiceDescriptionFormatExtensionCollection extensions; - ImportCollection imports; - MessageCollection messages; - string name; - PortTypeCollection portTypes; - string retrievalUrl; - ServiceDescriptionCollection serviceDescriptions; - ServiceCollection services; - string targetNamespace; - Types types; - static ServiceDescriptionSerializer serializer; - XmlSerializerNamespaces ns; - - #endregion // Fields - - #region Constructors - - static ServiceDescription () - { - serializer = new ServiceDescriptionSerializer (); - } - - [MonoTODO ("Move namespaces to subtype, use ServiceDescriptionSerializer")] - public ServiceDescription () - { - bindings = new BindingCollection (this); - extensions = new ServiceDescriptionFormatExtensionCollection (this); - imports = new ImportCollection (this); - messages = new MessageCollection (this); - name = String.Empty; - portTypes = new PortTypeCollection (this); - - serviceDescriptions = null; - services = new ServiceCollection (this); - targetNamespace = String.Empty; - types = null; - - ns = new XmlSerializerNamespaces (); - ns.Add ("soap", SoapBinding.Namespace); - ns.Add ("s", XmlSchema.Namespace); - ns.Add ("http", HttpBinding.Namespace); - ns.Add ("mime", MimeContentBinding.Namespace); - ns.Add ("tm", MimeTextBinding.Namespace); - } - - #endregion // Constructors - - #region Properties - - [XmlElement ("binding")] - public BindingCollection Bindings { - get { return bindings; } - } - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - [XmlElement ("import")] - public ImportCollection Imports { - get { return imports; } - } - - [XmlElement ("message")] - public MessageCollection Messages { - get { return messages; } - } - - [XmlAttribute ("name", DataType = "NMTOKEN")] - public string Name { - get { return name; } - set { name = value; } - } - - [XmlElement ("portType")] - public PortTypeCollection PortTypes { - get { return portTypes; } - } - - [XmlIgnore] - public string RetrievalUrl { - get { return retrievalUrl; } - set { retrievalUrl = value; } - } - - [XmlIgnore] - public static XmlSerializer Serializer { - get { return serializer; } - } - - [XmlIgnore] - public ServiceDescriptionCollection ServiceDescriptions { - get { - if (serviceDescriptions == null) - throw new NullReferenceException (); - return serviceDescriptions; - } - } - - [XmlElement ("service")] - public ServiceCollection Services { - get { return services; } - } - - [XmlAttribute ("targetNamespace")] - public string TargetNamespace { - get { return targetNamespace; } - set { targetNamespace = value; } - } - - [XmlElement ("types")] - public Types Types { - get { return types; } - set { types = value; } - } - - #endregion // Properties - - #region Methods - - public static bool CanRead (XmlReader reader) - { - return serializer.CanDeserialize (reader); - } - - public static ServiceDescription Read (Stream stream) - { - return (ServiceDescription) serializer.Deserialize (stream); - } - - public static ServiceDescription Read (string fileName) - { - return Read (new FileStream (fileName, FileMode.Open)); - } - - public static ServiceDescription Read (TextReader textReader) - { - return (ServiceDescription) serializer.Deserialize (textReader); - } - - public static ServiceDescription Read (XmlReader reader) - { - return (ServiceDescription) serializer.Deserialize (reader); - } - - public void Write (Stream stream) - { - - serializer.Serialize (stream, this, ns); - } - - public void Write (string fileName) - { - Write (new FileStream (fileName, FileMode.Create)); - } - - public void Write (TextWriter writer) - { - serializer.Serialize (writer, this, ns); - } - - public void Write (XmlWriter writer) - { - serializer.Serialize (writer, this, ns); - } - - internal void SetParent (ServiceDescriptionCollection serviceDescriptions) - { - this.serviceDescriptions = serviceDescriptions; - } - - #endregion - - internal class ServiceDescriptionSerializer : XmlSerializer { - - #region Fields - - XmlSerializerNamespaces ns; - - #endregion - - #region Constructors - - [MonoTODO] - public ServiceDescriptionSerializer () - : base (typeof (ServiceDescription), ServiceDescription.Namespace) - { - ns = new XmlSerializerNamespaces (); - ns.Add ("soap", SoapBinding.Namespace); - ns.Add ("s", XmlSchema.Namespace); - ns.Add ("http", HttpBinding.Namespace); - ns.Add ("mime", MimeContentBinding.Namespace); - ns.Add ("tm", MimeTextBinding.Namespace); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override bool CanDeserialize (XmlReader reader) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override XmlSerializationReader CreateReader () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override XmlSerializationWriter CreateWriter () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override object Deserialize (XmlSerializationReader reader) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void Serialize (object serviceDescription, XmlSerializationWriter writer) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionBaseCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionBaseCollection.cs deleted file mode 100644 index 187bb762c5ca2..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionBaseCollection.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionBaseCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; -using System.Web.Services; - -namespace System.Web.Services.Description { - public abstract class ServiceDescriptionBaseCollection : CollectionBase { - - #region Fields - - Hashtable table = new Hashtable (); - object parent; - - #endregion // Fields - - #region Constructors - - internal ServiceDescriptionBaseCollection (object parent) - { - this.parent = parent; - } - - #endregion // Constructors - - #region Properties - - protected virtual IDictionary Table { - get { return table; } - } - - #endregion // Properties - - #region Methods - - protected virtual string GetKey (object value) - { - return null; - } - - protected override void OnClear () - { - Table.Clear (); - } - - protected override void OnInsertComplete (int index, object value) - { - if (GetKey (value) != null) - Table [GetKey (value)] = value; - SetParent (value, parent); - } - - protected override void OnRemove (int index, object value) - { - if (GetKey (value) != null) - Table.Remove (GetKey (value)); - } - - protected override void OnSet (int index, object oldValue, object newValue) - { - if (GetKey (oldValue) != null) - Table.Remove (GetKey (oldValue)); - if (GetKey (newValue) != null) - Table [GetKey (newValue)] = newValue; - SetParent (newValue, parent); - } - - protected virtual void SetParent (object value, object parent) - { - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionCollection.cs deleted file mode 100644 index d152d5f8167f1..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionCollection.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; -using System.Xml; - -namespace System.Web.Services.Description { - public sealed class ServiceDescriptionCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - public ServiceDescriptionCollection () - : base (null) - { - } - - #endregion // Constructors - - #region Properties - - public ServiceDescription this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return (ServiceDescription) List[index]; - } - set { List [index] = value; } - } - - public ServiceDescription this [string ns] { - get { return this[IndexOf ((ServiceDescription) Table[ns])]; } - } - - #endregion // Properties - - #region Methods - - public int Add (ServiceDescription serviceDescription) - { - Insert (Count, serviceDescription); - return (Count - 1); - } - - public bool Contains (ServiceDescription serviceDescription) - { - return List.Contains (serviceDescription); - } - - public void CopyTo (ServiceDescription[] array, int index) - { - List.CopyTo (array, index); - } - - public Binding GetBinding (XmlQualifiedName name) - { - foreach (object value in List) - foreach (Binding binding in ((ServiceDescription) value).Bindings) - if (binding.Name == name.Name) - return binding; - throw new Exception (); - } - - protected override string GetKey (object value) - { - if (!(value is ServiceDescription)) - throw new InvalidCastException (); - return ((ServiceDescription) value).TargetNamespace; - } - - public Message GetMessage (XmlQualifiedName name) - { - foreach (object value in List) - foreach (Message message in ((ServiceDescription) value).Messages) - if (message.Name == name.Name) - return message; - throw new Exception (); - } - - public PortType GetPortType (XmlQualifiedName name) - { - foreach (object value in List) - foreach (PortType portType in ((ServiceDescription) value).PortTypes) - if (portType.Name == name.Name) - return portType; - throw new Exception (); - } - - public Service GetService (XmlQualifiedName name) - { - foreach (object value in List) - foreach (Service service in ((ServiceDescription) value).Services) - if (service.Name == name.Name) - return service; - throw new Exception (); - } - - public int IndexOf (ServiceDescription serviceDescription) - { - return List.IndexOf (serviceDescription); - } - - public void Insert (int index, ServiceDescription serviceDescription) - { - List.Insert (index, serviceDescription); - } - - public void Remove (ServiceDescription serviceDescription) - { - List.Remove (serviceDescription); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtension.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtension.cs deleted file mode 100644 index e8d51b50b67d5..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtension.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionFormatExtension.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public abstract class ServiceDescriptionFormatExtension { - - #region Fields - - bool handled; - object parent; - bool required; - - #endregion // Fields - - #region Constructors - - protected ServiceDescriptionFormatExtension () - { - handled = false; - parent = null; - required = false; - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public bool Handled { - get { return handled; } - set { handled = value; } - } - - public object Parent { - get { return parent; } - } - - [DefaultValue (false)] - [XmlAttribute ("required", Namespace = "http://schemas.xmlsoap.org/wsdl/")] - public bool Required { - get { return required; } - set { required = value; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (object value) - { - parent = value; - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtensionCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtensionCollection.cs deleted file mode 100644 index 6363c90891f95..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtensionCollection.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; -using System.Web.Services; -using System.Xml; - -namespace System.Web.Services.Description { - public sealed class ServiceDescriptionFormatExtensionCollection : ServiceDescriptionBaseCollection { - - #region Constructors - - public ServiceDescriptionFormatExtensionCollection (object parent) - : base (parent) - { - } - - #endregion // Constructors - - #region Properties - - public object this [int index] { - get { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - - return List[index]; - } - set { List[index] = value; } - } - - #endregion // Properties - - #region Methods - - public int Add (object extension) - { - Insert (Count, extension); - return (Count - 1); - } - - public bool Contains (object extension) - { - return List.Contains (extension); - } - - public void CopyTo (object[] array, int index) - { - List.CopyTo (array, index); - } - - public object Find (Type type) - { - foreach (object value in List) - if (value.GetType () == type) - return value; - return null; - } - - public XmlElement Find (string name, string ns) - { - XmlElement xmlElement; - foreach (object value in List) - if (value is XmlElement) { - xmlElement = (value as XmlElement); - if (xmlElement.Name == name && xmlElement.NamespaceURI == ns) - return xmlElement; - } - return null; - } - - public object[] FindAll (Type type) - { - ArrayList searchResults = new ArrayList (); - foreach (object value in List) - if (value.GetType () == type) - searchResults.Add (value); - object[] returnValue = new object [searchResults.Count]; - - if (searchResults.Count > 0) - searchResults.CopyTo (returnValue); - - return returnValue; - } - - public XmlElement[] FindAll (string name, string ns) - { - ArrayList searchResults = new ArrayList (); - XmlElement xmlElement; - - foreach (object value in List) - if (value is XmlElement) { - xmlElement = (value as XmlElement); - if (xmlElement.Name == name && xmlElement.NamespaceURI == ns) - searchResults.Add (xmlElement); - } - - XmlElement[] returnValue = new XmlElement [searchResults.Count]; - - if (searchResults.Count > 0) - searchResults.CopyTo (returnValue); - - return returnValue; - } - - public int IndexOf (object extension) - { - return List.IndexOf (extension); - } - - public void Insert (int index, object extension) - { - List.Insert (index, extension); - } - - [MonoTODO] - public bool IsHandled (object item) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool IsRequired (object item) - { - throw new NotImplementedException (); - } - - protected override void OnValidate (object value) - { - if (value == null) - throw new ArgumentNullException (); - if (!(value is XmlElement || value is ServiceDescriptionFormatExtension)) - throw new ArgumentException (); - } - - public void Remove (object extension) - { - List.Remove (extension); - } - - protected override void SetParent (object value, object parent) - { - ((ServiceDescriptionFormatExtension) value).SetParent (parent); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportStyle.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportStyle.cs deleted file mode 100644 index 5bcb9026908d2..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportStyle.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionImportStyle.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public enum ServiceDescriptionImportStyle { - Client, - Server - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportWarnings.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportWarnings.cs deleted file mode 100644 index 5e4c329724a3a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImportWarnings.cs +++ /dev/null @@ -1,20 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionImportWarnings.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - [Serializable] - public enum ServiceDescriptionImportWarnings { - NoCodeGenerated = 0x1, - NoMethodsGenerated = 0x20, - OptionalExtensionsIgnored = 0x2, - RequiredExtensionsIgnored = 0x4, - UnsupportedBindingsIgnored = 0x10, - UnsupportedOperationsIgnored = 0x8 - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImporter.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImporter.cs deleted file mode 100644 index 491fb3a85a8d1..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionImporter.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionImporter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.CodeDom; -using System.Web.Services; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public class ServiceDescriptionImporter { - - #region Fields - - string protocolName; - XmlSchemas schemas; - ServiceDescriptionCollection serviceDescriptions; - ServiceDescriptionImportStyle style; - - #endregion // Fields - - #region Constructors - - public ServiceDescriptionImporter () - { - protocolName = String.Empty; - schemas = new XmlSchemas (); - serviceDescriptions = new ServiceDescriptionCollection (); - style = ServiceDescriptionImportStyle.Client; - } - - #endregion // Constructors - - #region Properties - - public string ProtocolName { - get { return protocolName; } - set { protocolName = value; } - } - - public XmlSchemas Schemas { - get { return schemas; } - } - - public ServiceDescriptionCollection ServiceDescriptions { - get { return serviceDescriptions; } - } - - public ServiceDescriptionImportStyle Style { - get { return style; } - set { style = value; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public void AddServiceDescription (ServiceDescription serviceDescription, string appSettingUrlKey, string appSettingBaseUrl) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public ServiceDescriptionImportWarnings Import (CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit) - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionReflector.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionReflector.cs deleted file mode 100644 index d270f209823a9..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionReflector.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// System.Web.Services.Description.ServiceDescriptionReflector.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public class ServiceDescriptionReflector { - - #region Fields - - XmlSchemas schemas; - ServiceDescriptionCollection serviceDescriptions; - - #endregion // Fields - - #region Constructors - - public ServiceDescriptionReflector () - { - schemas = new XmlSchemas (); - serviceDescriptions = new ServiceDescriptionCollection (); - } - - #endregion // Constructors - - #region Properties - - public XmlSchemas Schemas { - get { return schemas; } - } - - public ServiceDescriptionCollection ServiceDescriptions { - get { return serviceDescriptions; } - } - - - #endregion // Properties - - #region Methods - - [MonoTODO] - public void Reflect (Type type, string url) - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapAddressBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapAddressBinding.cs deleted file mode 100644 index 82a3a3dca0e2a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapAddressBinding.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// System.Web.Services.Description.SoapAddressBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("address", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (Port))] - public sealed class SoapAddressBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string location; - - #endregion // Fields - - #region Constructors - - public SoapAddressBinding () - { - location = String.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("location")] - public string Location { - get { return location; } - set { location = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBinding.cs deleted file mode 100644 index 05f24f0c7414e..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBinding.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// System.Web.Services.Description.SoapBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPrefix ("soap", "http://schemas.xmlsoap.org/wsdl/soap/")] - [XmlFormatExtension ("binding", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (Binding))] - // FIXME: this won't compile! - // [XmlFormatExtensionPrefix ("soapenc", "http://schemas.xmlsoap.org/soap/encoding/")] - public sealed class SoapBinding : ServiceDescriptionFormatExtension { - - #region Fields - - public const string HttpTransport = "http://schemas.xmlsoap.org/soap/http/"; - public const string Namespace = "http://schemas.xmlsoap.org/wsdl/soap/"; - - SoapBindingStyle style; - string transport; - - #endregion // Fields - - #region Constructors - - public SoapBinding () - { - style = SoapBindingStyle.Document; - transport = String.Empty; - } - - #endregion // Constructors - - #region Properties - - // LAMESPEC: .NET says that the default value is SoapBindingStyle.Document but - // reflection shows this attribute is SoapBindingStyle.Default - - [DefaultValue (SoapBindingStyle.Default)] - [XmlAttribute ("style")] - public SoapBindingStyle Style { - get { return style; } - set { style = value; } - } - - [XmlAttribute ("transport")] - public string Transport { - get { return transport; } - set { transport = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingStyle.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingStyle.cs deleted file mode 100644 index 3812cd8622ebc..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingStyle.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.Web.Services.Description.SoapBindingStyle.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public enum SoapBindingStyle { - [XmlIgnore] - Default, - [XmlEnum ("document")] - Document, - [XmlEnum ("rpc")] - Rpc - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingUse.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingUse.cs deleted file mode 100644 index d04bd50414f06..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBindingUse.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -// System.Web.Services.Description.SoapBindingUse.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public enum SoapBindingUse { - [XmlIgnore] - Default, - [XmlEnum ("encoded")] - Encoded, - [XmlEnum ("literal")] - Literal - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBodyBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBodyBinding.cs deleted file mode 100644 index 963f9d2e4de73..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapBodyBinding.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// System.Web.Services.Description.SoapBodyBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("body", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (InputBinding), typeof (OutputBinding), typeof (MimePart))] - public sealed class SoapBodyBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string encoding; - string ns; - string[] parts; - SoapBindingUse use; - - #endregion // Fields - - #region Constructors - - public SoapBodyBinding () - { - encoding = String.Empty; - ns = String.Empty; - parts = null; - use = SoapBindingUse.Default; - } - - #endregion // Constructors - - #region Properties - - [DefaultValue ("")] - [XmlAttribute ("encodingStyle")] - public string Encoding { - get { return encoding; } - set { encoding = value; } - } - - [DefaultValue ("")] - [XmlAttribute ("namespace")] - public string Namespace { - get { return ns; } - set { ns = value; } - } - - [XmlIgnore] - public string[] Parts { - get { return parts; } - set { parts = value; } - } - - [XmlAttribute ("parts", DataType = "NMTOKENS")] - public string PartsString { - get { return String.Join (" ", Parts); } - set { Parts = value.Split (' '); } - } - - [DefaultValue (SoapBindingUse.Default)] - [XmlAttribute ("use")] - public SoapBindingUse Use { - get { return use; } - set { use = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionImporter.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionImporter.cs deleted file mode 100644 index ce33bc689064f..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionImporter.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.Web.Services.Description.SoapExtensionImporter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.CodeDom; - -namespace System.Web.Services.Description { - public abstract class SoapExtensionImporter { - - #region Fields - - SoapProtocolImporter importContext; - - #endregion // Fields - - #region Constructors - - protected SoapExtensionImporter () - { - } - - #endregion // Constructors - - #region Properties - - public SoapProtocolImporter ImportContext { - get { return importContext; } - set { importContext = value; } - } - - #endregion // Properties - - #region Methods - - public abstract void ImportMethod (CodeAttributeDeclarationCollection metadata); - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionReflector.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionReflector.cs deleted file mode 100644 index 9eb0e34af41a2..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapExtensionReflector.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// System.Web.Services.Description.SoapExtensionReflector.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public abstract class SoapExtensionReflector { - - #region Fields - - ProtocolReflector reflectionContext; - - #endregion // Fields - - #region Constructors - - protected SoapExtensionReflector () - { - } - - #endregion // Constructors - - #region Properties - - public ProtocolReflector ReflectionContext { - get { return reflectionContext; } - set { reflectionContext = value; } - } - - #endregion // Properties - - #region Methods - - public abstract void ReflectMethod (); - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapFaultBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapFaultBinding.cs deleted file mode 100644 index a67e4219de834..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapFaultBinding.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// System.Web.Services.Description.SoapFaultBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("fault", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (FaultBinding))] - public sealed class SoapFaultBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string encoding; - string ns; - SoapBindingUse use; - - #endregion // Fields - - #region Constructors - - public SoapFaultBinding () - { - encoding = String.Empty; - ns = String.Empty; - use = SoapBindingUse.Default; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("encodingStyle")] - public string Encoding { - get { return encoding; } - set { encoding = value; } - } - - [XmlAttribute ("namespace")] - public string Namespace { - get { return ns; } - set { ns = value; } - } - - [DefaultValue (SoapBindingUse.Default)] - [XmlAttribute ("use")] - public SoapBindingUse Use { - get { return use; } - set { use = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderBinding.cs deleted file mode 100644 index 74bfd6c90ebc3..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderBinding.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// System.Web.Services.Description.SoapHeaderBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Web.Services; -using System.Web.Services.Configuration; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("header", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (InputBinding), typeof (OutputBinding))] - public sealed class SoapHeaderBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string encoding; - bool mapToProperty; - XmlQualifiedName message; - string ns; - string part; - SoapBindingUse use; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public SoapHeaderBinding () - { - encoding = String.Empty; - mapToProperty = false; // FIXME: is this right? - message = XmlQualifiedName.Empty; - ns = String.Empty; - part = String.Empty; - use = SoapBindingUse.Default; - } - - #endregion // Constructors - - #region Properties - - [DefaultValue ("")] - [XmlAttribute ("encodingStyle")] - public string Encoding { - get { return encoding; } - set { encoding = value; } - } - - [XmlIgnore] - public bool MapToProperty { - get { return mapToProperty; } - set { mapToProperty = value; } - } - - [XmlAttribute ("message")] - public XmlQualifiedName Message { - get { return message; } - set { message = value; } - } - - [DefaultValue ("")] - [XmlAttribute ("namespace")] - public string Namespace { - get { return ns; } - set { ns = value; } - } - - [XmlAttribute ("part", DataType = "NMTOKEN")] - public string Part { - get { return part; } - set { part = value; } - } - - [DefaultValue (SoapBindingUse.Default)] - [XmlAttribute ("use")] - public SoapBindingUse Use { - get { return use; } - set { use = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderFaultBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderFaultBinding.cs deleted file mode 100644 index e33bcc685c0d3..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapHeaderFaultBinding.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// System.Web.Services.Description.SoapHeaderFaultBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Web.Services.Configuration; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("headerfault", "http://schemas.xmlsoap.org/wsdl/soap/", typeof (InputBinding), typeof (OutputBinding))] - public sealed class SoapHeaderFaultBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string encoding; - bool mapToProperty; - XmlQualifiedName message; - string ns; - string part; - SoapBindingUse use; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public SoapHeaderFaultBinding () - { - encoding = String.Empty; - mapToProperty = false; // FIXME: is this right? - message = XmlQualifiedName.Empty; - ns = String.Empty; - part = String.Empty; - use = SoapBindingUse.Default; - } - - #endregion // Constructors - - #region Properties - - [DefaultValue ("")] - [XmlAttribute ("encodingStyle")] - public string Encoding { - get { return encoding; } - set { encoding = value; } - } - - [XmlAttribute ("message")] - public XmlQualifiedName Message { - get { return message; } - set { message = value; } - } - - [DefaultValue ("")] - [XmlAttribute ("namespace")] - public string Namespace { - get { return ns; } - set { ns = value; } - } - - [XmlAttribute ("part", DataType = "NMTOKEN")] - public string Part { - get { return part; } - set { part = value; } - } - - [DefaultValue (SoapBindingUse.Default)] - [XmlAttribute ("use")] - public SoapBindingUse Use { - get { return use; } - set { use = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapOperationBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapOperationBinding.cs deleted file mode 100644 index 81492c78049a8..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapOperationBinding.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// System.Web.Services.Description.SoapOperationBinding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Web.Services.Configuration; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtension ("operation", "http://schema.xmlsoap.org/wsdl/soap/", typeof (OperationBinding))] - public sealed class SoapOperationBinding : ServiceDescriptionFormatExtension { - - #region Fields - - string soapAction; - SoapBindingStyle style; - - #endregion // Fields - - #region Constructors - - public SoapOperationBinding () - { - soapAction = String.Empty; - style = SoapBindingStyle.Document; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("soapAction")] - public string SoapAction { - get { return soapAction; } - set { soapAction = value; } - } - - // LAMESPEC: .NET Documentation says that the default value for this property is - // SoapBindingStyle.Document (see constructor), but reflection shows that this - // attribute value is SoapBindingStyle.Default - - [DefaultValue (SoapBindingStyle.Default)] - [XmlAttribute ("style")] - public SoapBindingStyle Style { - get { return style; } - set { style = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs deleted file mode 100644 index f9982eeed20eb..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolImporter.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// System.Web.Services.Description.SoapProtocolImporter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.CodeDom; -using System.Web.Services; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - public sealed class SoapProtocolImporter : ProtocolImporter { - - #region Fields - - SoapBinding soapBinding; - SoapCodeExporter soapExporter; - SoapSchemaImporter soapImporter; - XmlCodeExporter xmlExporter; - XmlSchemaImporter xmlImporter; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public SoapProtocolImporter () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override string ProtocolName { - get { return "Soap"; } - } - - public SoapBinding SoapBinding { - get { return soapBinding; } - } - - public SoapCodeExporter SoapExporter { - get { return soapExporter; } - } - - public SoapSchemaImporter SoapImporter { - get { return soapImporter; } - } - - public XmlCodeExporter XmlExporter { - get { return xmlExporter; } - } - - public XmlSchemaImporter XmlImporter { - get { return xmlImporter; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected override CodeTypeDeclaration BeginClass () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void BeginNamespace () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void EndClass () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void EndNamespace () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override CodeMemberMethod GenerateMethod () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override bool IsBindingSupported () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override bool IsOperationFlowSupported (OperationFlow flow) - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolReflector.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolReflector.cs deleted file mode 100644 index cc7fbe03af7ea..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapProtocolReflector.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// System.Web.Services.Description.SoapProtocolReflector.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; -using System.Web.Services.Protocols; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [MonoTODO ("This class is based on conjecture and guesswork.")] - internal class SoapProtocolReflector : ProtocolReflector { - - #region Fields - - SoapBinding soapBinding; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public SoapProtocolReflector () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override string ProtocolName { - get { return "Soap"; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected override void BeginClass () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void EndClass () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override bool ReflectMethod () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override string ReflectMethodBinding () - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapTransportImporter.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/SoapTransportImporter.cs deleted file mode 100644 index 22d76ed997820..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/SoapTransportImporter.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// System.Web.Services.Description.SoapTransportImporter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Description { - public abstract class SoapTransportImporter { - - #region Fields - - SoapProtocolImporter importContext; - - #endregion // Fields - - #region Constructors - - protected SoapTransportImporter () - { - importContext = null; - } - - #endregion // Constructors - - #region Properties - - public SoapProtocolImporter ImportContext { - get { return importContext; } - set { importContext = value; } - } - - #endregion // Properties - - #region Methods - - public abstract void ImportClass (); - public abstract bool IsSupportedTransport (string transport); - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Types.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Types.cs deleted file mode 100644 index 6f19742f9f6af..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Types.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// System.Web.Services.Description.Types.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Configuration; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace System.Web.Services.Description { - [XmlFormatExtensionPoint ("Extensions")] - public sealed class Types : DocumentableItem { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; - XmlSchemas schemas; - - #endregion // Fields - - #region Constructors - - public Types () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); - schemas = new XmlSchemas (); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - - [XmlElement ("schema", typeof (XmlSchema), Namespace = "http://www.w3.org/2001/XMLSchema")] - public XmlSchemas Schemas { - get { return schemas; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog deleted file mode 100755 index 5f4f2cbda07b5..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog +++ /dev/null @@ -1,61 +0,0 @@ -2002-08-19 Tim Coleman - * DiscoveryClientProtocol.cs: - Added ResolveAll () stub. - * DiscoveryDocument.cs: - Added XmlRoot attribute to class. - * DiscoveryClientDocumentCollection.cs: - * DiscoveryClientReferenceCollection.cs: - * DiscoveryClientResultCollection.cs: - * DiscoveryReferenceCollection.cs: - Implementation of these classes. - -2002-08-04 Dave Bettin - * ContractSearchPattern.cs - * DiscoveryClientDocumentCollection.cs - * DiscoveryClientProtocol.cs - * DiscoveryClientResult.cs - * DiscoveryDocument.cs - * DiscoveryDocumentLinksPattern.cs - * DiscoveryDocumentReference.cs - * DiscoveryDocumentSearchPattern.cs - * DiscoveryReference.cs - * DiscoveryRequestHandler.cs - * DiscoverySearchPattern.cs - * DynamicDiscoveryDocument.cs - * SchemaReference.cs - * SoapBinding.cs - * XmlSchemaSearchPattern.cs - [ Added attributes and some basic implementation] - -2002-08-03 Tim Coleman - * DiscoveryDocument.cs: - Added XmlIgnore attribute to References property - * DiscoveryDocumentReference.cs: - Implemented Ref/Url properties and added XmlIgnore - attributes. - -2002-07-28 Dave Bettin - * ContractReference.cs - * ContractSearchPattern.cs - * DiscoveryClientDocumentCollection.cs - * DiscoveryClientProtocol.cs - * DiscoveryClientReferenceCollection.cs - * DiscoveryClientResultCollection.cs - * DiscoveryClientResult.cs - * DiscoveryDocument.cs - * DiscoveryDocumentLinksPattern.cs - * DiscoveryDocumentReference.cs - * DiscoveryDocumentSearchPattern.cs - * DiscoveryExceptionDictionary.cs - * DiscoveryReferenceCollection.cs - * DiscoveryReference.cs - * DiscoveryRequestHandler.cs - * DiscoverySearchPattern.cs - * DynamicDiscoveryDocument.cs - * ExcludePathInfo.cs - * SchemaReference.cs - * SoapBinding.cs - * XmlSchemaSearchPattern.cs - [ Added stubs] - - diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs deleted file mode 100755 index 39cfbc5439784..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractReference.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// System.Web.Services.Discovery.ContractReference.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.IO; -using System.Web.Services.Description; -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - - [XmlRootAttribute("contractRef", Namespace="https://schemas.xmlsoap.org/disco/scl/", IsNullable=true)] - public class ContractReference : DiscoveryReference { - - #region Fields - - public const string Namespace = "http://schemas.xmlsoap.org/disco/scl/"; - - private ServiceDescription contract; - private string defaultFilename; - private string docRef; - private string href; - private string url; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public ContractReference () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public ContractReference (string href) : this() - { - throw new NotImplementedException (); - } - - [MonoTODO] - public ContractReference (string href, string docRef) : this(href) - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public ServiceDescription Contract { - get { return contract; } - } - - [XmlIgnore] - public override string DefaultFilename { - get { return defaultFilename; } - } - - [XmlAttribute("docRef")] - public string DocRef { - get { return docRef; } - set { docRef = value; } - } - - [XmlAttribute("ref")] - public string Ref { - get { return href; } - set { href = value; } - } - - [XmlIgnore] - public override string Url { - get { return url;} - set { url = value; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override object ReadDocument (Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal override void Resolve (string contentType, Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void WriteDocument (object document, Stream stream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractSearchPattern.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractSearchPattern.cs deleted file mode 100755 index 87a5d25a927d0..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ContractSearchPattern.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// System.Web.Services.Protocols.ContractSearchPattern.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -namespace System.Web.Services.Discovery { - public sealed class ContractSearchPattern : DiscoverySearchPattern { - - #region Fields - - private string pattern = "*.asmx"; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public ContractSearchPattern () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override string Pattern { - get { return pattern; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override DiscoveryReference GetDiscoveryReference (string filename) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientDocumentCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientDocumentCollection.cs deleted file mode 100755 index 3d4e77ee2c4bb..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientDocumentCollection.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// System.Web.Services.Discovery.DiscoveryClientDocumentCollection.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Dave Bettin, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryClientDocumentCollection : DictionaryBase { - - #region Constructors - - public DiscoveryClientDocumentCollection () - : base () - { - } - - #endregion // Constructors - - #region Properties - - public object this [string url] { - get { return InnerHashtable [url]; } - set { - if (url == null) - throw new ArgumentNullException (); - InnerHashtable [url] = value; - } - } - - public ICollection Keys { - get { return InnerHashtable.Keys; } - } - - public ICollection Values { - get { return InnerHashtable.Values; } - } - - #endregion // Properties - - #region Methods - - public void Add (string url, object value) - { - InnerHashtable [url] = value; - } - - public bool Contains (string url) - { - return InnerHashtable.Contains (url); - } - - public void Remove (string url) - { - InnerHashtable.Remove (url); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs deleted file mode 100755 index 622222c19d8eb..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -// System.Web.Services.Protocols.DiscoveryClientProtocol.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.Collections; -using System.IO; -using System.Web.Services.Protocols; - -namespace System.Web.Services.Discovery { - public class DiscoveryClientProtocol : HttpWebClientProtocol { - - #region Fields - - private IList additionalInformation; - private DiscoveryClientDocumentCollection documents; - private DiscoveryExceptionDictionary errors; - private DiscoveryClientReferenceCollection references; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DiscoveryClientProtocol () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public IList AdditionalInformation { - get { return additionalInformation; } - } - - public DiscoveryClientDocumentCollection Documents { - get { return documents; } - } - - public DiscoveryExceptionDictionary Errors { - get { return errors; } - } - - public DiscoveryClientReferenceCollection References { - get { return references; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public DiscoveryDocument Discover (string url) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DiscoveryDocument DiscoverAny (string url) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Stream Download (ref string url) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public Stream Download (ref string url, ref string contentType) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DiscoveryClientResultCollection ReadAll (string topLevelFilename) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ResolveAll () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ResolveOneLevel () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DiscoveryClientResultCollection WriteAll (string directory, string topLevelFilename) - { - throw new NotImplementedException (); - } - - #endregion // Methods - - #region Classes - - public sealed class DiscoveryClientResultsFile { - - #region Fields - - private DiscoveryClientResultCollection results; - - #endregion // Fields - - #region Contructors - - [MonoTODO] - public DiscoveryClientResultsFile () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public DiscoveryClientResultCollection Results { - get { return results; } - } - - #endregion // Properties - } - #endregion // Classes - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientReferenceCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientReferenceCollection.cs deleted file mode 100755 index a98ec11202252..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientReferenceCollection.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// System.Web.Services.Protocols.DiscoveryClientReferenceCollection.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Dave Bettin, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryClientReferenceCollection : DictionaryBase { - - #region Constructors - - public DiscoveryClientReferenceCollection () - : base () - { - } - - #endregion // Constructors - - #region Properties - - public DiscoveryReference this [string url] { - get { return (DiscoveryReference) InnerHashtable [url]; } - set { InnerHashtable [url] = value; } - } - - public ICollection Keys { - get { return InnerHashtable.Keys; } - } - - public ICollection Values { - get { return InnerHashtable.Values; } - } - - #endregion // Properties - - #region Methods - - public void Add (DiscoveryReference value) - { - Add (value.Url, value); - } - - public void Add (string url, DiscoveryReference value) - { - InnerHashtable [url] = value; - } - - public bool Contains (string url) - { - return InnerHashtable.Contains (url); - } - - public void Remove (string url) - { - InnerHashtable.Remove (url); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResult.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResult.cs deleted file mode 100755 index 77aa4b0cd3a36..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResult.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// System.Web.Services.Disocvery.DiscoveryClientResult.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - - -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryClientResult { - - #region Fields - - private string filename; - private string referenceTypeName; - private string url; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DiscoveryClientResult () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public DiscoveryClientResult (Type referenceType, string url, string filename) : this() - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute("filename")] - public string Filename { - get { return filename; } - set { filename = value; } - } - - [XmlAttribute("referenceType")] - public string ReferenceTypeName { - get { return referenceTypeName; } - set { referenceTypeName = value; } - } - - [XmlAttribute("url")] - public string Url { - get { return url; } - set { url = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResultCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResultCollection.cs deleted file mode 100755 index 8f93bb0d24bcf..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientResultCollection.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// System.Web.Services.Protocols.DiscoveryClientResultCollection.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Dave Bettin, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryClientResultCollection : CollectionBase { - - #region Constructors - - public DiscoveryClientResultCollection () - : base () - { - } - - #endregion // Constructors - - #region Properties - - public DiscoveryClientResult this [int i] { - get { - if (i < 0 || i >= Count) - throw new ArgumentOutOfRangeException (); - return (DiscoveryClientResult) InnerList [i]; - } - set { - if (i < 0 || i >= Count) - throw new ArgumentOutOfRangeException (); - InnerList [i] = value; - } - } - - #endregion // Properties - - #region Methods - - public int Add (DiscoveryClientResult value) - { - return InnerList.Add (value); - } - - public bool Contains (DiscoveryClientResult value) - { - return InnerList.Contains (value); - } - - public void Remove (DiscoveryClientResult value) - { - InnerList.Remove (value); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocument.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocument.cs deleted file mode 100755 index 35a7010b08f3f..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocument.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// System.Web.Services.Protocols.DiscoveryDocument.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Dave Bettin, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; -using System.IO; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - [XmlRoot ("discovery", Namespace = "http://schemas.xmlsoap.org/disco/")] - public sealed class DiscoveryDocument { - - #region Fields - - public const string Namespace = "http://schema.xmlsoap.org/disco/"; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DiscoveryDocument () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public IList References { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public static bool CanRead (XmlReader xmlReader) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static DiscoveryDocument Read (Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static DiscoveryDocument Read (TextReader textReader) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static DiscoveryDocument Read (XmlReader xmlReader) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Write (Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Write (TextWriter textWriter) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Write (XmlWriter xmlWriter) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentLinksPattern.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentLinksPattern.cs deleted file mode 100755 index 19621b26d4ba3..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentLinksPattern.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// System.Web.Services.Protocols.DiscoveryDocumentLinksPattern.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -namespace System.Web.Services.Discovery { - public class DiscoveryDocumentLinksPattern : DiscoverySearchPattern { - - #region Fields - - private string pattern = "*.disco"; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DiscoveryDocumentLinksPattern () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override string Pattern { - get { return pattern; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override DiscoveryReference GetDiscoveryReference (string filename) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentReference.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentReference.cs deleted file mode 100755 index 9d18e39118d6d..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentReference.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// System.Web.Services.Discovery.DiscoveryDocumentReference.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Dave Bettin, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Web.Services.Description; -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - - [XmlRootAttribute("discoveryRef", Namespace="http://schemas.xmlsoap.org/disco/", IsNullable=true)] - public sealed class DiscoveryDocumentReference : DiscoveryReference { - - #region Fields - - private DiscoveryDocument document; - private string defaultFilename; - private string href; - private string url; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DiscoveryDocumentReference () - { - href = String.Empty; - } - - public DiscoveryDocumentReference (string href) : this () - { - this.href = href; - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public DiscoveryDocument Document { - get { return Document; } - } - - [XmlIgnore] - public override string DefaultFilename { - get { return defaultFilename; } - } - - [XmlAttribute("ref")] - public string Ref { - get { return href; } - set { href = value; } - } - - [XmlIgnore] - public override string Url { - get { return url; } - set { url = value; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override object ReadDocument (Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal override void Resolve (string contentType, Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ResolveAll () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void WriteDocument (object document, Stream stream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentSearchPattern.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentSearchPattern.cs deleted file mode 100755 index 97024add9d2d5..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryDocumentSearchPattern.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// System.Web.Services.Discovery.DiscoveryDocumentSearchPattern.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryDocumentSearchPattern : DiscoverySearchPattern { - - #region Fields - - private string pattern = "*.vsdisco"; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DiscoveryDocumentSearchPattern () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override string Pattern { - get { return pattern; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override DiscoveryReference GetDiscoveryReference (string filename) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryExceptionDictionary.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryExceptionDictionary.cs deleted file mode 100755 index 5e2cc93237a86..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryExceptionDictionary.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// System.Web.Services.Protocols.DiscoveryExceptionDictionary.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryExceptionDictionary : DictionaryBase { - - #region Constructors - - [MonoTODO] - public DiscoveryExceptionDictionary () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public Exception this[string url] { - [MonoTODO] - get { throw new NotImplementedException (); } - - [MonoTODO] - set { throw new NotImplementedException (); } - } - - public ICollection Keys { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ICollection Values { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public void Add (string url, Exception value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public bool Contains (string url) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Remove (string url) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReference.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReference.cs deleted file mode 100755 index e68d9fa6cf813..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReference.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// System.Web.Services.Discovery.DiscoveryReference.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.IO; -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - public abstract class DiscoveryReference { - - #region Fields - - private string defaultFilename; - private DiscoveryClientProtocol clientProtocol; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - protected DiscoveryReference () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public DiscoveryClientProtocol ClientProtocol { - get { return clientProtocol; } - set { clientProtocol = value; } - - } - - [XmlIgnore] - public virtual string DefaultFilename { - get { return defaultFilename; } - } - - [XmlIgnore] - public abstract string Url { - get; - set; - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected static string FilenameFromUrl (string url) - { - throw new NotImplementedException (); - } - - public abstract object ReadDocument (Stream stream); - - [MonoTODO] - public void Resolve () - { - throw new NotImplementedException (); - } - - protected internal abstract void Resolve (string contentType, Stream stream); - - public abstract void WriteDocument (object document, Stream stream); - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReferenceCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReferenceCollection.cs deleted file mode 100755 index ec81f3dadfc33..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryReferenceCollection.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// System.Web.Services.Protocols.DiscoveryReferenceCollection.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Dave Bettin, 2002 -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryReferenceCollection : CollectionBase { - - #region Constructors - - public DiscoveryReferenceCollection () - : base () - { - } - - #endregion // Constructors - - #region Properties - - public DiscoveryReference this [int i] { - get { - if (i < 0 || i >= Count) - throw new ArgumentOutOfRangeException (); - return (DiscoveryReference) InnerList [i]; - } - set { - if (i < 0 || i >= Count) - throw new ArgumentOutOfRangeException (); - InnerList [i] = value; - } - } - - #endregion // Properties - - #region Methods - - public int Add (DiscoveryReference value) - { - return InnerList.Add (value); - } - - public bool Contains (DiscoveryReference value) - { - return InnerList.Contains (value); - } - - public void Remove (DiscoveryReference value) - { - InnerList.Remove (value); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryRequestHandler.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryRequestHandler.cs deleted file mode 100755 index 564a3b3ae8c46..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryRequestHandler.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// System.Web.Services.Discovery.DiscoveryRequestHandler.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.Web; - -namespace System.Web.Services.Discovery { - public sealed class DiscoveryRequestHandler : IHttpHandler { - - #region Fields - - private bool isReusable = true; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DiscoveryRequestHandler () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public bool IsReusable { - get { return isReusable; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public void ProcessRequest (HttpContext context) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoverySearchPattern.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoverySearchPattern.cs deleted file mode 100755 index d2ae0944ea672..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoverySearchPattern.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// System.Web.Services.Discovery.DiscoverySearchPattern.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -namespace System.Web.Services.Discovery { - public abstract class DiscoverySearchPattern { - - #region Constructors - - protected DiscoverySearchPattern () {} - - #endregion // Constructors - - #region Properties - - public abstract string Pattern { - get; - } - - #endregion // Properties - - #region Methods - - public abstract DiscoveryReference GetDiscoveryReference (string filename); - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DynamicDiscoveryDocument.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DynamicDiscoveryDocument.cs deleted file mode 100755 index e16e251d06e37..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DynamicDiscoveryDocument.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// System.Web.Services.Discovery.DynamicDiscoveryDocument.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.IO; -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - - [XmlRootAttribute("dynamicDiscovery", Namespace="urn:schemas-dynamicdiscovery:disco.2000-03-17", IsNullable=true)] - public sealed class DynamicDiscoveryDocument { - - #region Fields - - public const string Namespace = "urn:schemas-dynamicdiscovery:disco.2000-03-17"; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public DynamicDiscoveryDocument () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlElement("exclude", typeof(ExcludePathInfo))] - public ExcludePathInfo[] ExcludePaths { - [MonoTODO] - get { throw new NotImplementedException (); } - [MonoTODO] - set { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public static DynamicDiscoveryDocument Load (Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Write (Stream stream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ExcludePathInfo.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ExcludePathInfo.cs deleted file mode 100755 index e86bdd09b4edf..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ExcludePathInfo.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// System.Web.Services.Discovery.ExcludePathInfo.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - public sealed class ExcludePathInfo { - - #region Fields - - private string path; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public ExcludePathInfo () - { - throw new NotImplementedException (); - } - - public ExcludePathInfo (string path) : this() - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute("path")] - public string Path { - get { return path; } - set { path = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/SchemaReference.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/SchemaReference.cs deleted file mode 100755 index e5109ceaa19e3..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/SchemaReference.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// System.Web.Services.Discovery.SchemaReference.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - - -using System.ComponentModel; -using System.IO; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - - [XmlRootAttribute("schemaRef", Namespace="http://schemas/xmlsoap.org/disco/schema/", IsNullable=true)] - public sealed class SchemaReference : DiscoveryReference { - - #region Fields - - public const string Namespace = "http://schemas/xmlsoap.org/disco/schema/"; - - private string defaultFilename; - private string href; - private string url; - private string targetNamespace; - private XmlSchema schema; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public SchemaReference () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public SchemaReference (string href) : this() - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public override string DefaultFilename { - get { return defaultFilename; } - } - - [XmlAttribute("ref")] - public string Ref { - get { return href; } - set { href = value; } - } - - [XmlIgnore] - public override string Url { - get { return url; } - set { url = value; } - } - - [DefaultValue("")] - [XmlAttribute("targetNamespace")] - public string TargetNamespace { - get { return targetNamespace; } - set { targetNamespace = targetNamespace; } - } - - [XmlIgnore] - public XmlSchema Schema { - get { return schema; } - - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override object ReadDocument (Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected internal override void Resolve (string contentType, Stream stream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void WriteDocument (object document, Stream stream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/SoapBinding.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/SoapBinding.cs deleted file mode 100755 index c91e356e3e676..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/SoapBinding.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// System.Web.Services.Discovery.SoapBinding.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Discovery { - - [XmlRootAttribute("soap", Namespace="http://schemas/xmlsoap.org/disco/schema/soap/", IsNullable=true)] - public sealed class SoapBinding { - - #region Fields - - public const string Namespace = "http://schemas/xmlsoap.org/disco/schema/soap/"; - - private string address; - private XmlQualifiedName binding; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public SoapBinding () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute("address")] - public string Address { - get { return address; } - set { address = value; } - } - - [XmlAttribute("binding")] - public XmlQualifiedName Binding { - get { return binding; } - set { binding = value; } - } - - #endregion // Properties - - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/XmlSchemaSearchPattern.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/XmlSchemaSearchPattern.cs deleted file mode 100755 index f597a6d478a6c..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/XmlSchemaSearchPattern.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// System.Web.Services.Discovery.XmlSchemaSearchPattern.cs -// -// Author: -// Dave Bettin (javabettin@yahoo.com) -// -// Copyright (C) Dave Bettin, 2002 -// - -namespace System.Web.Services.Discovery { - public sealed class XmlSchemaSearchPattern : DiscoverySearchPattern { - - #region Fields - - private string pattern = "*.xsd"; - - #endregion // Fields - - #region Constructors - - [MonoTODO] - public XmlSchemaSearchPattern () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override string Pattern { - get { return pattern; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override DiscoveryReference GetDiscoveryReference (string filename) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/AnyReturnReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/AnyReturnReader.cs deleted file mode 100644 index 698e60ea25279..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/AnyReturnReader.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// System.Web.Services.Protocols.AnyReturnReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Net; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class AnyReturnReader : MimeReturnReader { - - #region Constructors - - [MonoTODO] - public AnyReturnReader () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override object GetInitializer (LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void Initialize (object o) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override object Read (WebResponse response, Stream responseStream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog deleted file mode 100644 index 86038a4e61253..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog +++ /dev/null @@ -1,185 +0,0 @@ -2002-08-15 Tim Coleman - * ServerProtocol.cs: - * SoapServerProtocol.cs: - Some more implementation. - -2002-08-06 Tim Coleman - * ServerProtocol.cs: - Add new class as implied by class statuc page. - SoapServerProtocol is derived from this. - * SoapServerProtocol.cs: - Change base class to ServerProtocol. Add some - properties shown by class status page. - * SoapClientMethod.cs: - This class should not be sealed. Add some - fields shown by the class status page. - -2002-07-25 Tim Coleman - * SoapClientMethod.cs: - * SoapServerProtocol.cs: - Add new internal classes as discovered. - * SoapClientMessage.cs: - * SoapMessage.cs: - * SoapServerMessage.cs: - * WebClientAsyncResult.cs: - Add internal constructor, as found on class - status page; modify some properties. - -2002-07-23 Tim Coleman - * SoapException.cs: modified constructors to - call base class correctly. - * WebClientAsyncResult: some implementation - -2002-07-23 Tim Coleman - * HttpGetClientProtocol.cs: - * HttpPostClientProtocol.cs - Implemented the GetWebRequest method - * HttpSimpleClientProtocol: - Some implementation of the EndInvoke method - * HttpWebClientProtocol.cs: - Set the UserAgent string appropriately - Implemented the GetWebRequest method - Implemented the GetWebResponse methods - * SoapHttpClientProtocol.cs: - Removed unused fields - Implemented the GetWebRequest method - * SoapMessage.cs: - Implemented the EnsureStage method - * WebClientProtocol.cs: - Added a static constructor to construct the cache - Implemented the Abort method - Implemented the AddToCache, GetFromCache methods - Implemented the GetWebRequest method - Implemented the GetWebResponse methods - -2002-07-23 Tim Coleman - * LogicalMethodTypes.cs: - * SoapHeaderDirection.cs: - * SoapMessageStage.cs: - * SoapParameterStyle.cs: - * SoapServiceRoutingStyle.cs: - Explicitly define values in enum to match - .NET. - * SoapMessage.cs: - Removed constructor which should not be present. - * SoapException.cs: - Made protected fields private as they should - be. - * SoapHeaderException.cs: - Modifications to constructors to propertly - call base class constructor - -2002-07-22 Tim Coleman - * SoapHeaderException.cs: - Fixed name error in constructor - * SoapUnknownHeader.cs: - Added reference to System.Xml.Serialization - -2002-07-22 Tim Coleman - * SoapHeaderException.cs: - New file added - -2002-07-22 Tim Coleman - * AnyReturnReader.cs: - * HtmlFormParameterReader.cs : - * HtmlFormParameterWriter.cs : - * HttpGetClientProtocol.cs : - * HttpMethodAttribute.cs : - * HttpPostClientProtocol.cs : - * HttpSimpleClientProtocol.cs : - * HttpWebClientProtocol.cs : - * LogicalMethodInfo.cs : - * LogicalMethodTypes.cs : - * MatchAttribute.cs : - * MimeFormatter.cs : - * MimeParameterReader.cs : - * MimeParameterWriter.cs : - * MimeReturnReader.cs : - * NopReturnReader.cs : - * PatternMatcher.cs : - * SoapClientMessage.cs : - * SoapDocumentMethodAttribute.cs : - * SoapDocumentServiceAttribute.cs : - * SoapException.cs : - * SoapExtension.cs : - * SoapExtensionAttribute.cs : - * SoapHeader.cs : - * SoapHeaderAttribute.cs : - * SoapHeaderCollection.cs : - * SoapHeaderDirection.cs : - * SoapHttpClientProtocol.cs : - * SoapMessage.cs : - * SoapMessageStage.cs : - * SoapParameterStyle.cs : - * SoapRpcMethodAttribute.cs : - * SoapRpcServiceAttribute.cs : - * SoapServerMessage.cs : - * SoapServiceRoutingStyle.cs : - * SoapUnknownHeader.cs : - * TextReturnReader.cs : - * UrlEncodedParameterWriter.cs : - * UrlParameterReader.cs : - * UrlParameterWriter.cs : - * ValueCollectionParameterReader.cs : - * WebClientAsyncResult.cs : - * WebClientProtocol.cs : - * WebServiceHandlerFactory.cs : - * XmlReturnReader.cs : - Add missing methods and attributes to make as few missing - things as possible in this namespace. This is from the - project status page. - -2002-07-20 Tim Coleman - * AnyReturnReader.cs: - * HtmlFormParameterReader.cs: - * HtmlFormParameterWriter.cs: - * HttpGetClientProtocol.cs: - * HttpMethodAttribute.cs: - * HttpPostClientProtocol.cs: - * HttpSimpleClientProtocol.cs: - * HttpWebClientProtocol.cs: - * MatchAttribute.cs: - * MimeFormatter.cs: - * MimeParameterReader.cs: - * MimeParameterWriter.cs: - * MimeReturnReader.cs: - * NopReturnReader.cs: - * PatternMatcher.cs: - * SoapClientMessage.cs: - * SoapDocumentMethodAttribute.cs: - * SoapDocumentServiceAttribute.cs: - * SoapException.cs: - * SoapExtensionAttribute.cs: - * SoapExtension.cs: - * SoapHeaderAttribute.cs: - * SoapHeaderCollection.cs: - * SoapHeader.cs: - * SoapHeaderDirection.cs: - * SoapHttpClientProtocol.cs: - * SoapMessage.cs: - * SoapMessageStage.cs: - * SoapParameterStyle.cs: - * SoapRpcMethodAttribute.cs: - * SoapRpcServiceAttribute.cs: - * SoapServerMessage.cs: - * SoapServiceRoutingStyle.cs: - * SoapUnknownHeader.cs: - * TextReturnReader.cs: - * UrlEncodedParameterWriter.cs: - * UrlParameterReader.cs: - * UrlParameterWriter.cs: - * ValueCollectionParameterReader.cs: - * WebClientAsyncResult.cs: - * WebClientProtocol.cs: - * WebServiceHandlerFactory.cs: - * XmlReturnReader.cs: - Added new stubbs and some implementation - * LogicalMethodTypes.cs: - Added [Serializable] attribute which was missing. - -2002-07-19 Tim Coleman - * ChangeLog: - * LogicalMethodInfo.cs: - * LogicalMethodTypes.cs: - Add required classes to maek System.Web.Services.Description - buildable. diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterReader.cs deleted file mode 100644 index 883b85f692407..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterReader.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -// System.Web.Services.Protocols.HtmlFormParameterReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class HtmlFormParameterReader : ValueCollectionParameterReader { - - #region Constructors - - [MonoTODO] - public HtmlFormParameterReader () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override object[] Read (HttpRequest request) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterWriter.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterWriter.cs deleted file mode 100644 index f463a2325d783..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterWriter.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// System.Web.Services.Protocols.HtmlFormParameterWriter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Net; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class HtmlFormParameterWriter : UrlEncodedParameterWriter { - - #region Constructors - - [MonoTODO] - public HtmlFormParameterWriter () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override bool UsesWriteRequest { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public override void InitializeRequest (WebRequest request, object[] values) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void WriteRequest (Stream requestStream, object[] values) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpGetClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpGetClientProtocol.cs deleted file mode 100644 index 554201746ec9a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpGetClientProtocol.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// System.Web.Services.Protocols.HttpGetClientProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Net; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class HttpGetClientProtocol : HttpSimpleClientProtocol { - - #region Constructors - - public HttpGetClientProtocol () - { - } - - #endregion // Constructors - - #region Methods - - protected override WebRequest GetWebRequest (Uri uri) - { - if (uri == null) - throw new InvalidOperationException ("The uri parameter is null."); - if (uri.ToString () == String.Empty) - throw new InvalidOperationException ("The uri parameter has a length of zero."); - return WebRequest.Create (uri); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpMethodAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpMethodAttribute.cs deleted file mode 100644 index 824d9d188034f..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpMethodAttribute.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// System.Web.Services.Protocols.HttpMethodAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [AttributeUsage (AttributeTargets.Method)] - public sealed class HttpMethodAttribute : Attribute { - - #region Fields - - Type parameterFormatter; - Type returnFormatter; - - #endregion - - #region Constructors - - public HttpMethodAttribute () - { - } - - public HttpMethodAttribute (Type returnFormatter, Type parameterFormatter) - : this () - { - this.parameterFormatter = parameterFormatter; - this.returnFormatter = returnFormatter; - } - - #endregion // Constructors - - #region Properties - - public Type ParameterFormatter { - get { return parameterFormatter; } - set { parameterFormatter = value; } - } - - public Type ReturnFormatter { - get { return returnFormatter; } - set { returnFormatter = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpPostClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpPostClientProtocol.cs deleted file mode 100644 index ebdc3cdf9a1e2..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpPostClientProtocol.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -// System.Web.Services.Protocols.HttpPostClientProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Net; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class HttpPostClientProtocol : HttpSimpleClientProtocol { - - #region Constructors - - public HttpPostClientProtocol () - { - } - - #endregion // Constructors - - #region Methods - - protected override WebRequest GetWebRequest (Uri uri) - { - if (null == uri) - throw new InvalidOperationException ("The uri parameter is a null reference."); - if (String.Empty == uri.ToString ()) - throw new InvalidOperationException ("The uri parameter has a length of zero."); - return WebRequest.Create (uri); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleClientProtocol.cs deleted file mode 100644 index 282739ec4c1a7..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleClientProtocol.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// System.Web.Services.Protocols.HttpSimpleClientProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public abstract class HttpSimpleClientProtocol : HttpWebClientProtocol { - - #region Fields - - IAsyncResult result; - - #endregion // Fields - - #region Constructors - - protected HttpSimpleClientProtocol () - { - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - protected IAsyncResult BeginInvoke (string methodName, string requestUrl, object[] parameters, AsyncCallback callback, object asyncState) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected object EndInvoke (IAsyncResult asyncResult) - { - if (asyncResult != result) - throw new ArgumentException ("asyncResult is not the return value from BeginInvoke"); - throw new NotImplementedException (); - } - - [MonoTODO] - protected object Invoke (string methodName, string requestUrl, object[] parameters) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpWebClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpWebClientProtocol.cs deleted file mode 100644 index a47c7a196940d..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpWebClientProtocol.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// System.Web.Services.Protocols.HttpWebClientProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System; -using System.ComponentModel; -using System.Net; -using System.Security.Cryptography.X509Certificates; -using System.Threading; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public abstract class HttpWebClientProtocol : WebClientProtocol { - - #region Fields - - bool allowAutoRedirect; - X509CertificateCollection clientCertificates; - CookieContainer cookieContainer; - IWebProxy proxy; - string userAgent; - - #endregion - - #region Constructors - - protected HttpWebClientProtocol () - { - allowAutoRedirect = false; - clientCertificates = new X509CertificateCollection (); - cookieContainer = null; - proxy = null; // FIXME - userAgent = String.Format ("Mono Web Services Client Protocol {0}", Environment.Version); - } - - #endregion // Constructors - - #region Properties - - [DefaultValue (false)] - [WebServicesDescription ("Enable automatic handling of server redirects.")] - public bool AllowAutoRedirect { - get { return allowAutoRedirect; } - set { allowAutoRedirect = value; } - } - - [Browsable (false)] - [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] - [WebServicesDescription ("The client certificates that will be sent to the server, if the server requests them.")] - public X509CertificateCollection ClientCertificates { - get { return clientCertificates; } - } - - [DefaultValue (null)] - [WebServicesDescription ("A container for all cookies received from servers in the current session.")] - public CookieContainer CookieContainer { - get { return cookieContainer; } - set { cookieContainer = value; } - } - - [Browsable (false)] - [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] - public IWebProxy Proxy { - get { return proxy; } - set { proxy = value; } - } - - [WebServicesDescription ("Sets the user agent http header for the request.")] - public string UserAgent { - get { return userAgent; } - set { userAgent = value; } - } - - #endregion // Properties - - #region Methods - - protected override WebRequest GetWebRequest (Uri uri) - { - if (null == uri) - throw new InvalidOperationException ("The uri parameter is a null reference."); - return WebRequest.Create (uri); - } - - protected override WebResponse GetWebResponse (WebRequest request) - { - return request.GetResponse (); - } - - protected override WebResponse GetWebResponse (WebRequest request, IAsyncResult result) - { - IAsyncResult ar = request.BeginGetResponse (null, null); - ar.AsyncWaitHandle.WaitOne (); - return request.EndGetResponse (result); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodInfo.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodInfo.cs deleted file mode 100644 index 471b925d6e502..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodInfo.cs +++ /dev/null @@ -1,176 +0,0 @@ -// -// System.Web.Services.Protocols.LogicalMethodInfo.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Reflection; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public sealed class LogicalMethodInfo { - - #region Fields - - #endregion // Fields - - #region Constructors - - public LogicalMethodInfo (MethodInfo methodInfo) - { - } - - #endregion // Constructors - - #region Properties - - public ParameterInfo AsyncCallbackParameter { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ParameterInfo AsyncResultParameter { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ParameterInfo AsyncStateParameter { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public MethodInfo BeginMethodInfo { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ICustomAttributeProvider CustomAttributeProvider { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public Type DeclaringType { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public MethodInfo EndMethodInfo { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ParameterInfo[] InParameters { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public bool IsAsync { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public bool IsVoid { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public MethodInfo MethodInfo { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public string Name { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ParameterInfo[] OutParameters { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ParameterInfo[] Parameters { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public Type ReturnType { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public ICustomAttributeProvider ReturnTypeCustomAttributeProvider { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public IAsyncResult BeginInvoke (object target, object[] values, AsyncCallback callback, object asyncState) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static LogicalMethodInfo[] Create (MethodInfo[] methodInfos) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static LogicalMethodInfo[] Create (MethodInfo[] methodInfos, LogicalMethodTypes types) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public object[] EndInvoke (object target, IAsyncResult asyncResult) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public object GetCustomAttribute (Type type) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public object[] GetCustomAttributes (Type type) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public object[] Invoke (object target, object[] values) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static bool IsBeginMethod (MethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static bool IsEndMethod (MethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override string ToString () - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodTypes.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodTypes.cs deleted file mode 100644 index c2347a4f4875b..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/LogicalMethodTypes.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.Web.Services.Protocols.LogicalMethodTypes.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [Serializable] - public enum LogicalMethodTypes { - Async = 0x2, - Sync = 0x1 - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MatchAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/MatchAttribute.cs deleted file mode 100644 index 95c985c59004f..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MatchAttribute.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// System.Web.Services.Protocols.MatchAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [AttributeUsage (AttributeTargets.All)] - public sealed class MatchAttribute : Attribute { - - #region Fields - - int capture; - int group; - bool ignoreCase; - int maxRepeats; - string pattern; - - #endregion - - #region Constructors - - public MatchAttribute (string pattern) - { - ignoreCase = false; - maxRepeats = -1; - this.pattern = pattern; - } - - #endregion // Constructors - - #region Properties - - public int Capture { - get { return capture; } - set { capture = value; } - } - - public int Group { - get { return group; } - set { group = value; } - } - - public bool IgnoreCase { - get { return ignoreCase; } - set { ignoreCase = value; } - } - - public int MaxRepeats { - get { return maxRepeats; } - set { maxRepeats = value; } - } - - public string Pattern { - get { return pattern; } - set { pattern = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeFormatter.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeFormatter.cs deleted file mode 100644 index 2bc4e93239b7f..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeFormatter.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// System.Web.Services.Protocols.MimeFormatter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public abstract class MimeFormatter { - - #region Constructors - - [MonoTODO] - protected MimeFormatter () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public static MimeFormatter CreateInstance (Type type, object initializer) - { - throw new NotImplementedException (); - } - - public abstract object GetInitializer (LogicalMethodInfo methodInfo); - - [MonoTODO] - public static object GetInitializer (Type type, LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual object[] GetInitializers (LogicalMethodInfo[] methodInfos) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static object[] GetInitializers (Type type, LogicalMethodInfo[] methodInfos) - { - throw new NotImplementedException (); - } - - public abstract void Initialize (object initializer); - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterReader.cs deleted file mode 100644 index 3b9f5a59c74d5..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterReader.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -// System.Web.Services.Protocols.MimeParameterReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web; - -namespace System.Web.Services.Protocols { - public abstract class MimeParameterReader : MimeFormatter { - - #region Constructors - - protected MimeParameterReader () - { - } - - #endregion // Constructors - - #region Methods - - public abstract object[] Read (HttpRequest request); - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterWriter.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterWriter.cs deleted file mode 100644 index c152c4b345696..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeParameterWriter.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// System.Web.Services.Protocols.MimeParameterWriter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Net; -using System.Text; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public abstract class MimeParameterWriter : MimeFormatter { - - #region Constructors - - [MonoTODO] - protected MimeParameterWriter () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public virtual Encoding RequestEncoding { - [MonoTODO] - get { throw new NotImplementedException (); } - [MonoTODO] - set { throw new NotImplementedException (); } - } - - public virtual bool UsesWriteRequest { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - public virtual string GetRequestUrl (string url, object[] parameters) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void InitializeRequest (WebRequest request, object[] values) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void WriteRequest (Stream requestStream, object[] values) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeReturnReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeReturnReader.cs deleted file mode 100644 index 29e645554e938..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/MimeReturnReader.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -// System.Web.Services.Protocols.MimeReturnReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Net; - -namespace System.Web.Services.Protocols { - public abstract class MimeReturnReader : MimeFormatter { - - #region Constructors - - protected MimeReturnReader () - { - } - - #endregion // Constructors - - #region Methods - - public abstract object Read (WebResponse response, Stream responseStream); - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/NopReturnReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/NopReturnReader.cs deleted file mode 100644 index 2786fc75ae214..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/NopReturnReader.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// System.Web.Services.Protocols.NopReturnReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Net; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class NopReturnReader : MimeReturnReader { - - #region Constructors - - [MonoTODO] - public NopReturnReader () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override object GetInitializer (LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void Initialize (object initializer) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override object Read (WebResponse response, Stream responseStream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/PatternMatcher.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/PatternMatcher.cs deleted file mode 100644 index 4d60f517285d6..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/PatternMatcher.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -// System.Web.Services.Protocols.PatternMatcher.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public sealed class PatternMatcher { - - #region Constructors - - [MonoTODO] - public PatternMatcher (Type type) - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public object Match (string text) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs deleted file mode 100644 index fd3cc9e6b7126..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// System.Web.Services.Protocols.ServerProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - [MonoTODO ("Figure out what thsi class does.")] - internal abstract class ServerProtocol { - - #region Constructors - - protected ServerProtocol () - { - throw new NotImplementedException (); - } - - #endregion - - #region Properties - - public virtual bool IsOneWay { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public virtual LogicalMethodInfo MethodInfo { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion - - #region Methods - - [MonoTODO] - public virtual void CreateServerInstance () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void DisposeServerInstance () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void Initialize () - { - throw new NotImplementedException (); - } - - #endregion - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMessage.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMessage.cs deleted file mode 100644 index a09077b146f4d..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMessage.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// System.Web.Services.Protocols.SoapClientMessage.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public sealed class SoapClientMessage : SoapMessage { - - #region Fields - - SoapHttpClientProtocol client; - SoapClientMethod clientMethod; - string url; - - #endregion - - #region Constructors - - [MonoTODO ("Determine what calls this constructor.")] - internal SoapClientMessage (SoapHttpClientProtocol client, SoapClientMethod clientMethod, string url) - { - this.client = client; - this.url = url; - this.clientMethod = clientMethod; - } - - #endregion - - #region Properties - - public override string Action { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public SoapHttpClientProtocol Client { - get { return client; } - } - - public override LogicalMethodInfo MethodInfo { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public override bool OneWay { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public override string Url { - get { return url; } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected override void EnsureInStage () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void EnsureOutStage () - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMethod.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMethod.cs deleted file mode 100644 index 9bc959b399778..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapClientMethod.cs +++ /dev/null @@ -1,27 +0,0 @@ -// -// System.Web.Services.Protocols.SoapClientMethod.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; -using System.Web.Services.Description; - -namespace System.Web.Services.Protocols { - [MonoTODO ("Determine what this class does.")] - internal class SoapClientMethod { - - #region Fields - - public string action; - public LogicalMethodInfo methodInfo; - public bool oneWay; - public bool rpc; - public SoapBindingUse use; - - #endregion // Fields - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentMethodAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentMethodAttribute.cs deleted file mode 100644 index d927eb37acfa1..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentMethodAttribute.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// System.Web.Services.Protocols.SoapDocumentMethodAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Description; - -namespace System.Web.Services.Protocols { - [AttributeUsage (AttributeTargets.Method)] - public sealed class SoapDocumentMethodAttribute : Attribute { - - #region Fields - - string action; - string binding; - bool oneWay; - SoapParameterStyle parameterStyle; - string requestElementName; - string requestNamespace; - string responseElementName; - string responseNamespace; - SoapBindingUse use; - - #endregion - - #region Constructors - - public SoapDocumentMethodAttribute () - { - action = "http://tempuri.org/MethodName"; // FIXME - binding = String.Empty; // FIXME - oneWay = false; - parameterStyle = SoapParameterStyle.Wrapped; - requestElementName = String.Empty; // FIXME - requestNamespace = "http://tempuri.org/"; - responseElementName = "WebServiceNameResult"; // FIXME - responseNamespace = "http://tempuri.org/"; - use = SoapBindingUse.Literal; - } - - public SoapDocumentMethodAttribute (string action) - : this () - { - this.action = action; - } - - #endregion // Constructors - - #region Properties - - public string Action { - get { return action; } - set { action = value; } - } - - public string Binding { - get { return binding; } - set { binding = value; } - } - - public bool OneWay { - get { return oneWay; } - set { oneWay = value; } - } - - public SoapParameterStyle ParameterStyle { - get { return parameterStyle; } - set { parameterStyle = value; } - } - - public string RequestElementName { - get { return requestElementName; } - set { requestElementName = value; } - } - - public string RequestNamespace { - get { return requestNamespace; } - set { requestNamespace = value; } - } - - public string ResponseElementName { - get { return responseElementName; } - set { responseElementName = value; } - } - - public string ResponseNamespace { - get { return responseNamespace; } - set { responseNamespace = value; } - } - - public SoapBindingUse Use { - get { return use; } - set { use = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentServiceAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentServiceAttribute.cs deleted file mode 100644 index 6593a87609ecc..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentServiceAttribute.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// System.Web.Services.Protocols.SoapDocumentServiceAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services.Description; - -namespace System.Web.Services.Protocols { - [AttributeUsage (AttributeTargets.Class)] - public sealed class SoapDocumentServiceAttribute : Attribute { - - #region Fields - - SoapParameterStyle paramStyle; - SoapServiceRoutingStyle routingStyle; - SoapBindingUse use; - - #endregion - - #region Constructors - - public SoapDocumentServiceAttribute () - { - paramStyle = SoapParameterStyle.Wrapped; - routingStyle = SoapServiceRoutingStyle.SoapAction; - use = SoapBindingUse.Literal; - } - - public SoapDocumentServiceAttribute (SoapBindingUse use) - : this () - { - this.use = use; - } - - public SoapDocumentServiceAttribute (SoapBindingUse use, SoapParameterStyle paramStyle) - : this () - { - this.use = use; - this.paramStyle = paramStyle; - } - - #endregion // Constructors - - #region Properties - - public SoapParameterStyle ParameterStyle { - get { return paramStyle; } - set { paramStyle = value; } - } - - public SoapServiceRoutingStyle RoutingStyle { - get { return routingStyle; } - set { routingStyle = value; } - } - - public SoapBindingUse Use { - get { return use; } - set { use = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapException.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapException.cs deleted file mode 100644 index e28c88d06b759..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapException.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// System.Web.Services.Protocols.SoapException.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml; - -namespace System.Web.Services.Protocols { - public class SoapException : SystemException { - - #region Fields - - public static readonly XmlQualifiedName ClientFaultCode = new XmlQualifiedName ("Client", "http://schemas.xmlsoap.org/soap/envelope/"); - public static readonly XmlQualifiedName DetailElementName = new XmlQualifiedName ("detail"); - public static readonly XmlQualifiedName MustUnderstandFaultCode = new XmlQualifiedName ("MustUnderstand", "http://schemas.xmlsoap.org/soap/envelope/"); - public static readonly XmlQualifiedName ServerFaultCode = new XmlQualifiedName ("Server", "http://schemas.xmlsoap.org/soap/envelope/"); - public static readonly XmlQualifiedName VersionMismatchFaultCode = new XmlQualifiedName ("VersionMismatch", "http://schemas.xmlsoap.org/soap/envelope/"); - - string actor; - XmlQualifiedName code; - XmlNode detail; - - #endregion - - #region Constructors - - public SoapException (string message, XmlQualifiedName code) - : base (message) - { - this.code = code; - } - - public SoapException (string message, XmlQualifiedName code, Exception innerException) - : base (message, innerException) - { - this.code = code; - } - - public SoapException (string message, XmlQualifiedName code, string actor) - : base (message) - { - this.code = code; - this.actor = actor; - } - - public SoapException (string message, XmlQualifiedName code, string actor, Exception innerException) - : base (message, innerException) - { - this.code = code; - this.actor = actor; - } - - public SoapException (string message, XmlQualifiedName code, string actor, XmlNode detail) - : base (message) - { - this.code = code; - this.actor = actor; - this.detail = detail; - } - - public SoapException (string message, XmlQualifiedName code, string actor, XmlNode detail, Exception innerException) - : base (message, innerException) - { - this.code = code; - this.actor = actor; - this.detail = detail; - } - - #endregion // Constructors - - #region Properties - - public string Actor { - get { return actor; } - } - - public XmlQualifiedName Code { - get { return code; } - } - - public XmlNode Detail { - get { return detail; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtension.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtension.cs deleted file mode 100644 index 48f91cd38db2d..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtension.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// System.Web.Services.Protocols.SoapExtension.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; - -namespace System.Web.Services.Protocols { - public abstract class SoapExtension { - - #region Fields - - Stream stream; - - #endregion - - #region Constructors - - [MonoTODO] - protected SoapExtension () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public virtual Stream ChainStream (Stream stream) - { - throw new NotImplementedException (); - } - - public abstract object GetInitializer (Type serviceType); - public abstract object GetInitializer (LogicalMethodInfo methodInfo, SoapExtensionAttribute attribute); - public abstract void Initialize (object initializer); - public abstract void ProcessMessage (SoapMessage message); - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtensionAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtensionAttribute.cs deleted file mode 100644 index c90f6b9bc9484..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapExtensionAttribute.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// System.Web.Services.Protocols.SoapExtensionAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - public abstract class SoapExtensionAttribute : Attribute { - - #region Constructors - - protected SoapExtensionAttribute () - { - } - - #endregion // Constructors - - #region Properties - - public abstract Type ExtensionType { - get; - } - - public abstract int Priority { - get; - set; - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeader.cs deleted file mode 100644 index eecfa6b02827a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeader.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// System.Web.Services.Protocols.SoapHeader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Xml.Serialization; - -namespace System.Web.Services.Protocols { - [SoapType (IncludeInSchema = false)] - [XmlType (IncludeInSchema = false)] - public abstract class SoapHeader { - - #region Fields - - string actor; - bool didUnderstand; - bool mustUnderstand; - - #endregion // Fields - - #region Constructors - - protected SoapHeader () - { - actor = String.Empty; - didUnderstand = false; - mustUnderstand = false; - } - - #endregion // Constructors - - #region Properties - - [DefaultValue ("")] - [SoapAttribute ("actor", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - [XmlAttribute ("actor", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - public string Actor { - get { return actor; } - set { actor = value; } - } - - [SoapIgnore] - [XmlIgnore] - public bool DidUnderstand { - get { return didUnderstand; } - set { didUnderstand = value; } - } - - [DefaultValue ("0")] - [SoapAttribute ("mustUnderstand", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - [XmlAttribute ("mustUnderstand", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] - public string EncodedMustUnderstand { - get { return (MustUnderstand ? "1" : "0"); } - set { - if (value == "true" || value == "1") - MustUnderstand = true; - else if (value == "false" || value == "0") - MustUnderstand = false; - else - throw new ArgumentException (); - } - } - - [SoapIgnore] - [XmlIgnore] - public bool MustUnderstand { - get { return mustUnderstand; } - set { mustUnderstand = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderAttribute.cs deleted file mode 100644 index f933c62d2d89c..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderAttribute.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// System.Web.Services.Protocols.SoapHeaderAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [AttributeUsage (AttributeTargets.Method)] - public sealed class SoapHeaderAttribute : Attribute { - - #region Fields - - SoapHeaderDirection direction; - string memberName; - bool required; - - #endregion // Fields - - #region Constructors - - public SoapHeaderAttribute (string memberName) - { - direction = SoapHeaderDirection.In; - this.memberName = memberName; - required = true; - } - - #endregion // Constructors - - #region Properties - - public SoapHeaderDirection Direction { - get { return direction; } - set { direction = value; } - } - - public string MemberName { - get { return memberName; } - set { memberName = value; } - } - - public bool Required { - get { return required; } - set { required = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderCollection.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderCollection.cs deleted file mode 100644 index 017b0346beb52..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderCollection.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// System.Web.Services.Protocols.SoapHeaderCollection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections; - -namespace System.Web.Services.Protocols { - public class SoapHeaderCollection : CollectionBase { - - #region Constructors - - public SoapHeaderCollection () - { - } - - #endregion - - #region Properties - - public SoapHeader this [int index] { - get { return (SoapHeader) List[index]; } - set { List[index] = value; } - } - - #endregion // Properties - - #region Methods - - public int Add (SoapHeader header) - { - Insert (Count, header); - return (Count - 1); - } - - public bool Contains (SoapHeader header) - { - return List.Contains (header); - } - - public void CopyTo (SoapHeader[] array, int index) - { - List.CopyTo (array, index); - } - - public int IndexOf (SoapHeader header) - { - return List.IndexOf (header); - } - - public void Insert (int index, SoapHeader header) - { - if (index < 0 || index > Count) - throw new ArgumentOutOfRangeException (); - List.Insert (index, header); - } - - public void Remove (SoapHeader header) - { - List.Remove (header); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderDirection.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderDirection.cs deleted file mode 100644 index 14c60ee3119f7..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderDirection.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Web.Services.Protocols.SoapHeaderDirection.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [Flags] - [Serializable] - public enum SoapHeaderDirection { - In = 0x1, - InOut = 0x3, - Out = 0x2 - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderException.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderException.cs deleted file mode 100644 index 3e2bde7b2b72b..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHeaderException.cs +++ /dev/null @@ -1,39 +0,0 @@ -// -// System.Web.Services.Protocols.SoapHeaderException.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml; - -namespace System.Web.Services.Protocols { - public class SoapHeaderException : SoapException { - - #region Constructors - - public SoapHeaderException (string message, XmlQualifiedName code) - : base (message, code) - { - } - - public SoapHeaderException (string message, XmlQualifiedName code, Exception innerException) - : base (message, code, innerException) - { - } - - public SoapHeaderException (string message, XmlQualifiedName code, string actor) - : base (message, code, actor) - { - } - - public SoapHeaderException (string message, XmlQualifiedName code, string actor, Exception innerException) - : base (message, code, actor, innerException) - { - } - - #endregion // Constructors - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs deleted file mode 100644 index 2b17b469e706e..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// System.Web.Services.Protocols.SoapHttpClientProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Net; -using System.Web; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class SoapHttpClientProtocol : HttpWebClientProtocol { - - #region Constructors - - public SoapHttpClientProtocol () - { - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - protected IAsyncResult BeginInvoke (string methodName, object[] parameters, AsyncCallback callback, object asyncState) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void Discover () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected object[] EndInvoke (IAsyncResult asyncResult) - { - throw new NotImplementedException (); - } - - protected override WebRequest GetWebRequest (Uri uri) - { - return WebRequest.Create (uri); - } - - [MonoTODO] - protected object[] Invoke (string methodName, object[] parameters) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessage.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessage.cs deleted file mode 100644 index 8dea7f5140a11..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessage.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// System.Web.Services.Protocols.SoapMessage.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public abstract class SoapMessage { - - #region Fields - - string contentType = "text/xml"; - SoapException exception = null; - SoapHeaderCollection headers = null; - SoapMessageStage stage; - - #endregion // Fields - - #region Constructors - - internal SoapMessage () - { - } - - #endregion - - #region Properties - - public abstract string Action { - get; - } - - public string ContentType { - get { return contentType; } - set { contentType = value; } - } - - public SoapException Exception { - get { return exception; } - } - - public SoapHeaderCollection Headers { - get { return headers; } - } - - public abstract LogicalMethodInfo MethodInfo { - get; - } - - public abstract bool OneWay { - get; - } - - public SoapMessageStage Stage { - get { return stage; } - } - - public Stream Stream { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public abstract string Url { - get; - } - - #endregion Properties - - #region Methods - - protected abstract void EnsureInStage (); - protected abstract void EnsureOutStage (); - - protected void EnsureStage (SoapMessageStage stage) - { - if ((((int) stage) & ((int) Stage)) == 0) - throw new InvalidOperationException ("The current SoapMessageStage is not the asserted stage or stages."); - } - - [MonoTODO] - public object GetInParameterValue (int index) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public object GetOutParameterValue (int index) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public object GetReturnValue () - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessageStage.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessageStage.cs deleted file mode 100644 index c4c4b1c343391..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapMessageStage.cs +++ /dev/null @@ -1,18 +0,0 @@ -// -// System.Web.Services.Protocols.SoapMessageStage.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [Serializable] - public enum SoapMessageStage { - AfterDeserialize = 0x8, - AfterSerialize = 0x2, - BeforeDeserialize = 0x4, - BeforeSerialize = 0x1 - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapParameterStyle.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapParameterStyle.cs deleted file mode 100644 index e03ced756e928..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapParameterStyle.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// System.Web.Services.Protocols.SoapParameterStyle.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [Serializable] - public enum SoapParameterStyle { - Default = 0x0, - Bare = 0x1, - Wrapped = 0x2 - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcMethodAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcMethodAttribute.cs deleted file mode 100644 index 9e375d1c9f4ca..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcMethodAttribute.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// System.Web.Services.Protocols.SoapRpcMethodAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [AttributeUsage (AttributeTargets.Method)] - public sealed class SoapRpcMethodAttribute : Attribute { - - #region Fields - - string action; - string binding; - bool oneWay; - string requestElementName; - string requestNamespace; - string responseElementName; - string responseNamespace; - - #endregion // Fields - - #region Constructors - - public SoapRpcMethodAttribute () - { - action = "http://tempuri.org/MethodName"; // FIXME - binding = ""; // FIXME - oneWay = false; - requestElementName = ""; // FIXME - requestNamespace = "http://tempuri.org/"; - responseElementName = "WebServiceNameResult"; // FIXME - responseNamespace = "http://tempuri.org/"; - } - - public SoapRpcMethodAttribute (string action) - : this () - { - this.action = action; - } - - #endregion // Constructors - - #region Properties - - public string Action { - get { return action; } - set { action = value; } - } - - public string Binding { - get { return binding; } - set { binding = value; } - } - - public bool OneWay { - get { return oneWay; } - set { oneWay = value; } - } - - public string RequestElementName { - get { return requestElementName; } - set { requestElementName = value; } - } - - public string RequestNamespace { - get { return requestNamespace; } - set { requestNamespace = value; } - } - - public string ResponseElementName { - get { return responseElementName; } - set { responseElementName = value; } - } - - public string ResponseNamespace { - get { return responseNamespace; } - set { responseNamespace = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcServiceAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcServiceAttribute.cs deleted file mode 100644 index aa475f5e1d393..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapRpcServiceAttribute.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// System.Web.Services.Protocols.SoapRpcServiceAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [AttributeUsage (AttributeTargets.Class)] - public sealed class SoapRpcServiceAttribute : Attribute { - - #region Fields - - SoapServiceRoutingStyle routingStyle; - - #endregion // Fields - - #region Constructors - - public SoapRpcServiceAttribute () - { - routingStyle = SoapServiceRoutingStyle.SoapAction; - } - - #endregion // Constructors - - #region Properties - - public SoapServiceRoutingStyle RoutingStyle { - get { return routingStyle; } - set { routingStyle = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerMessage.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerMessage.cs deleted file mode 100644 index c36f79802ee2f..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerMessage.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// System.Web.Services.Protocols.SoapServerMessage.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public sealed class SoapServerMessage : SoapMessage { - - #region Fields - - string action; - LogicalMethodInfo methodInfo; - bool oneWay; - object server; - string url; - SoapServerProtocol protocol; - - #endregion - - #region Constructors - - [MonoTODO ("Determine what this constructor does.")] - internal SoapServerMessage (SoapServerProtocol protocol) - { - } - - #endregion - - #region Properties - - public override string Action { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public override LogicalMethodInfo MethodInfo { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public override bool OneWay { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public object Server { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public override string Url { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected override void EnsureInStage () - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected override void EnsureOutStage () - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocol.cs deleted file mode 100644 index 831bdf54ebdec..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServerProtocol.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -// System.Web.Services.Protocols.SoapServerProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - [MonoTODO ("Figure out what thsi class does.")] - internal class SoapServerProtocol : ServerProtocol { - - #region Fields - - bool isOneWay; - - #endregion // Fields - - #region Properties - - public override bool IsOneWay { - get { return isOneWay; } - } - - [MonoTODO] - public override LogicalMethodInfo MethodInfo { - get { throw new NotImplementedException (); } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServiceRoutingStyle.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServiceRoutingStyle.cs deleted file mode 100644 index 47a1762d1a6e4..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapServiceRoutingStyle.cs +++ /dev/null @@ -1,16 +0,0 @@ -// -// System.Web.Services.Protocols.SoapServiceRoutingStyle.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services.Protocols { - [Serializable] - public enum SoapServiceRoutingStyle { - SoapAction = 0x0, - RequestElement = 0x1 - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapUnknownHeader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapUnknownHeader.cs deleted file mode 100644 index 4b46412c1cfc5..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapUnknownHeader.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Web.Services.Protocols.SoapUnknownHeader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Protocols { - public sealed class SoapUnknownHeader : SoapHeader { - - #region Fields - - XmlElement element; - - #endregion // Fields - - #region Constructors - - public SoapUnknownHeader () - { - element = null; - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] - public XmlElement Element { - get { return element; } - set { element = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/TextReturnReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/TextReturnReader.cs deleted file mode 100644 index 3c42b93ec3f49..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/TextReturnReader.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// System.Web.Services.Protocols.TextReturnReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Net; - -namespace System.Web.Services.Protocols { - public class TextReturnReader : MimeReturnReader { - - #region Constructors - - public TextReturnReader () - { - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override object GetInitializer (LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void Initialize (object o) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override object Read (WebResponse response, Stream responseStream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlEncodedParameterWriter.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlEncodedParameterWriter.cs deleted file mode 100644 index 2f35bd155b3db..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlEncodedParameterWriter.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// System.Web.Services.Protocols.UrlEncodedParameterWriter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Text; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public abstract class UrlEncodedParameterWriter : MimeParameterWriter { - - #region Constructors - - [MonoTODO] - protected UrlEncodedParameterWriter () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Properties - - public override Encoding RequestEncoding { - [MonoTODO] - get { throw new NotImplementedException (); } - [MonoTODO] - set { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - [MonoTODO] - protected void Encode (TextWriter writer, object[] values) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected void Encode (TextWriter writer, string name, object value) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override object GetInitializer (LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void Initialize (object initializer) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterReader.cs deleted file mode 100644 index 09012b0a353a8..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterReader.cs +++ /dev/null @@ -1,36 +0,0 @@ -// -// System.Web.Services.Protocols.UrlParameterReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class UrlParameterReader : ValueCollectionParameterReader { - - #region Constructors - - [MonoTODO] - public UrlParameterReader () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override object[] Read (HttpRequest request) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterWriter.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterWriter.cs deleted file mode 100644 index a5575c97b4862..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/UrlParameterWriter.cs +++ /dev/null @@ -1,35 +0,0 @@ -// -// System.Web.Services.Protocols.UrlParameterWriter.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class UrlParameterWriter : UrlEncodedParameterWriter { - - #region Constructors - - [MonoTODO] - public UrlParameterWriter () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override string GetRequestUrl (string url, object[] parameters) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ValueCollectionParameterReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/ValueCollectionParameterReader.cs deleted file mode 100644 index e01e11f01b015..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ValueCollectionParameterReader.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// System.Web.Services.Protocols.ValueCollectionParameterReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections.Specialized; -using System.Reflection; -using System.Web; - -namespace System.Web.Services.Protocols { - public abstract class ValueCollectionParameterReader : MimeParameterReader { - - #region Constructors - - [MonoTODO] - protected ValueCollectionParameterReader () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override object GetInitializer (LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void Initialize (object o) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static bool IsSupported (LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public static bool IsSupported (ParameterInfo paramInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected object[] Read (NameValueCollection collection) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientAsyncResult.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientAsyncResult.cs deleted file mode 100644 index 0102fb93ce500..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientAsyncResult.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// System.Web.Services.Protocols.WebClientAsyncResult.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Net; -using System.Threading; - -namespace System.Web.Services.Protocols { - public class WebClientAsyncResult : IAsyncResult { - - #region Fields - - WaitHandle waitHandle; - - WebClientProtocol protocol; - WebRequest request; - AsyncCallback callback; - object asyncState; - - #endregion // Fields - - #region Constructors - - [MonoTODO ("Figure out what this does.")] - internal WebClientAsyncResult (WebClientProtocol protocol, object x, WebRequest request, AsyncCallback callback, object asyncState, int y) - { - this.protocol = protocol; - this.request = request; - this.callback = callback; - this.asyncState = asyncState; - } - - #endregion // Constructors - - #region Properties - - public object AsyncState { - get { return asyncState; } - } - - public WaitHandle AsyncWaitHandle { - get { return waitHandle; } - } - - public bool CompletedSynchronously { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - public bool IsCompleted { - [MonoTODO] - get { throw new NotImplementedException (); } - } - - #endregion // Properties - - #region Methods - - public void Abort () - { - request.Abort (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientProtocol.cs deleted file mode 100644 index 6a861ee790ca6..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebClientProtocol.cs +++ /dev/null @@ -1,140 +0,0 @@ -// -// System.Web.Services.Protocols.WebClientProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Collections.Specialized; -using System.ComponentModel; -using System.Net; -using System.Text; -using System.Threading; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public abstract class WebClientProtocol : Component { - - #region Fields - - string connectionGroupName; - ICredentials credentials; - bool preAuthenticate; - Encoding requestEncoding; - int timeout; - string url; - bool abort; - static HybridDictionary cache; - - #endregion - - #region Constructors - - static WebClientProtocol () - { - cache = new HybridDictionary (); - } - - protected WebClientProtocol () - { - connectionGroupName = String.Empty; - credentials = null; - preAuthenticate = false; - requestEncoding = null; - timeout = 100000; - url = String.Empty; - abort = false; - } - - #endregion // Constructors - - #region Properties - - [DefaultValue ("")] - public string ConnectionGroupName { - get { return connectionGroupName; } - set { connectionGroupName = value; } - } - - public ICredentials Credentials { - get { return credentials; } - set { credentials = value; } - } - - [DefaultValue (false)] - [WebServicesDescription ("Enables pre authentication of the request.")] - public bool PreAuthenticate { - get { return preAuthenticate; } - set { preAuthenticate = value; } - } - - [DefaultValue ("")] - [RecommendedAsConfigurable (true)] - [WebServicesDescription ("The encoding to use for requests.")] - public Encoding RequestEncoding { - get { return requestEncoding; } - set { requestEncoding = value; } - } - - [DefaultValue (100000)] - [RecommendedAsConfigurable (true)] - [WebServicesDescription ("Sets the timeout in milliseconds to be used for synchronous calls. The default of -1 means infinite.")] - public int Timeout { - get { return timeout; } - set { timeout = value; } - } - - [DefaultValue ("")] - [RecommendedAsConfigurable (true)] - [WebServicesDescription ("The base URL to the server to use for requests.")] - public string Url { - get { return url; } - set { url = value; } - } - - #endregion // Properties - - #region Methods - - public virtual void Abort () - { - abort = true; - } - - protected static void AddToCache (Type type, object value) - { - cache [type] = value; - } - - protected static object GetFromCache (Type type) - { - return cache [type]; - } - - protected virtual WebRequest GetWebRequest (Uri uri) - { - return WebRequest.Create (uri); - } - - protected virtual WebResponse GetWebResponse (WebRequest request) - { - if (abort) - throw new WebException ("The operation has been aborted.", WebExceptionStatus.RequestCanceled); - return request.GetResponse (); - } - - protected virtual WebResponse GetWebResponse (WebRequest request, IAsyncResult result) - { - if (abort) - throw new WebException ("The operation has been aborted.", WebExceptionStatus.RequestCanceled); - - IAsyncResult ar = request.BeginGetResponse (null, null); - ar.AsyncWaitHandle.WaitOne (); - return request.EndGetResponse (result); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs deleted file mode 100644 index 9e77e56dcc33b..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// System.Web.Services.Protocols.WebServiceHandlerFactory.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class WebServiceHandlerFactory : IHttpHandlerFactory { - - #region Constructors - - [MonoTODO] - public WebServiceHandlerFactory () - { - throw new NotImplementedException (); - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public IHttpHandler GetHandler (HttpContext context, string verb, string url, string filePath) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void ReleaseHandler (IHttpHandler handler) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/XmlReturnReader.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/XmlReturnReader.cs deleted file mode 100644 index adf27eafa98c1..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/XmlReturnReader.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// System.Web.Services.Protocols.XmlReturnReader.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.IO; -using System.Net; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - public class XmlReturnReader : MimeReturnReader { - - #region Constructors - - public XmlReturnReader () - { - } - - #endregion // Constructors - - #region Methods - - [MonoTODO] - public override object GetInitializer (LogicalMethodInfo methodInfo) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override object[] GetInitializers (LogicalMethodInfo[] methodInfos) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override void Initialize (object o) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public override object Read (WebResponse response, Stream responseStream) - { - throw new NotImplementedException (); - } - - #endregion // Methods - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services.build b/mcs/class/System.Web.Services/System.Web.Services.build deleted file mode 100644 index f6d40dbc008ff..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services.build +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Web.Services/System.Web.Services/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services/ChangeLog deleted file mode 100644 index d4b9db79fc3ce..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services/ChangeLog +++ /dev/null @@ -1,67 +0,0 @@ -2002-08-19 Tim Coleman - * WebService.cs: - Change the attribute on Application to Description - instead of WebServicesDescription.2002-08-19 Tim Coleman - -2002-08-15 Tim Coleman - * WebServicesDescriptionAttribute: - Added Description property. Should've known I spoke - too soon about being complete. :-) - -2002-08-07 Tim Coleman - * WebMethodAttribute.cs: - Remove FIXME and reorganize constructors to all - call this () with the big constructor. - * WebServiceAttribute.cs: - Remove FIXME. - * WebServiceBindingAttribute.cs: - Remove FIXME, and change ns to be String.Empty by - default (this is the MS implementation). Reorganize - constructors. - * WebServicesDescriptionAttribute.cs: - Code reformat. - * TODOAttribute.cs: - Changed namespace. - - *** This namespace should now be complete. *** - -2002-07-23 Tim Coleman - * WebService.cs: - Change Description to WebServicesDescription - * WebServicesDescriptionAttribute.cs: - Add back constructor as MS build doesn't - seem to like it missing. Now calls base() - with the string. Also remove the sealed - modifier and change the attribute targets. - -2002-07-23 Tim Coleman - * WebServicesDescriptionAttribute.cs: - Removed the "guts" because they are defined in - System.ComponentModel.DescriptionAttribute. - * WebService.cs: - Added attributes which were missing based on the - class status page. Also added an HttpApplication - object and modified the properties to use that - object. - -2002-07-22 Tim Coleman - * WebServicesDescriptionAttribute.cs: - Added for build in System.Web.Services.Protocols - -2002-07-22 Tim Coleman - * WebMethodAttribute.cs: - Remove comments around TransactionOption bits - because I added that enum. - * WebServiceAttribute.cs: - * WebServiceBindingAttribute.cs: - Added "sealed" to protection level, which I missed - before. - -2002-07-19 Tim Coleman - * ChangeLog: - * TODOAttribute.cs: - * WebMethodAttribute.cs: - * WebService.cs: - * WebServiceAttribute.cs: - * WebServiceBindingAttribute.cs: - Initial implementation diff --git a/mcs/class/System.Web.Services/System.Web.Services/TODOAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services/TODOAttribute.cs deleted file mode 100644 index 88348c96610a4..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services/TODOAttribute.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -// TODOAttribute.cs -// -// Author: -// Ravi Pratap (ravi@ximian.com) -// -// (C) Ximian, Inc. http://www.ximian.com -// - -namespace System.Web.Services { - - /// - /// The TODO attribute is used to flag all incomplete bits in our class libraries - /// - /// - /// - /// Use this to decorate any element which you think is not complete - /// - [AttributeUsage (AttributeTargets.All)] - internal class MonoTODOAttribute : Attribute { - - string comment; - - public MonoTODOAttribute () - {} - - public MonoTODOAttribute (string comment) - { - this.comment = comment; - } - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services/WebMethodAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services/WebMethodAttribute.cs deleted file mode 100644 index c216715dcec3a..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services/WebMethodAttribute.cs +++ /dev/null @@ -1,96 +0,0 @@ - // -// System.Web.Services.WebMethodAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.EnterpriseServices; - -namespace System.Web.Services { - [AttributeUsage(AttributeTargets.Method)] - public sealed class WebMethodAttribute : Attribute { - - #region Fields - - bool bufferResponse; - int cacheDuration; - string description; - bool enableSession; - string messageName; - TransactionOption transactionOption; - - #endregion // Fields - - #region Constructors - - public WebMethodAttribute () - : this (false, TransactionOption.Disabled, 0, true) - { - } - - public WebMethodAttribute (bool enableSession) - : this (enableSession, TransactionOption.Disabled, 0, true) - { - } - - public WebMethodAttribute (bool enableSession, TransactionOption transactionOption) - : this (enableSession, transactionOption, 0, true) - { - } - - public WebMethodAttribute (bool enableSession, TransactionOption transactionOption, int cacheDuration) - : this (enableSession, transactionOption, cacheDuration, true) - { - } - - public WebMethodAttribute (bool enableSession, TransactionOption transactionOption, int cacheDuration, bool bufferResponse) - { - this.bufferResponse = bufferResponse; - this.cacheDuration = cacheDuration; - this.enableSession = enableSession; - this.transactionOption = transactionOption; - - this.description = String.Empty; - this.messageName = String.Empty; - } - - #endregion // Constructors - - #region Properties - - public bool BufferResponse { - get { return bufferResponse; } - set { bufferResponse = value; } - } - - public int CacheDuration { - get { return cacheDuration; } - set { cacheDuration = value; } - } - - public string Description { - get { return description; } - set { description = value; } - } - - public bool EnableSession { - get { return enableSession; } - set { enableSession = value; } - } - - public string MessageName { - get { return messageName; } - set { messageName = value; } - } - - public TransactionOption TransactionOption { - get { return transactionOption; } - set { transactionOption = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services/WebService.cs b/mcs/class/System.Web.Services/System.Web.Services/WebService.cs deleted file mode 100644 index bd2c5598d6371..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services/WebService.cs +++ /dev/null @@ -1,72 +0,0 @@ - // -// System.Web.Services.WebService.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; -using System.Security.Principal; -using System.Web; -using System.Web.SessionState; - -namespace System.Web.Services { - public class WebService : MarshalByValueComponent { - - #region Fields - - HttpApplication application; - - #endregion // Fields - - #region Constructors - - public WebService () - { - application = new HttpApplication (); - } - - #endregion // Constructors - - #region Properties - - [Browsable (false)] - [Description ("The ASP.NET application object for the current request.")] - [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] - public HttpApplicationState Application { - get { return application.Application; } - } - - [Browsable (false)] - [WebServicesDescription ("The ASP.NET context object for the current request.")] - [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] - public HttpContext Context { - get { return application.Context; } - } - - [Browsable (false)] - [WebServicesDescription ("The ASP.NET utility object for the current request.")] - [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] - public HttpServerUtility Server { - get { return application.Server; } - } - - [Browsable (false)] - [WebServicesDescription ("The ASP.NET session object for the current request.")] - [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] - public HttpSessionState Session { - get { return application.Session; } - } - - [Browsable (false)] - [WebServicesDescription ("The ASP.NET user object for the current request. The object is used for authorization.")] - [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] - public IPrincipal User { - get { return application.User; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services/WebServiceAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services/WebServiceAttribute.cs deleted file mode 100644 index eb50b0c611673..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services/WebServiceAttribute.cs +++ /dev/null @@ -1,54 +0,0 @@ - // -// System.Web.Services.WebServiceAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services { - [AttributeUsage (AttributeTargets.Class)] - public sealed class WebServiceAttribute : Attribute { - - #region Fields - - public const string DefaultNamespace = "http://tempuri.org/"; - string description; - string name; - string ns; - - #endregion // Fields - - #region Constructors - - - public WebServiceAttribute () - { - description = String.Empty; - name = String.Empty; - ns = DefaultNamespace; - } - - #endregion // Constructors - - #region Properties - - public string Description { - get { return description; } - set { description = value; } - } - - public string Name { - get { return name; } - set { name = value; } - } - - public string Namespace { - get { return ns; } - set { ns = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services/WebServiceBindingAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services/WebServiceBindingAttribute.cs deleted file mode 100644 index 6ea242eb3dec1..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services/WebServiceBindingAttribute.cs +++ /dev/null @@ -1,67 +0,0 @@ - // -// System.Web.Services.WebServiceBindingAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -namespace System.Web.Services { - [AttributeUsage(AttributeTargets.Class)] - public sealed class WebServiceBindingAttribute : Attribute { - - #region Fields - - string location; - string name; - string ns; - - #endregion // Fields - - #region Constructors - - public WebServiceBindingAttribute () - : this (String.Empty, String.Empty, String.Empty) - { - } - - public WebServiceBindingAttribute (string name) - : this (name, String.Empty, String.Empty) - { - } - - public WebServiceBindingAttribute (string name, string ns) - : this (name, ns, String.Empty) - { - } - - public WebServiceBindingAttribute (string name, string ns, string location) - { - this.name = name; - this.ns = ns; - this.location = location; - } - - #endregion // Constructors - - #region Properties - - public string Location { - get { return location; } - set { location = value; } - } - - public string Name { - get { return name; } - set { name = value; } - } - - public string Namespace { - get { return ns; } - set { ns = value; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/System.Web.Services/WebServicesDescriptionAttribute.cs b/mcs/class/System.Web.Services/System.Web.Services/WebServicesDescriptionAttribute.cs deleted file mode 100644 index 84905edc48680..0000000000000 --- a/mcs/class/System.Web.Services/System.Web.Services/WebServicesDescriptionAttribute.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -// System.Web.Services.WebServicesDescriptionAttribute.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using System.ComponentModel; - -namespace System.Web.Services { - [AttributeUsage (AttributeTargets.Property | AttributeTargets.Event)] - internal class WebServicesDescriptionAttribute : DescriptionAttribute { - - #region Constructors - - public WebServicesDescriptionAttribute (string description) - : base (description) - { - } - - #endregion // Constructors - - #region Properties - - public override string Description { - get { return DescriptionValue; } - } - - #endregion // Properties - } -} diff --git a/mcs/class/System.Web.Services/Test/AllTests.cs b/mcs/class/System.Web.Services/Test/AllTests.cs deleted file mode 100644 index 9a3c8081da616..0000000000000 --- a/mcs/class/System.Web.Services/Test/AllTests.cs +++ /dev/null @@ -1,24 +0,0 @@ -// MonoTests.AllTests, System.Web.Services.dll -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 - -using NUnit.Framework; - -namespace MonoTests { - public class AllTests : TestCase { - public AllTests (string name) : base (name) {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (System.Web.Services.AllTests.Suite); - suite.AddTest (System.Web.Services.Configuration.AllTests.Suite); - suite.AddTest (System.Web.Services.Discovery.AllTests.Suite); - return suite; - } - } - } -} diff --git a/mcs/class/System.Web.Services/Test/ChangeLog b/mcs/class/System.Web.Services/Test/ChangeLog deleted file mode 100644 index b4524c71d1091..0000000000000 --- a/mcs/class/System.Web.Services/Test/ChangeLog +++ /dev/null @@ -1,10 +0,0 @@ -2002-08-09 Tim Coleman - * AllTests.cs: - New test suites added. - -2002-08-07 Tim Coleman - * AllTests.cs: - * ChangeLog: - * System.Web.Services: - * System.Web.Services_test.build: - New files and directories added for test suite. diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/AllTests.cs b/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/AllTests.cs deleted file mode 100644 index f3446f66ed10b..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/AllTests.cs +++ /dev/null @@ -1,22 +0,0 @@ -// MonoTests.System.Web.Services.Configuration.AllTests, System.Web.Services.dll -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 - -using NUnit.Framework; - -namespace MonoTests.System.Web.Services.Configuration { - public class AllTests : TestCase { - public AllTests (string name) : base (name) {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (XmlFormatExtensionAttributeTest.Suite); - return suite; - } - } - } -} diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/ChangeLog b/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/ChangeLog deleted file mode 100644 index d5a0ded96ed99..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/ChangeLog +++ /dev/null @@ -1,5 +0,0 @@ -2002-08-09 Tim Coleman - * AllTests.cs: - * ChangeLog: - * XmlFormatExtensionAttributeTest.cs: - New files added for test suite. diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/XmlFormatExtensionAttributeTest.cs b/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/XmlFormatExtensionAttributeTest.cs deleted file mode 100644 index f0abcb24ad5c6..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services.Configuration/XmlFormatExtensionAttributeTest.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// MonoTests.System.Web.Services.Configuration.XmlFormatExtensionAttributeTest.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using NUnit.Framework; -using System; -using System.Web.Services.Configuration; -using System.Web.Services.Description; - -namespace MonoTests.System.Web.Services.Configuration { - - public class XmlFormatExtensionAttributeTest : TestCase { - - public XmlFormatExtensionAttributeTest () : - base ("[MonoTests.System.Web.Services.Configuration.XmlFormatExtensionAttributeTest]") - { - } - - public XmlFormatExtensionAttributeTest (string name) : - base (name) - { - } - - protected override void SetUp () - { - } - - protected override void TearDown () - { - } - - public static ITest Suite { - get { return new TestSuite (typeof (XmlFormatExtensionAttributeTest)); } - } - - public void TestConstructors () - { - XmlFormatExtensionAttribute attribute; - - attribute = new XmlFormatExtensionAttribute (); - AssertEquals (String.Empty, attribute.ElementName); - AssertEquals (null, attribute.ExtensionPoints); - AssertEquals (String.Empty, attribute.Namespace); - - string elementName = "binding"; - string ns = "http://schemas.xmlsoap.org/wsdl/http/"; - Type[] types = new Type[4] {typeof (Binding), typeof (Binding), typeof (Binding), typeof (Binding)}; - - attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0]); - AssertEquals (elementName, attribute.ElementName); - AssertEquals (new Type[1] {types[0]}, attribute.ExtensionPoints); - AssertEquals (ns, attribute.Namespace); - - attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0], types[1]); - AssertEquals (elementName, attribute.ElementName); - AssertEquals (new Type[2] {types[0], types[1]}, attribute.ExtensionPoints); - AssertEquals (ns, attribute.Namespace); - - attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0], types[1], types[2]); - AssertEquals (elementName, attribute.ElementName); - AssertEquals (new Type[3] {types[0], types[1], types[2]}, attribute.ExtensionPoints); - AssertEquals (ns, attribute.Namespace); - - attribute = new XmlFormatExtensionAttribute (elementName, ns, types[0], types[1], types[2], types[3]); - AssertEquals (elementName, attribute.ElementName); - AssertEquals (new Type[4] {types[0], types[1], types[2], types[3]}, attribute.ExtensionPoints); - AssertEquals (ns, attribute.Namespace); - - attribute = new XmlFormatExtensionAttribute (elementName, ns, types); - AssertEquals (elementName, attribute.ElementName); - AssertEquals (types, attribute.ExtensionPoints); - AssertEquals (ns, attribute.Namespace); - } - } -} diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/AllTests.cs b/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/AllTests.cs deleted file mode 100644 index 40f2594a8389e..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/AllTests.cs +++ /dev/null @@ -1,22 +0,0 @@ -// MonoTests.System.Web.Services.Discovery.AllTests, System.Web.Services.dll -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 - -using NUnit.Framework; - -namespace MonoTests.System.Web.Services.Discovery { - public class AllTests : TestCase { - public AllTests (string name) : base (name) {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (ContractReferenceTest.Suite); - return suite; - } - } - } -} diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ChangeLog b/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ChangeLog deleted file mode 100644 index 2f04b932891c1..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ChangeLog +++ /dev/null @@ -1,5 +0,0 @@ -2002-08-09 Tim Coleman - * AllTests.cs: - * ChangeLog: - * ContractReferenceTest.cs: - New files added for test suite. diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ContractReferenceTest.cs b/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ContractReferenceTest.cs deleted file mode 100644 index b45b89f7578cd..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services.Discovery/ContractReferenceTest.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// MonoTests.System.Web.Services.Discovery.ContractReferenceTest.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using NUnit.Framework; -using System; -using System.Web.Services.Discovery; - -namespace MonoTests.System.Web.Services.Discovery { - - public class ContractReferenceTest : TestCase { - - public ContractReferenceTest () : - base ("[MonoTests.System.Web.Services.Discovery.ContractReferenceTest]") - { - } - - public ContractReferenceTest (string name) : - base (name) - { - } - - protected override void SetUp () - { - } - - protected override void TearDown () - { - } - - public static ITest Suite { - get { return new TestSuite (typeof (ContractReferenceTest)); } - } - - public void TestConstructors () - { - ContractReference contractReference; - - contractReference = new ContractReference (); - AssertEquals (String.Empty, contractReference.DocRef); - AssertEquals (String.Empty, contractReference.Ref); - AssertEquals (String.Empty, contractReference.Url); - } - - public void TestConstants () - { - AssertEquals ("http://schemas.xmlsoap.org/disco/scl/", ContractReference.Namespace); - } - } -} diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services/AllTests.cs b/mcs/class/System.Web.Services/Test/System.Web.Services/AllTests.cs deleted file mode 100644 index 625b6e62818c0..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services/AllTests.cs +++ /dev/null @@ -1,23 +0,0 @@ -// MonoTests.System.Web.Services.AllTests, System.Web.Services.dll -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 - -using NUnit.Framework; - -namespace MonoTests.System.Web.Services { - public class AllTests : TestCase { - public AllTests (string name) : base (name) {} - - public static ITest Suite { - get { - TestSuite suite = new TestSuite (); - suite.AddTest (WebMethodAttributeTest.Suite); - suite.AddTest (WebServiceAttributeTest.Suite); - return suite; - } - } - } -} diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services/ChangeLog b/mcs/class/System.Web.Services/Test/System.Web.Services/ChangeLog deleted file mode 100644 index 17f6b9b74fd39..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services/ChangeLog +++ /dev/null @@ -1,6 +0,0 @@ -2002-08-07 Tim Coleman - * AllTests.cs: - * ChangeLog: - * WebMethodAttributeTest.cs: - * WebServiceAttributeTest.cs: - New files and directories added for test suite. diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services/WebMethodAttributeTest.cs b/mcs/class/System.Web.Services/Test/System.Web.Services/WebMethodAttributeTest.cs deleted file mode 100644 index ad9dddad91243..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services/WebMethodAttributeTest.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// MonoTests.System.Web.Services.WebMethodAttributeTest.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using NUnit.Framework; -using System; -using System.Web.Services; -using System.EnterpriseServices; - -namespace MonoTests.System.Web.Services { - - public class WebMethodAttributeTest : TestCase { - - public WebMethodAttributeTest () : - base ("[MonoTests.System.Web.Services.WebMethodAttributeTest]") - { - } - - public WebMethodAttributeTest (string name) : - base (name) - { - } - - protected override void SetUp () - { - } - - protected override void TearDown () - { - } - - public static ITest Suite { - get { return new TestSuite (typeof (WebMethodAttributeTest)); } - } - - public void TestConstructors () - { - WebMethodAttribute attribute; - - attribute = new WebMethodAttribute (); - AssertEquals (true, attribute.BufferResponse); - AssertEquals (0, attribute.CacheDuration); - AssertEquals (String.Empty, attribute.Description); - AssertEquals (false, attribute.EnableSession); - AssertEquals (String.Empty, attribute.MessageName); - AssertEquals (TransactionOption.Disabled, attribute.TransactionOption); - } - } -} diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services/WebServiceAttributeTest.cs b/mcs/class/System.Web.Services/Test/System.Web.Services/WebServiceAttributeTest.cs deleted file mode 100644 index 6979fae6214b1..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services/WebServiceAttributeTest.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// MonoTests.System.Web.Services.WebServiceAttributeTest.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -using NUnit.Framework; -using System; -using System.Web.Services; - -namespace MonoTests.System.Web.Services { - - public class WebServiceAttributeTest : TestCase { - - public WebServiceAttributeTest () : - base ("[MonoTests.System.Web.Services.WebServiceAttributeTest]") - { - } - - public WebServiceAttributeTest (string name) : - base (name) - { - } - - protected override void SetUp () - { - } - - protected override void TearDown () - { - } - - public static ITest Suite { - get { return new TestSuite (typeof (WebServiceAttributeTest)); } - } - - public void TestConstructors () - { - WebServiceAttribute attribute; - - attribute = new WebServiceAttribute (); - AssertEquals (String.Empty, attribute.Description); - AssertEquals (String.Empty, attribute.Name); - AssertEquals ("http://tempuri.org/", attribute.Namespace); - } - } -} diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services_test.build b/mcs/class/System.Web.Services/Test/System.Web.Services_test.build deleted file mode 100644 index caffa2b496d1b..0000000000000 --- a/mcs/class/System.Web.Services/Test/System.Web.Services_test.build +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mcs/class/System.Web.Services/list b/mcs/class/System.Web.Services/list deleted file mode 100644 index a39f20420d2bc..0000000000000 --- a/mcs/class/System.Web.Services/list +++ /dev/null @@ -1,149 +0,0 @@ -System.Web.Services/TODOAttribute.cs -System.Web.Services/WebMethodAttribute.cs -System.Web.Services/WebService.cs -System.Web.Services/WebServiceAttribute.cs -System.Web.Services/WebServiceBindingAttribute.cs -System.Web.Services/WebServicesDescriptionAttribute.cs -System.Web.Services.Configuration/XmlFormatExtensionAttribute.cs -System.Web.Services.Configuration/XmlFormatExtensionPointAttribute.cs -System.Web.Services.Configuration/XmlFormatExtensionPrefixAttribute.cs -System.Web.Services.Description/Binding.cs -System.Web.Services.Description/BindingCollection.cs -System.Web.Services.Description/DocumentableItem.cs -System.Web.Services.Description/FaultBinding.cs -System.Web.Services.Description/FaultBindingCollection.cs -System.Web.Services.Description/HttpAddressBinding.cs -System.Web.Services.Description/HttpBinding.cs -System.Web.Services.Description/HttpOperationBinding.cs -System.Web.Services.Description/HttpUrlEncodedBinding.cs -System.Web.Services.Description/HttpUrlReplacementBinding.cs -System.Web.Services.Description/Import.cs -System.Web.Services.Description/ImportCollection.cs -System.Web.Services.Description/InputBinding.cs -System.Web.Services.Description/Message.cs -System.Web.Services.Description/MessageBinding.cs -System.Web.Services.Description/MessageCollection.cs -System.Web.Services.Description/MessagePart.cs -System.Web.Services.Description/MessagePartCollection.cs -System.Web.Services.Description/MimeContentBinding.cs -System.Web.Services.Description/MimeMultipartRelatedBinding.cs -System.Web.Services.Description/MimePart.cs -System.Web.Services.Description/MimePartCollection.cs -System.Web.Services.Description/MimeTextBinding.cs -System.Web.Services.Description/MimeTextMatch.cs -System.Web.Services.Description/MimeTextMatchCollection.cs -System.Web.Services.Description/MimeXmlBinding.cs -System.Web.Services.Description/Operation.cs -System.Web.Services.Description/OperationBinding.cs -System.Web.Services.Description/OperationBindingCollection.cs -System.Web.Services.Description/OperationCollection.cs -System.Web.Services.Description/OperationFault.cs -System.Web.Services.Description/OperationFaultCollection.cs -System.Web.Services.Description/OperationFlow.cs -System.Web.Services.Description/OperationInput.cs -System.Web.Services.Description/OperationMessage.cs -System.Web.Services.Description/OperationMessageCollection.cs -System.Web.Services.Description/OperationOutput.cs -System.Web.Services.Description/OutputBinding.cs -System.Web.Services.Description/Port.cs -System.Web.Services.Description/PortCollection.cs -System.Web.Services.Description/PortType.cs -System.Web.Services.Description/PortTypeCollection.cs -System.Web.Services.Description/ProtocolImporter.cs -System.Web.Services.Description/ProtocolReflector.cs -System.Web.Services.Description/Service.cs -System.Web.Services.Description/ServiceCollection.cs -System.Web.Services.Description/ServiceDescription.cs -System.Web.Services.Description/ServiceDescriptionBaseCollection.cs -System.Web.Services.Description/ServiceDescriptionCollection.cs -System.Web.Services.Description/ServiceDescriptionFormatExtension.cs -System.Web.Services.Description/ServiceDescriptionFormatExtensionCollection.cs -System.Web.Services.Description/ServiceDescriptionImportStyle.cs -System.Web.Services.Description/ServiceDescriptionImportWarnings.cs -System.Web.Services.Description/ServiceDescriptionImporter.cs -System.Web.Services.Description/ServiceDescriptionReflector.cs -System.Web.Services.Description/SoapAddressBinding.cs -System.Web.Services.Description/SoapBinding.cs -System.Web.Services.Description/SoapBindingStyle.cs -System.Web.Services.Description/SoapBindingUse.cs -System.Web.Services.Description/SoapBodyBinding.cs -System.Web.Services.Description/SoapExtensionImporter.cs -System.Web.Services.Description/SoapExtensionReflector.cs -System.Web.Services.Description/SoapFaultBinding.cs -System.Web.Services.Description/SoapHeaderBinding.cs -System.Web.Services.Description/SoapOperationBinding.cs -System.Web.Services.Description/SoapHeaderFaultBinding.cs -System.Web.Services.Description/SoapProtocolImporter.cs -System.Web.Services.Description/SoapProtocolReflector.cs -System.Web.Services.Description/SoapTransportImporter.cs -System.Web.Services.Description/Types.cs -System.Web.Services.Protocols/AnyReturnReader.cs -System.Web.Services.Protocols/HtmlFormParameterReader.cs -System.Web.Services.Protocols/HtmlFormParameterWriter.cs -System.Web.Services.Protocols/HttpGetClientProtocol.cs -System.Web.Services.Protocols/HttpMethodAttribute.cs -System.Web.Services.Protocols/HttpPostClientProtocol.cs -System.Web.Services.Protocols/HttpSimpleClientProtocol.cs -System.Web.Services.Protocols/HttpWebClientProtocol.cs -System.Web.Services.Protocols/LogicalMethodInfo.cs -System.Web.Services.Protocols/LogicalMethodTypes.cs -System.Web.Services.Protocols/MatchAttribute.cs -System.Web.Services.Protocols/MimeFormatter.cs -System.Web.Services.Protocols/MimeParameterReader.cs -System.Web.Services.Protocols/MimeParameterWriter.cs -System.Web.Services.Protocols/MimeReturnReader.cs -System.Web.Services.Protocols/NopReturnReader.cs -System.Web.Services.Protocols/PatternMatcher.cs -System.Web.Services.Protocols/ServerProtocol.cs -System.Web.Services.Protocols/SoapClientMessage.cs -System.Web.Services.Protocols/SoapClientMethod.cs -System.Web.Services.Protocols/SoapDocumentMethodAttribute.cs -System.Web.Services.Protocols/SoapDocumentServiceAttribute.cs -System.Web.Services.Protocols/SoapException.cs -System.Web.Services.Protocols/SoapExtension.cs -System.Web.Services.Protocols/SoapExtensionAttribute.cs -System.Web.Services.Protocols/SoapHeader.cs -System.Web.Services.Protocols/SoapHeaderAttribute.cs -System.Web.Services.Protocols/SoapHeaderCollection.cs -System.Web.Services.Protocols/SoapHeaderDirection.cs -System.Web.Services.Protocols/SoapHeaderException.cs -System.Web.Services.Protocols/SoapHttpClientProtocol.cs -System.Web.Services.Protocols/SoapMessage.cs -System.Web.Services.Protocols/SoapMessageStage.cs -System.Web.Services.Protocols/SoapParameterStyle.cs -System.Web.Services.Protocols/SoapRpcMethodAttribute.cs -System.Web.Services.Protocols/SoapRpcServiceAttribute.cs -System.Web.Services.Protocols/SoapServerMessage.cs -System.Web.Services.Protocols/SoapServerProtocol.cs -System.Web.Services.Protocols/SoapServiceRoutingStyle.cs -System.Web.Services.Protocols/SoapUnknownHeader.cs -System.Web.Services.Protocols/TextReturnReader.cs -System.Web.Services.Protocols/UrlEncodedParameterWriter.cs -System.Web.Services.Protocols/UrlParameterReader.cs -System.Web.Services.Protocols/UrlParameterWriter.cs -System.Web.Services.Protocols/ValueCollectionParameterReader.cs -System.Web.Services.Protocols/WebClientAsyncResult.cs -System.Web.Services.Protocols/WebClientProtocol.cs -System.Web.Services.Protocols/WebServiceHandlerFactory.cs -System.Web.Services.Protocols/XmlReturnReader.cs -System.Web.Services.Discovery/ContractReference.cs -System.Web.Services.Discovery/ContractSearchPattern.cs -System.Web.Services.Discovery/DiscoveryClientDocumentCollection.cs -System.Web.Services.Discovery/DiscoveryClientProtocol.cs -System.Web.Services.Discovery/DiscoveryClientReferenceCollection.cs -System.Web.Services.Discovery/DiscoveryClientResultCollection.cs -System.Web.Services.Discovery/DiscoveryClientResult.cs -System.Web.Services.Discovery/DiscoveryDocument.cs -System.Web.Services.Discovery/DiscoveryDocumentLinksPattern.cs -System.Web.Services.Discovery/DiscoveryDocumentReference.cs -System.Web.Services.Discovery/DiscoveryDocumentSearchPattern.cs -System.Web.Services.Discovery/DiscoveryExceptionDictionary.cs -System.Web.Services.Discovery/DiscoveryReferenceCollection.cs -System.Web.Services.Discovery/DiscoveryReference.cs -System.Web.Services.Discovery/DiscoveryRequestHandler.cs -System.Web.Services.Discovery/DiscoverySearchPattern.cs -System.Web.Services.Discovery/DynamicDiscoveryDocument.cs -System.Web.Services.Discovery/ExcludePathInfo.cs -System.Web.Services.Discovery/SchemaReference.cs -System.Web.Services.Discovery/SoapBinding.cs -System.Web.Services.Discovery/XmlSchemaSearchPattern.cs diff --git a/mcs/class/System.Web.Services/makefile.gnu b/mcs/class/System.Web.Services/makefile.gnu deleted file mode 100644 index 73481074326b3..0000000000000 --- a/mcs/class/System.Web.Services/makefile.gnu +++ /dev/null @@ -1,13 +0,0 @@ -topdir = ../.. - -LIBRARY = ../lib/System.Web.Services.dll - -LIB_LIST = list -LIB_FLAGS = -r corlib -r System.Xml -r System.EnterpriseServices -r System.Web -r System - -SOURCES_INCLUDE=*.cs -SOURCES_EXCLUDE=./Test* - -export MONO_PATH_PREFIX = ../lib: - -include ../library.make diff --git a/mcs/class/System.Web/.cvsignore b/mcs/class/System.Web/.cvsignore deleted file mode 100644 index 37b5b818133ed..0000000000000 --- a/mcs/class/System.Web/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -Temp.build -*.dll -lib -makefile -.makefrag -.response diff --git a/mcs/class/System.Web/ChangeLog b/mcs/class/System.Web/ChangeLog deleted file mode 100644 index 9f00c239f2266..0000000000000 --- a/mcs/class/System.Web/ChangeLog +++ /dev/null @@ -1,132 +0,0 @@ -2002-08-05 Patrik Torstensson - * list: - Add System.Web/ApplicationFactory.cs - Add System.Web/HttpAsyncResult.cs - Add System.Web.Configuration/GlobalizationConfiguration.cs - Add System.Web.Configuration/HandlerFactoryConfiguration.cs - Add System.Web.Configuration/HandlerFactoryProxy.cs - Add System.Web.Configuration/HandlerItem.cs - Add System.Web.Configuration/ModuleItem.cs - Add System.Web.Configuration/ModulesConfiguration.cs - -2002-07-24 Tim Coleman - * list: - Add System.Web/ProcessInfo.cs - Add System.Web/HttpCompileException.cs - Add System.Web/HttpParseException.cs - Add System.Web/HttpUnhandledException.cs - -2002-07-12 Gonzalo Paniagua Javier - - * list: added some more files from System.Web.Hosting. - -2002-07-12 Gonzalo Paniagua Javier - - * System.Web.build: removed some more excludes. - -2002-07-05 Gonzalo Paniagua Javier - - * list: updated. Currently mcs cannot compile System.Web because it - cannot find NameObjectCollectionBase.KeysCollection. - - * System.Web.build: don't display unused event nor always default value - warnings by now. - -2002-06-20 Gonzalo Paniagua Javier - - * list: updated and reformatted. - -2002-06-05 Gonzalo Paniagua Javier - - * System.Web.build: added /debug flag. I wanna see line numbers in - exceptions thrown. - -2002-06-03 Gonzalo Paniagua Javier - - * System.Web.Security: - * System.Web.SessionState: new directories. - -2002-05-17 Duncan Mak - - * System.Web.build: Added new arguments: "/noconfig", - "/r:System.Drawing.dll" and "/r:System.Xml.dll". - -2002-05-10 Duncan Mak - - * System.Web.build: Include the System.Web.UI.HtmlControls namespace. - - * Page.cs: - * ValidatorCollection.cs: Stubs to make things compile for - now. Added one dummy method (RegisterClientScriptFile) that's used - in the existing codebase, but not in MS docs. - -2002-04-26 Lawrence Pit - - * Added directory: System.Web.Mail - -2002-04-10 Patrik Torstensson - - * System.Web -- Assembly build. - - The basic runtime support is now working, we can now start working - on the runtime flow system (thread pool etc) and also start testing - the parser and control framework. (224 files are compiled) - -2002-03-26 Gaurav Vaish - - * System.Web.Security: Removed all files. Will do it later. - May be someone else like to do it for the time being. - -2002-03-17 Gaurav Vaish - - * System.Web -- Assembly build. - Another milestone reached. Compiled 195 classes successfully. - Build includes System.Web.UI.WebControls and all the dependencies - for the namespace. - -2002-03-05 Gaurav Vaish - - * System.Web.Security: Added directory. - -2002-03-04 Gaurav Vaish - - * System.Web.UI.WebContorls: Virtually complete. See - System.Web.UI.WebControls/ChangeLog for a comprehensensive - description of what's left and where. But, don't go for - a build at this stage. There are a few classes left in - System.Web namespace that need to be filled-up, though - I will try to fix up the current state to be able to make - a build. - -2001-12-20 Gaurav Vaish - - Did first successful build of System.Web.dll that included - System.Web.UI.WebControls namespace. Though, not updating - the System.Web.build file, since with the changes that - followed, the build again fails :( - -2001-11-30 Gaurav Vaish - - * System.Web.WebUtils: Removed - * System.Web.Utils : Added --- replacement of WebUtils - -2001-11-08 Gaurav Vaish - - * System.Web.WebUtils: Added directory - -2001-08-22 Bob Smith - - * Added directory: System.Web.UI.HtmlControls - * Added directory: Test - -2001-08-17 Bob Smith - - * Added directory: System.Web.UI - -2001-08-09 Bob Smith - - * Added directory: System.Web - -2001-07-20 Patrik Torstensson (Patrik.Torstensson@labs2.com) - - * Added directory: System.Web.Caching diff --git a/mcs/class/System.Web/System.Web.Caching/Cache.cs b/mcs/class/System.Web/System.Web.Caching/Cache.cs deleted file mode 100644 index 5e331aa43c480..0000000000000 --- a/mcs/class/System.Web/System.Web.Caching/Cache.cs +++ /dev/null @@ -1,520 +0,0 @@ -// -// System.Web.Caching -// -// Author: -// Patrik Torstensson (Patrik.Torstensson@labs2.com) -// -// (C) Copyright Patrik Torstensson, 2001 -// -namespace System.Web.Caching -{ - /// - /// Implements a cache for Web applications and other. The difference from the MS.NET implementation is that we - /// support to use the Cache object as cache in our applications. - /// - /// - /// The Singleton cache is created per application domain, and it remains valid as long as the application domain remains active. - /// - /// - /// Usage of the singleton cache: - /// - /// Cache objManager = Cache.SingletonCache; - /// - /// String obj = "tobecached"; - /// objManager.Add("kalle", obj); - /// - public class Cache : System.Collections.IEnumerable, System.IDisposable - { - // Declarations - - // MS.NET Does only have the cache connected to the HttpRuntime and we don't have the HttpRuntime (yet) - static Cache objSingletonCache = new Cache(); - - private bool _boolDisposed; - - // Helper objects - private CacheExpires _objExpires; - - // The data storage - // Todo: Make a specialized storage for the cache entries? - // todo: allow system to replace the storage? - private System.Collections.Hashtable _arrEntries; - private System.Threading.ReaderWriterLock _lockEntries; - - static private System.TimeSpan _datetimeOneYear = System.TimeSpan.FromDays(365); - - // Number of items in the cache - private long _longItems; - - // Constructor - public Cache() - { - _boolDisposed = false; - _longItems = 0; - - _lockEntries = new System.Threading.ReaderWriterLock(); - _arrEntries = new System.Collections.Hashtable(); - - _objExpires = new CacheExpires(this); - } - - // Public methods and properties - - // - /// - /// Returns a static version of the cache. In MS.NET the cache is stored in the System.Web.HttpRuntime - /// but we keep it here as a singleton (right now anyway). - /// - public static Cache SingletonCache - { - get - { - if (objSingletonCache == null) - { - throw new System.InvalidOperationException(); - } - - return objSingletonCache; - } - } - - /// - /// Used in the absoluteExpiration parameter in an Insert method call to indicate the item should never expire. This field is read-only. - /// - public static readonly System.DateTime NoAbsoluteExpiration = System.DateTime.MaxValue; - - /// - /// Used as the slidingExpiration parameter in an Insert method call to disable sliding expirations. This field is read-only. - /// - public static readonly System.TimeSpan NoSlidingExpiration = System.TimeSpan.Zero; - - /// - /// Internal method to create a enumerator and over all public items in the cache and is used by GetEnumerator method. - /// - /// Returns IDictionaryEnumerator that contains all public items in the cache - private System.Collections.IDictionaryEnumerator CreateEnumerator() - { - System.Collections.Hashtable objTable; - - _lockEntries.AcquireReaderLock(int.MaxValue); - try - { - // Create a new hashtable to return as collection of public items - objTable = new System.Collections.Hashtable(_arrEntries.Count); - - foreach(System.Collections.DictionaryEntry objEntry in _arrEntries) - { - if (objEntry.Key != null) - { - // Check if this is a public entry - if (((CacheEntry) objEntry.Value).TestFlag(CacheEntry.Flags.Public)) - { - // Add to the collection - objTable.Add(objEntry.Key, ((CacheEntry) objEntry.Value).Item); - } - } - } - } - finally - { - _lockEntries.ReleaseReaderLock(); - } - - return objTable.GetEnumerator(); - } - - /// - /// Implementation of IEnumerable interface and calls the GetEnumerator that returns - /// IDictionaryEnumerator. - /// - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - - /// - /// Virtual override of the IEnumerable.GetEnumerator() method, returns a specialized enumerator. - /// - public virtual System.Collections.IDictionaryEnumerator GetEnumerator() - { - return CreateEnumerator(); - } - - /// - /// Touches a object in the cache. Used to update expire time and hit count. - /// - /// The identifier for the cache item to retrieve. - public void Touch(string strKey) - { - // Just touch the object - Get(strKey); - } - - /// - /// Adds the specified item to the Cache object with dependencies, expiration and priority policies, and a - /// delegate you can use to notify your application when the inserted item is removed from the Cache. - /// - /// The cache key used to reference the item. - /// The item to be added to the cache. - /// The file or cache key dependencies for the item. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies, this paramter contains a null reference. - /// The time at which the added object expires and is removed from the cache. - /// The interval between the time the added object was last accessed and when that object expires. If this value is the equivalent of 20 minutes, the object expires and is removed from the cache 20 minutes after it is last accessed. - /// The relative cost of the object, as expressed by the CacheItemPriority enumeration. The cache uses this value when it evicts objects; objects with a lower cost are removed from the cache before objects with a higher cost. - /// The rate at which an object in the cache decays in importance. Objects that decay quickly are more likely to be removed. - /// A delegate that, if provided, is called when an object is removed from the cache. You can use this to notify applications when their objects are deleted from the cache. - /// The Object item added to the Cache. - public object Add(string strKey, object objItem, CacheDependency objDependency, System.DateTime absolutExpiration, System.TimeSpan slidingExpiration, CacheItemPriority enumPriority, CacheItemPriorityDecay enumPriorityDecay, CacheItemRemovedCallback eventRemoveCallback) - { - if (_boolDisposed) - { - throw new System.ObjectDisposedException("System.Web.Cache"); - } - - if (strKey == null) - { - throw new System.ArgumentNullException("strKey"); - } - - if (objItem == null) - { - throw new System.ArgumentNullException("objItem"); - } - - if (slidingExpiration > _datetimeOneYear) - { - throw new System.ArgumentOutOfRangeException("slidingExpiration"); - } - - CacheEntry objEntry; - CacheEntry objNewEntry; - - long longHitRange = 10000; - - // todo: check decay and make up the minHit range - - objEntry = new CacheEntry(this, strKey, objItem, objDependency, eventRemoveCallback, absolutExpiration, slidingExpiration, longHitRange, true, enumPriority); - - System.Threading.Interlocked.Increment(ref _longItems); - - // If we have any kind of expiration add into the CacheExpires class - if (objEntry.HasSlidingExpiration || objEntry.HasAbsoluteExpiration) - { - // Add it to CacheExpires - _objExpires.Add(objEntry); - } - - // Check and get the new item.. - objNewEntry = UpdateCache(strKey, objEntry, true, CacheItemRemovedReason.Removed); - - if (objNewEntry != null) - { - // Return added item - return objEntry.Item; - } - else - { - return null; - } - } - - /// - /// Inserts an item into the Cache object with a cache key to reference its location and using default values - /// provided by the CacheItemPriority and CacheItemPriorityDecay enumerations. - /// - /// The cache key used to reference the item. - /// The item to be added to the cache. - public void Insert(string strKey, object objItem) - { - Add(strKey, objItem, null, System.DateTime.MaxValue, System.TimeSpan.Zero, CacheItemPriority.Default, CacheItemPriorityDecay.Default, null); - } - - /// - /// Inserts an object into the Cache that has file or key dependencies. - /// - /// The cache key used to reference the item. - /// The item to be added to the cache. - /// The file or cache key dependencies for the item. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies, this paramter contains a null reference. - public void Insert(string strKey, object objItem, CacheDependency objDependency) - { - Add(strKey, objItem, objDependency, System.DateTime.MaxValue, System.TimeSpan.Zero, CacheItemPriority.Default, CacheItemPriorityDecay.Default, null); - } - - /// - /// Inserts an object into the Cache with dependencies and expiration policies. - /// - /// The cache key used to reference the item. - /// The item to be added to the cache. - /// The file or cache key dependencies for the item. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies, this paramter contains a null reference. - /// The time at which the added object expires and is removed from the cache. - /// The interval between the time the added object was last accessed and when that object expires. If this value is the equivalent of 20 minutes, the object expires and is removed from the cache 20 minutes after it is last accessed. - public void Insert(string strKey, object objItem, CacheDependency objDependency, System.DateTime absolutExpiration, System.TimeSpan slidingExpiration) - { - Add(strKey, objItem, objDependency, absolutExpiration, slidingExpiration, CacheItemPriority.Default, CacheItemPriorityDecay.Default, null); - } - - /// - /// Inserts an object into the Cache object with dependencies, expiration and priority policies, and a delegate - /// you can use to notify your application when the inserted item is removed from the Cache. - /// - /// The cache key used to reference the item. - /// The item to be added to the cache. - /// The file or cache key dependencies for the item. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies, this paramter contains a null reference. - /// The time at which the added object expires and is removed from the cache. - /// The interval between the time the added object was last accessed and when that object expires. If this value is the equivalent of 20 minutes, the object expires and is removed from the cache 20 minutes after it is last accessed. - /// The relative cost of the object, as expressed by the CacheItemPriority enumeration. The cache uses this value when it evicts objects; objects with a lower cost are removed from the cache before objects with a higher cost. - /// The rate at which an object in the cache decays in importance. Objects that decay quickly are more likely to be removed. - /// A delegate that, if provided, is called when an object is removed from the cache. You can use this to notify applications when their objects are deleted from the cache. - public void Insert(string strKey, object objItem, CacheDependency objDependency, System.DateTime absolutExpiration, System.TimeSpan slidingExpiration, CacheItemPriority enumPriority, CacheItemPriorityDecay enumPriorityDecay, CacheItemRemovedCallback eventRemoveCallback) - { - Add(strKey, objItem, objDependency, absolutExpiration, slidingExpiration, enumPriority, enumPriorityDecay, eventRemoveCallback); - } - - /// - /// Removes the specified item from the Cache object. - /// - /// The cache key for the cache item to remove. - /// The item removed from the Cache. If the value in the key parameter is not found, returns a null reference. - public object Remove(string strKey) - { - return Remove(strKey, CacheItemRemovedReason.Removed); - } - - /// - /// Internal method that updates the cache, decremenents the number of existing items and call close on the cache entry. This method - /// is also used from the ExpiresBuckets class to remove an item during GC flush. - /// - /// The cache key for the cache item to remove. - /// Reason why the item is removed. - /// The item removed from the Cache. If the value in the key parameter is not found, returns a null reference. - internal object Remove(string strKey, CacheItemRemovedReason enumReason) - { - CacheEntry objEntry = UpdateCache(strKey, null, true, enumReason); - - if (objEntry != null) - { - System.Threading.Interlocked.Decrement(ref _longItems); - - // Close the cache entry (calls the remove delegate) - objEntry.Close(enumReason); - - return objEntry.Item; - } else - { - return null; - } - } - - /// - /// Retrieves the specified item from the Cache object. - /// - /// The identifier for the cache item to retrieve. - /// The retrieved cache item, or a null reference. - public object Get(string strKey) - { - CacheEntry objEntry = UpdateCache(strKey, null, false, CacheItemRemovedReason.Expired); - - if (objEntry == null) - { - return null; - } else - { - return objEntry.Item; - } - } - - /// - /// Internal method used for removing, updating and adding CacheEntries into the cache. - /// - /// The identifier for the cache item to modify - /// CacheEntry to use for overwrite operation, if this parameter is null and overwrite true the item is going to be removed - /// If true the objEntry parameter is used to overwrite the strKey entry - /// Reason why an item was removed - /// - private CacheEntry UpdateCache(string strKey, CacheEntry objEntry, bool boolOverwrite, CacheItemRemovedReason enumReason) - { - if (_boolDisposed) - { - throw new System.ObjectDisposedException("System.Web.Cache", "Can't update item(s) in a disposed cache"); - } - - if (strKey == null) - { - throw new System.ArgumentNullException("System.Web.Cache"); - } - - long ticksNow = System.DateTime.Now.Ticks; - long ticksExpires = long.MaxValue; - - bool boolGetItem = false; - bool boolExpiried = false; - bool boolWrite = false; - bool boolRemoved = false; - - // Are we getting the item from the hashtable - if (boolOverwrite == false && strKey.Length > 0 && objEntry == null) - { - boolGetItem = true; - } - - // TODO: Optimize this method, move out functionality outside the lock - _lockEntries.AcquireReaderLock(int.MaxValue); - try - { - if (boolGetItem) - { - objEntry = (CacheEntry) _arrEntries[strKey]; - if (objEntry == null) - { - return null; - } - } - - if (objEntry != null) - { - // Check if we have expired - if (objEntry.HasSlidingExpiration || objEntry.HasAbsoluteExpiration) - { - if (objEntry.Expires < ticksNow) - { - // We have expired, remove the item from the cache - boolWrite = true; - boolExpiried = true; - } - } - } - - // Check if we going to modify the hashtable - if (boolWrite || (boolOverwrite && !boolExpiried)) - { - // Upgrade our lock to write - System.Threading.LockCookie objCookie = _lockEntries.UpgradeToWriterLock(int.MaxValue); - try - { - // Check if we going to just modify an existing entry (or add) - if (boolOverwrite && objEntry != null) - { - _arrEntries[strKey] = objEntry; - } - else - { - // We need to remove the item, fetch the item first - objEntry = (CacheEntry) _arrEntries[strKey]; - if (objEntry != null) - { - _arrEntries.Remove(strKey); - } - - boolRemoved = true; - } - } - finally - { - _lockEntries.DowngradeFromWriterLock(ref objCookie); - } - } - - // If the entry haven't expired or been removed update the info - if (!boolExpiried && !boolRemoved) - { - // Update that we got a hit - objEntry.Hits++; - if (objEntry.HasSlidingExpiration) - { - ticksExpires = ticksNow + objEntry.SlidingExpiration; - } - } - } - finally - { - _lockEntries.ReleaseLock(); - - } - - // If the item was removed we need to remove it from the CacheExpired class also - if (boolRemoved) - { - if (objEntry != null) - { - if (objEntry.HasAbsoluteExpiration || objEntry.HasSlidingExpiration) - { - _objExpires.Remove(objEntry); - } - } - - // Return the entry, it's not up to the UpdateCache to call Close on the entry - return objEntry; - } - - // If we have sliding expiration and we have a correct hit, update the expiration manager - if (objEntry.HasSlidingExpiration) - { - _objExpires.Update(objEntry, ticksExpires); - } - - // Return the cache entry - return objEntry; - } - - /// - /// Gets the number of items stored in the cache. - /// - long Count - { - get - { - return _longItems; - } - } - - /// - /// Gets or sets the cache item at the specified key. - /// - public object this[string strKey] - { - get - { - return Get(strKey); - } - - set - { - Insert(strKey, value); - } - } - - /// - /// Called to close the cache when the AppDomain is closing down or the GC has decided it's time to destroy the object. - /// - public void Dispose() - { - _boolDisposed = true; - - _lockEntries.AcquireReaderLock(int.MaxValue); - try - { - foreach(System.Collections.DictionaryEntry objEntry in _arrEntries) - { - if (objEntry.Key != null) - { - // Check if this is active - if ( ((CacheEntry) objEntry.Value).TestFlag(CacheEntry.Flags.Removed) ) - { - try - { - ((CacheEntry) objEntry.Value).Close(CacheItemRemovedReason.Removed); - } - catch (System.Exception objException) - { - System.Diagnostics.Debug.Fail("System.Web.Cache.Dispose() Exception when closing cache entry", "Message: " + objException.Message + " Stack: " + objException.StackTrace + " Source:" + objException.Source); - } - } - } - } - } - finally - { - _lockEntries.ReleaseReaderLock(); - } - } - } -} diff --git a/mcs/class/System.Web/System.Web.Caching/CacheDefinitions.cs b/mcs/class/System.Web/System.Web.Caching/CacheDefinitions.cs deleted file mode 100644 index bde614987aeb4..0000000000000 --- a/mcs/class/System.Web/System.Web.Caching/CacheDefinitions.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// System.Web.Caching -// -// Author: -// Patrik Torstensson (Patrik.Torstensson@labs2.com) -// -// (C) Copyright Patrik Torstensson, 2001 -// -namespace System.Web.Caching -{ - /// - /// Specifies the relative priority of items stored in the Cache. - /// - public enum CacheItemPriority { - Low = 1, - BelowNormal = 2, - Normal = 3, - Default = 3, - AboveNormal = 4, - High = 5, - NotRemovable - } - - /// - /// Specifies the rate at which the priority of items stored in the Cache are downgraded when not accessed frequently. - /// - public enum CacheItemPriorityDecay { - Default, - Fast, - Medium, - Never, - Slow - } - - /// - /// Specifies the reason an item was removed from the Cache. - /// - public enum CacheItemRemovedReason { - Expired = 1, - Removed = 2, - Underused = 3, - DependencyChanged = 4 - } - - /// - /// Defines a callback method for notifying applications when a cached item is removed from the Cache. - /// - /// The index location for the item removed from the cache. - /// The Object item removed from the cache. - /// The reason the item was removed from the cache, as specified by the CacheItemRemovedReason enumeration. - public delegate void CacheItemRemovedCallback(string key, object value, CacheItemRemovedReason reason); - - } diff --git a/mcs/class/System.Web/System.Web.Caching/CacheDependency.cs b/mcs/class/System.Web/System.Web.Caching/CacheDependency.cs deleted file mode 100644 index 68c1a39e623c1..0000000000000 --- a/mcs/class/System.Web/System.Web.Caching/CacheDependency.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// System.Web.Caching -// -// Author: -// Patrik Torstensson (Patrik.Torstensson@labs2.com) -// -// (C) Copyright Patrik Torstensson, 2001 -// -namespace System.Web.Caching -{ - /// - /// Class to handle cache dependency, right now this class is only a mookup - /// - public sealed class CacheDependency : System.IDisposable - { - private bool _boolDisposed; - - public CacheDependency() - { - _boolDisposed = false; - } - - /// - /// Added by gvaish@iitk.ac.in - /// - [MonoTODO("Constructor")] - public CacheDependency(string filename) - { - } - - /// - /// Added by gvaish@iitk.ac.in - /// - [MonoTODO("Constructor")] - public CacheDependency(string[] filenames, string[] cachekeys) - { - } - - public delegate void CacheDependencyCallback(CacheDependency objDependency); - - public event CacheDependencyCallback Changed; - - public void OnChanged() - { - if (_boolDisposed) - { - throw new System.ObjectDisposedException("System.Web.CacheDependency"); - } - - if (Changed != null) - { - Changed(this); - } - } - - public bool IsDisposed - { - get - { - return _boolDisposed; - } - } - - public bool HasEvents - { - get - { - if (_boolDisposed) - { - throw new System.ObjectDisposedException("System.Web.CacheDependency"); - } - - if (Changed != null) - { - return true; - } - - return false; - } - } - - public void Dispose() - { - _boolDisposed = true; - } - - /// - /// Used in testing. - /// - public void Signal() - { - OnChanged(); - } - } -} diff --git a/mcs/class/System.Web/System.Web.Caching/CacheEntry.cs b/mcs/class/System.Web/System.Web.Caching/CacheEntry.cs deleted file mode 100644 index 0943be5db302a..0000000000000 --- a/mcs/class/System.Web/System.Web.Caching/CacheEntry.cs +++ /dev/null @@ -1,363 +0,0 @@ -// -// System.Web.Caching -// -// Author: -// Patrik Torstensson (Patrik.Torstensson@labs2.com) -// -// (C) Copyright Patrik Torstensson, 2001 -// -namespace System.Web.Caching -{ - /// - /// Class responsible for representing a cache entry. - /// - public class CacheEntry - { - /// - /// Defines the status of the current cache entry - /// - public enum Flags - { - Removed = 0, - Public = 1 - } - - private CacheItemPriority _enumPriority; - - private long _longHits; - - private byte _byteExpiresBucket; - private int _intExpiresIndex; - - private long _ticksExpires; - private long _ticksSlidingExpiration; - - private string _strKey; - private object _objItem; - - private long _longMinHits; - - private Flags _enumFlags; - - private CacheDependency _objDependency; - private Cache _objCache; - - /// - /// Constructs a new cache entry - /// - /// The cache key used to reference the item. - /// The item to be added to the cache. - /// The file or cache key dependencies for the item. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies, this paramter contains a null reference. - /// The time at which the added object expires and is removed from the cache. - /// The interval between the time the added object was last accessed and when that object expires. If this value is the equivalent of 20 minutes, the object expires and is removed from the cache 20 minutes after it is last accessed. - /// Used to detect and control if the item should be flushed due to under usage - /// Defines if the item is public or not - /// The relative cost of the object, as expressed by the CacheItemPriority enumeration. The cache uses this value when it evicts objects; objects with a lower cost are removed from the cache before objects with a higher cost. - public CacheEntry( Cache objManager, string strKey, object objItem, CacheDependency objDependency, CacheItemRemovedCallback eventRemove, - System.DateTime dtExpires, System.TimeSpan tsSpan, long longMinHits, bool boolPublic, CacheItemPriority enumPriority ) - { - if (boolPublic) - { - SetFlag(Flags.Public); - } - - _strKey = strKey; - _objItem = objItem; - _objCache = objManager; - - _onRemoved += eventRemove; - - _enumPriority = enumPriority; - - _ticksExpires = dtExpires.Ticks; - - _ticksSlidingExpiration = tsSpan.Ticks; - - // If we have a sliding expiration it overrides the absolute expiration (MS behavior) - if (tsSpan.Ticks != System.TimeSpan.Zero.Ticks) - { - _ticksExpires = System.DateTime.Now.AddTicks(_ticksSlidingExpiration).Ticks; - } - - _objDependency = objDependency; - if (_objDependency != null) - { - if (_objDependency.IsDisposed) - { - throw new System.ObjectDisposedException("System.Web.CacheDependency"); - } - - // Add the entry to the cache dependency handler (we support multiple entries per handler) - _objDependency.Changed += new CacheDependency.CacheDependencyCallback(OnChanged); - } - - _longMinHits = longMinHits; - } - - private event CacheItemRemovedCallback _onRemoved; - - public void OnChanged(CacheDependency objDependency) - { - _objCache.Remove(_strKey, CacheItemRemovedReason.DependencyChanged); - } - - /// - /// Cleans up the cache entry, removes the cache dependency and calls the remove delegate. - /// - /// The reason why the cache entry are going to be removed - public void Close(CacheItemRemovedReason enumReason) - { - lock(this) - { - // Check if the item already is removed - if (TestFlag(Flags.Removed)) - { - return; - } - - SetFlag(Flags.Removed); - - if (_onRemoved != null) - { - // Call the delegate to tell that we are now removing the entry - try - { - _onRemoved(_strKey, _objItem, enumReason); - } - catch (System.Exception objException) - { - System.Diagnostics.Debug.Fail("System.Web.CacheEntry.Close() Exception when calling remove delegate", "Message: " + objException.Message + " Stack: " + objException.StackTrace + " Source:" + objException.Source); - } - } - - // If we have a dependency, remove the entry - if (_objDependency != null) - { - _objDependency.Changed -= new CacheDependency.CacheDependencyCallback(OnChanged); - if (!_objDependency.HasEvents) - { - _objDependency.Dispose(); - } - } - } - } - - /// - /// Tests a specific flag is set or not. - /// - /// Flag to test agains - /// Returns true if the flag is set. - public bool TestFlag(Flags oFlag) - { - lock(this) - { - if ((_enumFlags & oFlag) != 0) - { - return true; - } - - return false; - } - } - - /// - /// Sets a specific flag. - /// - /// Flag to set. - public void SetFlag(Flags oFlag) - { - lock (this) - { - _enumFlags |= oFlag; - } - } - - /// - /// Returns true if the object has minimum hit usage flushing enabled. - /// - public bool HasUsage - { - get { - if (_longMinHits == System.Int64.MaxValue) - { - return false; - } - - return true; - } - } - - /// - /// Returns true if the entry has absolute expiration. - /// - public bool HasAbsoluteExpiration - { - get - { - if (_ticksExpires == System.DateTime.MaxValue.Ticks) - { - return false; - } - - return true; - } - } - - /// - /// Returns true if the entry has sliding expiration enabled. - /// - public bool HasSlidingExpiration - { - get - { - if (_ticksSlidingExpiration == System.TimeSpan.Zero.Ticks) - { - return false; - } - - return true; - } - } - - /// - /// Gets and sets the current expires bucket the entry is active in. - /// - public byte ExpiresBucket - { - get - { - lock (this) - { - return _byteExpiresBucket; - } - } - set - { - lock (this) - { - _byteExpiresBucket = ExpiresBucket; - } - } - } - - /// - /// Gets and sets the current index in the expires bucket of the current cache entry. - /// - public int ExpiresIndex - { - get - { - lock (this) - { - return _intExpiresIndex; - } - } - - set - { - lock (this) - { - _intExpiresIndex = ExpiresIndex; - } - } - } - - /// - /// Gets and sets the expiration of the cache entry. - /// - public long Expires - { - get - { - lock (this) - { - return _ticksExpires; - } - } - set - { - lock (this) - { - _ticksExpires = Expires; - } - } - } - - /// - /// Gets the sliding expiration value. The return value is in ticks (since 0/0-01 in 100nanosec) - /// - public long SlidingExpiration - { - get - { - return _ticksSlidingExpiration; - } - } - - /// - /// Returns the current cached item. - /// - public object Item - { - get - { - return _objItem; - } - } - - /// - /// Returns the current cache identifier. - /// - public string Key - { - get - { - return _strKey; - } - } - - /// - /// Gets and sets the current number of hits on the cache entry. - /// - public long Hits - { - // todo: Could be optimized by using interlocked methods.. - get - { - lock (this) - { - return _longHits; - } - } - set - { - lock (this) - { - _longHits = Hits; - } - } - } - - /// - /// Returns minimum hits for the usage flushing rutine. - /// - public long MinimumHits - { - get - { - return _longMinHits; - } - } - - /// - /// Returns the priority of the cache entry. - /// - public CacheItemPriority Priority - { - get - { - return _enumPriority; - } - } - } -} diff --git a/mcs/class/System.Web/System.Web.Caching/CacheExpires.cs b/mcs/class/System.Web/System.Web.Caching/CacheExpires.cs deleted file mode 100644 index a58eb5c1e6904..0000000000000 --- a/mcs/class/System.Web/System.Web.Caching/CacheExpires.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -// System.Web.Caching -// -// Author: -// Patrik Torstensson (Patrik.Torstensson@labs2.com) -// -// (C) Copyright Patrik Torstensson, 2001 -// -namespace System.Web.Caching -{ - /// - /// Class responsible for handling time based flushing of entries in the cache. The class creates - /// and manages 60 buckets each holding every item that expires that minute. The bucket calculated - /// for an entry is one minute more than the timeout just to make sure that the item end up in the - /// bucket where it should be flushed. - /// - public class CacheExpires : System.IDisposable - { - static int _intFlush; - static long _ticksPerBucket = 600000000; - static long _ticksPerCycle = _ticksPerBucket * 60; - - private ExpiresBucket[] _arrBuckets; - private System.Threading.Timer _objTimer; - private Cache _objManager; - - /// - /// Constructor - /// - /// The cache manager, used when flushing items in a bucket. - public CacheExpires(Cache objManager) - { - _objManager = objManager; - Initialize(); - } - - /// - /// Initializes the class. - /// - private void Initialize() - { - // Create one bucket per minute - _arrBuckets = new ExpiresBucket[60]; - - byte bytePos = 0; - do - { - _arrBuckets[bytePos] = new ExpiresBucket(bytePos, _objManager); - bytePos++; - } while (bytePos < 60); - - // GC Bucket controller - _intFlush = System.DateTime.Now.Minute - 1; - _objTimer = new System.Threading.Timer(new System.Threading.TimerCallback(GarbageCleanup), null, 10000, 60000); - } - - /// - /// Adds a Cache entry to the correct flush bucket. - /// - /// Cache entry to add. - public void Add(CacheEntry objEntry) - { - long ticksNow = System.DateTime.Now.Ticks; - - lock(this) - { - // If the entry doesn't have a expires time we assume that the entry is due to expire now. - if (objEntry.Expires == 0) - { - objEntry.Expires = ticksNow; - } - - _arrBuckets[GetHashBucket(objEntry.Expires)].Add(objEntry); - } - } - - public void Remove(CacheEntry objEntry) - { - long ticksNow = System.DateTime.Now.Ticks; - - lock(this) - { - // If the entry doesn't have a expires time we assume that the entry is due to expire now. - if (objEntry.Expires == 0) - { - objEntry.Expires = ticksNow; - } - - _arrBuckets[GetHashBucket(objEntry.Expires)].Remove(objEntry); - } - } - - public void Update(CacheEntry objEntry, long ticksExpires) - { - long ticksNow = System.DateTime.Now.Ticks; - - lock(this) - { - // If the entry doesn't have a expires time we assume that the entry is due to expire now. - if (objEntry.Expires == 0) - { - objEntry.Expires = ticksNow; - } - - _arrBuckets[GetHashBucket(objEntry.Expires)].Update(objEntry, ticksExpires); - } - } - - public void GarbageCleanup(object State) - { - ExpiresBucket objBucket; - - lock(this) - { - // Do cleanup of the bucket - objBucket = _arrBuckets[(++_intFlush) % 60]; - } - - // Flush expired items in the current bucket (defined by _intFlush) - objBucket.FlushExpiredItems(); - } - - private int GetHashBucket(long ticks) - { - // Get bucket to add expire item into, add one minute to the bucket just to make sure that we get it in the bucket gc - return (int) (((((ticks + 60000) % _ticksPerCycle) / _ticksPerBucket) + 1) % 60); - } - - /// - /// Called by the cache for cleanup. - /// - public void Dispose() - { - lock(this) - { - // Cleanup the internal timer - if (_objTimer != null) - { - _objTimer.Dispose(); - _objTimer = null; - } - } - } - } -} diff --git a/mcs/class/System.Web/System.Web.Caching/ChangeLog b/mcs/class/System.Web/System.Web.Caching/ChangeLog deleted file mode 100644 index c5c581c0072b1..0000000000000 --- a/mcs/class/System.Web/System.Web.Caching/ChangeLog +++ /dev/null @@ -1,23 +0,0 @@ -2002-07-28 Gonzalo Paniagua Javier - - * CacheDefinitions.cs: fixed a couple of enums. - - * CacheDependency.cs: the class is sealed. - -2002-06-11 Gonzalo Paniagua Javier - - * CacheDependency.cs: fixed a couple of typos and don't throw - NotImplementedException in constructors. - -2001-12-21 Gaurav Vaish - - * CacheDependency.cs: Some unimplemented methods to make build - -2001-07-20 Patrik Torstensson (Patrik.Torstensson@labs2.com) - - * Cache.cs: Implemented. (90% ready) - * CacheDefinitions.cs: Implemented. - * CacheDependency.cs: Added. (20% ready) - * CacheExpires: Implemented. - * CacheEntry.cs: Implemented. (95% ready, going to be changed due to CacheDependecy support) - * ExpiresBuckets.cs: Implemented. diff --git a/mcs/class/System.Web/System.Web.Caching/ExpiresBuckets.cs b/mcs/class/System.Web/System.Web.Caching/ExpiresBuckets.cs deleted file mode 100644 index b5b877d455dbb..0000000000000 --- a/mcs/class/System.Web/System.Web.Caching/ExpiresBuckets.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// System.Web.Caching -// -// Author: -// Patrik Torstensson (Patrik.Torstensson@labs2.com) -// -// (C) Copyright Patrik Torstensson, 2001 -// -namespace System.Web.Caching -{ - /// - /// Responsible for holding a cache entry in the linked list bucket. - /// - public struct ExpiresEntry - { - public CacheEntry _objEntry; - public long _ticksExpires; - public int _intNext; - } - - /// - /// Holds cache entries that has a expiration in a bucket list. - /// - public class ExpiresBucket - { - private static int MIN_ENTRIES = 16; - - private byte _byteID; - private int _intSize; - private int _intCount; - private int _intNext; - - private Cache _objManager; - - private ExpiresEntry [] _arrEntries; - - /// - /// Constructs a new bucket. - /// - /// Current bucket ID. - /// Cache manager reponsible for the item(s) in the expires bucket. - public ExpiresBucket(byte bucket, Cache objManager) - { - _objManager = objManager; - Initialize(bucket); - } - - /// - /// Initializes the expires bucket, creates a linked list of MIN_ENTRIES. - /// - /// Bucket ID. - private void Initialize(byte bucket) - { - _byteID = bucket; - _intNext = 0; - _intCount = 0; - - _arrEntries = new ExpiresEntry[MIN_ENTRIES]; - _intSize = MIN_ENTRIES; - - int intPos = 0; - do - { - _arrEntries[intPos]._intNext = intPos + 1; - _arrEntries[intPos]._ticksExpires = System.DateTime.MaxValue.Ticks; - - intPos++; - } while (intPos < _intSize); - - _arrEntries[_intSize - 1]._intNext = -1; - } - - /// - /// Expands the bucket linked array list. - /// - private void Expand() - { - ExpiresEntry [] arrData; - int intPos = 0; - int intOldSize; - - lock(this) - { - intOldSize = _intSize; - _intSize *= 2; - - // Create a new array and copy the old data into the new array - arrData = new ExpiresEntry[_intSize]; - do - { - arrData[intPos] = _arrEntries[intPos]; - intPos++; - } while (intPos < intOldSize); - - _intNext = intPos; - - // Initialize the "new" positions. - do - { - arrData[intPos]._intNext = intPos + 1; - intPos++; - } while (intPos < _intSize); - - arrData[_intSize - 1]._intNext = -1; - - _arrEntries = arrData; - } - } - - /// - /// Adds a cache entry into the expires bucket. - /// - /// Cache Entry object to be added. - public void Add(CacheEntry objEntry) - { - if (_intNext == -1) - { - Expand(); - } - - lock(this) - { - _arrEntries[_intNext]._ticksExpires = objEntry.Expires; - _arrEntries[_intNext]._objEntry = objEntry; - - _intNext = _arrEntries[_intNext]._intNext; - - _intCount++; - } - } - - /// - /// Removes a cache entry from the expires bucket. - /// - /// Cache entry to be removed. - public void Remove(CacheEntry objEntry) - { - lock(this) - { - // Check if this is our bucket - if (objEntry.ExpiresIndex != _byteID) return; - if (objEntry.ExpiresIndex == System.Int32.MaxValue) return; - if (_arrEntries.Length < objEntry.ExpiresIndex) return; - - _intCount--; - - _arrEntries[objEntry.ExpiresIndex]._objEntry.ExpiresBucket = byte.MaxValue; - _arrEntries[objEntry.ExpiresIndex]._objEntry.ExpiresIndex = int.MaxValue; - _arrEntries[objEntry.ExpiresIndex]._objEntry = null; - _intNext = _arrEntries[objEntry.ExpiresIndex]._intNext; - } - } - - /// - /// Updates a cache entry in the expires bucket, this is called during a hit of an item if the - /// cache item has a sliding expiration. The function is responsible for updating the cache - /// entry. - /// - /// Cache entry to update. - /// New expiration value for the cache entry. - public void Update(CacheEntry objEntry, long ticksExpires) - { - lock(this) - { - // Check if this is our bucket - if (objEntry.ExpiresIndex != _byteID) return; - if (objEntry.ExpiresIndex == System.Int32.MaxValue) return; - if (_arrEntries.Length < objEntry.ExpiresIndex) return; - - _arrEntries[objEntry.ExpiresIndex]._ticksExpires = ticksExpires; - _arrEntries[objEntry.ExpiresIndex]._objEntry.Expires = ticksExpires; - } - } - - /// - /// Flushes all cache entries that has expired and removes them from the cache manager. - /// - public void FlushExpiredItems() - { - ExpiresEntry objEntry; - CacheEntry [] arrCacheEntries; - - int intCachePos; - int intPos; - long ticksNow; - - ticksNow = System.DateTime.Now.Ticks; - - intCachePos = 0; - - // Lookup all items that needs to be removed, this is done in a two part - // operation to minimize the locking time. - lock (this) - { - arrCacheEntries = new CacheEntry[_intSize]; - - intPos = 0; - do - { - objEntry = _arrEntries[intPos]; - if (objEntry._objEntry != null) - { - if (objEntry._ticksExpires < ticksNow) - { - arrCacheEntries[intCachePos++] = objEntry._objEntry; - - objEntry._objEntry.ExpiresBucket = byte.MaxValue; - objEntry._objEntry.ExpiresIndex = int.MaxValue; - objEntry._objEntry = null; - _intNext = objEntry._intNext; - } - } - - intPos++; - } while (intPos < _intSize); - } - - // If we have any entries to remove, go ahead and call the cache manager remove. - if (intCachePos > 0) - { - intPos = 0; - do - { - _objManager.Remove(arrCacheEntries[intPos].Key, CacheItemRemovedReason.Expired); - - intPos++; - } while (intPos < intCachePos); - } - } - - /// - /// Returns the current size of the expires bucket. - /// - public int Size - { - get - { - return _arrEntries.Length; - } - } - - /// - /// Returns number of items in the bucket. - /// - public int Count - { - get - { - return _intCount; - } - } - } -} diff --git a/mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs b/mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs deleted file mode 100644 index a192e460c7e48..0000000000000 --- a/mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// System.Web.Compilation.AspComponentFoundry -// -// Authors: -// Gonzalo Paniagua Javier (gonzalo@ximian.com) -// -// (C) 2002 Ximian, Inc (http://www.ximian.com) -// -using System; -using System.Collections; -using System.IO; -using System.Reflection; - -namespace System.Web.Compilation -{ - internal class AspComponentFoundry - { - private Hashtable foundries; - - public AspComponentFoundry () - { - foundries = new Hashtable (CaseInsensitiveHashCodeProvider.Default, - CaseInsensitiveComparer.Default); - - RegisterFoundry ("asp", "System.Web", "System.Web.UI.WebControls"); - } - - public AspComponent MakeAspComponent (string foundryName, string componentName, Tag tag) - { - InternalFoundry foundry = foundries [foundryName] as InternalFoundry; - if (foundry == null) - throw new ApplicationException ("Foundry not found: " + foundryName); - - return new AspComponent (tag, foundry.GetType (componentName)); - } - - public void RegisterFoundry (string foundryName, - string assemblyName, - string nameSpace) - { - InternalFoundry foundry = new InternalFoundry (assemblyName, nameSpace, null); - foundries.Add (foundryName, foundry); - } - - public void RegisterFoundry (string foundryName, - string assemblyName, - string nameSpace, - string typeName) - { - InternalFoundry foundry = new InternalFoundry (assemblyName, nameSpace, typeName); - foundries.Add (foundryName, foundry); - } - - public bool LookupFoundry (string foundryName) - { - return foundries.Contains (foundryName); - } - - class InternalFoundry - { - string nameSpace; - string assemblyName; - string typeName; - Assembly assembly; - - public InternalFoundry (string assemblyName, string nameSpave, string typeName) - { - this.assemblyName = assemblyName; - this.nameSpace = nameSpace; - this.typeName = typeName; - assembly = null; - } - - public Type GetType (string componentName) - { - EnsureAssembly (); - - // For ascx files - if (typeName != null && 0 == String.Compare (componentName, typeName, true)) { - throw new ApplicationException ("Only type '" + typeName + "' allowed."); - } else if (typeName != null) { - componentName = typeName; - } - - return assembly.GetType (nameSpace + "." + componentName, true, true); - } - - private void EnsureAssembly () - { - if (assembly != null) - return; - - try { - assembly = Assembly.LoadFrom (Path.GetFullPath (assemblyName)); - } catch { - assembly = Assembly.LoadWithPartialName (assemblyName); - } - - if (assembly == null) - throw new ApplicationException ("Assembly not found:" + assemblyName); - } - } - - } -} - diff --git a/mcs/class/System.Web/System.Web.Compilation/AspElements.cs b/mcs/class/System.Web/System.Web.Compilation/AspElements.cs deleted file mode 100644 index 71e51ad27ea2e..0000000000000 --- a/mcs/class/System.Web/System.Web.Compilation/AspElements.cs +++ /dev/null @@ -1,774 +0,0 @@ -// -// System.Web.Compilation.AspElements -// -// Authors: -// Gonzalo Paniagua Javier (gonzalo@ximian.com) -// -// (C) 2002 Ximian, Inc (http://www.ximian.com) -// -using System; -using System.Collections; -using System.Reflection; -using System.Text; -using System.Web.UI; -using System.Web.UI.HtmlControls; -using System.Web.UI.WebControls; - -namespace System.Web.Compilation -{ - - public enum ElementType - { - TAG, - PLAINTEXT - } - - public abstract class Element - { - private ElementType elementType; - - public Element (ElementType type) - { - elementType = type; - } - - public ElementType GetElementType - { - get { return elementType; } - } - } // class Element - - public class PlainText : Element - { - private StringBuilder text; - - public PlainText () : base (ElementType.PLAINTEXT) - { - text = new StringBuilder (); - } - - public PlainText (StringBuilder text) : base (ElementType.PLAINTEXT) - { - this.text = text; - } - - public PlainText (string text) : this () - { - this.text.Append (text); - } - - public void Append (string more) - { - text.Append (more); - } - - public string Text - { - get { return text.ToString (); } - } - - public override string ToString () - { - return "PlainText: " + Text; - } - } - - public enum TagType - { - DIRECTIVE, - HTML, - HTMLCONTROL, - SERVERCONTROL, - INLINEVAR, - INLINECODE, - CLOSING, - SERVEROBJECT, - PROPERTYTAG, - CODERENDER, - DATABINDING, - NOTYET - } - - /* - * Attributes and values are stored in a couple of ArrayList in Add (). - * When MakeHash () is called, they are converted to a Hashtable. If there are any - * attributes duplicated it throws an ArgumentException. - * - * The [] operator works with the Hashtable if the values are in it, otherwise - * it uses the ArrayList's. - * - * Why? You can have a tag in HTML like , but not in tags - * marked runat=server and Hashtable requires the key to be unique. - * - */ - public class TagAttributes - { - private Hashtable atts_hash; - private ArrayList keys; - private ArrayList values; - private bool got_hashed; - - public TagAttributes () - { - got_hashed = false; - keys = new ArrayList (); - values = new ArrayList (); - } - - private void MakeHash () - { - atts_hash = new Hashtable (new CaseInsensitiveHashCodeProvider (), - new CaseInsensitiveComparer ()); - for (int i = 0; i < keys.Count; i++) - atts_hash.Add (keys [i], values [i]); - got_hashed = true; - keys = null; - values = null; - } - - public bool IsRunAtServer () - { - return got_hashed; - } - - public void Add (object key, object value) - { - if (key != null && value != null && - 0 == String.Compare ((string) key, "runat", true) && - 0 == String.Compare ((string) value, "server", true)) - MakeHash (); - - if (got_hashed) - atts_hash.Add (key, value); - else { - keys.Add (key); - values.Add (value); - } - } - - public ICollection Keys - { - get { return (got_hashed ? atts_hash.Keys : keys); } - } - - private int CaseInsensitiveSearch (string key) - { - // Hope not to have many attributes when the tag is not a server tag... - for (int i = 0; i < keys.Count; i++){ - if (0 == String.Compare ((string) keys [i], key, true)) - return i; - } - return -1; - } - - public object this [object key] - { - get { - if (got_hashed) - return atts_hash [key]; - - int idx = CaseInsensitiveSearch ((string) key); - if (idx == -1) - return null; - - return values [idx]; - } - - set { - if (got_hashed) - atts_hash [key] = value; - else { - int idx = CaseInsensitiveSearch ((string) key); - keys [idx] = value; - } - } - } - - public int Count - { - get { return (got_hashed ? atts_hash.Count : keys.Count);} - } - - public bool IsDataBound (string att) - { - if (att == null || !got_hashed) - return false; - - return (att.StartsWith ("<%#") && att.EndsWith ("%>")); - } - - public override string ToString () - { - string ret = ""; - string value; - foreach (string key in Keys){ - value = (string) this [key]; - value = value == null ? "" : value; - ret += key + "=" + value + " "; - } - - return ret; - } - } - - public class Tag : Element - { - protected string tag; - protected TagType tagType; - protected TagAttributes attributes; - protected bool self_closing; - protected bool hasDefaultID; - private static int ctrlNumber = 1; - - internal Tag (Tag other) : - this (other.tag, other.attributes, other.self_closing) - { - this.tagType = other.tagType; - } - - public Tag (string tag, TagAttributes attributes, bool self_closing) : - base (ElementType.TAG) - { - if (tag == null) - throw new ArgumentNullException (); - - this.tag = tag; - this.attributes = attributes; - this.tagType = TagType.NOTYET; - this.self_closing = self_closing; - this.hasDefaultID = false; - } - - public string TagID - { - get { return tag; } - } - - public TagType TagType - { - get { return tagType; } - } - - public bool SelfClosing - { - get { return self_closing; } - } - - public TagAttributes Attributes - { - get { return attributes; } - } - - public string PlainHtml - { - get { - StringBuilder plain = new StringBuilder (); - plain.Append ('<'); - if (tagType == TagType.CLOSING) - plain.Append ('/'); - plain.Append (tag); - if (attributes != null){ - plain.Append (' '); - foreach (string key in attributes.Keys){ - plain.Append (key); - if (attributes [key] != null){ - plain.Append ("=\""); - plain.Append ((string) attributes [key]); - plain.Append ("\" "); - } - } - } - - if (self_closing) - plain.Append ('/'); - plain.Append ('>'); - return plain.ToString (); - } - } - - public override string ToString () - { - return TagID + " " + Attributes + " " + self_closing; - } - - public bool HasDefaultID - { - get { return hasDefaultID; } - } - - protected void SetNewID () - { - if (attributes == null) - attributes = new TagAttributes (); - attributes.Add ("ID", GetDefaultID ()); - hasDefaultID = true; - } - - public static string GetDefaultID () - { - return "_control" + ctrlNumber++; - } - } - - public class CloseTag : Tag - { - public CloseTag (string tag) : base (tag, null, false) - { - tagType = TagType.CLOSING; - } - } - - public class Directive : Tag - { - private static Hashtable directivesHash; - private static string [] page_atts = { "AspCompat", "AutoEventWireup ", "Buffer", - "ClassName", "ClientTarget", "CodePage", - "CompilerOptions", "ContentType", "Culture", "Debug", - "Description", "EnableSessionState", "EnableViewState", - "EnableViewStateMac", "ErrorPage", "Explicit", - "Inherits", "Language", "LCID", "ResponseEncoding", - "Src", "SmartNavigation", "Strict", "Trace", - "TraceMode", "Transaction", "UICulture", - "WarningLevel" }; - - private static string [] control_atts = { "AutoEventWireup", "ClassName", "CompilerOptions", - "Debug", "Description", "EnableViewState", - "Explicit", "Inherits", "Language", "Strict", "Src", - "WarningLevel" }; - - private static string [] import_atts = { "namespace" }; - private static string [] implements_atts = { "interface" }; - private static string [] assembly_atts = { "name", "src" }; - private static string [] register_atts = { "tagprefix", "tagname", "Namespace", - "Src", "Assembly" }; - - private static string [] outputcache_atts = { "Duration", "Location", "VaryByControl", - "VaryByCustom", "VaryByHeader", "VaryByParam" }; - private static string [] reference_atts = { "page", "control" }; - - static Directive () - { - InitHash (); - } - - private static void InitHash () - { - CaseInsensitiveHashCodeProvider provider = new CaseInsensitiveHashCodeProvider (); - CaseInsensitiveComparer comparer = new CaseInsensitiveComparer (); - - directivesHash = new Hashtable (provider, comparer); - - // Use Hashtable 'cause is O(1) in Contains (ArrayList is O(n)) - Hashtable valid_attributes = new Hashtable (provider, comparer); - foreach (string att in page_atts) valid_attributes.Add (att, null); - directivesHash.Add ("PAGE", valid_attributes); - - valid_attributes = new Hashtable (provider, comparer); - foreach (string att in control_atts) valid_attributes.Add (att, null); - directivesHash.Add ("CONTROL", valid_attributes); - - valid_attributes = new Hashtable (provider, comparer); - foreach (string att in import_atts) valid_attributes.Add (att, null); - directivesHash.Add ("IMPORT", valid_attributes); - - valid_attributes = new Hashtable (provider, comparer); - foreach (string att in implements_atts) valid_attributes.Add (att, null); - directivesHash.Add ("IMPLEMENTS", valid_attributes); - - valid_attributes = new Hashtable (provider, comparer); - foreach (string att in register_atts) valid_attributes.Add (att, null); - directivesHash.Add ("REGISTER", valid_attributes); - - valid_attributes = new Hashtable (provider, comparer); - foreach (string att in assembly_atts) valid_attributes.Add (att, null); - directivesHash.Add ("ASSEMBLY", valid_attributes); - - valid_attributes = new Hashtable (provider, comparer); - foreach (string att in outputcache_atts) valid_attributes.Add (att, null); - directivesHash.Add ("OUTPUTCACHE", valid_attributes); - - valid_attributes = new Hashtable (provider, comparer); - foreach (string att in reference_atts) valid_attributes.Add (att, null); - directivesHash.Add ("REFERENCE", valid_attributes); - } - - public Directive (string tag, TagAttributes attributes) : - base (tag, attributes, true) - { - CheckAttributes (); - tagType = TagType.DIRECTIVE; - } - - private void CheckAttributes () - { - Hashtable atts; - if (!(directivesHash [tag] is Hashtable)) - throw new ApplicationException ("Unknown directive: " + tag); - - atts = (Hashtable) directivesHash [tag]; - foreach (string att in attributes.Keys){ - if (!atts.Contains (att)) - throw new ApplicationException ("Attribute " + att + - " not valid for tag " + tag); - } - } - - public static bool IsDirectiveID (string id) - { - return directivesHash.Contains (id); - } - - public override string ToString () - { - return "Directive: " + tag; - } - } - - public class ServerObjectTag : Tag - { - public ServerObjectTag (Tag tag) : - base (tag.TagID, tag.Attributes, tag.SelfClosing) - { - tagType = TagType.SERVEROBJECT; - if (!attributes.IsRunAtServer ()) - throw new ApplicationException (" without runat=server"); - - if (attributes.Count != 3 || !SelfClosing || ObjectID == null || ObjectClass == null) - throw new ApplicationException ("Incorrect syntax: "); - } - - public string ObjectID - { - get { return (string) attributes ["id"]; } - } - - public string ObjectClass - { - get { return (string) attributes ["class"]; } - } - } - - public class HtmlControlTag : Tag - { - private Type control_type; - private bool is_container; - - private static Hashtable controls; - private static Hashtable inputTypes; - - private static void InitHash () - { - controls = new Hashtable (new CaseInsensitiveHashCodeProvider (), - new CaseInsensitiveComparer ()); - - controls.Add ("A", typeof (HtmlAnchor)); - controls.Add ("BUTTON", typeof (HtmlButton)); - controls.Add ("FORM", typeof (HtmlForm)); - controls.Add ("IMG", typeof (HtmlImage)); - controls.Add ("INPUT", "INPUT"); - controls.Add ("SELECT", typeof (HtmlSelect)); - controls.Add ("TABLE", typeof (HtmlTable)); - controls.Add ("TD", typeof (HtmlTableCell)); - controls.Add ("TH", typeof (HtmlTableCell)); - controls.Add ("TR", typeof (HtmlTableRow)); - controls.Add ("TEXTAREA", typeof (HtmlTextArea)); - - inputTypes = new Hashtable (new CaseInsensitiveHashCodeProvider (), - new CaseInsensitiveComparer ()); - - inputTypes.Add ("BUTTON", typeof (HtmlInputButton)); - inputTypes.Add ("SUBMIT", typeof (HtmlInputButton)); - inputTypes.Add ("RESET", typeof (HtmlInputButton)); - inputTypes.Add ("CHECKBOX", typeof (HtmlInputCheckBox)); - inputTypes.Add ("FILE", typeof (HtmlInputFile)); - inputTypes.Add ("HIDDEN", typeof (HtmlInputHidden)); - inputTypes.Add ("IMAGE", typeof (HtmlInputImage)); - inputTypes.Add ("RADIO", typeof (HtmlInputRadioButton)); - inputTypes.Add ("TEXT", typeof (HtmlInputText)); - inputTypes.Add ("PASSWORD", typeof (HtmlInputText)); - } - - static HtmlControlTag () - { - InitHash (); - } - - public HtmlControlTag (string tag, TagAttributes attributes, bool self_closing) : - base (tag, attributes, self_closing) - { - SetData (); - if (attributes == null || attributes ["ID"] == null) - SetNewID (); - } - - public HtmlControlTag (Tag source_tag) : - this (source_tag.TagID, source_tag.Attributes, source_tag.SelfClosing) - { - } - - private void SetData () - { - tagType = TagType.HTMLCONTROL; - if (!(controls [tag] is string)){ - control_type = (Type) controls [tag]; - if (control_type == null) - control_type = typeof (HtmlGenericControl); - is_container = (0 != String.Compare (tag, "img", true)); - } else { - string type_value = (string) attributes ["TYPE"]; - if (type_value== null) - throw new ArgumentException ("INPUT tag without TYPE attribute!!!"); - - control_type = (Type) inputTypes [type_value]; - //TODO: what does MS with this one? - if (control_type == null) - throw new ArgumentException ("Unknown input type -> " + type_value); - is_container = false; - self_closing = true; // All are self-closing - } - } - - public Type ControlType - { - get { return control_type; } - } - - public string ControlID - { - get { return (string) attributes ["ID"]; } - } - - public bool IsContainer - { - get { return is_container; } - } - - public override string ToString () - { - string ret = "HtmlControlTag: " + tag + " Name: " + ControlID + "Type:" + - control_type.ToString () + "\n\tAttributes:\n"; - - foreach (string key in attributes.Keys){ - ret += "\t" + key + "=" + attributes [key]; - } - return ret; - } - } - - public enum ChildrenKind - { - NONE, - /* - * Children must be ASP.NET server controls. Literal text is passed as LiteralControl. - * Child controls and text are added using AddParsedSubObject (). - */ - CONTROLS, - /* - * Children must correspond to properties of the parent control. No literal text allowed. - */ - PROPERTIES, - /* - * Special case used inside ... - * Only allow DataGridColumn and derived classes. - */ - DBCOLUMNS, - /* - * Special case for list controls (ListBox, DropDownList...) - */ - LISTITEM, - /* For HtmlSelect children. They are