Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identifiers starting with an integer

I have a .net dll and when I add it in the references, it goes without any issue. The problem is that its namespaces start with an integer e.g. 3gppsa5.org.AlarmIRPSystem and when I try to use or import it, the intelliSense doesn't allow and says identifier expected.

I don't have the source of this library so I can't change it. I know it is compiled and the Object Browser is correctly showing all of its classes and functions. However, I am unable to use it in my code. Is there any way to use it in VB .NET

I've tried using Reflection, but found many problems. I want to declare the variable something like;

Dim MyIRP As 3gppsa5.org.AlarmIRPSystem.AlarmIRP

Is there any way to achieve this without using reflection and having complete intellisense support.

Thanks.

like image 713
Saad Khakwani Avatar asked Feb 21 '26 11:02

Saad Khakwani


1 Answers

Not really. This identifier is not CLS compliant. Non-CLS compliant identifiers are not guaranteed to be usable in other .NET languages.

like image 197
mmx Avatar answered Feb 24 '26 14:02

mmx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!