468,514 Members | 970 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

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 12250
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Martin Montgomery | last post: by
2 posts views Thread by nospamnntp | last post: by
1 post views Thread by Jinsong Liu | last post: by
1 post views Thread by interX | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.