diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-03-15 19:21:05 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-03-16 15:02:09 +0300 |
commit | 780743d0551e296f46f3a358e8023fa8929a2b6a (patch) | |
tree | 7e74e924302d8255e8dc44386a98e80de7e49661 /mcs/class/Microsoft.Build | |
parent | 881dc69fefa20dd0d061dc74ad7fbcfada128a4c (diff) |
[Microsoft.Build] Rename method parameters to match .NET contract
Diffstat (limited to 'mcs/class/Microsoft.Build')
3 files changed, 16 insertions, 16 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ElementLocation.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ElementLocation.cs index 27102989721..794d33e0fc7 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ElementLocation.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Construction/ElementLocation.cs @@ -45,9 +45,9 @@ namespace Microsoft.Build.Construction get { return Line == 0 ? File : String.Format ("{0} ({1}{2})", File, Line, Column != 0 ? "," + Column : String.Empty); } } - public override bool Equals (object other) + public override bool Equals (object obj) { - var o = other as ElementLocation; + var o = obj as ElementLocation; return (object) o != null && o.File == File && o.Line == Line && o.Column == Column; } diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/Project.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/Project.cs index 4189bf8b2f1..e4263aa9de1 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/Project.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/Project.cs @@ -79,27 +79,27 @@ namespace Microsoft.Build.Evaluation + "{data.Items.Count} #Targets={data.Targets.Count}")] public class Project { - public Project (XmlReader xml) - : this (ProjectRootElement.Create (xml)) + public Project (XmlReader xmlReader) + : this (ProjectRootElement.Create (xmlReader)) { } - public Project (XmlReader xml, IDictionary<string, string> globalProperties, + public Project (XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion) - : this (ProjectRootElement.Create (xml), globalProperties, toolsVersion) + : this (ProjectRootElement.Create (xmlReader), globalProperties, toolsVersion) { } - public Project (XmlReader xml, IDictionary<string, string> globalProperties, + public Project (XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection) - : this (ProjectRootElement.Create (xml), globalProperties, toolsVersion, projectCollection) + : this (ProjectRootElement.Create (xmlReader), globalProperties, toolsVersion, projectCollection) { } - public Project (XmlReader xml, IDictionary<string, string> globalProperties, + public Project (XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) - : this (ProjectRootElement.Create (xml), globalProperties, toolsVersion, projectCollection, loadSettings) + : this (ProjectRootElement.Create (xmlReader), globalProperties, toolsVersion, projectCollection, loadSettings) { } diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ProjectCollection.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ProjectCollection.cs index 01a66207142..21df964a75a 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ProjectCollection.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/ProjectCollection.cs @@ -49,15 +49,15 @@ namespace Microsoft.Build.Evaluation { public class ProjectCollection : IDisposable { - public delegate void ProjectAddedEventHandler (object target, ProjectAddedToProjectCollectionEventArgs args); + public delegate void ProjectAddedEventHandler (object sender, ProjectAddedToProjectCollectionEventArgs e); public class ProjectAddedToProjectCollectionEventArgs : EventArgs { - public ProjectAddedToProjectCollectionEventArgs (ProjectRootElement project) + public ProjectAddedToProjectCollectionEventArgs (ProjectRootElement element) { - if (project == null) + if (element == null) throw new ArgumentNullException ("project"); - ProjectRootElement = project; + ProjectRootElement = element; } public ProjectRootElement ProjectRootElement { get; private set; } @@ -98,8 +98,8 @@ namespace Microsoft.Build.Evaluation { } - public ProjectCollection (ToolsetDefinitionLocations toolsetDefinitionLocations) - : this (null, null, toolsetDefinitionLocations) + public ProjectCollection (ToolsetDefinitionLocations toolsetLocations) + : this (null, null, toolsetLocations) { } |