Click to See Complete Forum and Search --> : How this codes exist?


POla
March 26th, 2008, 02:05 AM
public bool ZeroTrap

{

get { return (pcmToMuLawMap[33000] != 0); }

set

{

byte val = (byte)(value ? 2 : 0);

for (int i = 32768; i <= 33924; i++)

pcmToMuLawMap[i] = val;

}

}

The code above is in c#. The ZeroTrap is not a function so what is it? To utilize this code in c++ how should it be? Concern on the get, set and value keywords.

darwen
March 26th, 2008, 09:01 AM
It's a property.

See here (http://weblogs.asp.net/cnagel/archive/2004/12/17/323549.aspx) about how to implement them in C++/CLI.

Darwen.

POla
March 27th, 2008, 01:24 AM
Ohh... I didn't notice and ask a stupid question. Anyways, thank.