//foreach
(var assembly
in
asmptr)
var assembly = asmptr;
{
var
type
= assembly.GetType(
"Vfinity.Vbusiness.Utilities.SecurityHelper"
,
true
,
true
);
//foreach
(var
type
in
assembly.GetTypes())
//foreach
(var
type
in
System.Reflection.Assembly.GetExecutingAssembly().GetTypes())
{
//Jitter
.PreJitAllMethods(
type
);
var methods =
type
.GetMethods(
//BindingFlags
.DeclaredOnly |
BindingFlags.NonPublic |
BindingFlags.Public |
BindingFlags.Instance |
BindingFlags.Static);
//
for
each
time
, jit methods marked with prejit attribute
foreach (var method
in
methods)
{
try
{
//
jitting of the method happends here.
RuntimeHelpers.PrepareMethod(method.MethodHandle);
}
catch (System.Exception ex)
{
Logger.AppendText(method.Name);
Logger.AppendText(
" - "
);
Logger.AppendText(ex.Message);
Logger.AppendText(
"\r\n"
);
Logger.AppendText(ex.StackTrace);
Logger.AppendText(
"\r\n"
);
Logger.AppendText(
"---------------------------------\r\n"
);
}
}
}
}