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; | |
namespace test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
for (int i = 0; i < 10; i++) | |
{ |
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
// Microsoft (R) .NET Framework IL Disassembler. Version 4.5.22220.0 | |
// Metadata version: v4.0.30319 | |
.assembly extern System.Private.CoreLib | |
{ | |
.publickeytoken = (7C EC 85 D7 BE A7 79 8E ) // |.....y. | |
.ver 4:0:0:0 |
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.Reflection; | |
using System.Collections; | |
using System.Runtime.CompilerServices; | |
[assembly: ConsoleApplication21.SingleAttribute<int>()] | |
[assembly: ConsoleApplication21.SingleAttribute<bool>()] | |
[assembly: ConsoleApplication21.MultiAttribute<int>()] | |
[assembly: ConsoleApplication21.MultiAttribute<int>(1)] |
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.Reflection; | |
namespace ConsoleApplication21 | |
{ | |
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] | |
class MyAttribute<T> : Attribute | |
{ | |
public int Value { get; set; } | |
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
#time | |
let inline sum list = | |
match list with | |
| [] -> LanguagePrimitives.GenericZero< 'T > | |
| t -> | |
let mutable acc = LanguagePrimitives.GenericZero< 'T > | |
for x in t do | |
acc <- Checked.(+) acc x | |
acc |