Пример #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);
 }