This file contains 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
async Task SetupAsync() | |
{ | |
if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar")) | |
{ | |
await StatusBar.GetForCurrentView().HideAsync(); | |
} | |
} |
This file contains 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
Expression<Func<int>> e = () => 1; | |
e = e.Update(Expression.Constant(2), null); | |
int i = e.Compile().Invoke(); // should return "2" |
This file contains 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
public static void Main(string[] args) | |
{ | |
// code here will run before the host. | |
// this is the host call. | |
WebApplication.Run<Startup>(args); | |
} |
This file contains 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
public static void Main(string[] args) => WebApplication.Run<Startup>(args); |
This file contains 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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
class AsyncLocal | |
{ | |
static AsyncLocal<string> _asyncLocalString = new AsyncLocal<string>(); | |
static ThreadLocal<string> _threadLocalString = new ThreadLocal<string>(); | |
static async Task AsyncMethodA() |
This file contains 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
{ | |
"version": "1.0.0-*", | |
"buildOptions": { | |
"debugType": "portable", | |
"emitEntryPoint": true | |
}, | |
"dependencies": {}, | |
"frameworks": { | |
"netcoreapp1.1": { | |
"dependencies": { |
This file contains 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
{ | |
"version": "1.0.0-*", | |
"buildOptions": { | |
"debugType": "portable" | |
}, | |
"dependencies": {}, | |
"frameworks": { | |
"netstandard1.6": { | |
"dependencies": { | |
"NETStandard.Library": "1.6.1-preview1-24530-04" |
This file contains 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
{ | |
"version": "1.0.0-*", | |
"buildOptions": { | |
"debugType": "portable", | |
"emitEntryPoint": true | |
}, | |
"dependencies": {}, | |
"frameworks": { | |
"netcoreapp1.1": { | |
"dependencies": { |
This file contains 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
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" /> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp1.1</TargetFramework> | |
<DebugType>portable</DebugType> | |
<AssemblyName>hw-test</AssemblyName> | |
<OutputType>Exe</OutputType> | |
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">$(PackageTargetFallback);dnxcore50</PackageTargetFallback> | |
</PropertyGroup> |
This file contains 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
{ | |
"sdk": { | |
"version": "1.0.0-preview2-003131" | |
} | |
} |