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
<ListView IsItemClickEnabled="True" | |
ItemsSource="{Binding Items}" | |
ItemClick="OnItemClick" /> |
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 listToModify = new List<string>(); | |
var listNotToModify = new List<string>(); | |
var bindingListWrapper = new BindingList<string>(listToModify); // wrapper modifies inner list | |
var bindingListCopy = new BindingList<string>(listNotToModify.ToList()); // doesn't change original list |
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); |
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 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
<!-- 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
<!-- Line before the change --> | |
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath> | |
<!-- Line after the change --> | |
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(MSBuildThisFileDirectory)\NuGet.exe</NuGetExePath> |