|
|
От: |
Какая разница
|
|
| Дата: | 27.03.14 12:12 | ||
| Оценка: | |||
Label = doc.GetType().InvokeMember("FullName", BindingFlags.GetProperty, null, doc, null) as string;
if (!string.IsNullOrEmpty(Label) && Label.StartsWith(@"@:\"))
{
var ext = Path.GetExtension(Label);
if (!string.IsNullOrEmpty(ext))
{
var index = ext.IndexOf('_');
if (index >= 0)
Label = Label.Substring(0, Label.Length - (ext.Length - index));
}
}