Errors.Warning C# (CSharp) Method

Warning() public method

public Warning ( int line, int col, string s ) : void
line int
col int
s string
return void
    public void Warning(int line, int col, string s)
    {
        errorStream.WriteLine(errMsgFormat, line, col, s);
    }

Same methods

Errors::Warning ( string s ) : void

Usage Example

Esempio n. 1
0
    /// <summary>
    /// Constructor.
    /// </summary>
    /// <param name="src">Source description</param>
    /// <param name="post">Postfix (used in errors)</param>
    public Server(string src, string post)
    {
        string[] a = src.Split(delims);

        if (a.Length > 5)
        {
            Errors.Warning("Ignored server: " + src + " " + post);
            return;
        }

        if (a.Length == 0)
        {
            Errors.Warning("Ignored garbage " + post);
            return;
        }

        string s = a[0].Trim();

        if (s.Length == 0)
        {
            return;
        }

        name    = s.ToLower();
        isValid = true;

        cpu = PickUp(a, 1);
        mem = PickUp(a, 2);
        net = PickUp(a, 3);
        dsk = PickUp(a, 4);
    }
All Usage Examples Of Errors::Warning