Skip to content

Instantly share code, notes, and snippets.

View VladimirReshetnikov's full-sized avatar

Vladimir Reshetnikov VladimirReshetnikov

View GitHub Profile
4.29732800472051724486189371032199137461753688409747785084204826790321131892029012083620764362124460515514018085786916845571079111471092735567555353802061795817404274168309066386036025131047482446486415078217030304371696094408605061026340120343742860508751056106694297328658405623892580861192958023192563747891314118869061902116308086620969206595568290205733304319969867558873958916467711707432438606871818185554315099983100151208152947909196253183822435548722536559763514977526440221217815041381260289133900070192867714817396486812538011806427695452117265235828936360399366365289174821845342168029965094195618789120448274128500047426503452290105556580888117926705462996245937310554119971563074651788459483232315055045915814117273686741871009038950032653229233921167865701356453019336814663041086871301628102504496909949397909060877162943845943897851649543146987737266088576054877555529681916373632069682219014642381423793374729149420490329375105906168792828708861074559067225513226892708072701589349055609122008835758694378
class A<T>
{
class B : A<int>
{
}
class C : B
{
C GetThis()
{
struct A
{
static void Main()
{
A x = x;
}
}
class C
{
public static void Foo(int? x)
{
if(x > int.MaxValue) { }
}
}
class C
{
public static void Foo(double? x)
{
if(x <= double.NaN) { }
}
}
class C
{
public static void Foo(int x)
{
const int max = int.MaxValue;
if (x <= max) { }
}
}
using System;
class Program
{
static void Main()
{
// Print all chars from char.MinValue to char.MaxValue, inclusive
for (char ch = char.MinValue; ch <= char.MaxValue; ch++)
{
Console.WriteLine(ch);
using System;
class C
{
void Foo<T>(T x)
{
if (x is Exception)
{
var y = (x as Exception).GetBaseException();
}
2.10029012483843065541358656514017065178479851127691422449912612385411241356413624990801635932583925743550448404630387012696119750835122512819338589515023102487679195000616137238528520550848109877483907055803719245497655155182891941301264241339836508487664205325101034782705274119314377432103676792355947789773486621691539062821973910731064353903189982730041107016045601204988980067509055221166587406242809015611819075841923021005385625949667703030277664034758324313580790244173922638591979318554212028691614954137409477253926555192568513014877262179038708099757825408439206260627383340281547262918157899397427234196449295885898647889331784012799018236651549063527557444074109380665484145031691156089316565366153511468694138088694310137459872157947042327211599880302202639797025928582169109153067879286041853181577765327120287484236806361500270402902059297124252886859209937782237914791309358892393125629968653070676118625927088654916625791921974783340862117128673355811541572152010517810270824442421
-0.1990284251538415592581715805850820414184318417199958312903800538110841548091689730554577064946522134557011117542195650211566401318548212631513721300336941759229744890439854964575054794126834117010562117711139918602030253101239289333296681681892337453124787809693689763210978806971754960648293963572282600667538250478320165286086826710624296134741513052967283748731851359820950644152431669402828982568556519947297768263195194724150864901735446988285610654221970730320103985614175229845804418771772460937674174308201700512312816077196375567836577387837532782854798904227899250874445211274931731554447756779676933590438722256004942451775205071639355161262083916936211683366510177641081759533759219399625159760715645483186013150691717365207523009944324642355182267133161448775911147329542528641058852063491166484159369578338498105528070730696899479968182661190008839713644873561029620008046724173499900342690459628184105583317384422134090009252340320444758498118558382894350435532894302251987922902230161