Skip to content

Commit

Permalink
Update dummy fields within the ref by auto-generating them from the s…
Browse files Browse the repository at this point in the history
…ource assembly. (dotnet/corefx#39687)

* Update dummy fields within the ref by auto-generating them from the
source assembly.

* Address feedback.


Commit migrated from dotnet/corefx@c50b758
  • Loading branch information
ahsonkhan authored and msftbot[bot] committed Jul 24, 2019
1 parent e562a8f commit 2ea4e4f
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ namespace System.ComponentModel.Composition.ReflectionModel
public partial struct LazyMemberInfo
{
private object _dummy;
private int _dummyPrimitive;
public LazyMemberInfo(System.Reflection.MemberInfo member) { throw null; }
public LazyMemberInfo(System.Reflection.MemberTypes memberType, System.Func<System.Reflection.MemberInfo[]> accessorsCreator) { throw null; }
public LazyMemberInfo(System.Reflection.MemberTypes memberType, params System.Reflection.MemberInfo[] accessors) { throw null; }
Expand Down
1 change: 1 addition & 0 deletions src/libraries/System.Data.Common/ref/System.Data.Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3334,6 +3334,7 @@ void System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter wri
public partial struct SqlString : System.Data.SqlTypes.INullable, System.IComparable, System.Xml.Serialization.IXmlSerializable
{
private object _dummy;
private int _dummyPrimitive;
public static readonly int BinarySort;
public static readonly int BinarySort2;
public static readonly int IgnoreCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public partial class RenamedEventArgs : System.IO.FileSystemEventArgs
public partial struct WaitForChangedResult
{
private object _dummy;
private int _dummyPrimitive;
public System.IO.WatcherChangeTypes ChangeType { get { throw null; } set { } }
public string Name { get { throw null; } set { } }
public string OldName { get { throw null; } set { } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ namespace System.IO.Enumeration
{
public ref partial struct FileSystemEntry
{
private object _dummy;
private int _dummyPrimitive;
public System.IO.FileAttributes Attributes { get { throw null; } }
public System.DateTimeOffset CreationTimeUtc { get { throw null; } }
public System.ReadOnlySpan<char> Directory { get { throw null; } }
Expand Down
2 changes: 2 additions & 0 deletions src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public enum IOControlCode : long
public partial struct IPPacketInformation
{
private object _dummy;
private int _dummyPrimitive;
public System.Net.IPAddress Address { get { throw null; } }
public int Interface { get { throw null; } }
public override bool Equals(object comparand) { throw null; }
Expand Down Expand Up @@ -420,6 +421,7 @@ public enum SocketFlags
public partial struct SocketInformation
{
private object _dummy;
private int _dummyPrimitive;
public System.Net.Sockets.SocketInformationOptions Options { get { throw null; } set { } }
public byte[] ProtocolInformation { get { throw null; } set { } }
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace System.Numerics
public readonly partial struct BigInteger : System.IComparable, System.IComparable<System.Numerics.BigInteger>, System.IEquatable<System.Numerics.BigInteger>, System.IFormattable
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
[System.CLSCompliantAttribute(false)]
public BigInteger(byte[] value) { throw null; }
public BigInteger(decimal value) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public enum CngKeyUsages
public partial struct CngProperty : System.IEquatable<System.Security.Cryptography.CngProperty>
{
private object _dummy;
private int _dummyPrimitive;
public CngProperty(string name, byte[] value, System.Security.Cryptography.CngPropertyOptions options) { throw null; }
public string Name { get { throw null; } }
public System.Security.Cryptography.CngPropertyOptions Options { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ public void Reset() { }
public partial struct X509ChainStatus
{
private object _dummy;
private int _dummyPrimitive;
public System.Security.Cryptography.X509Certificates.X509ChainStatusFlags Status { get { throw null; } set { } }
public string StatusInformation { get { throw null; } set { } }
}
Expand Down

0 comments on commit 2ea4e4f

Please sign in to comment.