What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-12 14:03:10
can uwp use openfile
public async Task GetFile() { Windows.Storage.Pickers.FileOpenPicker picker = new Windows.Storage.Pickers.FileOpenPicker(); picker.ViewMode = Windows.Storage.Pickers.PickerViewMode.List; picker.FileTypeFilter.Add(".txt"); //Promp... Add solution -
Other 2021-10-08 02:26:07
blazor server side authentication with identityserver4
/* User Info in Razor ComponentsPermalink In a Blazor server-side application, authenticated user information is available to Razor components by injecting the AuthenticationStateProvider. We’ll modify Index.razor to show some inform... Add solution -
BASIC 2021-10-04 00:08:02
do sum things after task return vb.net
' Three things to note about writing an Async Function: ' - The function has an Async modifier. ' - Its return type is Task or Task(Of T). (See "Return Types" section.) ' - As a matter of convention, its name ends in "Async". Async ... Add solution -
C# 2021-10-03 13:24:03
C# graph api upload file one drive
/// <summary> /// Take a file and upload it to the service /// </summary> /// <param name="fileToUpload">The file that... Add solution -
C# 2021-10-01 16:43:03
mvc invalidOperationException: Method 'InvokeAsync' of view component should be declared to return Task<t>
public class ExampleViewComponent : ViewComponent { public Task<IViewComponentResult> InvokeAsync() { ExampleModel model = new ExampleModel(2); // returns a finished task return Task.FromResult<IViewComponentResult>... Add solution -
C# 2021-09-28 13:12:02
unity connect to firebase
// Perform the steps at the following link to setup Firebase // for your Unity project: https://firebase.google.com/docs/unity/setup // To connect to the databse in a script, use the following // two lines: FirebaseApp.DefaultInstance.SetEditorDatabaseUr... Add solution