Yes, I can use the switching for the string alias, and I can also use a hard coded hash table. But the .NET has this kind of table built-in, and I wish to use it (I don't like inventing the wheel all over, it's there already). Do you know how can I use this built-in table? ------ Thanks Sharon
S
sharongav
@sharongav
Posts
-
Converting form C# alias type to .NET framework type -
Converting form C# alias type to .NET framework typeThere is an built-in types table for .NET framework type to C# type which are aliases of predefined types in the System namespace (http://msdn2.microsoft.com/en-US/library/ya5y69ds.aspx). How can use access and use this table (by C# code) to convert the alias to the .NET framework type. For example: if I have: string aliasType = "int"; string frameworkType = ??? ------- Thanks Sharon
-
How to put a clickable button on a PropertyGrid ?Hi Gurus, I'm using the PropertyGrid control, and I want it to show a button. But when I set the PropertyGrid.SelectedObject with a object that has a Button property, the PropertyGrid shows the buttons properties, and I want the button to be shown as drawn and clickable button without any access to its properties. How can I do that? ----- Thanks Sharon