Skip to content

Commit 692976d

Browse files
Parameters fix.
1 parent 3ff7035 commit 692976d

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/ResourceManager/Compute/Commands.Compute/Strategies/AsyncCmdletExtensions.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ public CmdletWrap(T cmdlet)
4545
_Cmdlet = cmdlet;
4646
}
4747

48-
public IEnumerable<KeyValuePair<string, object>> Parameters
49-
{
50-
get
51-
{
52-
var psName = _Cmdlet.ParameterSetName;
53-
return typeof(T)
54-
.GetProperties()
55-
.Where(p => p
56-
.GetCustomAttributes(false)
57-
.OfType<ParameterAttribute>()
58-
.Any(a => a.ParameterSetName == psName))
59-
.Select(p => new KeyValuePair<string, object>(p.Name, p.GetValue(_Cmdlet)));
60-
}
61-
}
62-
6348
public bool WhatIf
6449
=> _Cmdlet.MyInvocation.BoundParameters.ContainsKey("WhatIf");
6550

0 commit comments

Comments
 (0)