Add more interop API into System.Runtime and update mscorlib.cs
authorYi Zhang <yzha@microsoft.com>
Wed, 3 Aug 2016 21:30:33 +0000 (14:30 -0700)
committerYi Zhang <yzha@microsoft.com>
Thu, 4 Aug 2016 00:03:47 +0000 (17:03 -0700)
src/mscorlib/model.xml
src/mscorlib/ref/mscorlib.cs

index 65c5d39..c7ffa7c 100644 (file)
       <Member MemberType="Field" Name="ThisCall" />
     </Type>
     <Type Name="System.Runtime.InteropServices.CharSet">
+      <Member MemberType="Field" Name="Ansi" />
       <Member MemberType="Field" Name="Auto" />
+      <Member MemberType="Field" Name="None" />
       <Member MemberType="Field" Name="Unicode" />
       <Member MemberType="Field" Name="value__" />
     </Type>
     </Type>
     <Type Name="System.Runtime.InteropServices.ExternalException">
       <Member Name="#ctor" />
+      <Member Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
       <Member Name="#ctor(System.String)" />
       <Member Name="#ctor(System.String,System.Exception)" />
       <Member Name="#ctor(System.String,System.Int32)" />
     </Type>
     <Type Name="System.Runtime.InteropServices.StructLayoutAttribute">
       <Member MemberType="Field" Name="CharSet" />
+      <Member MemberType="Field" Name="Pack" />
       <Member MemberType="Field" Name="Size" />
+      <Member Name="#ctor(System.Int16)" />
       <Member Name="#ctor(System.Runtime.InteropServices.LayoutKind)" />
-      <Member MemberType="Field" Name="Pack" /> <!-- forced by desktop implementation -->
-      <Member Status="ImplRoot" Name="#ctor(System.Int16)" />
+      <Member Name="get_Value" />
       <Member MemberType="Property" Name="Value" />
     </Type>
     <Type Name="System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute">
index 8e9171d..47d6ae4 100644 (file)
@@ -9956,11 +9956,12 @@ namespace System.Runtime.InteropServices
         public int ErrorCode { get { return default(int); } }
     }
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public partial class ExternalException : System.SystemException
-    {
+    public partial class ExternalException : System.SystemException {
         public ExternalException() { }
+        protected ExternalException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
         public ExternalException(string message) { }
         public ExternalException(string message, System.Exception inner) { }
+        public ExternalException(string message, int errorCode) { }
         public virtual int ErrorCode { get { return default(int); } }
     }
     [System.AttributeUsageAttribute((System.AttributeTargets)(256), Inherited=false)]
@@ -10481,11 +10482,11 @@ namespace System.Runtime.InteropServices
     }
     [System.AttributeUsageAttribute((System.AttributeTargets)(12), Inherited=false)]
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public sealed partial class StructLayoutAttribute : System.Attribute
-    {
+    public sealed partial class StructLayoutAttribute : System.Attribute {
         public System.Runtime.InteropServices.CharSet CharSet;
         public int Pack;
         public int Size;
+        public StructLayoutAttribute(short layoutKind) { }
         public StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind layoutKind) { }
         public System.Runtime.InteropServices.LayoutKind Value { get { return default(System.Runtime.InteropServices.LayoutKind); } }
     }