What do you want to save?
Add Code snippet
New code examples in category C#
-
Mario S 2021-08-27 18:27:02
c# obsolete class
//The last parameter (true|false) determine if the use of class, property, //function, etc is considered as error or not [ObsoleteAttribute("Here you say why this class is obsolete", false)] public class MyClass { [ObsoleteAttribute("He... Add solution -
-
Leyla Alkan 2021-08-27 16:43:02
3d fps movement script
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(CharacterController))] public class SC_FPSController : MonoBehaviour { public float walkingSpeed = 7.5f; public float runningSpeed = 11.5f; ... Add solution -
OhLook 2021-08-27 16:21:01
mvc core 3.1 render action to string
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Co... Add solution -
Bodie Devlin 2021-08-27 14:52:01
c# linq select from object list
// this will return the first correct answer, // or throw an exception if there are no correct answers var correct = answers.First(a => a.Correct); // this will return the first correct answer, // or null if there are no correct answers var correct ... Add solution