السلام عليكم
كيف اصنع accesseurs GET SET بالدلفي
في c#
public user sUserInfo
{
get { return (user)Session["UserInfo"]; }
set { Session["UserInfo"] = value; }
}و في الدفي حليا اقوم بكتابها يدويا
Function Get_sUserInfo : Tuser; begin result:= user(HttpContext.Current.Session['UserInfo']); end; procedure Set_sUserInfo(_user:Tuser); begin HttpContext.Current.Session['UserInfo'] :=_user; end;
هل rad studio delphi 2007 يفعل مثل vs كما في الصورة
شكرا