Files
ZuneUIXTools/UIX/Microsoft/Iris/Error.cs
T
2021-04-02 02:58:17 -05:00

33 lines
1.1 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Microsoft.Iris.Error
// Assembly: UIX, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
// MVID: A56C6C9D-B7F6-46A9-8BDE-B3D9B8D60B11
// Assembly location: C:\Program Files\Zune\UIX.dll
using System;
namespace Microsoft.Iris
{
public class Error
{
public string Context;
public string Message;
public bool Warning;
public int Line;
public int Column;
public override string ToString()
{
string str1 = this.Context;
if (str1 != null && str1.StartsWith("file://", StringComparison.Ordinal))
str1 = str1.Substring(7);
string str2;
if (this.Line != -1)
str2 = string.Format("{0}({1},{2}) : {3} : {4}", str1, Line, Column, this.Warning ? "warning" : "error", Message);
else
str2 = this.Context == null ? string.Format("{0} : {1}", this.Warning ? "warning" : "error", Message) : string.Format("{0} : {1} : {2}", str1, this.Warning ? "warning" : "error", Message);
return str2;
}
}
}