This file contains 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
// See https://aka.ms/new-console-template for more information | |
using System.Collections; | |
using System.Runtime; | |
internal class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var task = StartWork(); |
This file contains 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.Runtime.InteropServices; | |
namespace ConsoleApp77 | |
{ | |
class User | |
{ | |
public string Name { get; set; } | |
public string Surname { get; set; } | |
public string Password { get; set; } |
This file contains 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
open System | |
let mutable debug = true | |
type T = T with | |
static member inline ($) (T, arg: unit) = () | |
static member inline ($) (T, arg: int) = 0 // mandatory second terminal case; is unused in runtime but is required for the code to compile | |
static member inline ($) (T, func: ^a -> ^b): ^a -> ^b = | |
fun (_: 'a) -> T $ Unchecked.defaultof<'b> |
This file contains 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.Linq; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
namespace ConsoleApp4 | |
{ | |
public class Program | |
{ | |
public static void Callee(__arglist) |
This file contains 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; | |
namespace ConsoleApp5 | |
{ | |
class Base | |
{ | |
private int _baseField = PrintAndReturnLength("Base class field init"); | |
protected Base() | |
{ | |
Console.WriteLine("Base ctor"); |
This file contains 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.Linq; | |
using System.Reflection; | |
class Program | |
{ | |
class MyClass | |
{ | |
} |
This file contains 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.Reflection; | |
public interface ITest | |
{ | |
void TestFun(int arg); | |
} | |
public class TestClass : ITest | |
{ |
This file contains 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
open System | |
type Del = delegate of int -> int | |
let convert1 (d: Func<int, int>): Del = (# "" d : Del #) | |
let convert2 (d: Func<int, int>): Del = Del(fun x -> d.Invoke x) | |
[<EntryPoint>] | |
let main argv = | |
let x = Func<int, int>(fun x -> x) |
This file contains 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
******************************************************************************* | |
* WarCraft III Replay action format description * | |
* * | |
* document version: 1.01 * | |
* document date : 2006-03-25 * | |
* document authors: blue, nagger * | |
* * | |
* For more informtion about w3g file format, please visit: * | |
* http://w3g.deepnode.de * | |
* * |
This file contains 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.Runtime.InteropServices; | |
namespace ConsoleApplication2 | |
{ | |
[StructLayout(LayoutKind.Explicit)] | |
internal struct Barbeque | |
{ | |
[FieldOffset(0)] public int Barbe; | |
[FieldOffset(0)] public bool Que; |
NewerOlder