What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-05 04:54:02
c# draggable controls
// c# draggable controls (Buttons, etc.) // Install the package "Control.Draggable" via NuGet // and use this code: ControlExtension.Draggable(MyControl, true); // Here is a good video (that helped me out): // https://www.youtube.com/watch?v=Ry... Add solution -
C# 2021-09-03 07:25:01
ternary operator in c#
/* In C#, if condition is true, the first expression is evaluated and becomes the result; if false, the second expression is evaluated and becomes the result. */ // The syntax of ternary operator is: Condition ? Expression1 : Expression2; // Here... Add solution -
C# 2021-09-02 15:58:01
c# what is console readline
Here, take input from the user. Since age is an integer, we typecasted it using Convert.ToInt32() Method. It reads the next line from the input stream. It blocks until Enter key is pressed. Hence it is commonly used to pause the console so that the user c... Add solution -
C# 2021-08-31 14:16:02
C++ in C#
//you will be using the using using System.Runtime.InteropServices; //Before we begin you must understand you cannot truely import CPP. //Only static functions and structs for data can be imported. This //may mean writeing a quick CCP class to static na... Add solution -
Other 2021-08-29 15:00:02
unreal engine vs unity
Based off of what I've read, Unity is easier to use but to get stunning visuals you need a lot more work to match Unreal. Despite that Unity is still better because it uses C# which is still difficult but not nearly as difficult as C++ which all unreal c... Add solution -
Shell/Bash 2021-08-28 10:06:01
setting up C# project with VSCode
# Setting up C# project with VSCode: # 1. Open File Explorer and create a folder on your disk, then select the # file path and to open the Command Prompt at the current path, type: cmd # (For the purpose of this guide, the folder is called 'MyFol... Add solution -
C# 2021-08-27 22:51:01
c# xamarin forms use AssetManager to get text file
// c# Xamarin Forms for Andriod strin text = string.Empty; string filename = "TestList.txt"; AssetManager assets = Android.App.Application.Context.Assets; using (StreamReader reader = new StreamReader(assets.Open(filename))) { text = reader... Add solution