add Swan.Tiny and CodingStyles

This commit is contained in:
2019-12-09 17:27:40 +01:00
parent 2f1d949dcc
commit c41f2043e2
7 changed files with 60 additions and 36 deletions
@@ -39,16 +39,15 @@ namespace Unosquare.WiringPi.Resources {
return;
}
using(Stream stream = typeof(EmbeddedResources).Assembly.GetManifestResourceStream(resourceName)) {
using(FileStream outputStream = File.OpenWrite(targetPath)) {
stream?.CopyTo(outputStream);
}
using Stream stream = typeof(EmbeddedResources).Assembly.GetManifestResourceStream(resourceName);
using(FileStream outputStream = File.OpenWrite(targetPath)) {
stream?.CopyTo(outputStream);
}
try {
_ = SysCall.Chmod(targetPath, (UInt32)executablePermissions);
} catch {
/* Ignore */
}
try {
_ = SysCall.Chmod(targetPath, (UInt32)executablePermissions);
} catch {
/* Ignore */
}
}
}