private void SetEntryPointNoLock( MethodInfo entryMethod, // entry method for the assembly. We use this to determine the entry module PEFileKinds fileKind) // file kind for the assembly. { if (entryMethod == null) { throw new ArgumentNullException(nameof(entryMethod)); } Contract.EndContractBlock(); BCLDebug.Log("DYNIL", "## DYNIL LOGGING: AssemblyBuilder.SetEntryPoint"); Module tmpModule = entryMethod.Module; if (tmpModule == null || !InternalAssembly.Equals(tmpModule.Assembly)) { throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EntryMethodNotDefinedInAssembly")); } m_assemblyData.m_entryPointMethod = entryMethod; m_assemblyData.m_peFileKind = fileKind; }
public override bool Equals(object obj) { return(InternalAssembly.Equals(obj)); }