Hi

let's assume i have the following function

void Person getPerson(int ID)
{
Person p= ....
return p;
}

Is it possible to get the Person as an readonly (in C++ const) object from this function without cloning the Person-object? In C++ i would return a const object and therefore only can read public members or call other const-methods of this object. How could i do this with C# ??

Thanks for reading!