Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

.net core check if linux

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
    Console.WriteLine("We're on macOS!");
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: check if file exist c# 
Csharp :: c# round double 
Csharp :: c# enum default 
Csharp :: C# how to use if and else 
Csharp :: c# list declaration 
Csharp :: Squares of a Sorted Array 
Csharp :: how to create empty text file in c# 
Csharp :: c# how does comparing datetime work 
Csharp :: c# insert spaces before capital letters 
Csharp :: unity find child by name 
Csharp :: sleep in c# 
Csharp :: adding values to mock IHttpContextAccessor unit test .net core 
Csharp :: how to make button in asp.net to go to other page 
Csharp :: change working directory shell 
Csharp :: c# how to check if a array bool is all true 
Csharp :: postasjsonasync reference c# 
Csharp :: .net core partial view with model 
Csharp :: c# copy files from one folder to another 
Csharp :: sort file name with C# 
Csharp :: c# select a row from datagridview by value 
Csharp :: modulus program 
Csharp :: solid principles c# 
Csharp :: c# display image 
Csharp :: c# list.foreach 
Csharp :: default parameter c# 
Csharp :: what is unity 
Csharp :: TimeZone in asp.net core 
Csharp :: c# get all classes derived from type 
Csharp :: linq to json 
Csharp :: c# parse number from string 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =