Skip to content

Commit d30ffd6

Browse files
committed
♻️ Clarify method names to avoid confusion
1 parent a7a0e8d commit d30ffd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/System.Management.Automation/engine/MshCommandRuntime.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public void WriteObject(object sendToPipeline, bool enumerateCollection)
249249

250250
#if CORECLR
251251
// SecurityContext is not supported in CoreCLR
252-
DoWriteObjects(sendToPipeline);
252+
DoWriteEnumeratedObject(sendToPipeline);
253253
#else
254254
if (UseSecurityContextRun)
255255
{
@@ -278,11 +278,11 @@ public void WriteObject(object sendToPipeline, bool enumerateCollection)
278278
/// <exception cref="System.InvalidOperationException">
279279
/// Not permitted at this time or from this thread
280280
/// </exception>
281-
private void DoWriteObjects(object sendToPipeline)
281+
private void DoWriteEnumeratedObject(object sendToPipeline)
282282
{
283283
// NOTICE-2004/06/08-JonN 959638
284284
ThrowIfWriteNotPermitted(true);
285-
_WriteObjectsSkipAllowCheck(sendToPipeline);
285+
_EnumerateAndWriteObjectSkipAllowCheck(sendToPipeline);
286286
}
287287
// Trust: public void WriteObject(object sendToPipeline, DataTrustCategory trustCategory); // enumerateCollection defaults to false
288288
// Trust: public void WriteObject(object sendToPipeline, bool enumerateCollection, DataTrustCategory trustCategory);
@@ -2591,7 +2591,7 @@ internal void _WriteObjectSkipAllowCheck(object sendToPipeline)
25912591
/// The Cmdlet should generally just allow PipelineStoppedException
25922592
/// to percolate up to the caller of ProcessRecord etc.
25932593
/// </exception>
2594-
internal void _WriteObjectsSkipAllowCheck(object sendToPipeline)
2594+
internal void _EnumerateAndWriteObjectSkipAllowCheck(object sendToPipeline)
25952595
{
25962596
IEnumerable enumerable = LanguagePrimitives.GetEnumerable(sendToPipeline);
25972597
if (enumerable == null)

0 commit comments

Comments
 (0)