What do you want to save?
Add Code snippet
New code examples
-
C# 2022-01-23 00:11:35
c# postfix increment operator overload
public static Counter operator ++(Counter c) { return new Counter(c.v + 1); } // In C# the increment operator must not mutate its argument. Rather it must only compute the incremented value and return it, without producing any side effects. The side eff... Add solution -
C# 2022-01-22 22:55:52
c# sequenceequal
/* ***C# SequenceEqual*** Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. */ class Pet { public string Name { get; set; } public int Age { get; set; } } public static vo... Add solution -
C# 2022-01-22 22:41:00
get name of variable c#
//Pre C# 6.0 solution //You can use this to get a name of any provided member: public static class MemberInfoGetting { public static string GetMemberName<T>(Expression<Func<T>> memberExpression) { MemberExpression expres... Add solution -
C# 2022-01-22 20:51:22
how to evaluate code in c#
//Unfortanatly you cant because c# isnt a Dynamic language //but you can use the Roslyn scripting API // add NuGet package 'Microsoft.CodeAnalysis.Scripting' using Microsoft.CodeAnalysis.CSharp.Scripting; await CSharpScript.EvaluateAsync("System.Mat... Add solution -
C# 2022-01-22 18:15:36
unity intellisense visual studio code not working
if visual studio code its linked with unity on file -> preferences -> external editor and you have the c# extension installed on visual studio code, follow this tutorial/guide, else do this things first. First unistall the c# extension, then go on ... Add solution