473,561 Members | 3,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamiclly creating a type

I have something like the following in my App config file:

<add Processor="name space.Type, AssemblyName, Version=1.0.0.0 ,
Culture=neutral , PublicKeyToken= null" />
I've done it in the past but for some reason am having a brain fart
today trying to create the type contained in the above.

I've searched google, but havn't found anything of real help. Someone
willing to point me in the right direction?

Thanks
Wayne

Nov 27 '05 #1
1 1114

Hi Wayne,

Activator.Creat eInstance, for more information see
http://msdn.microsoft.com/library/de...tancetopic.asp

Best regards,
Paul Gielens

Visit my blog @ http://weblogs.asp.net/pgielens/
###

"ThisBytes5 " <Th********@gma il.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I have something like the following in my App config file:

<add Processor="name space.Type, AssemblyName, Version=1.0.0.0 ,
Culture=neutral , PublicKeyToken= null" />
I've done it in the past but for some reason am having a brain fart
today trying to create the type contained in the above.

I've searched google, but havn't found anything of real help. Someone
willing to point me in the right direction?

Thanks
Wayne


Nov 27 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
561
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum number of window handle, because if I reduce to about 2 instances of each window, it can run. But not 20 instances of each window. Does anyone know...
3
1460
by: Nikki | last post by:
Hi, I have a question when I am programming. I define a class (Component{};) and I want to use "new" to dynamiclly alloct a class array, such as Component C. I know how to do with one element: Component *C = new Component(); But how to do with an array? I use: Component **C = new *Component(); But it's not right. If you can give me any...
8
5958
by: Nanda | last post by:
hi, I am trying to generate parameters for the updatecommand at runtime. this.oleDbDeleteCommand1.CommandText=cmdtext; this.oleDbDeleteCommand1.Connection =this.oleDbConnection1; this.oleDbDeleteCommand1.Parameters.Add(new System.Data.OleDb.OleDbParameter("Original_ApplicantName", dataset.Tables.Columns.DataType, 50,
12
3141
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without restarting the application. What I did was to create an AppDomain that loaded the plugins and everything was great, until I tried to pass...
1
2238
by: Lenn | last post by:
Hello, Here's a little background. I have a function that calls a method of another assembly (COM Interop) dynamically through Reflection. It gets method name and array of values and calls .InvokeMember to get results. Everything worked fine until parameters types of Boolean and DateTime appeared, it caused Type mismatch exception. So I...
3
4317
by: lupina | last post by:
Hi, I need to add controls to the TemplateField of GridView dynamiclly at runtime (beacuse my GridView handle faw different DataSets, so I cannot do it in aspx file). The BoundFields I create like below: //GridView gv; BoundField gg_typ = new BoundField(); gg_id.DataField = "wm_id"; gg_id.HeaderText = "wm_id";
6
1777
by: wcc | last post by:
Hello, How do I create a class using a variable as the class name? For example, in the code below, I'd like replace the line class TestClass(object): with something like class eval(className) (object):
5
3529
eragon
by: eragon | last post by:
I wrote this function to create a new file when the user posts in my forums, and its not creating a new file, can you help me? this script is not copyrighted as the last one. function createNewFile($name,$mail,$subject,$comments,$count,$date,$other="",$up="0") { global $settings; $header=implode('',file('header.txt'));...
3
5551
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, Using ASP .Net, I'm trying to create a ImageButton when the user clicks on a button, this is my code: protected void logout_btn_Click(object sender, ImageClickEventArgs e) {
0
7562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7855
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8074
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7608
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7926
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5181
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3613
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1172
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
885
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.