Type t = typeof(..);
MethodInfo mi = t.GetMethod("***", BindingFlags.Instance | BindingFlags.NonPublic);
ParametrizedThreadStart parametrizedThreadStart = mew ParametrizedThreadStart ((object o)=>{
mi.Invoke((..)o, new object[] {0});
});
Thread t = new Thread(parametrizedThreadStart);
string str;
using (StringWriter wr = new StringWriter())
{
TextWriter s= Console.Out;
Console. SetOut(wr);
t.Start(..);
t.Join();
str = wr.ToString();
Console.Setout(s);
}
Assert.AreEquals(regex.ismatch(str, @****), true);
assemblyversionattribute verAttribute = (assemblyversionattribute) assembly.getcustomattribute(typeof(assemblyversionattribute))
для получения подобной информации кажется менее ограниченным чем получение через fileversioninfo сборки длл.class Base
{
private int field1;
...
...
#region Strings
private static string string1;
private static string string2;
private static string string3;
#region Group1
private static string string4;
private static string string5;
private static string string6;
#endregion
#endregion
static Base()
{
string1 = "string1";
string2 = "string2";
string3 = "string3";
//group1
string4 = "string4";
string5 = "string5";
string6 = "string6";
}
#endregion
public Base() { }
...
}