What do you want to save?
Add Code snippet
New code examples
-
C# 2022-02-13 14:40:24
mailkit csharp send mail
using System; using MailKit.Net.Smtp; using MailKit; using MimeKit; namespace TestClient { class Program { public static void Main (string[] args) { var message = new MimeMessage (); message.From.Add (new MailboxAddress ("Joey Tribbiani... Add solution -
C# 2022-02-12 06:40:09
unity multiply xyz of two vectors
// Calculate the two vectors generating a result. // This will compute Vector3(2, 6, 12)using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Example() { print(Vector3.Scale(new Vector3(1, 2, 3), new ... Add solution -
C# 2022-02-12 04:45:13
first person camera controller unity
//Fixed the issues with the previous controller using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraLook : MonoBehaviour { public float minX = -60f; public float maxX = 60f; public float sensitivity; pub... Add solution -
C# 2022-02-04 12:20:45
c# get or create firewall inbound rule ports
using NetFwTypeLib; // Located in FirewallAPI.dll ... INetFwRule firewallRule = (INetFwRule)Activator.CreateInstance( Type.GetTypeFromProgID("HNetCfg.FWRule")); firewallRule.Action = NET_FW_ACTION_.NET_FW_ACTION_BLOCK; firewallRule.Descripti... Add solution -
C# 2022-02-03 06:05:15
how to change the color of your text in c#
using System; class Demo { public static void Main (string[] args) { Console.BackgroundColor = ConsoleColor.Blue; Console.WriteLine("Background color changed = "+Console.BackgroundColor); Console.ForegroundColor = ConsoleCol... Add solution -
C# 2022-02-02 23:56:42
use of this in programming in c#
using System.IO; using System; class Student { public int id, age; public String name, subject; public Student(int id, String name, int age, String subject) { this.id = id; ... Add solution -
C# 2022-02-02 21:00:12
how to set minvalue of slider in unity
using UnityEngine; using System.Collections; using UnityEngine.UI; // Required when Using UI elements. public class Example : MonoBehaviour { public Slider mainSlider; void Start() { // Changes the minimum value of the slider to 10; ... Add solution