Skip to content

Instantly share code, notes, and snippets.

@takeshik
Created September 2, 2012 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takeshik/3602327 to your computer and use it in GitHub Desktop.
Save takeshik/3602327 to your computer and use it in GitHub Desktop.
<expression z:Id="i1" i:type="Block" xmlns="http://yacq.net/schema" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
<Variables>
<Parameter z:Id="i2">
<Type z:Id="i3">
<Assembly z:Id="i4" />
<Name>System.Int32[]</Name>
</Type>
<Name>a</Name>
</Parameter>
</Variables>
<Nodes>
<Node z:Id="i5" i:type="Assign">
<Left z:Ref="i2" />
<Right z:Id="i6" i:type="Call">
<Method z:Id="i7">
<Type z:Id="i8">
<Assembly z:Id="i9">
<Name>System.Core</Name>
</Assembly>
<Name>System.Linq.Enumerable</Name>
</Type>
<Name>ToArray</Name>
<Signature>Int32[] ToArray[Int32](System.Collections.Generic.IEnumerable`1[System.Int32])</Signature>
<TypeArgs>
<Type z:Id="i10">
<Assembly z:Ref="i4" />
<Name>System.Int32</Name>
</Type>
</TypeArgs>
</Method>
<Arguments>
<Node z:Id="i11" i:type="Call">
<Method z:Id="i12">
<Type z:Ref="i8" />
<Name>Select</Name>
<Signature>System.Collections.Generic.IEnumerable`1[System.Int32] Select[Int32,Int32](System.Collections.Generic.IEnumerable`1[System.Int32], System.Func`2[System.Int32,System.Int32])</Signature>
<TypeArgs>
<Type z:Ref="i10" />
<Type z:Ref="i10" />
</TypeArgs>
</Method>
<Arguments>
<Node z:Id="i13" i:type="Call">
<Method z:Id="i14">
<Type z:Ref="i8" />
<Name>Where</Name>
<Signature>System.Collections.Generic.IEnumerable`1[System.Int32] Where[Int32](System.Collections.Generic.IEnumerable`1[System.Int32], System.Func`2[System.Int32,System.Boolean])</Signature>
<TypeArgs>
<Type z:Ref="i10" />
</TypeArgs>
</Method>
<Arguments>
<Node z:Id="i15" i:type="Call">
<Method z:Id="i16">
<Type z:Ref="i8" />
<Name>Range</Name>
<Signature>System.Collections.Generic.IEnumerable`1[System.Int32] Range(Int32, Int32)</Signature>
</Method>
<Arguments>
<Node z:Id="i17" i:type="Call">
<Method z:Id="i18">
<Type z:Ref="i10" />
<Name>Parse</Name>
<Signature>Int32 Parse(System.String)</Signature>
</Method>
<Arguments>
<Node z:Id="i19" i:type="Call">
<Method z:Id="i20">
<Type z:Id="i21">
<Assembly z:Ref="i4" />
<Name>System.Console</Name>
</Type>
<Name>ReadLine</Name>
<Signature>System.String ReadLine()</Signature>
</Method>
</Node>
</Arguments>
</Node>
<Node z:Id="i22" i:type="Call">
<Method z:Ref="i18" />
<Arguments>
<Node z:Id="i23" i:type="Call">
<Method z:Ref="i20" />
</Node>
</Arguments>
</Node>
</Arguments>
</Node>
<Node z:Id="i24" i:type="Lambda">
<Type z:Id="i25">
<Assembly z:Ref="i4" />
<Name>System.Func`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</Name>
</Type>
<Parameters>
<Parameter z:Id="i26">
<Type z:Ref="i10" />
<Name>$0</Name>
</Parameter>
</Parameters>
<Body z:Id="i27" i:type="Equal">
<Left z:Id="i28" i:type="Modulo">
<Left z:Ref="i26" />
<Right z:Id="i29" i:type="Constant">
<Type z:Ref="i10" />
<Value i:type="a:int" xmlns:a="http://www.w3.org/2001/XMLSchema">3</Value>
</Right>
</Left>
<Right z:Id="i30" i:type="Constant">
<Type z:Ref="i10" />
<Value i:type="a:int" xmlns:a="http://www.w3.org/2001/XMLSchema">0</Value>
</Right>
</Body>
</Node>
</Arguments>
</Node>
<Node z:Id="i31" i:type="Lambda">
<Type z:Id="i32">
<Assembly z:Ref="i4" />
<Name>System.Func`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</Name>
</Type>
<Parameters>
<Parameter z:Id="i33">
<Type z:Ref="i10" />
<Name>$0</Name>
</Parameter>
</Parameters>
<Body z:Id="i34" i:type="Multiply">
<Left z:Ref="i33" />
<Right z:Id="i35" i:type="Constant">
<Type z:Ref="i10" />
<Value i:type="a:int" xmlns:a="http://www.w3.org/2001/XMLSchema">2</Value>
</Right>
</Body>
</Node>
</Arguments>
</Node>
</Arguments>
</Right>
</Node>
<Node z:Id="i36" i:type="Call">
<Method z:Id="i37">
<Type z:Ref="i21" />
<Name>WriteLine</Name>
<Signature>Void WriteLine(Int32)</Signature>
</Method>
<Arguments>
<Node z:Id="i38" i:type="MemberAccess">
<Expression z:Ref="i2" />
<Member z:Id="i39" i:type="Property">
<Type z:Ref="i3" />
<Name>Length</Name>
</Member>
</Node>
</Arguments>
</Node>
<Node z:Id="i40" i:type="Call">
<Method z:Ref="i37" />
<Arguments>
<Node z:Id="i41" i:type="Call">
<Method z:Id="i42">
<Type z:Ref="i8" />
<Name>Sum</Name>
<Signature>Int32 Sum(System.Collections.Generic.IEnumerable`1[System.Int32])</Signature>
</Method>
<Arguments>
<Node z:Ref="i2" />
</Arguments>
</Node>
</Arguments>
</Node>
</Nodes>
</expression>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment