internal AssemblyRef FindAssemblyRef(TypeRef nonNestedTypeRef) { AssemblyRef asmRef = null; if (nonNestedTypeRef != null && typeNameParserHelper != null) { asmRef = typeNameParserHelper.FindAssemblyRef(nonNestedTypeRef); } if (asmRef != null) { return(asmRef); } if (ownerModule.Assembly != null) { return(ownerModule.UpdateRowId(ownerModule.Assembly.ToAssemblyRef())); } return(AssemblyRef.CurrentAssembly); }
internal AssemblyRef FindAssemblyRef(TypeRef nonNestedTypeRef) { AssemblyRef asmRef = null; if (!(nonNestedTypeRef is null) && !(typeNameParserHelper is null)) { asmRef = typeNameParserHelper.FindAssemblyRef(nonNestedTypeRef); } if (!(asmRef is null)) { return(asmRef); } var ownerAsm = ownerModule.Assembly; if (!(ownerAsm is null)) { return(ownerModule.UpdateRowId(ownerAsm.ToAssemblyRef())); } return(AssemblyRef.CurrentAssembly); }