-
Notifications
You must be signed in to change notification settings - Fork 12
/
Property.cs
40 lines (36 loc) · 995 Bytes
/
Property.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
// Xml Documentation Generator (XDG)
// Copyright (C) 2012, Ilmar Kruis
//
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one
// at http://mozilla.org/MPL/2.0/.
//
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Mono.Cecil;
namespace XDG
{
class Property
{
public string Name { get; set; }
public string Type { get; set; }
public string GetAccess { get; set; }
public string SetAccess { get; set; }
public string Summary { get; set; }
public Property(PropertyDefinition def)
{
Name = def.Name;
Type = def.PropertyType.ToXdgUrl();
XmlNode doc = Xdg.FindXmlDoc(def);
if (doc != null)
{
Summary = doc.GetElementContent("summary");
}
}
}
}