static void OnRtnError(object sender, ref ErrorField error) { Console.WriteLine("BB" + error.ErrorID + error.ErrorMsg()); }
public static string ErrorMsg(this ErrorField field) { return(PInvokeUtility.GetUnicodeString(field.ErrorMsg)); }
public static string ToFormattedString(this ErrorField field) { return(string.Format("[ErrorID={0},ErrorMsg={1}]", field.ErrorID, field.ErrorMsg())); }
static void OnRtnError(object sender, ref ErrorField error) { Console.WriteLine("BB" + error.XErrorID + error.RawErrorID + error.Text()); }
public static string Text([In] this ErrorField field) { return(PInvokeUtility.GetUnicodeString(field.Text)); }
public static string ToFormattedString([In] this ErrorField field) { return(string.Format("[XErrorID={0};RawErrorID={1};Text={2};Source={3}]", field.XErrorID, field.RawErrorID, field.Text(), field.Source)); }