Type of parameter is not CLS-compliant

S

Slindee

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)
 
J

Jay B. Harlow [MVP - Outlook]

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/d...rlrfsystemclscompliantattributeclasstopic.asp

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


|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)
|
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top