This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define FILLATTRIBUTES // Uncomment this line to fill the attributes | |
| //#define INTERNAL // Uncomment this line to make the class internal | |
| #define TMP_INTERPOTATION_EXTENSIONS // Uncomment this line to add TMP extensions | |
| // Licensed to the .NET Foundation under one or more agreements. | |
| // The .NET Foundation licenses this file to you under the MIT license. | |
| #nullable enable | |
| using System.Buffers; | |
| using System.Diagnostics; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Numerics; | |
| using System.Runtime.CompilerServices; | |
| using InlineIL; | |
| //Not IDisposable | |
| TestClass.DisposeTest(1); | |
| //TestClass | |
| Console.WriteLine(TestClass.Self(new TestClass())); | |
| //Dispose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| public class C { | |
| public int M(int[,] array,int i,int j) { | |
| return array[i,j]; | |
| } | |
| public int M(int[][] array,int i,int j) { | |
| return array[i][j]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| public class Test | |
| { | |
| struct Struct() | |
| { | |
| public int A = 0; | |
| } | |
| public int IncrementSlow() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //These codes are licensed under CC0. | |
| using System; | |
| using System.Collections.Generic; | |
| //using RomajiReader; | |
| // var reader = Reader.Default; | |
| // Console.WriteLine(reader.Convert("shinkyoku"));//しゅんきょく | |
| // Console.WriteLine(reader.Convert("kappa"));//かっぱ | |
| // Console.WriteLine(reader.Convert("cinkya"));//しんきゃ | |
| // Console.WriteLine(reader.Convert("rweqqap"));//rうぇっくぁp | |
| // Console.WriteLine(reader.Convert("RWEQQAP"));//RうぇっくぁP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //License | |
| //These codes are licensed under CC0. | |
| using System.IO; | |
| using System.Text; | |
| using UnityEngine; | |
| static class ConsoleRedirect | |
| { | |
| [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] | |
| static void ConsoleInit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Licensed to the .NET Foundation under one or more agreements. | |
| // The .NET Foundation licenses this file to you under the MIT license. | |
| #nullable enable | |
| using System.Buffers; | |
| using System.Diagnostics; | |
| using System.Globalization; | |
| using System.Runtime.InteropServices; | |
| namespace System.Runtime.CompilerServices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace System.Runtime.CompilerServices | |
| { | |
| public ref partial struct DefaultInterpolatedStringHandler | |
| { | |
| public void AppendFormatted(float value)=> AppendFormatted(value, null); | |
| public void AppendFormatted(int value)=> AppendFormatted(value, null); | |
| public void AppendFormatted(double value)=> AppendFormatted(value, null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| SharpLab tools in Run mode: | |
| • value.Inspect() | |
| • Inspect.Heap(object) | |
| • Inspect.Stack(value) | |
| • Inspect.MemoryGraph(value1, value2, …) | |
| */ | |
| using System; | |
| using System.Collections; | |
| using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Runtime.CompilerServices; | |
| PArray<int> pArray=[1,2,3,4]; | |
| pArray[1..3]=[0,0]; | |
NewerOlder