public ObsoleteAttributeData(ObsoleteAttributeKind kind, string? message, bool isError, string? diagnosticId, string? urlFormat)
 {
     Kind = kind;
     Message = message;
     IsError = isError;
     DiagnosticId = diagnosticId;
     UrlFormat = urlFormat;
 }
Example #2
0
        internal ObsoleteAttributeData DecodeObsoleteAttribute(ObsoleteAttributeKind kind)
        {
            switch (kind)
            {
            case ObsoleteAttributeKind.Obsolete:
                return(DecodeObsoleteAttribute());

            case ObsoleteAttributeKind.Deprecated:
                return(DecodeDeprecatedAttribute());

            case ObsoleteAttributeKind.Experimental:
                return(DecodeExperimentalAttribute());

            default:
                throw ExceptionUtilities.UnexpectedValue(kind);
            }
        }
Example #3
0
 public ObsoleteAttributeData(ObsoleteAttributeKind kind, string message, bool isError)
 {
     Kind    = kind;
     Message = message;
     IsError = isError;
 }