Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# statements

static void Divide(int x, int y, out int result, out int remainder)
{
    result = x / y;
    remainder = x % y;
}

public static void OutUsage()
{
    Divide(10, 3, out int res, out int rem);
    Console.WriteLine($"{res} {rem}");	// "3 1"
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get or create firewall inbound rule ports 
Csharp :: lambda not null c# 
Csharp :: Derived classes of abstract class share property 
Csharp :: c# read csv file save to database dynamically 
Csharp :: Count Possible Decodings 
Csharp :: streamwriter delete all text 
Csharp :: Debug output to console and a log 
Csharp :: Min max to 01 
Csharp :: c# rotate sum array 
Csharp :: WPF TextBox input to All Caps 
Csharp :: add two large numbers 
Csharp :: Service Locator, Unity 
Csharp :: convert console app to linux 
Csharp :: c# how to load type of class from string 
Csharp :: instance vs initiate 
Csharp :: get picked item xamarin 
Csharp :: unity prefab button not working 
Csharp :: accord.io read .mat file 
Csharp :: two question marks together mean in C# 
Csharp :: Computing a Cartesian product or Combinations with LINQ 
Csharp :: .net disable show exception 
Csharp :: c# use cefcharp and selenium can? 
Csharp :: C# Custom setter with parameter 
Csharp :: xml reader attributes 
Csharp :: ascx access parent master page 
Csharp :: c# async rethrow exception 
Csharp :: detect mouse in bottom of screen + unity 
Csharp :: c# restore form 
Csharp :: c# if a new program is started 
Csharp :: c# check file similarities 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =