[corlib] Parse datetime string using culture calendar. Fixes #18052
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Messaging / Header.cs
index d89eddbd1b8b53714049a320ff08ad3d1af4893f..b645d69015253412ccdb80d717eb18773eef5073 100644 (file)
@@ -6,27 +6,52 @@
 //\r
 // (C) 2002\r
 //\r
+
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
 \r
 using System.Collections;\r
 \r
 namespace System.Runtime.Remoting.Messaging {\r
 \r
+       [Serializable]\r
+       [System.Runtime.InteropServices.ComVisible (true)]\r
        public class Header {\r
-               public Header (string name, object value) :\r
-                       this (name, value, true)\r
+               public Header (string _Name, object _Value) :\r
+                       this (_Name, _Value, true)\r
                {\r
                }\r
 \r
-               public Header (string name, object value, bool must_understand) :\r
-                       this (name, value, must_understand, null)\r
+               public Header (string _Name, object _Value, bool _MustUnderstand) :\r
+                       this (_Name, _Value, _MustUnderstand, null)\r
                {\r
                }\r
 \r
-               public Header (string name, object value, bool must_understand, string header_namespace) {\r
-                       this.name = name;\r
-                       this.value = value;\r
-                       this.must_understand = must_understand;\r
-                       this.header_namespace = header_namespace;\r
+               public Header (string _Name, object _Value, bool _MustUnderstand, string _HeaderNamespace) {\r
+                       this.Name = _Name;\r
+                       this.Value = _Value;\r
+                       this.MustUnderstand = _MustUnderstand;\r
+                       this.HeaderNamespace = _HeaderNamespace;\r
                }\r
 \r
                // fields\r
@@ -38,12 +63,5 @@ namespace System.Runtime.Remoting.Messaging {
                public string Name;\r
 \r
                public object Value;\r
-\r
-               // private\r
-\r
-               private string name;\r
-               private object value;\r
-               private bool must_understand;\r
-               private string header_namespace;\r
        }\r
 }\r