2010-04-19 42 views
1

的字段如何从UpdateChangedLong1字段的XML注释中引用?将XML文档引用到类

public sealed class SystemConfiguration 
{ 
    public long Long1; 

    /// <summary> 
    /// Make reference to Long1 
    /// </summary> 
    public bool UpdateChanged; 
} 

回答

2

您可以使用<see cref="SystemConfiguration.Long1"/>

Visual Studio生成一个XML文档文件,其中每个成员都分配了一个唯一的ID。您可以在检查ID生成规则:

Processing the XML File

在这种情况下将生成完整的ID是F:YourNamespace.SystemConfiguration.Long1。但是,您可以使用较短的版本,因为您处于同一班级。