유니티 공식 사이트 데모 프로젝트

|

http://unity3d.com/gallery/demos/demo-projects

Trackback 0 And Comment 0

c# delegate

|


// Declare delegate -- defines required signature:
delegate double MathAction(double num);

class DelegateTest
{
    // Regular method that matches signature:
    static double Double(double input)
    {
        return input * 2;
    }

    static void Main()
    {
        // Instantiate delegate with named method:
        MathAction ma = Double;

        // Invoke delegate ma:
        double multByTwo = ma(4.5);
        Console.WriteLine("multByTwo: {0}", multByTwo);

        // Instantiate delegate with anonymous method:
        MathAction ma2 = delegate(double input)
        {
            return input * input;
        };

        double square = ma2(5);
        Console.WriteLine("square: {0}", square);

        // Instantiate delegate with lambda expression
        MathAction ma3 = s => s * s * s;
        double cube = ma3(4.375);

        Console.WriteLine("cube: {0}", cube);
    }
    // Output:
    // multByTwo: 9
    // square: 25
    // cube: 83.740234375
}


Trackback 0 And Comment 0

c# 책

|

뇌를 자극하는 c# 


inside C# - 무료로 공개 

http://ohyecloudy.com/pnotes/archives/677

C# in Depth
http://ohyecloudy.com/pnotes/archives/689


뇌를 자극하는 C# 4.0 프로그래밍, 
이펙티브 C#, 
Head First C#,
C# and the .NET 4 Platform

'보고싶은책' 카테고리의 다른 글

c# 책  (0) 2014.01.06
Unity 3.x Game Development Essentials 한국어판 C#과 자바스크립트로 하는 유니티 3.x 게임 개발  (0) 2014.01.04
c# 책  (0) 2013.12.30
유니티 책  (0) 2013.12.11
유니티 서적  (0) 2013.12.11
유니티 중급 이상 책  (0) 2013.12.11
Trackback 0 And Comment 0