Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ private object InstantiateWebServiceProxy(Assembly assembly)
// 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private void ProcessExpressionParameter()
// ExcludeProperty implies -Property * for better UX
if ((Property == null) || (Property.Length == 0))
{
Property = new Object[] { "*" };
Property = new object[] { "*" };
_propertyMshParameterList = processor.ProcessParameters(Property, invocationContext);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/System.Management.Automation/engine/COM/ComProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ internal object GetValue(Object target)
/// <param name="target">instance of the object from which to get the property value</param>
/// <param name="arguments">parameters to get the property value</param>
/// <returns>value of the property</returns>
internal object GetValue(Object target, Object[] arguments)
internal object GetValue(Object target, object[] arguments)
{
try
{
Expand Down Expand Up @@ -250,7 +250,7 @@ internal void SetValue(Object target, object setValue)
/// <param name="target">instance of the object to which to set the property value</param>
/// <param name="setValue">value to set this property</param>
/// <param name="arguments">parameters to set this property.</param>
internal void SetValue(Object target, object setValue, Object[] arguments)
internal void SetValue(Object target, Object setValue, object[] arguments)
{
object[] newarguments;
var setterCollection = new Collection<int> { _hasSetterByRef ? _setterByRefIndex : _setterIndex };
Expand Down
4 changes: 2 additions & 2 deletions src/System.Management.Automation/engine/EventManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,7 @@ public class PSEventArgs : EventArgs
/// <param name="additionalData">
/// Additional data attached by the user to this event.
/// </param>
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)
Expand Down Expand Up @@ -2279,7 +2279,7 @@ internal PSEventArgs(string computerName, Guid runspaceId, int eventIdentifier,
/// Gets the list of arguments captured by the original event source
/// </summary>
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Object[] SourceArgs { get; }
public object[] SourceArgs { get; }

/// <summary>
/// Gets the identifier associated with the source of this event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public string[] VisibleAliases
/// </summary>
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Object[] VisibleCmdlets
public object[] VisibleCmdlets
{
get
{
Expand All @@ -422,14 +422,14 @@ public Object[] VisibleCmdlets
}
}

private Object[] _visibleCmdlets = null;
private object[] _visibleCmdlets = null;

/// <summary>
/// A list of visible functions
/// </summary>
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Object[] VisibleFunctions
public object[] VisibleFunctions
{
get
{
Expand All @@ -442,7 +442,7 @@ public Object[] VisibleFunctions
}
}

private Object[] _visibleFunctions = null;
private object[] _visibleFunctions = null;

/// <summary>
/// A list of visible external commands (scripts and applications)
Expand Down Expand Up @@ -1298,7 +1298,7 @@ public string[] VisibleAliases
/// </summary>
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Object[] VisibleCmdlets
public object[] VisibleCmdlets
{
get
{
Expand All @@ -1311,14 +1311,14 @@ public Object[] VisibleCmdlets
}
}

private Object[] _visibleCmdlets = null;
private object[] _visibleCmdlets = null;

/// <summary>
/// A list of visible functions
/// </summary>
[Parameter()]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Object[] VisibleFunctions
public object[] VisibleFunctions
{
get
{
Expand All @@ -1331,7 +1331,7 @@ public Object[] VisibleFunctions
}
}

private Object[] _visibleFunctions = null;
private object[] _visibleFunctions = null;

/// <summary>
/// A list of visible external commands (scripts and applications)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ public virtual string FilePath
[Parameter()]
[Alias("Args")]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public virtual Object[] ArgumentList
public virtual object[] ArgumentList
{
get
{
Expand All @@ -1241,7 +1241,7 @@ public virtual Object[] ArgumentList
}
}

private Object[] _args;
private object[] _args;

/// <summary>
/// Indicates that if a job/command is invoked remotely the connection should be severed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public override PSObject InputObject
[ValidateTrustedData]
[Alias("Args")]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public override Object[] ArgumentList
public override object[] ArgumentList
{
get { return base.ArgumentList; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2525,13 +2525,13 @@ internal static object Where(IEnumerator enumerator, ScriptBlock expressionSB, W

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);
Expand Down Expand Up @@ -2560,7 +2560,7 @@ internal static object Where(IEnumerator enumerator, ScriptBlock expressionSB, W
rest.Add(e);
}

return new System.Object[] { first, rest.ToArray() };
return new object[] { first, rest.ToArray() };
}

return first;
Expand Down Expand Up @@ -2681,7 +2681,7 @@ internal static object Where(IEnumerator enumerator, ScriptBlock expressionSB, W
notMatched.Add(ie == null ? null : PSObject.AsPSObject(ie));
}

return new System.Object[] { matches, notMatched };
return new object[] { matches, notMatched };
}

return matches;
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/serialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static string Serialize(Object source, int depth)
/// <returns>An object that represents the serialized content</returns>
public static object Deserialize(string source)
{
Object[] results = DeserializeAsList(source);
object[] results = DeserializeAsList(source);

// Return the results
if (results.Length == 0)
Expand Down