• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Is it normal to look at this, smile and feel happy inside ?

Status
Not open for further replies.

Panajev2001a

GAF's Pleasant Genius
Code:
public int Age
{
    get
    {
        return age;
    }
    set
    {
        age = value;
    }
}

The keyword value is implicitly available to the property. If you write

Fred.Age = 17;

the compiler will pass in the value 17 as value.
You can create a read-only property for YearsServed by implementing the Get and not the Set accessor.

public int YearsServed
{
    get
    {
        return yearsServed;
    }
}

http://msdn.microsoft.com/msdnmag/issues/01/07/ctocsharp/default.aspx



My second Linux kit for the PlayStation 2 (PAL version) has not arrived yet and I am starting to look at C# in themean-time... and it is pretty :).

I think I will get the C# component for Visual Studio.NET 2003 soon.
 

demi

Member
That is the code of fucking pedophiles. You really are one sick fuck!

"Fred's Age is 17. Let's see how many years I will serve..."

PEDOPHILE
 
castrofalls.gif
 

RevenantKioku

PEINS PEINS PEINS PEINS PEINS PEINS PEINS PEINS PEINS PEINS PEINS PEINS oh god i am drowning in them
I was wondering why lines 13, 17, and 18 weren't commented out, but I'm just a silly business major.
 
Status
Not open for further replies.
Top Bottom