G
Guest
The msdn and all other books saying that the Unsigned integer(ex: UInt32) type is not CLSCompliant. But C# and VB.NET both are taking UInt32 as CLSCompliant. The following sample code compiles with out any errors by using either C# or VB.NET:
using System;
[assembly: CLSCompliant(true)]
namespace sample{
class sampCls{
static void Main(){
Console.Write(XYZ());
}
public UInt32 XYZ(){
return 0;
}
}
}
using System;
[assembly: CLSCompliant(true)]
namespace sample{
class sampCls{
static void Main(){
Console.Write(XYZ());
}
public UInt32 XYZ(){
return 0;
}
}
}