diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
index 7c030e843..602b41c07 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
@@ -466,7 +466,7 @@ namespace Microsoft.PowerShell.Commands
// a web service binding attribute
foreach (Type type in assembly.GetTypes())
{
- Object[] obj = type.GetCustomAttributes(typeof(WebServiceBindingAttribute), false);
+ object[] obj = type.GetCustomAttributes(typeof(WebServiceBindingAttribute), false);
if (obj.Length > 0)
{
proxyType = type;
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs
index ca40cb9e0..2cd62fdc4 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs
@@ -361,7 +361,7 @@ namespace Microsoft.PowerShell.Commands
// ExcludeProperty implies -Property * for better UX
if ((Property == null) || (Property.Length == 0))
{
- Property = new Object[] { "*" };
+ Property = new object[] { "*" };
_propertyMshParameterList = processor.ProcessParameters(Property, invocationContext);
}
}
diff --git a/src/System.Management.Automation/engine/COM/ComProperty.cs b/src/System.Management.Automation/engine/COM/ComProperty.cs
index a5ddb779b..4fbdf01b1 100644
--- a/src/System.Management.Automation/engine/COM/ComProperty.cs
+++ b/src/System.Management.Automation/engine/COM/ComProperty.cs
@@ -174,7 +174,7 @@ namespace System.Management.Automation
/// instance of the object from which to get the property value
/// parameters to get the property value
/// value of the property
- internal object GetValue(Object target, Object[] arguments)
+ internal object GetValue(Object target, object[] arguments)
{
try
{
@@ -250,7 +250,7 @@ namespace System.Management.Automation
/// instance of the object to which to set the property value
/// value to set this property
/// parameters to set this property.
- internal void SetValue(Object target, object setValue, Object[] arguments)
+ internal void SetValue(Object target, Object setValue, object[] arguments)
{
object[] newarguments;
var setterCollection = new Collection { _hasSetterByRef ? _setterByRefIndex : _setterIndex };
diff --git a/src/System.Management.Automation/engine/EventManager.cs b/src/System.Management.Automation/engine/EventManager.cs
index b22ebb3f4..8b77ca5ba 100644
--- a/src/System.Management.Automation/engine/EventManager.cs
+++ b/src/System.Management.Automation/engine/EventManager.cs
@@ -2215,7 +2215,7 @@ namespace System.Management.Automation
///
/// Additional data attached by the user to this event.
///
- internal PSEventArgs(string computerName, Guid runspaceId, int eventIdentifier, string sourceIdentifier, object sender, Object[] originalArgs, PSObject additionalData)
+ internal PSEventArgs(string computerName, Guid runspaceId, int eventIdentifier, string sourceIdentifier, Object sender, object[] originalArgs, PSObject additionalData)
{
// Capture the first EventArgs as SourceEventArgs
if (originalArgs != null)
@@ -2279,7 +2279,7 @@ namespace System.Management.Automation
/// Gets the list of arguments captured by the original event source
///
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
- public Object[] SourceArgs { get; }
+ public object[] SourceArgs { get; }
///
/// Gets the identifier associated with the source of this event
diff --git a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs
index 804190644..c7348a690 100644
--- a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs
@@ -409,7 +409,7 @@ namespace Microsoft.PowerShell.Commands
///
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
- public Object[] VisibleCmdlets
+ public object[] VisibleCmdlets
{
get
{
@@ -422,14 +422,14 @@ namespace Microsoft.PowerShell.Commands
}
}
- private Object[] _visibleCmdlets = null;
+ private object[] _visibleCmdlets = null;
///
/// A list of visible functions
///
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
- public Object[] VisibleFunctions
+ public object[] VisibleFunctions
{
get
{
@@ -442,7 +442,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- private Object[] _visibleFunctions = null;
+ private object[] _visibleFunctions = null;
///
/// A list of visible external commands (scripts and applications)
@@ -1298,7 +1298,7 @@ namespace Microsoft.PowerShell.Commands
///
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
- public Object[] VisibleCmdlets
+ public object[] VisibleCmdlets
{
get
{
@@ -1311,14 +1311,14 @@ namespace Microsoft.PowerShell.Commands
}
}
- private Object[] _visibleCmdlets = null;
+ private object[] _visibleCmdlets = null;
///
/// A list of visible functions
///
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
- public Object[] VisibleFunctions
+ public object[] VisibleFunctions
{
get
{
@@ -1331,7 +1331,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- private Object[] _visibleFunctions = null;
+ private object[] _visibleFunctions = null;
///
/// A list of visible external commands (scripts and applications)
diff --git a/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs b/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs
index 3832e9b64..f1cbacdef 100644
--- a/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs
@@ -1228,7 +1228,7 @@ namespace Microsoft.PowerShell.Commands
[Parameter()]
[Alias("Args")]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
- public virtual Object[] ArgumentList
+ public virtual object[] ArgumentList
{
get
{
@@ -1241,7 +1241,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- private Object[] _args;
+ private object[] _args;
///
/// Indicates that if a job/command is invoked remotely the connection should be severed
diff --git a/src/System.Management.Automation/engine/remoting/commands/StartJob.cs b/src/System.Management.Automation/engine/remoting/commands/StartJob.cs
index 358dd3be5..5d62484d5 100644
--- a/src/System.Management.Automation/engine/remoting/commands/StartJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/StartJob.cs
@@ -529,7 +529,7 @@ namespace Microsoft.PowerShell.Commands
[ValidateTrustedData]
[Alias("Args")]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
- public override Object[] ArgumentList
+ public override object[] ArgumentList
{
get { return base.ArgumentList; }
diff --git a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
index ffaea5b4a..d1b11e9ce 100644
--- a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
+++ b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
@@ -2525,13 +2525,13 @@ namespace System.Management.Automation
if (numberToReturn == 1)
{
- return new Object[] { current };
+ return new object[] { current };
}
return rest.ToArray();
}
- System.Object[] first = new System.Object[numberToReturn];
+ object[] first = new System.Object[numberToReturn];
while (MoveNext(context, enumerator))
{
current = Current(enumerator);
@@ -2560,7 +2560,7 @@ namespace System.Management.Automation
rest.Add(e);
}
- return new System.Object[] { first, rest.ToArray() };
+ return new object[] { first, rest.ToArray() };
}
return first;
@@ -2681,7 +2681,7 @@ namespace System.Management.Automation
notMatched.Add(ie == null ? null : PSObject.AsPSObject(ie));
}
- return new System.Object[] { matches, notMatched };
+ return new object[] { matches, notMatched };
}
return matches;
diff --git a/src/System.Management.Automation/engine/serialization.cs b/src/System.Management.Automation/engine/serialization.cs
index cf9d5d949..9cbc3b85b 100644
--- a/src/System.Management.Automation/engine/serialization.cs
+++ b/src/System.Management.Automation/engine/serialization.cs
@@ -128,7 +128,7 @@ namespace System.Management.Automation
/// An object that represents the serialized content
public static object Deserialize(string source)
{
- Object[] results = DeserializeAsList(source);
+ object[] results = DeserializeAsList(source);
// Return the results
if (results.Length == 0)