mirror of https://github.com/icsharpcode/ILSpy.git
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.
45 lines
1.2 KiB
45 lines
1.2 KiB
// Copyright (c) Cristian Civera (cristian@aspitalia.com) |
|
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt) |
|
|
|
using System; |
|
|
|
namespace Ricciolo.StylesExplorer.MarkupReflection |
|
{ |
|
internal class XmlBamlPropertyElement : XmlBamlElement |
|
{ |
|
private readonly PropertyType _propertyType; |
|
private PropertyDeclaration propertyDeclaration; |
|
|
|
public XmlBamlPropertyElement(PropertyType propertyType, PropertyDeclaration propertyDeclaration) |
|
{ |
|
_propertyType = propertyType; |
|
this.propertyDeclaration = propertyDeclaration; |
|
} |
|
|
|
public XmlBamlPropertyElement(XmlBamlElement parent, PropertyType propertyType, PropertyDeclaration propertyDeclaration) |
|
: base(parent) |
|
{ |
|
_propertyType = propertyType; |
|
this.propertyDeclaration = propertyDeclaration; |
|
this.TypeDeclaration = propertyDeclaration.DeclaringType; |
|
} |
|
|
|
public PropertyDeclaration PropertyDeclaration |
|
{ |
|
get |
|
{ |
|
return this.propertyDeclaration; |
|
} |
|
} |
|
|
|
public PropertyType PropertyType |
|
{ |
|
get { return _propertyType; } |
|
} |
|
|
|
public override string ToString() |
|
{ |
|
return String.Format("PropertyElement: {0}.{1}", TypeDeclaration.Name.Replace('+', '.'), PropertyDeclaration.Name); |
|
} |
|
} |
|
}
|
|
|