المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : RectanlgeF.Parse(string s) extension method?



C# Programming
06-01-2011, 01:50 AM
How to extend RectangleF class to have public static function RectangleF Parse(string s); in the similar way as with extension methods when there is no instance variable yet available?

class RectangleF{ public static RectangleF Parse(string s){...} }<div class="signature">