Skip to content

Commit c547adc

Browse files
committed
C#: Regenerate Microsoft.NetCore.App stubs
1 parent 58f45ea commit c547adc

File tree

163 files changed

+33778
-38172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+33778
-38172
lines changed
Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// This file contains auto-generated code.
22
// Generated from `Microsoft.CSharp, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
3-
43
namespace Microsoft
54
{
65
namespace CSharp
@@ -21,55 +20,49 @@ public static class Binder
2120
public static System.Runtime.CompilerServices.CallSiteBinder SetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, System.Type context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> argumentInfo) => throw null;
2221
public static System.Runtime.CompilerServices.CallSiteBinder UnaryOperation(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, System.Linq.Expressions.ExpressionType operation, System.Type context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> argumentInfo) => throw null;
2322
}
24-
25-
public class CSharpArgumentInfo
23+
public sealed class CSharpArgumentInfo
2624
{
2725
public static Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags flags, string name) => throw null;
2826
}
29-
3027
[System.Flags]
31-
public enum CSharpArgumentInfoFlags : int
28+
public enum CSharpArgumentInfoFlags
3229
{
30+
None = 0,
31+
UseCompileTimeType = 1,
3332
Constant = 2,
34-
IsOut = 16,
33+
NamedArgument = 4,
3534
IsRef = 8,
35+
IsOut = 16,
3636
IsStaticType = 32,
37-
NamedArgument = 4,
38-
None = 0,
39-
UseCompileTimeType = 1,
4037
}
41-
4238
[System.Flags]
43-
public enum CSharpBinderFlags : int
39+
public enum CSharpBinderFlags
4440
{
45-
BinaryOperationLogical = 8,
41+
None = 0,
4642
CheckedContext = 1,
47-
ConvertArrayIndex = 32,
48-
ConvertExplicit = 16,
4943
InvokeSimpleName = 2,
5044
InvokeSpecialName = 4,
51-
None = 0,
52-
ResultDiscarded = 256,
45+
BinaryOperationLogical = 8,
46+
ConvertExplicit = 16,
47+
ConvertArrayIndex = 32,
5348
ResultIndexed = 64,
5449
ValueFromCompoundAssignment = 128,
50+
ResultDiscarded = 256,
5551
}
56-
5752
public class RuntimeBinderException : System.Exception
5853
{
5954
public RuntimeBinderException() => throw null;
6055
protected RuntimeBinderException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null;
6156
public RuntimeBinderException(string message) => throw null;
6257
public RuntimeBinderException(string message, System.Exception innerException) => throw null;
6358
}
64-
6559
public class RuntimeBinderInternalCompilerException : System.Exception
6660
{
6761
public RuntimeBinderInternalCompilerException() => throw null;
6862
protected RuntimeBinderInternalCompilerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null;
6963
public RuntimeBinderInternalCompilerException(string message) => throw null;
7064
public RuntimeBinderInternalCompilerException(string message, System.Exception innerException) => throw null;
7165
}
72-
7366
}
7467
}
7568
}

csharp/ql/test/resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.VisualBasic.Core.cs

Lines changed: 790 additions & 870 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file contains auto-generated code.
2+
// Generated from `Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
// This file contains auto-generated code.
22
// Generated from `Microsoft.Win32.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
3-
43
namespace System
54
{
65
namespace ComponentModel
76
{
87
public class Win32Exception : System.Runtime.InteropServices.ExternalException, System.Runtime.Serialization.ISerializable
98
{
10-
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null;
11-
public int NativeErrorCode { get => throw null; }
12-
public override string ToString() => throw null;
139
public Win32Exception() => throw null;
14-
protected Win32Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null;
1510
public Win32Exception(int error) => throw null;
1611
public Win32Exception(int error, string message) => throw null;
12+
protected Win32Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null;
1713
public Win32Exception(string message) => throw null;
1814
public Win32Exception(string message, System.Exception innerException) => throw null;
15+
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null;
16+
public int NativeErrorCode { get => throw null; }
17+
public override string ToString() => throw null;
1918
}
20-
2119
}
2220
}

csharp/ql/test/resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.Win32.Registry.cs

Lines changed: 32 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// This file contains auto-generated code.
22
// Generated from `Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
3-
43
namespace Microsoft
54
{
65
namespace Win32
@@ -17,18 +16,16 @@ public static class Registry
1716
public static void SetValue(string keyName, string valueName, object value, Microsoft.Win32.RegistryValueKind valueKind) => throw null;
1817
public static Microsoft.Win32.RegistryKey Users;
1918
}
20-
21-
public enum RegistryHive : int
19+
public enum RegistryHive
2220
{
2321
ClassesRoot = -2147483648,
24-
CurrentConfig = -2147483643,
2522
CurrentUser = -2147483647,
2623
LocalMachine = -2147483646,
27-
PerformanceData = -2147483644,
2824
Users = -2147483645,
25+
PerformanceData = -2147483644,
26+
CurrentConfig = -2147483643,
2927
}
30-
31-
public class RegistryKey : System.MarshalByRefObject, System.IDisposable
28+
public sealed class RegistryKey : System.MarshalByRefObject, System.IDisposable
3229
{
3330
public void Close() => throw null;
3431
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey) => throw null;
@@ -64,8 +61,8 @@ public class RegistryKey : System.MarshalByRefObject, System.IDisposable
6461
public Microsoft.Win32.RegistryKey OpenSubKey(string name) => throw null;
6562
public Microsoft.Win32.RegistryKey OpenSubKey(string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck) => throw null;
6663
public Microsoft.Win32.RegistryKey OpenSubKey(string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, System.Security.AccessControl.RegistryRights rights) => throw null;
67-
public Microsoft.Win32.RegistryKey OpenSubKey(string name, System.Security.AccessControl.RegistryRights rights) => throw null;
6864
public Microsoft.Win32.RegistryKey OpenSubKey(string name, bool writable) => throw null;
65+
public Microsoft.Win32.RegistryKey OpenSubKey(string name, System.Security.AccessControl.RegistryRights rights) => throw null;
6966
public void SetAccessControl(System.Security.AccessControl.RegistrySecurity registrySecurity) => throw null;
7067
public void SetValue(string name, object value) => throw null;
7168
public void SetValue(string name, object value, Microsoft.Win32.RegistryValueKind valueKind) => throw null;
@@ -74,56 +71,49 @@ public class RegistryKey : System.MarshalByRefObject, System.IDisposable
7471
public int ValueCount { get => throw null; }
7572
public Microsoft.Win32.RegistryView View { get => throw null; }
7673
}
77-
78-
public enum RegistryKeyPermissionCheck : int
74+
public enum RegistryKeyPermissionCheck
7975
{
8076
Default = 0,
8177
ReadSubTree = 1,
8278
ReadWriteSubTree = 2,
8379
}
84-
8580
[System.Flags]
86-
public enum RegistryOptions : int
81+
public enum RegistryOptions
8782
{
8883
None = 0,
8984
Volatile = 1,
9085
}
91-
92-
public enum RegistryValueKind : int
86+
public enum RegistryValueKind
9387
{
88+
None = -1,
89+
Unknown = 0,
90+
String = 1,
91+
ExpandString = 2,
9492
Binary = 3,
9593
DWord = 4,
96-
ExpandString = 2,
9794
MultiString = 7,
98-
None = -1,
9995
QWord = 11,
100-
String = 1,
101-
Unknown = 0,
10296
}
103-
10497
[System.Flags]
105-
public enum RegistryValueOptions : int
98+
public enum RegistryValueOptions
10699
{
107-
DoNotExpandEnvironmentNames = 1,
108100
None = 0,
101+
DoNotExpandEnvironmentNames = 1,
109102
}
110-
111-
public enum RegistryView : int
103+
public enum RegistryView
112104
{
113105
Default = 0,
114-
Registry32 = 512,
115106
Registry64 = 256,
107+
Registry32 = 512,
116108
}
117-
118109
namespace SafeHandles
119110
{
120-
public class SafeRegistryHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
111+
public sealed class SafeRegistryHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
121112
{
122-
protected override bool ReleaseHandle() => throw null;
123113
public SafeRegistryHandle() : base(default(bool)) => throw null;
124-
public SafeRegistryHandle(System.IntPtr preexistingHandle, bool ownsHandle) : base(default(bool)) => throw null;
114+
public SafeRegistryHandle(nint preexistingHandle, bool ownsHandle) : base(default(bool)) => throw null;
115+
protected override bool ReleaseHandle() => throw null;
125116
}
126-
127117
}
128118
}
129119
}
@@ -133,42 +123,39 @@ namespace Security
133123
{
134124
namespace AccessControl
135125
{
136-
public class RegistryAccessRule : System.Security.AccessControl.AccessRule
126+
public sealed class RegistryAccessRule : System.Security.AccessControl.AccessRule
137127
{
138128
public RegistryAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) => throw null;
139129
public RegistryAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) => throw null;
140130
public RegistryAccessRule(string identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) => throw null;
141131
public RegistryAccessRule(string identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) => throw null;
142132
public System.Security.AccessControl.RegistryRights RegistryRights { get => throw null; }
143133
}
144-
145-
public class RegistryAuditRule : System.Security.AccessControl.AuditRule
134+
public sealed class RegistryAuditRule : System.Security.AccessControl.AuditRule
146135
{
147136
public RegistryAuditRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AuditFlags)) => throw null;
148137
public RegistryAuditRule(string identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AuditFlags)) => throw null;
149138
public System.Security.AccessControl.RegistryRights RegistryRights { get => throw null; }
150139
}
151-
152140
[System.Flags]
153-
public enum RegistryRights : int
141+
public enum RegistryRights
154142
{
155-
ChangePermissions = 262144,
156-
CreateLink = 32,
143+
QueryValues = 1,
144+
SetValue = 2,
157145
CreateSubKey = 4,
158-
Delete = 65536,
159146
EnumerateSubKeys = 8,
160-
ExecuteKey = 131097,
161-
FullControl = 983103,
162147
Notify = 16,
163-
QueryValues = 1,
164-
ReadKey = 131097,
148+
CreateLink = 32,
149+
Delete = 65536,
165150
ReadPermissions = 131072,
166-
SetValue = 2,
167-
TakeOwnership = 524288,
168151
WriteKey = 131078,
152+
ExecuteKey = 131097,
153+
ReadKey = 131097,
154+
ChangePermissions = 262144,
155+
TakeOwnership = 524288,
156+
FullControl = 983103,
169157
}
170-
171-
public class RegistrySecurity : System.Security.AccessControl.NativeObjectSecurity
158+
public sealed class RegistrySecurity : System.Security.AccessControl.NativeObjectSecurity
172159
{
173160
public override System.Type AccessRightType { get => throw null; }
174161
public override System.Security.AccessControl.AccessRule AccessRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type) => throw null;
@@ -188,7 +175,6 @@ public class RegistrySecurity : System.Security.AccessControl.NativeObjectSecuri
188175
public void SetAccessRule(System.Security.AccessControl.RegistryAccessRule rule) => throw null;
189176
public void SetAuditRule(System.Security.AccessControl.RegistryAuditRule rule) => throw null;
190177
}
191-
192178
}
193179
}
194180
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file contains auto-generated code.
2+
// Generated from `System.AppContext, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file contains auto-generated code.
2+
// Generated from `System.Buffers, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`.

0 commit comments

Comments
 (0)