Author: rolf
Date: 2007-03-07 04:29:35 -0500 (Wed, 07 Mar 2007)
New Revision: 73874

Modified:
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ChangeLog
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Conversions.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DesignerGeneratedAttribute.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/InternalErrorException.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LikeOperator.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/NewLateBinding.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectFlowControl.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Operators.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb
   
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Versioned.vb
Log:
* DoubleType.vb, StaticLocalInitFlag.vb, LateBinding.vb,
  NewLateBinding.vb, Versioned.vb, ObjectFlowControl.vb,
  ProjectData.vb, LikeOperator.vb, DecimalType.vb,
  OptionTextAttribute.vb, InternalErrorException.vb, ObjectType.vb,
  StringType.vb, CharArrayType.vb, IVbHost.vb, Operators.vb,
  CharType.vb, DateType.vb, ExceptionUtils.vb, BooleanType.vb,
  HostServices.vb, SingleType.vb, StandardModuleAttribute.vb,
  IntegerType.vb, Utils.vb, ShortType.vb, LongType.vb,
  DesignerGeneratedAttribute.vb, ByteType.vb,
  IncompleteInitialization.vb, Conversions.vb, FlowControl.vb:
  Corcompare work.

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/BooleanType.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,10 +31,12 @@
 Imports System
 Imports Microsoft.VisualBasic.CompilerServices
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class BooleanType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class BooleanType
         Private Sub New()
             'Nobody should see constructor
         End Sub
+
         Public Shared Function FromObject(ByVal Value As Object) As Boolean
             If Value Is Nothing Then
                 Return False
@@ -58,15 +60,15 @@
 
 #If NET_2_0 Then
             If TypeOf Value Is SByte Then
-                Return DirectCast(Value,SBYte) <> 0
+                Return DirectCast(Value, SByte) <> 0
             End If
 
             If TypeOf Value Is UInteger Then
-                Return DirectCast(Value,UInteger) <> 0
+                Return DirectCast(Value, UInteger) <> 0
             End If
 
             If TypeOf Value Is ULong Then
-                Return DirectCast(Value,ULong) <> 0
+                Return DirectCast(Value, ULong) <> 0
             End If
 #End If
             If TypeOf Value Is Long Then

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.vb
 2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ByteType.vb
 2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,7 +31,8 @@
 Imports System
 
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class ByteType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class ByteType
         Private Sub New()
             'Nobody should see constructor
         End Sub

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ChangeLog
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ChangeLog
   2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ChangeLog
   2007-03-07 09:29:35 UTC (rev 73874)
@@ -1,3 +1,17 @@
+2007-03-07  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
+       * DoubleType.vb, StaticLocalInitFlag.vb, LateBinding.vb,
+         NewLateBinding.vb, Versioned.vb, ObjectFlowControl.vb,
+         ProjectData.vb, LikeOperator.vb, DecimalType.vb,
+         OptionTextAttribute.vb, InternalErrorException.vb, ObjectType.vb,
+         StringType.vb, CharArrayType.vb, IVbHost.vb, Operators.vb,
+         CharType.vb, DateType.vb, ExceptionUtils.vb, BooleanType.vb,
+         HostServices.vb, SingleType.vb, StandardModuleAttribute.vb,
+         IntegerType.vb, Utils.vb, ShortType.vb, LongType.vb,
+         DesignerGeneratedAttribute.vb, ByteType.vb,
+         IncompleteInitialization.vb, Conversions.vb, FlowControl.vb:
+         Corcompare work.
+
 2007-03-01  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * Operators.vb: Implemented basic support for 
(Conditional)CompareObject*.

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.vb
    2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharArrayType.vb
    2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,7 +31,8 @@
 Imports System
 Imports Microsoft.VisualBasic
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class CharArrayType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class CharArrayType
         Private Sub New()
             'Nobody should see constructor
         End Sub

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.vb
 2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/CharType.vb
 2007-03-07 09:29:35 UTC (rev 73874)
@@ -32,9 +32,9 @@
 Imports Microsoft.VisualBasic
 
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class CharType
 
-    Public Class CharType
-
         Private Sub New()
             'Nobody should see constructor
         End Sub

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Conversions.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Conversions.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Conversions.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -33,6 +33,7 @@
 Imports System.Globalization
 
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class Conversions
         Private Sub New()
             'Nobody should see constructor

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.vb
 2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DateType.vb
 2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,7 +31,8 @@
 Imports System
 
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class DateType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class DateType
 
         Private Sub New()
             'Nobody should see constructor

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DecimalType.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -30,7 +30,8 @@
 
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class DecimalType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class DecimalType
         '
         ' core logic is at Parse
         '

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DesignerGeneratedAttribute.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DesignerGeneratedAttribute.vb
       2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DesignerGeneratedAttribute.vb
       2007-03-07 09:29:35 UTC (rev 73874)
@@ -33,7 +33,7 @@
 Imports System.Runtime.InteropServices
 'MONOTODO:("What should it do?")
 Namespace Microsoft.VisualBasic.CompilerServices
-    <AttributeUsage(AttributeTargets.Class)> _
+    <AttributeUsage(AttributeTargets.Class, AllowMultiple:=False, 
Inherited:=False), EditorBrowsable(EditorBrowsableState.Never)> _
     Public NotInheritable Class DesignerGeneratedAttribute
         Inherits Attribute
         Public Sub New()

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.vb
       2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/DoubleType.vb
       2007-03-07 09:29:35 UTC (rev 73874)
@@ -33,6 +33,7 @@
 Imports System.Runtime.InteropServices
 
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class DoubleType
 
         Private Sub New()
@@ -88,7 +89,7 @@
         Public Shared Function Parse(ByVal Value As String, ByVal NumberFormat 
As System.Globalization.NumberFormatInfo) As Double
             Return Double.Parse(Value, NumberFormat)
         End Function
-        Shared Function TryParse(ByVal value As String, <OutAttribute()> ByRef 
result As Double) As Boolean
+        Friend Shared Function TryParse(ByVal value As String, 
<OutAttribute()> ByRef result As Double) As Boolean
             'Grasshopper still does not support Double.TryParse
 #If NET_2_0 And TARGET_JVM = False Then
             Return Double.TryParse(value, result)

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.vb
   2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ExceptionUtils.vb
   2007-03-07 09:29:35 UTC (rev 73874)
@@ -32,6 +32,7 @@
 Imports System.Runtime.InteropServices
 'MONOTODO: implement this public class. if needed.
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class ExceptionUtils
         Private Sub New()
             'Nobody should see constructor

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/FlowControl.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,9 +31,9 @@
 Imports System
 
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class FlowControl
 
-    Public Class FlowControl
-
         ' LoopFor reference object
         Private Class LoopForObject
             Public Start As Decimal

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.vb
     2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/HostServices.vb
     2007-03-07 09:29:35 UTC (rev 73874)
@@ -29,6 +29,7 @@
 '
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class HostServices
         Private Shared host As IVbHost = Nothing
         ' Properties

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.vb
  2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IVbHost.vb
  2007-03-07 09:29:35 UTC (rev 73874)
@@ -29,12 +29,13 @@
 '
 
 Imports System
+Imports System.ComponentModel
+
 Namespace Microsoft.VisualBasic.CompilerServices
+    <EditorBrowsable(EditorBrowsableState.Never)> _
     Public Interface IVbHost
-        ' Methods
         Function GetWindowTitle() As String
-        'TODO:How to support System.Windows.Forms.IWin32Window ?
-        'Function GetParentWindow() As System.Windows.Forms.IWin32Window
+        Function GetParentWindow() As System.Windows.Forms.IWin32Window
     End Interface
 End Namespace
 

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.vb
 2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IncompleteInitialization.vb
 2007-03-07 09:29:35 UTC (rev 73874)
@@ -28,25 +28,38 @@
 ' WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 '
 Imports System
+Imports System.ComponentModel
 
 Namespace Microsoft.VisualBasic.CompilerServices
 
 #If NET_2_0 Then
     <System.Serializable()> _
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class IncompleteInitialization : Inherits Exception
 #Else
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class IncompleteInitialization : Inherits Exception
 #End If
         Public Sub New()
             MyBase.New()
         End Sub
 
+#If NET_VER >= 2.0 Then
+        <EditorBrowsable(EditorBrowsableState.Advanced)> _
         Public Sub New(ByVal message As String)
+#Else
+        Public Sub New(ByVal message As String)
+#End If
             MyBase.New(message)
         End Sub
 
+#If NET_VER >= 2.0 Then
+        <EditorBrowsable(EditorBrowsableState.Advanced)> _
         Public Sub New(ByVal message As String, ByVal innerException As 
Exception)
-            MyBase.New(message, innerException)
+#Else
+        Public Sub New(ByVal message As String, ByVal innerException As 
Exception)
+#End If
+            MyBase.New(message, InnerException)
         End Sub
     End Class
 End Namespace

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/IntegerType.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,7 +31,8 @@
 Imports System
 Imports System.Runtime.InteropServices
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class IntegerType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class IntegerType
         Private Sub New()
             'Nobody should see constructor
         End Sub

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/InternalErrorException.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/InternalErrorException.vb
   2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/InternalErrorException.vb
   2007-03-07 09:29:35 UTC (rev 73874)
@@ -28,13 +28,30 @@
 ' OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 ' WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
+
+#If NET_VER >= 2.0 Then
 Imports System
 Imports System.Runtime.InteropServices
-'MONOTODO: implement this public class. if needed.
+
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class InternalErrorException
-        Private Sub New()
-            'Nobody should see constructor
+        Inherits Exception
+
+        Public Sub New()
+            MyBase.New()
         End Sub
+
+        
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Advanced)>
 _
+        Public Sub New(ByVal message As String)
+            MyBase.New(message)
+        End Sub
+
+        
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Advanced)>
 _
+        Public Sub New(ByVal message As String, ByVal innerException As 
Exception)
+            MyBase.New(message, innerException)
+        End Sub
+
     End Class
 End Namespace
+#End If
\ No newline at end of file

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LateBinding.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -33,19 +33,21 @@
 Imports System.Globalization
 
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class LateBinding
 
-    Public Class LateBinding
-
         Private Shared ReadOnly Property LBinder() As 
Microsoft.VisualBasic.CompilerServices.LateBinder
             Get
                 Return New LateBinder
             End Get
         End Property
 
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateCall(ByVal o As Object, ByVal objType As 
System.Type, ByVal name As String, ByVal args() As Object, ByVal paramnames() 
As String, ByVal CopyBack() As Boolean)
             LateGet(o, objType, name, args, paramnames, CopyBack)
         End Sub
 
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateIndexSet(ByVal o As Object, ByVal args() As 
Object, ByVal paramnames() As String)
             Dim realType As System.Type = o.GetType()
             Dim flags As BindingFlags
@@ -59,11 +61,13 @@
             End If
         End Sub
 
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateIndexSetComplex(ByVal o As Object, ByVal args() 
As Object, ByVal paramnames() As String, ByVal OptimisticSet As Boolean, ByVal 
RValueBase As Boolean)
             'FIXME
             LateIndexSet(o, args, paramnames)
         End Sub
 
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateSet(ByVal o As Object, ByVal objType As 
System.Type, ByVal name As String, ByVal args() As Object, ByVal paramnames() 
As String)
             Dim realType As System.Type = objType
             If realType Is Nothing Then
@@ -102,6 +106,7 @@
             realType.InvokeMember(name, flags, LBinder, o, args, Nothing, 
Nothing, paramnames)
         End Sub
 
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateSetComplex(ByVal o As Object, ByVal objType As 
System.Type, ByVal name As String, ByVal args() As Object, ByVal paramnames() 
As String, ByVal OptimisticSet As Boolean, ByVal RValueBase As Boolean)
             'FIXME
             Try
@@ -111,12 +116,13 @@
             End Try
         End Sub
 
-        Public Shared Function LateGet(ByVal o As Object, ByVal objType As 
System.Type, ByVal name As String, ByVal args() As Object, ByVal paramnames() 
As String, ByVal CopyBack() As Boolean) As Object          
+        <DebuggerStepThrough(), DebuggerHidden()> _
+        Public Shared Function LateGet(ByVal o As Object, ByVal objType As 
System.Type, ByVal name As String, ByVal args() As Object, ByVal paramnames() 
As String, ByVal CopyBack() As Boolean) As Object
             Dim realType As System.Type = objType
             If realType Is Nothing Then
                 realType = o.GetType()
             End If
-         
+
             Dim flags As BindingFlags = BindingFlags.FlattenHierarchy Or _
                                         BindingFlags.GetField Or _
                                         BindingFlags.GetProperty Or _
@@ -138,6 +144,7 @@
             End Try
         End Function
 
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Function LateIndexGet(ByVal o As Object, ByVal args() As 
Object, ByVal paramnames() As String) As Object
             Dim realType As System.Type = o.GetType()
             Dim flags As BindingFlags
@@ -151,5 +158,8 @@
             End If
         End Function
 
+        Private Sub New()
+
+        End Sub
     End Class
 End Namespace

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LikeOperator.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LikeOperator.vb
     2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LikeOperator.vb
     2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,6 +31,7 @@
 Imports System
 'MONOTODO: implement this public class. if needed.
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class LikeOperator
         Private Sub New()
             'Nobody should see constructor

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.vb
 2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/LongType.vb
 2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,9 +31,9 @@
 Imports System
 
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class LongType
 
-    Public Class LongType
-
         Private Sub New()
             'Nobody should see constructor
         End Sub

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/NewLateBinding.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/NewLateBinding.vb
   2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/NewLateBinding.vb
   2007-03-07 09:29:35 UTC (rev 73874)
@@ -30,35 +30,45 @@
 #If NET_2_0 Then
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class NewLateBinding
         Private Sub New()
             'Nobody should see constructor
         End Sub
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Function LateCall(ByVal Instance As Object, ByVal Type 
As Type, ByVal MemberName As String, ByVal Arguments As Object(), ByVal 
ArgumentNames As String(), ByVal TypeArguments As Type(), ByVal CopyBack As 
Boolean(), ByVal IgnoreReturn As Boolean) As Object
             Return LateBinding.LateGet(Instance, Type, MemberName, Arguments, 
ArgumentNames, CopyBack)
         End Function
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Function LateCanEvaluate(ByVal instance As Object, ByVal 
type As Type, ByVal memberName As String, ByVal arguments As Object(), ByVal 
allowFunctionEvaluation As Boolean, ByVal allowPropertyEvaluation As Boolean) 
As Boolean
             Throw New NotImplementedException
         End Function
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Function LateGet(ByVal Instance As Object, ByVal Type As 
Type, ByVal MemberName As String, ByVal Arguments As Object(), ByVal 
ArgumentNames As String(), ByVal TypeArguments As Type(), ByVal CopyBack As 
Boolean()) As Object
             Return LateBinding.LateGet(Instance, Type, MemberName, Arguments, 
ArgumentNames, CopyBack)
         End Function
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Function LateIndexGet(ByVal Instance As Object, ByVal 
Arguments As Object(), ByVal ArgumentNames As String()) As Object
             Return LateBinding.LateIndexGet(Instance, Arguments, ArgumentNames)
         End Function
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateIndexSet(ByVal Instance As Object, ByVal 
Arguments As Object(), ByVal ArgumentNames As String())
             LateBinding.LateIndexSet(Instance, Arguments, ArgumentNames)
         End Sub
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateIndexSetComplex(ByVal Instance As Object, ByVal 
Arguments As Object(), ByVal ArgumentNames As String(), ByVal OptimisticSet As 
Boolean, ByVal RValueBase As Boolean)
             LateBinding.LateIndexSetComplex(Instance, Arguments, 
ArgumentNames, OptimisticSet, RValueBase)
         End Sub
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateSet(ByVal Instance As Object, ByVal Type As 
Type, ByVal MemberName As String, ByVal Arguments As Object(), ByVal 
ArgumentNames As String(), ByVal TypeArguments As Type())
             LateBinding.LateSet(Instance, Type, MemberName, Arguments, 
ArgumentNames)
         End Sub
+        <DebuggerStepThrough(), DebuggerHidden()> _
         Public Shared Sub LateSet(ByVal Instance As Object, ByVal Type As 
Type, ByVal MemberName As String, ByVal Arguments As Object(), ByVal 
ArgumentNames As String(), ByVal TypeArguments As Type(), ByVal OptimisticSet 
As Boolean, ByVal RValueBase As Boolean, ByVal CallType As CallType)
             LateSetComplex(Instance, Type, MemberName, Arguments, 
ArgumentNames, TypeArguments, OptimisticSet, RValueBase)
         End Sub
-        Public Shared Sub LateSetComplex(ByVal Instance As Object, ByVal Type 
As Type, ByVal MemberName As String, ByVal Arguments As Object(), ByVal 
ArgumentNames As String(), ByVal TypeArguments As Type(), ByVal OptimisticSet 
As Boolean, ByVal RValueBase As Boolean)            
+        <DebuggerStepThrough(), DebuggerHidden()> _
+        Public Shared Sub LateSetComplex(ByVal Instance As Object, ByVal Type 
As Type, ByVal MemberName As String, ByVal Arguments As Object(), ByVal 
ArgumentNames As String(), ByVal TypeArguments As Type(), ByVal OptimisticSet 
As Boolean, ByVal RValueBase As Boolean)
             LateSet(Instance, Type, MemberName, Arguments, ArgumentNames, 
TypeArguments)
         End Sub
     End Class

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectFlowControl.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectFlowControl.vb
        2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectFlowControl.vb
        2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,6 +31,7 @@
 Imports System
 'MONOTODO: implement this public class. if needed.
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class ObjectFlowControl
         Private Sub New()
             'Nobody should see constructor
@@ -38,7 +39,9 @@
         Public Shared Sub CheckForSyncLockOnValueType(ByVal Expression As 
Object)
             FlowControl.CheckForSyncLockOnValueType(Expression)
         End Sub
-        Public Class ForLoopControl
+
+        
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+        Public NotInheritable Class ForLoopControl
             Private Sub New()
                 'Nobody should see constructor
             End Sub

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.vb
       2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ObjectType.vb
       2007-03-07 09:29:35 UTC (rev 73874)
@@ -30,10 +30,11 @@
 
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class ObjectType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class ObjectType
 
-        Private Sub New()
-            'Nobody should see constructor
+        Public Sub New()
+
         End Sub
 
         Private Shared Function BiggestTypeCode(ByVal obj1 As System.Object, 
ByVal obj2 As System.Object) As System.TypeCode
@@ -142,8 +143,8 @@
             Dim short1 As Short
             Dim short2 As Short
 
-            Dim dt1 as Date
-            Dim dt2 as Date
+            Dim dt1 As Date
+            Dim dt2 As Date
 
             Dim s1 As String
             Dim s2 As String
@@ -288,14 +289,14 @@
 
         End Function
 
-       Public Shared Function GetCaseNotImplemented() as System.Exception
-           return new NotImplementedException("This case is not handled")
-       End Function 
+        Friend Shared Function GetCaseNotImplemented() As System.Exception
+            Return New NotImplementedException("This case is not handled")
+        End Function
 
-       Public Shared Function GetCaseNotImplemented(ByVal msg As 
System.String) as System.Exception
-           return new NotImplementedException(msg)
-       End Function 
- 
+        Friend Shared Function GetCaseNotImplemented(ByVal msg As 
System.String) As System.Exception
+            Return New NotImplementedException(msg)
+        End Function
+
         Public Shared Function PlusObj(ByVal obj As System.Object) As 
System.Object
             Throw New NotImplementedException
         End Function

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Operators.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Operators.vb
        2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Operators.vb
        2007-03-07 09:29:35 UTC (rev 73874)
@@ -31,7 +31,8 @@
 #If NET_2_0 Then
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class Operators
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class Operators
         Class CompareResult
             Public Value As Integer
             Public Type As CompareResultType
@@ -432,6 +433,10 @@
         Public Shared Function XorObject(ByVal Left As Object, ByVal Right As 
Object) As Object
             Throw New NotImplementedException
         End Function
+
+        Private Sub New()
+
+        End Sub
     End Class
 End Namespace
 #End If
\ No newline at end of file

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/OptionTextAttribute.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -32,7 +32,7 @@
 Imports System.ComponentModel
 Imports System.Runtime.InteropServices
 Namespace Microsoft.VisualBasic.CompilerServices
-    <AttributeUsage(AttributeTargets.Class)> _
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never),
 AttributeUsage(AttributeTargets.Class)> _
     Public NotInheritable Class OptionTextAttribute
         Inherits Attribute
     End Class

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ProjectData.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -36,6 +36,7 @@
 Namespace Microsoft.VisualBasic.CompilerServices
     ' ProjectData class is used in VB exception handling.
     ' it holds an ErrObject which stores the current error status of the whole 
running program.
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class ProjectData
 
         ' ProjectData singelton
@@ -70,11 +71,16 @@
             Return Inst
         End Function
         'ClearProjectError is called by the statement "On Error Resume Next"
+#If NET_VER >= 2.0 Then
+        
<System.Runtime.ConstrainedExecution.ReliabilityContract(Runtime.ConstrainedExecution.Consistency.WillNotCorruptState,
 Runtime.ConstrainedExecution.Cer.Success)> _
         Public Shared Sub ClearProjectError()
+#Else
+        Public Shared Sub ClearProjectError()
+#End If
             'FIXME: "On Error Resume Next" cause to stop throwing exceptions. 
             'might be some friend variable of ErrObject which store that flag .
             Dim pd As ProjectData = Instance()
-            pd.projectError.Clear()
+            pd.ProjectError.Clear()
         End Sub
         Public Shared Function CreateProjectError(ByVal hr As Integer) As 
Exception
             'FIXME: hr might be a Windows HResult number, and not a VB error 
number.
@@ -87,21 +93,34 @@
             Dim description As String
             description = Conversion.ErrorToString(hr)
 
-            pd.projectError.SetExceptionFromNumber(hr, description)
+            pd.ProjectError.SetExceptionFromNumber(hr, description)
 
-            Return pd.projectError.GetException
+            Return pd.ProjectError.GetException
 
         End Function
+
+#If NET_VER >= 2.0 Then
+        
<System.Runtime.ConstrainedExecution.ReliabilityContract(Runtime.ConstrainedExecution.Consistency.WillNotCorruptState,
 Runtime.ConstrainedExecution.Cer.Success)> _
         Public Shared Sub SetProjectError(ByVal ex As Exception)
+#Else
+        Public Shared Sub SetProjectError(ByVal ex As Exception)
+#End If
             Dim pd As ProjectData = Instance()
-            pd.projectError.SetException(ex)
+            pd.ProjectError.SetException(ex)
         End Sub
+
+#If NET_VER >= 2.0 Then
+        
<System.Runtime.ConstrainedExecution.ReliabilityContract(Runtime.ConstrainedExecution.Consistency.WillNotCorruptState,
 Runtime.ConstrainedExecution.Cer.Success)> _
         Public Shared Sub SetProjectError(ByVal ex As Exception, ByVal lErl As 
Integer)
+#Else
+        Public Shared Sub SetProjectError(ByVal ex As Exception, ByVal lErl As 
Integer)
+#End If
             Throw New NotImplementedException("implement me: Erl")
             'FIXME: projectError.SetException(ex)
             'FIXME: projectError.Erl = lErl
             'FIXME: projectError.Erl  is readonly. suggested solution, add an 
overload of SetException(Exception,Integer)
         End Sub
+
         Public Shared Sub EndApp()
             Environment.Exit(Environment.ExitCode)
         End Sub

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.vb
        2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/ShortType.vb
        2007-03-07 09:29:35 UTC (rev 73874)
@@ -30,9 +30,9 @@
 
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class ShortType
 
-    Public Class ShortType
-
         Private Sub New()
             'Nobody should see constructor
         End Sub
@@ -49,8 +49,8 @@
             End If
 
             If TypeOf Value Is Boolean Then
-                Return ((-1S)*(Convert.ToInt16(Value)))
-            End If 
+                Return ((-1S) * (Convert.ToInt16(Value)))
+            End If
 
             Return Convert.ToInt16(Value)
 

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.vb
       2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/SingleType.vb
       2007-03-07 09:29:35 UTC (rev 73874)
@@ -30,7 +30,8 @@
 
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class SingleType
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class SingleType
 
         Private Sub New()
             'Nobody should see constructor

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.vb
  2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StandardModuleAttribute.vb
  2007-03-07 09:29:35 UTC (rev 73874)
@@ -34,7 +34,7 @@
 Imports System.Runtime.InteropServices
 'MONOTODO:("What should it do?")
 Namespace Microsoft.VisualBasic.CompilerServices
-    <AttributeUsage(AttributeTargets.Class)> _
+    <AttributeUsage(AttributeTargets.Class, Inherited:=False, 
AllowMultiple:=False), 
System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
     Public NotInheritable Class StandardModuleAttribute
         Inherits Attribute
     End Class

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.vb
      2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag.vb
      2007-03-07 09:29:35 UTC (rev 73874)
@@ -29,7 +29,14 @@
 ' WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 Imports System
 Namespace Microsoft.VisualBasic.CompilerServices
+#If NET_VER >= 2.0 Then
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    <Serializable()> _
     Public NotInheritable Class StaticLocalInitFlag
+#Else
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class StaticLocalInitFlag
+#End If
         Public State As Short
     End Class
 End Namespace
\ No newline at end of file

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.vb
       2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.vb
       2007-03-07 09:29:35 UTC (rev 73874)
@@ -41,9 +41,9 @@
 Imports System.Text.RegularExpressions
 
 Namespace Microsoft.VisualBasic.CompilerServices
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class StringType
 
-    Public Class StringType
-
         Private Sub New()
             'Nobody should see constructor
         End Sub
@@ -68,6 +68,10 @@
             Return Value.ToString()
         End Function
 
+        Public Shared Function FromDecimal(ByVal Value As Decimal, ByVal 
NumberFormat As System.Globalization.NumberFormatInfo) As String
+            Return Value.ToString(NumberFormat)
+        End Function
+
         Public Shared Function FromObject(ByVal Value As Object) As String
             If Value Is Nothing Then
                 Return Nothing
@@ -82,8 +86,8 @@
                 Case TypeCode.Char
                     Return Convert.ToString(DirectCast(Value, Char))
                 Case TypeCode.DateTime
-                   ' Return StringType.FromDate(DirectCast(Value, Date))
-                    Return StringType.FromDate(DateType.FromObject(Value))
+                    ' Return StringType.FromDate(DirectCast(Value, Date))
+                    Return StringType.FromDate(DateType.FromObject(Value))
                 Case TypeCode.Double
                     Return Convert.ToString(DirectCast(Value, Double))
                 Case TypeCode.Decimal
@@ -108,6 +112,10 @@
             Return value.ToString()
         End Function
 
+        Public Shared Function FromDouble(ByVal Value As Double, ByVal 
NumberFormat As System.Globalization.NumberFormatInfo) As String
+            Return Value.ToString(NumberFormat)
+        End Function
+
         Public Shared Function FromByte(ByVal value As Byte) As String
             Return value.ToString()
         End Function
@@ -116,6 +124,10 @@
             Return value.ToString()
         End Function
 
+        Public Shared Function FromSingle(ByVal Value As Single, ByVal 
NumberFormat As System.Globalization.NumberFormatInfo) As String
+            Return Value.ToString(NumberFormat)
+        End Function
+
         Public Shared Function FromLong(ByVal value As Long) As String
             Return value.ToString()
         End Function

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb
    2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.vb
    2007-03-07 09:29:35 UTC (rev 73874)
@@ -32,7 +32,8 @@
 Imports System.Runtime.InteropServices
 
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class Utils
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class Utils
 
         Private Sub New()
             'Nobody should see constructor

Modified: 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Versioned.vb
===================================================================
--- 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Versioned.vb
        2007-03-07 09:29:18 UTC (rev 73873)
+++ 
trunk/mono-basic/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Versioned.vb
        2007-03-07 09:29:35 UTC (rev 73874)
@@ -35,11 +35,12 @@
 ' Information.TypeName and Information.VbTypeName.
 ' It compiles them into coaresponding Versioned.foo functions.
 Namespace Microsoft.VisualBasic.CompilerServices
-    Public Class Versioned
+    
<System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)>
 _
+    Public NotInheritable Class Versioned
         Private Sub New()
             'Nobody should see constructor
         End Sub
-        Public Shared Function CallByName(ByVal Instance As Object, ByVal 
MethodName As String, ByVal UseCallType As CallType, ByVal Arguments As 
Object()) As Object
+        Public Shared Function CallByName(ByVal Instance As Object, ByVal 
MethodName As String, ByVal UseCallType As CallType, ByVal ParamArray Arguments 
As Object()) As Object
             Throw New NotImplementedException
         End Function
         Public Shared Function IsNumeric(ByVal Expression As Object) As Boolean

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to