LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.Net Constructor Node and Invoke Node

Solved!
Go to solution

Hi Everyone! 

 

First of all I'm sorry for almost hijacking someone else post, so I've started a new thread.

 

My question is the follwing. When do I have to use .Net Constructor node and when does not necessarry?

May I suppose that I have to use .Net Conts. Node when would use it normally in C# for example. And when creating a new .Net Object is not necessarry for example (MessageBox.Show()) - static call - the instantiation is not requied?

 

Summarize, if a C# code contains "new" I have to use .Net Constructor node. 

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 1 of 3
(2,815 Views)
Solution
Accepted by topic author D60

You seem to have answered your own question. Yes, you have to use the constructor where you'd normally use "new". Static methods (and static properties) do not use constructors since these are "bound" to the class, and not the instance (i.e., object).

Message 2 of 3
(2,807 Views)

Thank you!

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 3 of 3
(2,797 Views)