0

如何在 XML 注释中描述属性 Encoding 为默认设置。

public class Settings
{
    public Encoding Encoding{get;set;}

        /// <summary>
        /// Initialize a new instance of a <c>HttpRequestSettings</c> type.
        /// </summary>
        /// <remarks>
        ///     <para>
        ///         How refer to property Encoding in class and describe that property Encoding is set do default ????
        ///     </para>
        /// </remarks>
        public Settings()
        {
            Encoding = Encoding.Default;
        }
}
4

1 回答 1

1

利用:

/// ...
/// This constructor sets <see cref="Encoding"/> to its default value.
/// ...

它会导致任何问题吗?我相信成员(属性)应该比未嵌套在当前类中的类型(类)具有更高的“优先级”。

于 2013-08-10T14:22:18.233 回答