You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cb42154
Browse filesBrowse the repository at this point in the historyBrowse files
Refactor: use _ prefix for private fields in ParameterData
Renamed all private backing fields in ParameterData.cs to use the C# convention of an underscore prefix (e.g., _isRef instead of isRef). Updated all property implementations to reference the new field names. No functional changes; this is a naming consistency refactor.
/// <value><see langword="true"/> if the parameter is passed by reference using the <c>ref</c> keyword; otherwise, <see langword="false"/>.</value>
71
71
internalboolIsRef
72
-
=>isRef??=IsRefInternal(this);
72
+
=>_isRef??=IsRefInternal(this);
73
73
74
74
/// <summary>
75
75
/// Gets a value indicating whether the current instance is marked as <see langword="ref"/> <see langword="readonly"/>.
76
76
/// </summary>
77
77
/// <value><see langword="true"/> if the parameter is marked as <see langword="ref"/> <see langword="readonly"/>; otherwise, <see langword="false"/>.</value>
78
78
internalboolIsRefReadOnly
79
-
=>isRefReadOnly??=IsRefReadOnlyInternal(this);
79
+
=>_isRefReadOnly??=IsRefReadOnlyInternal(this);
80
80
81
81
/// <summary>
82
82
/// Gets a value indicating whether the parameter is an input parameter (passed by reference using the <see langword="in"/> keyword).
83
83
/// </summary>
84
84
/// <value><see langword="true"/> if the parameter is an input parameter; otherwise, <see langword="false"/>.</value>
85
85
internalboolIsIn
86
-
=>isIn??=IsInParameter(this);
86
+
=>_isIn??=IsInParameter(this);
87
87
88
88
/// <summary>
89
89
/// Gets a value indicating whether the parameter is an output parameter (passed by reference using the <see langword="out"/> keyword.
90
90
/// </summary>
91
91
/// <value><see langword="true"/> if the parameter is an output parameter; otherwise, <see langword="false"/>.</value>
92
92
internalboolIsOut
93
-
=>isOut??=IsOutParameter(this);
93
+
=>_isOut??=IsOutParameter(this);
94
94
95
95
/// <summary>
96
96
/// Gets a value indicating whether the parameter is optional.
@@ -99,23 +99,23 @@ internal bool IsOut
99
99
/// <remarks>This property does not return whether the parameter is decorated with the <see cref="System.Runtime.InteropServices.OptionalAttribute"/>.
100
100
/// It only checks whether the parameter is considered optional by the existence of a default value by reading <see cref="System.Reflection.ParameterInfo.HasDefaultValue"/>.</remarks>
/// If parameter association for indexer properties matters, then always obtain parameters directly from the getter or setter method (e.g. <see cref="MethodData.Parameters"/> like <c>PropertyData.PropertySetMethodData.Parameters</c>) and completely avoid <see cref="PropertyData.IndexerParameters"/> (or <see cref="PropertyInfo.GetIndexParameters"/>).</remarks>
171
171
/// <value>The <see cref="ParameterizedMemberData"/> (which is either a <see cref="MethodData"/> or <see cref="ConstructorData"/>) that declares this parameter.</value>
0 commit comments