Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

This commit was manufactured by cvs2svn to create branch 'SAVANNAH_CVS'.

svn path=/branches/SAVANNAH_CVS/mcs/; revision=6844
  • Loading branch information...
commit 4e4824afab6cd0f9f0d71aa6baeddb7bee74f8c4 1 parent 5a04c90
nobody authored
Showing with 0 additions and 39,135 deletions.
  1. +0 −16 mcs/AUTHORS
  2. +0 −96 mcs/ChangeLog
  3. +0 −53 mcs/INSTALL
  4. +0 −53 mcs/INSTALL.txt
  5. BIN  mcs/MonoIcon.png
  6. +0 −25 mcs/README
  7. +0 −1  mcs/class/.cvsignore
  8. +0 −21 mcs/class/Microsoft.VisualBasic/Changelog
  9. +0 −40 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic.build
  10. +0 −18 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/AppWinStyle.cs
  11. +0 −16 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CallType.cs
  12. +0 −6 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
  13. +0 −314 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Collection.cs
  14. +0 −35 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ComClassAttribute.cs
  15. +0 −26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CompareMethod.cs
  16. +0 −136 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Constants.cs
  17. +0 −27 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ControlChars.cs
  18. +0 −616 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Conversion.cs
  19. +0 −478 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateAndTime.cs
  20. +0 −37 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateFormat.cs
  21. +0 −22 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateInterval.cs
  22. +0 −14 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DueDate.cs
  23. +0 −41 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ErrObject.cs
  24. +0 −20 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileAttribute.cs
  25. +0 −189 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FileSystem.cs
  26. +0 −48 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Financial.cs
  27. +0 −20 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstDayOfWeek.cs
  28. +0 −16 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/FirstWeekOfYear.cs
  29. +0 −30 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Globals.cs
  30. +0 −57 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Information.cs
  31. +0 −39 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Interaction.cs
  32. +0 −26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.cs
  33. +0 −26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.cs
  34. +0 −27 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.cs
  35. +0 −27 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.cs
  36. +0 −28 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.cs
  37. +0 −34 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.cs
  38. +0 −33 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.cs
  39. +0 −20 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.cs
  40. +0 −41 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.cs
  41. +0 −24 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.cs
  42. +0 −20 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.cs
  43. +0 −19 ...rosoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.cs
  44. +0 −26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.cs
  45. +0 −51 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.cs
  46. +0 −26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.cs
  47. +0 −58 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.cs
  48. +0 −32 ...icrosoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionCompareAttribute.cs
  49. +0 −20 ...s/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.cs
  50. +0 −80 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.cs
  51. +0 −26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.cs
  52. +0 −30 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.cs
  53. +0 −20 ...crosoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.cs
  54. +0 −20 ...s/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.cs
  55. +0 −61 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.cs
  56. +0 −39 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/TODOAttribute.cs
  57. +0 −31 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.cs
  58. +0 −19 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxResult.cs
  59. +0 −32 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/MsgBoxStyle.cs
  60. +0 −16 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenAccess.cs
  61. +0 −17 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenMode.cs
  62. +0 −17 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/OpenShare.cs
  63. +0 −20 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/SpcInfo.cs
  64. +0 −1,110 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Strings.cs
  65. +0 −39 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TODOAttribute.cs
  66. +0 −23 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TabInfo.cs
  67. +0 −19 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/TriState.cs
  68. +0 −30 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedArrayAttribute.cs
  69. +0 −26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBFixedStringAttribute.cs
  70. +0 −29 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VBMath.cs
  71. +0 −32 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VariantType.cs
  72. +0 −73 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/VbStrConv.cs
  73. +0 −1  mcs/class/Microsoft.VisualBasic/Test/.cvsignore
  74. +0 −33 mcs/class/Microsoft.VisualBasic/Test/AllTests.cs
  75. +0 −535 mcs/class/Microsoft.VisualBasic/Test/CollectionTest.cs
  76. +0 −674 mcs/class/Microsoft.VisualBasic/Test/ConversionTest.cs
  77. +0 −380 mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs
  78. +0 −63 mcs/class/Microsoft.VisualBasic/Test/Microsoft.VisualBasic_test.build
  79. +0 −62 mcs/class/Microsoft.VisualBasic/list
  80. +0 −13 mcs/class/Microsoft.VisualBasic/makefile.gnu
  81. +0 −311 mcs/class/Mono.CSharp.Debugger/AssemblerWriterI386.cs
  82. +0 −251 mcs/class/Mono.CSharp.Debugger/ChangeLog
  83. +0 −70 mcs/class/Mono.CSharp.Debugger/IAssemblerWriter.cs
  84. +0 −200 mcs/class/Mono.CSharp.Debugger/IMonoSymbolWriter.cs
  85. +0 −24 mcs/class/Mono.CSharp.Debugger/Mono.CSharp.Debugger.build
  86. +0 −2,822 mcs/class/Mono.CSharp.Debugger/MonoDwarfFileWriter.cs
  87. +0 −60 mcs/class/Mono.CSharp.Debugger/MonoSymbolDocumentWriter.cs
  88. +0 −811 mcs/class/Mono.CSharp.Debugger/MonoSymbolWriter.cs
  89. +0 −43 mcs/class/Mono.CSharp.Debugger/README
  90. +0 −100 mcs/class/Mono.CSharp.Debugger/README.relocation-table
  91. +0 −330 mcs/class/Mono.CSharp.Debugger/csharp-lang.c
  92. +0 −38 mcs/class/Mono.CSharp.Debugger/csharp-lang.h
  93. +0 −76 mcs/class/Mono.CSharp.Debugger/csharp-mono-lang.c
  94. +0 −460 mcs/class/Mono.CSharp.Debugger/gdb-csharp-support.patch
  95. +0 −175 mcs/class/Mono.CSharp.Debugger/gdb-variable-scopes.patch
  96. +0 −79 mcs/class/Mono.Data.MySql/ChangeLog
  97. +0 −65 mcs/class/Mono.Data.MySql/Mono.Data.MySql.build
  98. +0 −66 mcs/class/Mono.Data.MySql/Mono.Data.MySql/Field.cs
  99. +0 −270 mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySql.cs
  100. +0 −335 mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlCommand.cs
  101. +0 −534 mcs/class/Mono.Data.MySql/Mono.Data.MySql/MySqlConnection.cs
  102. +0 −33 mcs/class/Mono.Data.MySql/Mono.Data.MySql/TODOAttribute.cs
  103. +0 −259 mcs/class/Mono.Data.MySql/Mono.Data.MySql/Test.cs
  104. +0 −20 mcs/class/Mono.Data.MySql/Mono.Data.MySql/makefile
  105. +0 −103 mcs/class/Mono.Data.MySql/Test/TestMySqlInsert.cs
  106. +0 −5 mcs/class/Mono.Data.MySql/list
  107. +0 −176 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/ParmUtil.cs
  108. +0 −78 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs
  109. +0 −46 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs
  110. +0 −928 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs
  111. +0 −103 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs
  112. +0 −722 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlConnection.cs
  113. +0 −191 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs
  114. +0 −422 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs
  115. +0 −155 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlError.cs
  116. +0 −114 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs
  117. +0 −204 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlException.cs
  118. +0 −51 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs
  119. +0 −19 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs
  120. +0 −227 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameter.cs
  121. +0 −276 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs
  122. +0 −37 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs
  123. +0 −18 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs
  124. +0 −43 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs
  125. +0 −18 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs
  126. +0 −191 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs
  127. +0 −475 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresLibrary.cs
  128. +0 −512 mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PostgresTypes.cs
  129. +0 −176 mcs/class/Mono.Data.PostgreSqlClient/ParmUtil.cs
  130. +0 −78 mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermission.cs
  131. +0 −46 mcs/class/Mono.Data.PostgreSqlClient/PgSqlClientPermissionAttribute.cs
  132. +0 −928 mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs
  133. +0 −103 mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommandBuilder.cs
  134. +0 −722 mcs/class/Mono.Data.PostgreSqlClient/PgSqlConnection.cs
  135. +0 −191 mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs
  136. +0 −422 mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs
  137. +0 −155 mcs/class/Mono.Data.PostgreSqlClient/PgSqlError.cs
  138. +0 −114 mcs/class/Mono.Data.PostgreSqlClient/PgSqlErrorCollection.cs
  139. +0 −204 mcs/class/Mono.Data.PostgreSqlClient/PgSqlException.cs
  140. +0 −51 mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventArgs.cs
  141. +0 −19 mcs/class/Mono.Data.PostgreSqlClient/PgSqlInfoMessageEventHandler.cs
  142. +0 −227 mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameter.cs
  143. +0 −276 mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs
  144. +0 −37 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventArgs.cs
  145. +0 −18 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatedEventHandler.cs
  146. +0 −43 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventArgs.cs
  147. +0 −18 mcs/class/Mono.Data.PostgreSqlClient/PgSqlRowUpdatingEventHandler.cs
  148. +0 −191 mcs/class/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs
  149. +0 −475 mcs/class/Mono.Data.PostgreSqlClient/PostgresLibrary.cs
  150. +0 −512 mcs/class/Mono.Data.PostgreSqlClient/PostgresTypes.cs
  151. +0 −4 mcs/class/Mono.GetOptions/.cvsignore
  152. +0 −59 mcs/class/Mono.GetOptions/AssemblyInfo.cs
  153. +0 −93 mcs/class/Mono.GetOptions/Mono.GetOptions.csproj
  154. +0 −209 mcs/class/Mono.GetOptions/OptionList.cs
  155. +0 −277 mcs/class/README
  156. +0 −9 mcs/class/System.Configuration.Install/ChangeLog
  157. +0 −34 mcs/class/System.Configuration.Install/System.Configuration.Install.build
  158. +0 −8 mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog
  159. +0 −20 mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs
  160. +0 −2  mcs/class/System.Configuration.Install/Test/.cvsignore
  161. +0 −29 mcs/class/System.Configuration.Install/Test/AllTests.cs
  162. +0 −12 mcs/class/System.Configuration.Install/Test/ChangeLog
  163. +0 −27 mcs/class/System.Configuration.Install/Test/System.Configuration.Install/AllTests.cs
  164. +0 −5 mcs/class/System.Configuration.Install/Test/System.Configuration.Install/ChangeLog
  165. +0 −36 mcs/class/System.Configuration.Install/Test/System.Configuration.Install_test.build
  166. +0 −1  mcs/class/System.Configuration.Install/list.unix
  167. +0 −13 mcs/class/System.Configuration.Install/makefile.gnu
  168. +0 −6 mcs/class/System.Data/.cvsignore
  169. +0 −1,686 mcs/class/System.Data/ChangeLog
  170. +0 −10 mcs/class/System.Data/System.Data.Common/ChangeLog
  171. +0 −113 mcs/class/System.Data/System.Data.Common/DataAdapter.cs
  172. +0 −64 mcs/class/System.Data/System.Data.Common/DataColumnMapping.cs
  173. +0 −219 mcs/class/System.Data/System.Data.Common/DataColumnMappingCollection.cs
  174. +0 −99 mcs/class/System.Data/System.Data.Common/DataTableMapping.cs
  175. +0 −225 mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs
  176. +0 −310 mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs
  177. +0 −83 mcs/class/System.Data/System.Data.Common/DbDataPermission.cs
  178. +0 −36 mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs
  179. +0 −64 mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs
  180. +0 −58 mcs/class/System.Data/System.Data.Common/RowUpdatingEventArgs.cs
  181. +0 −326 mcs/class/System.Data/System.Data.OleDb/OleDbCommand.cs
  182. +0 −107 mcs/class/System.Data/System.Data.OleDb/OleDbCommandBuilder.cs
  183. +0 −233 mcs/class/System.Data/System.Data.OleDb/OleDbConnection.cs
  184. +0 −179 mcs/class/System.Data/System.Data.OleDb/OleDbDataAdapter.cs
  185. +0 −503 mcs/class/System.Data/System.Data.OleDb/OleDbDataReader.cs
  186. +0 −74 mcs/class/System.Data/System.Data.OleDb/OleDbError.cs
  187. +0 −80 mcs/class/System.Data/System.Data.OleDb/OleDbErrorCollection.cs
  188. +0 −123 mcs/class/System.Data/System.Data.OleDb/OleDbException.cs
  189. +0 −53 mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventArgs.cs
  190. +0 −17 mcs/class/System.Data/System.Data.OleDb/OleDbInfoMessageEventHandler.cs
  191. +0 −48 mcs/class/System.Data/System.Data.OleDb/OleDbLiteral.cs
  192. +0 −364 mcs/class/System.Data/System.Data.OleDb/OleDbParameter.cs
  193. +0 −208 mcs/class/System.Data/System.Data.OleDb/OleDbParameterCollection.cs
  194. +0 −95 mcs/class/System.Data/System.Data.OleDb/OleDbPermission.cs
  195. +0 −62 mcs/class/System.Data/System.Data.OleDb/OleDbPermissionAttribute.cs
  196. +0 −46 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventArgs.cs
  197. +0 −19 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatedEventHandler.cs
  198. +0 −48 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventArgs.cs
  199. +0 −19 mcs/class/System.Data/System.Data.OleDb/OleDbRowUpdatingEventHandler.cs
  200. +0 −67 mcs/class/System.Data/System.Data.OleDb/OleDbSchemaGuid.cs
  201. +0 −119 mcs/class/System.Data/System.Data.OleDb/OleDbTransaction.cs
  202. +0 −56 mcs/class/System.Data/System.Data.OleDb/OleDbType.cs
  203. +0 −32 mcs/class/System.Data/System.Data.OleDb/TestGDA.cs
  204. +0 −107 mcs/class/System.Data/System.Data.OleDb/TestOleDb.cs
  205. +0 −270 mcs/class/System.Data/System.Data.OleDb/libgda.cs
  206. +0 −176 mcs/class/System.Data/System.Data.SqlClient/ParmUtil.cs
  207. +0 −475 mcs/class/System.Data/System.Data.SqlClient/PostgresLibrary.cs
  208. +0 −512 mcs/class/System.Data/System.Data.SqlClient/PostgresTypes.cs
  209. +0 −78 mcs/class/System.Data/System.Data.SqlClient/SqlClientPermission.cs
  210. +0 −46 mcs/class/System.Data/System.Data.SqlClient/SqlClientPermissionAttribute.cs
  211. +0 −928 mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
  212. +0 −103 mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs
  213. +0 −722 mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
  214. +0 −191 mcs/class/System.Data/System.Data.SqlClient/SqlDataAdapter.cs
  215. +0 −422 mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
  216. +0 −155 mcs/class/System.Data/System.Data.SqlClient/SqlError.cs
  217. +0 −114 mcs/class/System.Data/System.Data.SqlClient/SqlErrorCollection.cs
  218. +0 −204 mcs/class/System.Data/System.Data.SqlClient/SqlException.cs
  219. +0 −51 mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventArgs.cs
  220. +0 −19 mcs/class/System.Data/System.Data.SqlClient/SqlInfoMessageEventHandler.cs
  221. +0 −227 mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs
  222. +0 −276 mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
  223. +0 −37 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventArgs.cs
  224. +0 −18 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatedEventHandler.cs
  225. +0 −43 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventArgs.cs
  226. +0 −18 mcs/class/System.Data/System.Data.SqlClient/SqlRowUpdatingEventHandler.cs
  227. +0 −191 mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs
  228. +0 −22 mcs/class/System.Data/System.Data.SqlTypes/INullable.cs
  229. +0 −232 mcs/class/System.Data/System.Data.SqlTypes/SqlBinary.cs
  230. +0 −377 mcs/class/System.Data/System.Data.SqlTypes/SqlBoolean.cs
  231. +0 −390 mcs/class/System.Data/System.Data.SqlTypes/SqlByte.cs
  232. +0 −29 mcs/class/System.Data/System.Data.SqlTypes/SqlCompareOptions.cs
  233. +0 −249 mcs/class/System.Data/System.Data.SqlTypes/SqlDateTime.cs
  234. +0 −638 mcs/class/System.Data/System.Data.SqlTypes/SqlDecimal.cs
  235. +0 −345 mcs/class/System.Data/System.Data.SqlTypes/SqlDouble.cs
  236. +0 −215 mcs/class/System.Data/System.Data.SqlTypes/SqlGuid.cs
  237. +0 −396 mcs/class/System.Data/System.Data.SqlTypes/SqlInt16.cs
Sorry, we could not display the entire diff because too many files (4,863) changed.
View
16 mcs/AUTHORS
@@ -1,16 +0,0 @@
-C# Compiler:
- Miguel de Icaza (miguel@ximian.com)
- Ravi Pratap (ravi@ximian.com)
-
-Class Libraries:
- Patrik Torstensson <patrik.torstensson@labs2.com>
- Gaurav Vaish <gvaish@iitk.ac.in>
- 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 <danmorg@sc.rr.com>
View
96 mcs/ChangeLog
@@ -1,96 +0,0 @@
-2002-08-13 Piers Haken <piersh@friskit.com>
-
- * class/library.make: merge back original makefile.gnu behavior
- * */makefile.gnu: merge back original makefile.gnu behavior
-
-2002-08-12 Piers Haken <piersh@friskit.com>
-
- * 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 <peterw@ximian.com>
-
- * class/library.make (.makefrag): Fix this rule a bit; was using
- $^ instead of $<
-
-2002-07-29 Peter Williams <peterw@ximian.com>
-
- * makefile.gnu: 'make install' wasn't actually working due to $@,
- fix it.
-
-2002-07-29 Martin Baulig <martin@gnome.org>
-
- * makefile.gnu: Don't force people to install. The default must also
- be `all' and not `install'.
-
-2002-07-26 Alp Toker <alp@atoker.com>
-
- * INSTALL: Wrote a guide to mcs installation.
- * README: Updated to reflect the new INSTALL guide.
-
-2002-07-23 Alp Toker <alp@atoker.com>
-
- * 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 <peterw@ximian.com>
-
- * 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 <martin@gnome.org>
-
- * class/makefile.gnu: Added System.Data.
-
-2002-07-20 Martin Baulig <martin@gnome.org>
-
- * 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 <martin@gnome.org>
-
- * makefile.gnu (DIRS): Added nunit.
-
-2002-07-19 Martin Baulig <martin@gnome.org>
-
- 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 <martin@gnome.org>
-
- * */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 <danmorg@sc.rr.com>
-
- * AUTHORS: add me to class libraries list
-
-2002-03-26 Dick Porter <dick@ximian.com>
-
- * makefile (linux): Abandon the build if any of the subdir makes fail
-
-2002-03-07 Nick Drochak <ndrochak@gol.com>
-
- * makefile: Change order of build so corlib is built before nunit since
- Nunit needs corlib now.
-
-2002-02-14 Nick Drochak <ndrochak@gol.com>
-
- * makefile: Build mcs/doctools too when one does 'make'
-
-2002-01-20 Nick Drochak <ndrochak@gol.com>
-
- * on the 'test' target, make sure NUnit is built first before building
- and running tests
-
-2002-01-20 Nick Drochak <ndrochak@gol.com>
-
- * add nunit directory to the list of dirs to build in
View
53 mcs/INSTALL
@@ -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.
-
View
53 mcs/INSTALL.txt
@@ -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.
-
View
BIN  mcs/MonoIcon.png
Deleted file not rendered
View
25 mcs/README
@@ -1,25 +0,0 @@
-
-This contains the Mono C# compiler as well as the Mono runtime
-library.
-
-See INSTALL for a guide to building and installing mcs.
-
-Layout:
-
- class/
- Class libraries
-
- errors/
- Sample programs that should generate errors by the compiler.
-
- jay/
- Yacc-based parser generator.
-
- mcs/
- The Mono C# compiler
-
- tests/
- Sample tests
-
-Thanks a lot to Sergey Chaban for his help during the development of
-the C# compiler.
View
1  mcs/class/.cvsignore
@@ -1 +0,0 @@
-lib
View
21 mcs/class/Microsoft.VisualBasic/Changelog
@@ -1,21 +0,0 @@
-2002-08-15 Tim Coleman <tim@timcoleman.com>
- * list:
- * makefile.gnu:
- Added files to allow build on linux.
-
-2002-05-12 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
-
- * 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 <cjbreisch@altavista.net>
-
- * Microsoft.VisualBasic: *.cs/Test/*.cs - Cleaned up code, added
- implementations for Collection.cs, Conversion.cs and NUnit Tests
- for both
-
-
-
View
40 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic.build
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-
-<!-- NAnt build file for System.dll -->
-
-<project name="System" default="build">
- <property name="debug" value="false"/>
-
- <target name="build">
- <mkdir dir="../lib"/>
- <csc target="library" output="../lib/Microsoft.VisualBasic.dll" debug="${debug}">
- <arg value="/nowarn:1595"/>
- <arg value="/noconfig"/> <!-- don't reference ms assemblies -->
-
- <!-- cor compare dies with these currently -->
- <!--<arg value="/nostdlib"/>--> <!-- don't reference mscorlib -->
- <!--<arg value="/lib:../lib/"/>-->
- <!--<arg value="/r:..\lib\corlib.dll"/>-->
- <!--<arg value="/r:..\lib\System.dll"/>-->
- <arg value="/r:System.dll"/>
- <sources>
- <includes name="**/*.cs"/>
- <excludes name="Test/**"/>
- </sources>
- <references>
- <!--<includes name="../lib/corlib.dll"/>-->
- <!--<includes name="../lib/System.dll"/>-->
- </references>
- </csc>
- <copy file="../lib/Microsoft.VisualBasic.dll" tofile="Test/Microsoft.VisualBasic.dll"/>
- </target>
-
- <target name="test" depends="build">
- <nant basedir="Test" target="test"/>
- </target>
-
- <target name="clean">
- <nant basedir="Test" target="clean"/>
- <delete file="../lib/Microsoft.VisualBasic.dll" failonerror="false"/>
- </target>
-</project>
View
18 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/AppWinStyle.cs
@@ -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
- };
-}
View
16 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CallType.cs
@@ -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
- };
-}
View
6 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ChangeLog
@@ -1,6 +0,0 @@
-2002-08-15 Tim Coleman <tim@timcoleman.com>
- * ChangeLog:
- Added a ChangeLog
- * Constants.cs:
- Make these actual constants so mcs will compile them.
-
View
314 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Collection.cs
@@ -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 {
- //
- // <summary>
- // Collection : The BASIC Collection Object
- // </summary>
- //
- // <remarks>
- // </remarks>
- // Declarations
- private Hashtable m_Hashtable = new Hashtable();
- private ArrayList m_HashIndexers = new ArrayList();
- internal bool Modified = false;
-
- private class ColEnumerator: IEnumerator
- //
- // <summary>
- // ColEnumerator : This internal class is used
- // for enumerating through our Collection
- // </summary>
- //
- // <remarks>
- // </remarks>
- {
- 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);
- }
- };
-}
View
35 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ComClassAttribute.cs
@@ -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
- };
-}
View
26 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/CompareMethod.cs
@@ -1,26 +0,0 @@
-//
-// CompareMethod.cs
-//
-// Author:
-// Martin Adoue (martin@cwanet.com)
-//
-// (C) 2002 Martin Adoue
-//
-namespace Microsoft.VisualBasic {
-
- /// <summary>
- /// 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.
- /// </summary>
- public enum CompareMethod : int {
- /// <summary>
- /// Performs a binary comparison
- /// </summary>
- Binary = 0,
- /// <summary>
- /// Performs a textual comparison
- /// </summary>
- Text = 1
- };
-}
View
136 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Constants.cs
@@ -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
- };
-}
View
27 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/ControlChars.cs
@@ -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
- };
-}
View
616 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/Conversion.cs
@@ -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 {
- //
- // <summary>
- // Collection : The BASIC Collection Object
- // </summary>
- //
- // <remarks>
- // </remarks>
- // 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
- }
-}
View
478 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateAndTime.cs
@@ -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);
- }
- }
- }
-}
View
37 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateFormat.cs
@@ -1,37 +0,0 @@
-//
-// DateFormat.cs
-//
-// Author:
-// Martin Adoue (martin@cwanet.com)
-//
-// (C) 2002 Martin Adoue
-//
-namespace Microsoft.VisualBasic {
-
- /// <summary>
- /// When you call the DateValue function, you can use the following
- /// enumeration members in your code in place of the actual values.
- /// </summary>
- public enum DateFormat : int {
- /// <summary>
- /// 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.
- /// </summary>
- GeneralDate = 0,
- /// <summary>
- /// Displays a date using the long-date format specified in your computer's regional settings.
- /// </summary>
- LongDate = 1,
- /// <summary>
- /// Displays a date using the short-date format specified in your computer's regional settings.
- /// </summary>
- ShortDate = 2,
- /// <summary>
- /// Displays a time using the long-time format specified in your computer's regional settings.
- /// </summary>
- LongTime = 3,
- /// <summary>
- /// Displays a time using the short-time format specified in your computer's regional settings.
- /// </summary>
- ShortTime = 4
- };
-}
View
22 mcs/class/Microsoft.VisualBasic/Microsoft.VisualBasic/DateInterval.cs
@@ -1,22 +0,0 @@
-//
-// DateInterval.cs<