Kaynağa Gözat

整理了一下代码格式,使用成员均加上this.

tanghai 14 yıl önce
ebeveyn
işleme
c91eb25d8a

+ 2 - 2
CSharp/CSharp.sln.DotSettings

@@ -7,9 +7,9 @@
 	<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=LoopCanBeConvertedToQuery/@EntryIndexedValue">DO_NOT_SHOW</s:String>
 	<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantAssignment/@EntryIndexedValue">DO_NOT_SHOW</s:String>
 	<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=SuggestUseVarKeywordEverywhere/@EntryIndexedValue">DO_NOT_SHOW</s:String>
-	<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=tanghai/@EntryIndexedValue">&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;Profile name="tanghai"&gt;&lt;CSArrangeThisQualifier&gt;True&lt;/CSArrangeThisQualifier&gt;&lt;CSRemoveCodeRedundancies&gt;True&lt;/CSRemoveCodeRedundancies&gt;&lt;CSMakeFieldReadonly&gt;True&lt;/CSMakeFieldReadonly&gt;&lt;CSOptimizeUsings&gt;&lt;OptimizeUsings&gt;False&lt;/OptimizeUsings&gt;&lt;EmbraceInRegion&gt;True&lt;/EmbraceInRegion&gt;&lt;RegionName&gt;&lt;/RegionName&gt;&lt;/CSOptimizeUsings&gt;&lt;CSShortenReferences&gt;True&lt;/CSShortenReferences&gt;&lt;CSReformatCode&gt;True&lt;/CSReformatCode&gt;&lt;CSUseVar&gt;&lt;BehavourStyle&gt;DISABLED&lt;/BehavourStyle&gt;&lt;LocalVariableStyle&gt;IMPLICIT_WHEN_INITIALIZER_HAS_TYPE&lt;/LocalVariableStyle&gt;&lt;ForeachVariableStyle&gt;IMPLICIT_EXCEPT_PRIMITIVE_TYPES&lt;/ForeachVariableStyle&gt;&lt;/CSUseVar&gt;&lt;/Profile&gt;</s:String>
+	<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=tanghai/@EntryIndexedValue">&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;Profile name="tanghai"&gt;&lt;CSArrangeThisQualifier&gt;True&lt;/CSArrangeThisQualifier&gt;&lt;CSRemoveCodeRedundancies&gt;True&lt;/CSRemoveCodeRedundancies&gt;&lt;CSMakeFieldReadonly&gt;True&lt;/CSMakeFieldReadonly&gt;&lt;CSUseVar&gt;&lt;BehavourStyle&gt;DISABLED&lt;/BehavourStyle&gt;&lt;LocalVariableStyle&gt;IMPLICIT_WHEN_INITIALIZER_HAS_TYPE&lt;/LocalVariableStyle&gt;&lt;ForeachVariableStyle&gt;IMPLICIT_EXCEPT_SIMPLE_TYPES&lt;/ForeachVariableStyle&gt;&lt;/CSUseVar&gt;&lt;CSOptimizeUsings&gt;&lt;OptimizeUsings&gt;True&lt;/OptimizeUsings&gt;&lt;EmbraceInRegion&gt;False&lt;/EmbraceInRegion&gt;&lt;RegionName&gt;&lt;/RegionName&gt;&lt;/CSOptimizeUsings&gt;&lt;CSShortenReferences&gt;True&lt;/CSShortenReferences&gt;&lt;CSReformatCode&gt;True&lt;/CSReformatCode&gt;&lt;/Profile&gt;</s:String>
 	<s:String x:Key="/Default/CodeStyle/CodeCleanup/RecentlyUsedProfile/@EntryValue">tanghai</s:String>
-	<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">Default: Full Cleanup</s:String>
+	<s:String x:Key="/Default/CodeStyle/CodeCleanup/SilentCleanupProfile/@EntryValue">tanghai</s:String>
 	<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_FIRST_ARG_BY_PAREN/@EntryValue">True</s:Boolean>
 	<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_EXPRESSION/@EntryValue">False</s:Boolean>
 	<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_PARAMETER/@EntryValue">False</s:Boolean>

+ 1 - 1
CSharp/Editor/App.xaml.cs

@@ -8,7 +8,7 @@ namespace Editor
 		{
 			base.OnStartup(e);
 			RunInDebugMode();
-			ShutdownMode = ShutdownMode.OnMainWindowClose;
+			this.ShutdownMode = ShutdownMode.OnMainWindowClose;
 		}
 
 		private static void RunInDebugMode()

+ 5 - 5
CSharp/Editor/Bootstrapper.cs

@@ -11,15 +11,15 @@ namespace Editor
 	{
 		protected override void ConfigureAggregateCatalog()
 		{
-			AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof (Bootstrapper).Assembly));
-			AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof (ViewExportAttribute).Assembly));
-			AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof (BehaviorTreeModule).Assembly));
+			this.AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof (Bootstrapper).Assembly));
+			this.AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof (ViewExportAttribute).Assembly));
+			this.AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof (BehaviorTreeModule).Assembly));
 		}
 
 		protected override void InitializeShell()
 		{
 			base.InitializeShell();
-			Application.Current.MainWindow = (Shell) Shell;
+			Application.Current.MainWindow = (Shell) this.Shell;
 			Application.Current.MainWindow.Show();
 		}
 
@@ -32,7 +32,7 @@ namespace Editor
 
 		protected override DependencyObject CreateShell()
 		{
-			return Container.GetExportedValue<Shell>();
+			return this.Container.GetExportedValue<Shell>();
 		}
 	}
 }

+ 2 - 2
CSharp/Editor/Shell.xaml.cs

@@ -8,7 +8,7 @@ namespace Editor
 	{
 		public Shell()
 		{
-			InitializeComponent();
+			this.InitializeComponent();
 		}
 
 		[Import]
@@ -16,7 +16,7 @@ namespace Editor
 		{
 			set
 			{
-				DataContext = value;
+				this.DataContext = value;
 			}
 		}
 	}

+ 7 - 8
CSharp/Infrastructure/AutoPopulateExportedViewsBehavior.cs

@@ -22,7 +22,6 @@ using Microsoft.Practices.Prism.Regions;
 namespace Infrastructure
 {
 	[Export(typeof (AutoPopulateExportedViewsBehavior)), PartCreationPolicy(CreationPolicy.NonShared)]
-	
 	public class AutoPopulateExportedViewsBehavior : RegionBehavior, IPartImportsSatisfiedNotification
 	{
 		[ImportMany(AllowRecomposition = true)]
@@ -36,32 +35,32 @@ namespace Infrastructure
 
 		public void OnImportsSatisfied()
 		{
-			AddRegisteredViews();
+			this.AddRegisteredViews();
 		}
 
 		#endregion
 
 		protected override void OnAttach()
 		{
-			AddRegisteredViews();
+			this.AddRegisteredViews();
 		}
 
 		private void AddRegisteredViews()
 		{
-			if (Region == null)
+			if (this.Region == null)
 			{
 				return;
 			}
 
-			foreach (var viewEntry in RegisteredViews)
+			foreach (var viewEntry in this.RegisteredViews)
 			{
-				if (viewEntry.Metadata.RegionName == Region.Name)
+				if (viewEntry.Metadata.RegionName == this.Region.Name)
 				{
 					object view = viewEntry.Value;
 
-					if (!Region.Views.Contains(view))
+					if (!this.Region.Views.Contains(view))
 					{
-						Region.Add(view);
+						this.Region.Add(view);
 					}
 				}
 			}

+ 0 - 1
CSharp/Infrastructure/ViewExportAttribute.cs

@@ -21,7 +21,6 @@ using System.ComponentModel.Composition;
 namespace Infrastructure
 {
 	[AttributeUsage(AttributeTargets.Class, AllowMultiple = false), MetadataAttribute]
-	
 	public class ViewExportAttribute : ExportAttribute, IViewRegionRegistration
 	{
 		public ViewExportAttribute() : base(typeof (object))

+ 1 - 1
CSharp/Modules/BehaviorTree/BehaviorTreeLayout.cs

@@ -55,7 +55,7 @@ namespace BehaviorTree
 			TreeNodeViewModel tRight = right;
 			left.AncestorModify = 0;
 			right.AncestorModify = 0;
-			for (int i = 0; tLeft != null && tRight != null  ; ++i)
+			for (int i = 0; tLeft != null && tRight != null; ++i)
 			{
 				double tGap = (tRight.Prelim + tRight.AncestorModify) - (tLeft.Prelim + tLeft.AncestorModify);
 				if (XGap + TreeNodeViewModel.Width - tGap > offset)

+ 42 - 43
CSharp/Modules/BehaviorTree/BehaviorTreeView.xaml.cs

@@ -10,7 +10,6 @@ namespace BehaviorTree
 	/// BehaviorTreeView.xaml 的交互逻辑
 	/// </summary>
 	[ViewExport(RegionName = "TreeCanvasRegion"), PartCreationPolicy(CreationPolicy.NonShared)]
-	
 	public partial class BehaviorTreeView
 	{
 		private const double DragThreshold = 5;
@@ -22,7 +21,7 @@ namespace BehaviorTree
 
 		public BehaviorTreeView()
 		{
-			InitializeComponent();
+			this.InitializeComponent();
 		}
 
 		[Import]
@@ -30,45 +29,45 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return DataContext as BehaviorTreeViewModel;
+				return this.DataContext as BehaviorTreeViewModel;
 			}
 			set
 			{
-				DataContext = value;
+				this.DataContext = value;
 			}
 		}
 
 		private void MenuNewNode_Executed(object sender, ExecutedRoutedEventArgs e)
 		{
-			Point point = Mouse.GetPosition(listBox);
+			Point point = Mouse.GetPosition(this.listBox);
 			var treeNode = new TreeNode(point.X, point.Y);
 
 			// one root node
-			if (ViewModel.TreeNodes.Count == 0)
+			if (this.ViewModel.TreeNodes.Count == 0)
 			{
-				ViewModel.Add(treeNode, null);
+				this.ViewModel.Add(treeNode, null);
 			}
 			else
 			{
-				if (listBox.SelectedItem != null)
+				if (this.listBox.SelectedItem != null)
 				{
-					var treeNodeViewModel = listBox.SelectedItem as TreeNodeViewModel;
-					ViewModel.Add(treeNode, treeNodeViewModel);
+					var treeNodeViewModel = this.listBox.SelectedItem as TreeNodeViewModel;
+					this.ViewModel.Add(treeNode, treeNodeViewModel);
 				}
 			}
-			listBox.SelectedItem = null;
+			this.listBox.SelectedItem = null;
 			e.Handled = true;
 		}
 
 		private void MenuDeleteNode_Executed(object sender, ExecutedRoutedEventArgs e)
 		{
-			if (listBox.SelectedItem == null)
+			if (this.listBox.SelectedItem == null)
 			{
 				return;
 			}
-			var treeNodeViewModel = listBox.SelectedItem as TreeNodeViewModel;
-			ViewModel.Remove(treeNodeViewModel);
-			listBox.SelectedItem = null;
+			var treeNodeViewModel = this.listBox.SelectedItem as TreeNodeViewModel;
+			this.ViewModel.Remove(treeNodeViewModel);
+			this.listBox.SelectedItem = null;
 			e.Handled = true;
 		}
 
@@ -78,20 +77,20 @@ namespace BehaviorTree
 			{
 				return;
 			}
-			isLeftButtonDown = true;
+			this.isLeftButtonDown = true;
 
-			isControlDown = (Keyboard.Modifiers & ModifierKeys.Control) != 0;
+			this.isControlDown = (Keyboard.Modifiers & ModifierKeys.Control) != 0;
 
 			var item = (FrameworkElement) sender;
 			var treeNodeViewModel = item.DataContext as TreeNodeViewModel;
 
-			if (!isControlDown && !listBox.SelectedItems.Contains(treeNodeViewModel))
+			if (!this.isControlDown && !this.listBox.SelectedItems.Contains(treeNodeViewModel))
 			{
-				listBox.SelectedItems.Clear();
-				listBox.SelectedItems.Add(treeNodeViewModel);
+				this.listBox.SelectedItems.Clear();
+				this.listBox.SelectedItems.Add(treeNodeViewModel);
 			}
 
-			origMouseDownPoint = e.GetPosition(this);
+			this.origMouseDownPoint = e.GetPosition(this);
 
 			item.CaptureMouse();
 			e.Handled = true;
@@ -99,39 +98,39 @@ namespace BehaviorTree
 
 		private void ListBoxItem_MouseUp(object sender, MouseButtonEventArgs e)
 		{
-			if (!isLeftButtonDown)
+			if (!this.isLeftButtonDown)
 			{
-				isDragging = false;
+				this.isDragging = false;
 				return;
 			}
 
 			var item = (FrameworkElement) sender;
 			var treeNodeViewModel = item.DataContext as TreeNodeViewModel;
 
-			if (isControlDown)
+			if (this.isControlDown)
 			{
-				if (!listBox.SelectedItems.Contains(treeNodeViewModel))
+				if (!this.listBox.SelectedItems.Contains(treeNodeViewModel))
 				{
-					listBox.SelectedItems.Add(treeNodeViewModel);
+					this.listBox.SelectedItems.Add(treeNodeViewModel);
 				}
 				else
 				{
-					listBox.SelectedItems.Remove(treeNodeViewModel);
+					this.listBox.SelectedItems.Remove(treeNodeViewModel);
 				}
 			}
-			else if (!isDragging)
+			else if (!this.isDragging)
 			{
-				if (listBox.SelectedItems.Count != 1 || listBox.SelectedItem != treeNodeViewModel)
+				if (this.listBox.SelectedItems.Count != 1 || this.listBox.SelectedItem != treeNodeViewModel)
 				{
-					listBox.SelectedItems.Clear();
-					listBox.SelectedItem = treeNodeViewModel;
-					listBox.SelectedItems.Add(treeNodeViewModel);
+					this.listBox.SelectedItems.Clear();
+					this.listBox.SelectedItem = treeNodeViewModel;
+					this.listBox.SelectedItems.Add(treeNodeViewModel);
 				}
 			}
 
-			isLeftButtonDown = false;
-			isControlDown = false;
-			isDragging = false;
+			this.isLeftButtonDown = false;
+			this.isControlDown = false;
+			this.isDragging = false;
 
 			item.ReleaseMouseCapture();
 			e.Handled = true;
@@ -141,14 +140,14 @@ namespace BehaviorTree
 		{
 			Point curMouseDownPoint;
 			Vector dragDelta;
-			if (isDragging)
+			if (this.isDragging)
 			{
 				curMouseDownPoint = e.GetPosition(this);
-				dragDelta = curMouseDownPoint - origMouseDownPoint;
+				dragDelta = curMouseDownPoint - this.origMouseDownPoint;
 
-				origMouseDownPoint = curMouseDownPoint;
+				this.origMouseDownPoint = curMouseDownPoint;
 
-				foreach (TreeNodeViewModel selectedItem in listBox.SelectedItems)
+				foreach (TreeNodeViewModel selectedItem in this.listBox.SelectedItems)
 				{
 					selectedItem.X += dragDelta.X;
 					selectedItem.Y += dragDelta.Y;
@@ -156,7 +155,7 @@ namespace BehaviorTree
 				return;
 			}
 
-			if (!isLeftButtonDown)
+			if (!this.isLeftButtonDown)
 			{
 				return;
 			}
@@ -164,17 +163,17 @@ namespace BehaviorTree
 			var item = (FrameworkElement) sender;
 			var treeNodeViewModel = item.DataContext as TreeNodeViewModel;
 
-			if (!listBox.SelectedItems.Contains(treeNodeViewModel))
+			if (!this.listBox.SelectedItems.Contains(treeNodeViewModel))
 			{
 				return;
 			}
 
 			curMouseDownPoint = e.GetPosition(this);
-			dragDelta = curMouseDownPoint - origMouseDownPoint;
+			dragDelta = curMouseDownPoint - this.origMouseDownPoint;
 			double dragDistance = Math.Abs(dragDelta.Length);
 			if (dragDistance > DragThreshold)
 			{
-				isDragging = true;
+				this.isDragging = true;
 			}
 			e.Handled = true;
 		}

+ 7 - 8
CSharp/Modules/BehaviorTree/BehaviorTreeViewModel.cs

@@ -4,7 +4,6 @@ using System.ComponentModel.Composition;
 namespace BehaviorTree
 {
 	[Export(typeof (BehaviorTreeViewModel)), PartCreationPolicy(CreationPolicy.NonShared)]
-	
 	internal class BehaviorTreeViewModel
 	{
 		private readonly ObservableCollection<TreeNodeViewModel> treeNodes = new ObservableCollection<TreeNodeViewModel>();
@@ -13,7 +12,7 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return treeNodes;
+				return this.treeNodes;
 			}
 		}
 
@@ -21,30 +20,30 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return treeNodes.Count == 0 ? null : treeNodes[0];
+				return this.treeNodes.Count == 0 ? null : this.treeNodes[0];
 			}
 		}
 
 		public void Add(TreeNode treeNode, TreeNodeViewModel parent)
 		{
 			var treeNodeViewModel = new TreeNodeViewModel(treeNode, parent);
-			treeNodes.Add(treeNodeViewModel);
+			this.treeNodes.Add(treeNodeViewModel);
 			if (parent != null)
 			{
 				parent.Children.Add(treeNodeViewModel);
 			}
-			BehaviorTreeLayout.ExcuteLayout(Root);
+			BehaviorTreeLayout.ExcuteLayout(this.Root);
 		}
 
 		public void Remove(TreeNodeViewModel treeNodeViewModel)
 		{
 			for (int i = treeNodeViewModel.Children.Count - 1; i >= 0; --i)
 			{
-				Remove(treeNodeViewModel.Children[i]);
+				this.Remove(treeNodeViewModel.Children[i]);
 			}
 			treeNodeViewModel.Parent.Children.Remove(treeNodeViewModel);
-			treeNodes.Remove(treeNodeViewModel);
-			BehaviorTreeLayout.ExcuteLayout(Root);
+			this.treeNodes.Remove(treeNodeViewModel);
+			BehaviorTreeLayout.ExcuteLayout(this.Root);
 		}
 	}
 }

+ 2 - 2
CSharp/Modules/BehaviorTree/TreeNode.cs

@@ -4,8 +4,8 @@
 	{
 		public TreeNode(double x, double y)
 		{
-			X = x;
-			Y = y;
+			this.X = x;
+			this.Y = y;
 		}
 
 		public double X

+ 35 - 35
CSharp/Modules/BehaviorTree/TreeNodeViewModel.cs

@@ -5,7 +5,7 @@ namespace BehaviorTree
 {
 	public class TreeNodeViewModel : NotificationObject
 	{
-		private static int globalNum = 0;
+		private static int globalNum;
 		private readonly int num;
 		private const double width = 80;
 		private const double height = 50;
@@ -20,18 +20,18 @@ namespace BehaviorTree
 
 		public TreeNodeViewModel(TreeNode treeNode, TreeNodeViewModel parent)
 		{
-			num = globalNum++;
+			this.num = globalNum++;
 			this.treeNode = treeNode;
 			this.parent = parent ?? this;
 			if (this.parent == this)
 			{
-				connectorX2 = 0;
-				connectorY2 = Height / 2;
+				this.connectorX2 = 0;
+				this.connectorY2 = Height / 2;
 			}
 			else
 			{
-				connectorX2 = Width + Parent.X - X;
-				connectorY2 = Height / 2 + Parent.Y - Y;
+				this.connectorX2 = Width + this.Parent.X - this.X;
+				this.connectorY2 = Height / 2 + this.Parent.Y - this.Y;
 			}
 		}
 
@@ -63,7 +63,7 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return Parent == this;
+				return this.Parent == this;
 			}
 		}
 
@@ -76,7 +76,7 @@ namespace BehaviorTree
 			set
 			{
 				this.prelim = value;
-				RaisePropertyChanged("Prelim");
+				this.RaisePropertyChanged("Prelim");
 			}
 		}
 
@@ -88,7 +88,7 @@ namespace BehaviorTree
 			}
 			set
 			{
-				RaisePropertyChanged("Modify");
+				this.RaisePropertyChanged("Modify");
 				this.modify = value;
 			}
 		}
@@ -97,22 +97,22 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return treeNode.X;
+				return this.treeNode.X;
 			}
 			set
 			{
-				if (treeNode.X == value)
+				if (this.treeNode.X == value)
 				{
 					return;
 				}
-				treeNode.X = value;
-				RaisePropertyChanged("X");
+				this.treeNode.X = value;
+				this.RaisePropertyChanged("X");
 
-				ConnectorX2 = Width / 2 + Parent.X - X;
+				this.ConnectorX2 = Width / 2 + this.Parent.X - this.X;
 
-				foreach (TreeNodeViewModel child in Children)
+				foreach (TreeNodeViewModel child in this.Children)
 				{
-					child.ConnectorX2 = Width / 2 + treeNode.X - child.X;
+					child.ConnectorX2 = Width / 2 + this.treeNode.X - child.X;
 				}
 			}
 		}
@@ -121,22 +121,22 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return treeNode.Y;
+				return this.treeNode.Y;
 			}
 			set
 			{
-				if (treeNode.Y == value)
+				if (this.treeNode.Y == value)
 				{
 					return;
 				}
-				treeNode.Y = value;
-				RaisePropertyChanged("Y");
+				this.treeNode.Y = value;
+				this.RaisePropertyChanged("Y");
 
-				ConnectorY2 = Height + Parent.Y - Y;
+				this.ConnectorY2 = Height + this.Parent.Y - this.Y;
 
-				foreach (var child in Children)
+				foreach (var child in this.Children)
 				{
-					child.ConnectorY2 = Height + treeNode.Y - child.Y;
+					child.ConnectorY2 = Height + this.treeNode.Y - child.Y;
 				}
 			}
 		}
@@ -165,8 +165,8 @@ namespace BehaviorTree
 			}
 			set
 			{
-				connectorX2 = value;
-				RaisePropertyChanged("ConnectorX2");
+				this.connectorX2 = value;
+				this.RaisePropertyChanged("ConnectorX2");
 			}
 		}
 
@@ -178,8 +178,8 @@ namespace BehaviorTree
 			}
 			set
 			{
-				connectorY2 = value;
-				RaisePropertyChanged("ConnectorY2");
+				this.connectorY2 = value;
+				this.RaisePropertyChanged("ConnectorY2");
 			}
 		}
 
@@ -187,16 +187,16 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return treeNode.Type;
+				return this.treeNode.Type;
 			}
 			set
 			{
-				if (treeNode.Type == value)
+				if (this.treeNode.Type == value)
 				{
 					return;
 				}
-				treeNode.Type = value;
-				RaisePropertyChanged("Type");
+				this.treeNode.Type = value;
+				this.RaisePropertyChanged("Type");
 			}
 		}
 
@@ -204,11 +204,11 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return parent;
+				return this.parent;
 			}
 			set
 			{
-				parent = value;
+				this.parent = value;
 			}
 		}
 
@@ -216,11 +216,11 @@ namespace BehaviorTree
 		{
 			get
 			{
-				return children;
+				return this.children;
 			}
 			set
 			{
-				children = value;
+				this.children = value;
 			}
 		}