*/
using System;
-using System.IO;
-using System.Linq;
using System.Runtime.CompilerServices;
using System.ComponentModel;
}
else
{
- string[] fileslice = file.Split(new char[] { '\\', '/' });
- string filename = fileslice.Last();
+ int index = file.LastIndexOfAny(new char[] { '\\', '/' });
+ string filename = file.Substring(index + 1);
Interop.Dlog.Print(priority, tag, "%s: %s(%d) > %s", filename, func, line, message);
}
}
}
else
{
- string[] fileslice = file.Split(new char[] { '\\', '/' });
- string filename = fileslice.Last();
+ int index = file.LastIndexOfAny(new char[] { '\\', '/' });
+ string filename = file.Substring(index + 1);
Interop.Dlog.InternalPrint(log_id, priority, tag, "%s: %s(%d) > %s", filename, func, line, message);
}
}
}
else
{
- string[] fileslice = file.Split(new char[] { '\\', '/' });
- string filename = fileslice.Last();
+ int index = file.LastIndexOfAny(new char[] { '\\', '/' });
+ string filename = file.Substring(index + 1);
Interop.Dlog.InternalPrint(log_id, priority, tag, "%s: %s(%d) > %s", filename, func, line, message);
}
#endif