示例#1
0
 public PTextFile(PTextFile other) : this(PapillonPINVOKE.new_PTextFile__SWIG_1(PTextFile.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
    public static PResult ReadAll(string filename, PTextFile textFile)
    {
        PResult ret = new PResult(PapillonPINVOKE.PTextFile_ReadAll(filename, PTextFile.getCPtr(textFile)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PTextFile obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }