This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var file = await Package.Current.InstalledLocation.GetFileAsync(@"\Assets\Text.txt"); | |
var text = await FileIO.ReadTextAsync(file); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<config> | |
<!-- Defines a common package repository for all solutions --> | |
<add key="repositoryPath" value=".\Packages" /> | |
</config> | |
</configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Line before the change --> | |
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath> | |
<!-- Line after the change --> | |
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(MSBuildThisFileDirectory)\NuGet.exe</NuGetExePath> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Line before the change --> | |
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> | |
<!-- Line after the change (relative path must match your .nuget folder location after the move) --> | |
<Import Project="..\..\.nuget\NuGet.targets" Condition="Exists('..\..\.nuget\NuGet.targets')" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = new HttpClient(); | |
// GET request | |
var getRequest = "http://hroch486.icpf.cas.cz/cgi-bin/echo.pl?key=value"; | |
var getResponse = await http.GetAsync(getRequest); | |
var getResult = await getResponse.Content.ReadAsStringAsync(); | |
// POST request | |
var postUri = new Uri("http://hroch486.icpf.cas.cz/cgi-bin/echo.pl"); | |
var postFields = new Dictionary<string, string> | |
{ | |
{ "key", "value" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array = new string[] { }; | |
var bindingList = new BindingList<string>(array); | |
bindingList.Add("test"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array = new string[] { }; | |
Assert.IsTrue(((IList<string>)array).IsReadOnly); | |
Assert.IsFalse(((IList)array).IsReadOnly); |