سؤال

How describe in XML comments that property Encoding is intiliaze to default.

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;
        }
}
هل كانت مفيدة؟

المحلول

Use:

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

Does it lead to any problems? I believe the member (property) should have higher "priority" than the type (class) which is not nested in the current class.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top