Posted by Rajesh on May 10, 2008
The Assembly Name object contains information about an assembly, which you can use to bind to that assembly.
AssemblyName asName = null;
asName = AssemblyName.GetAssemblyName(“Path of Assembly”);
if (asName.GetPublicKey() != null)
{
Console.Write(“Assembly has assigned strong name”);
}
else
{
Console.Write(“Assembly has not assigned strong name”);
}
Posted in c# | Leave a Comment »
Posted by Rajesh on March 26, 2008
If you work on visual studio 2005. Don’t use int.prase because it throws an ArgumentNullException exception.
public static int IntTryParse(string values, int defaultValue)
{
int val = defaultValue;
if (int.TryParse(values, out val))
return val;
else
return defaultValue;
}
Posted in c# | Leave a Comment »