This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultipleXmlDocumentationProvider : IDocumentationProvider, IModelDocumentationProvider | |
{ | |
// 多個 XPathNavigator | |
private IList<XPathNavigator> _documentNavigators = new List<XPathNavigator>(); | |
private const string TypeExpression = "/doc/members/member[@name='T:{0}']"; | |
private const string MethodExpression = "/doc/members/member[@name='M:{0}']"; | |
private const string PropertyExpression = "/doc/members/member[@name='P:{0}']"; | |
private const string FieldExpression = "/doc/members/member[@name='F:{0}']"; | |
private const string ParameterExpression = "param[@name='{0}']"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum Order | |
{ | |
Ascending, | |
Descending | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum Order | |
{ | |
Ascending, | |
Descending | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void TestCollection() | |
{ | |
var expected = new | |
{ | |
//Orders = (new List<int> { 11, 12 }).Select(p => new { Id = p }) | |
Orders = new[] | |
{ | |
new { Id = 11 }, | |
new { Id = 12 } |