public virtual Stream GetInputStream() { try { if (ins0 != null) { return(ins0); } if (classLoader == null) { return(ins0 = Resources.OpenStream(path)); } else { try { return(ins0 = JavaRuntime.GetResourceAsStream(classLoader, path)); } catch { return(ins0 = Resources.ApplicationResourceStream(new Uri(path))); } } } catch (Exception e) { Log.Exception(e); } return(null); }