I have a user control and i want to assign the properties of an object to the user control. For example:
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo();
ci.DateTimeFormat.GetAllDateTimePatterns();
I must be able to access the method GetAllDateTimePatterns()
using my usercontrol.
Can anybody please help me with C# 开发者_开发问答coding?
I don't understand the issue - if you have the code you posted above in your user control, you already have access to the GetAllDateTimePatterns()
method.
精彩评论