A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
1005 B

// -----------------------------------------------------------------------
// <copyright file="PropertyPath.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Markup.Xaml.DataBinding.ChangeTracking
{
public class PropertyPath
{
private string[] chunks;
private PropertyPath(PropertyPath propertyPath)
{
this.chunks = propertyPath.Chunks;
}
public PropertyPath(string path)
{
this.chunks = path.Split('.');
}
public string[] Chunks
{
get { return this.chunks; }
set { this.chunks = value; }
}
public PropertyPath Clone()
{
return new PropertyPath(this);
}
public override string ToString()
{
return string.Join(".", this.chunks);
}
}
}