Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a utility for YAML loading. #98

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

brendandburns
Copy link
Contributor

}

public static async Task<T> LoadFromFileAsync<T> (string file) {
using (FileStream fs = File.Open(file, FileMode.Open, FileAccess.Write, FileShare.None)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a shortcut File.OpenRead

@qmfrederik
Copy link
Contributor

Awesome, thanks!

@brendandburns brendandburns merged commit 5b1a831 into kubernetes-client:master Mar 12, 2018
JonJam pushed a commit to JonJam/csharp that referenced this pull request Sep 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants