March 2004
Intermediate to advanced
560 pages
26h 47m
English
using System;
[assembly: CLSCompliant(true)]
namespace Samples
{
public class CLSCompliantSample
{
public static void Main()
{
}
public static uint Method1(uint i)
{
return i;
}
}
}
Microsoft (R) Program Maintenance Utility Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. csc /debug CLSCompliantAttribute.cs Microsoft (R) Visual C# .NET Compiler version 7.00.9466 for Microsoft (R) .NET Framework version 1.0.3705 Copyright (C) Microsoft Corporation 2001. All rights reserved. CLSCompliantAttribute.cs(12,32): error CS3001: Argument type 'uint' is not CLS-compliant CLSCompliantAttribute.cs(12,19): error CS3002: Return type of 'Samples.CLSCompliantSample.Method1(uint)' is not CLS-compliant ...
Read now
Unlock full access