Beispiel #1
0
 public File(Context context, PackageFile package, string fileName) : base(UrhoObjectFlag.Empty)
 {
     Runtime.Validate(typeof(File));
     handle = File_File1((object)context == null ? IntPtr.Zero : context.Handle, (object)package == null ? IntPtr.Zero : package.Handle, fileName);
     Runtime.RegisterObject(this);
     OnFileCreated();
 }
Beispiel #2
0
 /// <summary>
 /// Open from within a package file. Return true if successful.
 /// </summary>
 public bool Open(PackageFile package, string fileName)
 {
     Runtime.ValidateRefCounted(this);
     return(File_Open2(handle, (object)package == null ? IntPtr.Zero : package.Handle, fileName));
 }