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
function main() { | |
return credit(); | |
} | |
function credit() { | |
var mainCyl = cylinder({ r: 10, h: 3 }); | |
var upperCyl = cylinder({ r: 8.5, h: 0.5 }).translate([0, 0, 3]); | |
var lowerCyl = cylinder({ r: 9, h: 1 }); | |
var outerDonut = difference( | |
cylinder({ r: 7.5, h: 0.5 }).translate([0, 0, 3]), |
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
public object Convert(object value, Type targetType, object parameter, CultureInfo culture, bool convertBack = false) | |
{ | |
if (Converters.Count == 0 && value != null && value.GetType() == targetType) | |
{ | |
return value; | |
} | |
foreach (IValueConverter converter in Converters) | |
{ | |
object temp = converter.Convert(value, targetType, parameter, culture, convertBack); | |
if (temp != null) |
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
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | |
{ | |
if (Converters.Count == 0 && value != null && value.GetType() == targetType) | |
{ | |
return value; | |
} | |
foreach (IValueConverter converter in Converters) | |
{ | |
object temp = converter.Convert(value, targetType, parameter, culture); | |
if (temp != null) |
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
public static bool IsNumber(string inValue) | |
{ | |
bool result = false; | |
if (inValue == null) return result; | |
try | |
{ | |
float myDT = float.Parse(inValue); | |
result = true; | |
} |
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
IL_0001: newobj UserQuery+Class..ctor | |
IL_0006: stloc.0 | |
IL_0007: ldloc.0 | |
IL_0008: ldc.i4.3 | |
IL_0009: newobj UserQuery+MyObject..ctor | |
IL_000E: stfld UserQuery+Class.asdf | |
IL_0013: ldloc.0 | |
IL_0014: call LINQPad.Extensions.Dump | |
Class..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
public enum MyEnum { alpha, beta, gamma } | |
public void MyOuterFunction(bool a, bool b, bool c) | |
{ | |
MyEnum asdf = MyEnum.alpha; | |
if(a) asdf &= ~MyEnum.alpha; | |
if(b) asdf |= MyEnum.beta; |
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
//in order to do this | |
[ProtoContract] | |
public class Base | |
{ | |
[ProtoMember(1)] | |
public int Value { get;set;} | |
} | |
[ProtoContract] |