Skip to content

Commit b446377

Browse files
authored
Add missed fields in internal readonly structs (#17872)
* Add missed fields in internal readonly structs * Add Sequential attribute to LifecycleProperty struct
1 parent 3d816c9 commit b446377

File tree

7 files changed

+26
-1
lines changed

7 files changed

+26
-1
lines changed

src/Components/Components/ref/Microsoft.AspNetCore.Components.Manual.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ internal partial interface ICascadingValueComponent
107107
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
108108
internal readonly partial struct CascadingParameterState
109109
{
110+
private readonly object _dummy;
110111
public CascadingParameterState(string localValueName, Microsoft.AspNetCore.Components.ICascadingValueComponent valueSupplier) { throw null; }
111112
public string LocalValueName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
112113
public Microsoft.AspNetCore.Components.ICascadingValueComponent ValueSupplier { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }

src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.Manual.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ namespace Microsoft.AspNetCore.Components
66
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
77
internal partial struct ServerComponent
88
{
9+
private object _dummy;
10+
private int _dummyPrimitive;
911
public ServerComponent(int sequence, string assemblyName, string typeName, System.Guid invocationId) { throw null; }
1012
public string AssemblyName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
1113
public System.Guid InvocationId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
@@ -27,6 +29,8 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Microsoft.Asp
2729
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
2830
internal partial struct ServerComponentMarker
2931
{
32+
private object _dummy;
33+
private int _dummyPrimitive;
3034
public string Descriptor { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
3135
public string PrerenderId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
3236
public int? Sequence { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
@@ -151,6 +155,8 @@ protected override void ProcessPendingRender() { }
151155
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
152156
internal readonly partial struct UnacknowledgedRenderBatch
153157
{
158+
private readonly object _dummy;
159+
private readonly int _dummyPrimitive;
154160
public UnacknowledgedRenderBatch(long batchId, Microsoft.AspNetCore.Components.Server.Circuits.ArrayBuilder<byte> data, System.Threading.Tasks.TaskCompletionSource<object> completionSource, Microsoft.Extensions.Internal.ValueStopwatch valueStopwatch) { throw null; }
155161
public long BatchId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
156162
public System.Threading.Tasks.TaskCompletionSource<object> CompletionSource { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
@@ -217,6 +223,7 @@ public void SetCircuitUser(System.Security.Claims.ClaimsPrincipal user) { }
217223
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
218224
internal readonly partial struct CircuitId : System.IEquatable<Microsoft.AspNetCore.Components.Server.Circuits.CircuitId>
219225
{
226+
private readonly object _dummy;
220227
public CircuitId(string secret, string id) { throw null; }
221228
public string Id { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
222229
public string Secret { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
@@ -291,8 +298,9 @@ namespace Microsoft.Extensions.Internal
291298
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
292299
internal partial struct ValueStopwatch
293300
{
301+
private int _dummyPrimitive;
294302
public bool IsActive { get { throw null; } }
295303
public System.TimeSpan GetElapsedTime() { throw null; }
296304
public static Microsoft.Extensions.Internal.ValueStopwatch StartNew() { throw null; }
297305
}
298-
}
306+
}

src/Http/Routing/ref/Microsoft.AspNetCore.Routing.Manual.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ public void Dispose() { }
367367
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
368368
internal readonly partial struct MatcherState
369369
{
370+
private readonly object _dummy;
370371
public readonly Microsoft.AspNetCore.Routing.RoutePatternMatcher Matcher;
371372
public readonly System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<IRouteConstraint>> Constraints;
372373
public MatcherState(Microsoft.AspNetCore.Routing.RoutePatternMatcher matcher, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<Microsoft.AspNetCore.Routing.IRouteConstraint>> constraints) { throw null; }

src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.Manual.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,13 @@ public void Reset() { }
640640
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
641641
internal readonly partial struct FilterCursorItem<TFilter, TFilterAsync>
642642
{
643+
[System.Diagnostics.DebuggerBrowsableAttribute(System.Diagnostics.DebuggerBrowsableState.Never)]
644+
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
645+
private readonly TFilter _Filter_k__BackingField;
646+
[System.Diagnostics.DebuggerBrowsableAttribute(System.Diagnostics.DebuggerBrowsableState.Never)]
647+
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
648+
private readonly TFilterAsync _FilterAsync_k__BackingField;
649+
private readonly int _dummyPrimitive;
643650
public FilterCursorItem(TFilter filter, TFilterAsync filterAsync) { throw null; }
644651
public TFilter Filter { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
645652
public TFilterAsync FilterAsync { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }

src/Mvc/Mvc.ViewFeatures/ref/Microsoft.AspNetCore.Mvc.ViewFeatures.Manual.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,11 @@ public SaveTempDataPropertyFilterBase(Microsoft.AspNetCore.Mvc.ViewFeatures.ITem
251251
public void OnTempDataSaving(Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData) { }
252252
protected void SetPropertyValues(Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData) { }
253253
}
254+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
254255
internal readonly partial struct LifecycleProperty
255256
{
257+
private readonly object _dummy;
258+
private readonly int _dummyPrimitive;
256259
public LifecycleProperty(System.Reflection.PropertyInfo propertyInfo, string key) { throw null; }
257260
public string Key { get { throw null; } }
258261
public System.Reflection.PropertyInfo PropertyInfo { get { throw null; } }
@@ -342,6 +345,7 @@ public MemberExpressionCacheKeyComparer() { }
342345
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
343346
internal readonly partial struct MemberExpressionCacheKey
344347
{
348+
private readonly object _dummy;
345349
public MemberExpressionCacheKey(System.Type modelType, System.Linq.Expressions.MemberExpression memberExpression) { throw null; }
346350
public MemberExpressionCacheKey(System.Type modelType, System.Reflection.MemberInfo[] members) { throw null; }
347351
public System.Linq.Expressions.MemberExpression MemberExpression { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
@@ -572,6 +576,8 @@ namespace Microsoft.AspNetCore.Components.Rendering
572576
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
573577
internal readonly partial struct ComponentRenderedText
574578
{
579+
private readonly object _dummy;
580+
private readonly int _dummyPrimitive;
575581
public ComponentRenderedText(int componentId, System.Collections.Generic.IEnumerable<string> tokens) { throw null; }
576582
public int ComponentId { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
577583
public System.Collections.Generic.IEnumerable<string> Tokens { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }

src/Servers/HttpSys/ref/Microsoft.AspNetCore.Server.HttpSys.Manual.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public SocketAddress(System.Net.Sockets.AddressFamily family, int size) { }
7878
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
7979
internal readonly partial struct CookedUrl
8080
{
81+
private readonly int _dummyPrimitive;
8182
internal CookedUrl(Microsoft.AspNetCore.HttpSys.Internal.HttpApiTypes.HTTP_COOKED_URL nativeCookedUrl) { throw null; }
8283
internal string GetAbsPath() { throw null; }
8384
internal string GetFullUrl() { throw null; }

src/Servers/Kestrel/Core/ref/Microsoft.AspNetCore.Server.Kestrel.Core.Manual.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,7 @@ public Huffman() { }
15521552
internal readonly partial struct HeaderField
15531553
{
15541554
public const int RfcOverhead = 32;
1555+
private readonly object _dummy;
15551556
public HeaderField(System.Span<byte> name, System.Span<byte> value) { throw null; }
15561557
public int Length { get { throw null; } }
15571558
public byte[] Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }

0 commit comments

Comments
 (0)