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.
 
 
 

36 lines
856 B

// Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
namespace Perspex.Markup.Xaml.DataBinding.ChangeTracking
{
public class PropertyPath
{
private string[] _chunks;
private PropertyPath(PropertyPath propertyPath)
{
_chunks = propertyPath.Chunks;
}
public PropertyPath(string path)
{
_chunks = path.Split('.');
}
public string[] Chunks
{
get { return _chunks; }
set { _chunks = value; }
}
public PropertyPath Clone()
{
return new PropertyPath(this);
}
public override string ToString()
{
return string.Join(".", _chunks);
}
}
}