Type of parameter is not CLS-compliant

  • Thread starter Thread starter Slindee
  • Start date Start date
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)
 
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)
|
|
|
|
 
Back
Top