I have class which have properties.
For Example
class Caption
{
public string AR{get;set;}
public string EN{get;set;}
pbulic string Tu{get;set;}
}
i want for example Assign Caption object to vairable directly without need to call property
I want use This
Caption caption=new Caption();
string myVar = caption; // this will return EN property directly
Rather Than
string myVar = caption.En;
I don't know but i think there's overload string operator or something for targeted class itself.
Why i need this ? just for localization's purposes and more readability in localization object.
rather every time creating switch(language) then assign caption.EN, Caption.AR. it will be ugly.