473,320 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Type of parameter is not CLS-compliant

I am getting a warning message:
Type of parameter 'nodParent' is not CLS-compliant
on the following statement. Anything I can do to satisfy the warning?

Public Sub LoadDirectoryNodes(ByVal directoryName As String, _
ByVal nodParent As
Crownwood.DotNetMagic.Controls.Node)

*** Sent via Developersdex http://www.developersdex.com ***
Jan 3 '06 #1
1 12874
Slindee,
The "proper" way is not to expose non CLS-compliant publicly. Either ensure
that Crownwood.DotNetMagic is CLS compliant, or ensure that the type/method
is not public (use Friend for example).
Alternatively you can mark the class, method, or even assembly as not
CLS-Compliant using the CLSCompliant attribute.

<CLSCompliant(False)> _
| Public Sub LoadDirectoryNodes(ByVal directoryName As String, _
| ByVal nodParent As
| Crownwood.DotNetMagic.Controls.Node)

http://msdn.microsoft.com/library/de...classtopic.asp

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Slindee" <an*******@developerdex.com> wrote in message
news:OM*************@TK2MSFTNGP15.phx.gbl...
|I am getting a warning message:
| Type of parameter 'nodParent' is not CLS-compliant
| on the following statement. Anything I can do to satisfy the warning?
|
| Public Sub LoadDirectoryNodes(ByVal directoryName As String, _
| ByVal nodParent As
| Crownwood.DotNetMagic.Controls.Node)
|
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
Jan 3 '06 #2

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

Similar topics

4
by: wkaras | last post by:
I would like to propose the following changes to the C++ Standard, the goal of which are to provide an improved ability to specify the constraints on type parameters to templates. Let me say from...
3
by: Martin Montgomery | last post by:
I am passing a System.Type parameter into a method. I would like to create an object of that type from the System.Type. for example public CreateAnObject( System.Type objectType) {...
2
by: nospamnntp | last post by:
What is the point of the Type Parameter in RegisterStartupScript? What other options do you have except string??? TIA!
1
by: Jinsong Liu | last post by:
Hello Group: I am playing with .NET 2.0 Generic. I have a CarsList<T> Generic class, Is it possible that I can control what T could be? I want to ensure the T can only be classes derived from a...
7
by: john | last post by:
Hi to All I would like to do something similar: class Class1<T1> { } class Class2<T2, T1where T2: Class1<T1>, new() {
1
by: Néstor Sánchez A. | last post by:
Hi, is there a way, maybe using reflection, to use a generic class passing the type parameter dynamicly (not kwnowing the exact type at compile time)? I tried the next example, but doesn't work: ...
1
by: interX | last post by:
Hi I'm new in VC++ and have a question to generics. I have a generic class, which contains an array of the generic type. This array I can pin and then I would like to get an unmanaged pointer to...
4
by: Andrus | last post by:
I tried to use type parameter to call static method but got compile error 'T' is a 'type parameter', which is not valid in the given context. Why this is not allowed ? Should I really use a lot...
0
debasisdas
by: debasisdas | last post by:
This thread contains some of the sample code showing the method of executing Oracle stored procedures and functions from VB . Hope the user finds them useful. Oracle Procedure with only IN...
9
by: tadmill | last post by:
Is it possible to pass a generic parameter of the same class to to its constructor, where the "T" type passed in the constructor is different than the "T" type of the instanced class? ie, ...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.