Mono.Tools.SN.IsStrongNamed C# (CSharp) Method

IsStrongNamed() static private method

static private IsStrongNamed ( Assembly assembly ) : bool
assembly System.Reflection.Assembly
return bool
		static bool IsStrongNamed (Assembly assembly) 
		{
			if (assembly == null)
				return false;

			object[] attrs = assembly.GetCustomAttributes (true);
			foreach (object o in attrs) {
				if (o is AssemblyKeyFileAttribute)
					return true;
				else if (o is AssemblyKeyNameAttribute)
					return true;
			}
			return false;
		}
#endif