I don't think AssemblyName.Name can ever be null as that's the assembly simple name, which came from a file name here. I can reverse the check to be "monotouch".Equals(an.Name,...) if that seems safer.