What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-06 09:35:38
c# visitor pattern
using System; using System.Collections.Generic; namespace RefactoringGuru.DesignPatterns.Visitor.Conceptual { // The Component interface declares an `accept` method that should take the // base visitor interface as an argument. public interfa... Add solution -
C# 2022-03-05 19:00:15
how to check if a value is inside an array c#
/*Make sure to add using System.Linq; */ string[] printer = {"jupiter", "neptune", "pangea", "mercury", "sonic"}; if(printer.Contains("jupiter")) { Process.Start("BLAH BLAH CODE TO AD... Add solution -
C# 2022-03-05 08:35:43
convert string to int c#
using System; public class Example { public static void Main() { string[] strings = new string[] {"1", "2", "3"}; int[] ints = Array.ConvertAll(strings, s => int.Parse(s)); Console.WriteLine(String.Join(",&q... Add solution -
C# 2022-03-02 18:10:12
Window Dimensions in Blazor?
using Microsoft.JSInterop; using System.Threading.Tasks; public class BrowserService { private readonly IJSRuntime _js; public BrowserService(IJSRuntime js) { _js = js; } public async Task<BrowserDimension> GetDimensions() { return awai... Add solution