ArgumentNull() public static méthode

public static ArgumentNull ( object obj, string name ) : void
obj object
name string
Résultat void
Exemple #1
0
        public Module(string name)
        {
            Guard.ArgumentNull(name, "name");

            m_handle = Native.ModuleCreateWithName(name);
        }
Exemple #2
0
 public static TypeRef CreatePointer(TypeRef target)
 {
     Guard.ArgumentNull(target, "target");
     return(new TypeRef(Native.PointerType(target.Handle, 0), target.Handle));
 }
Exemple #3
0
 public PassManager(Module module)
 {
     Guard.ArgumentNull(module, "module");
     m_handle = Native.CreateFunctionPassManagerForModule(module.Handle);
     m_module = module.Handle;
 }
Exemple #4
0
 public void MoveAfter(BasicBlock block)
 {
     Guard.ArgumentNull(block, "block");
     Native.MoveBasicBlockAfter(BBHandle, block.BBHandle);
 }