Good point. There's ALWAYS another way to skin a cat ;D
"RCS" <(E-Mail Removed)> wrote in message
news

j5Od.27187$(E-Mail Removed)...
> Or.. make it an overloaded method (assuming Processed() is a function that
> processes the raw value into a finished value):
>
> public string Name(bool ReturnRaw)
> {
> if ( ReturnRaw )
> return _Name;
> else
> return Processed(_Name);
> }
> public string Name()
> {
> return Name(false);
> }
>
>
> "Sean Hederman" <(E-Mail Removed)> wrote in message
> news:cuambh$dgs$(E-Mail Removed)...
>> Either:
>> a) Wrap the returned item into another class which has a Raw property and
>> a Value property.
>> or
>> b) Create a separate getter: myObject.NameRaw
>>
>> "Jimbo" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I am sort of new to C#. Currently have a private property called
>>> "_name" in a class. I have written a public getter and setter routine
>>> for it called "Name".
>>>
>>> Currently, the getter for the property does some data manipulation
>>> before it returns the value. I wanted to add another getter to this
>>> property that would returnt the "Raw" value (what is stored in _name).
>>>
>>>
>>> Example:
>>> myObject.Name.Raw --returns the raw data
>>>
>>> Any ideas would be very helpful. Thanks in advance.
>>>
>>
>>
>
>