description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Compiler Error CS0753 |
Compiler Error CS0753 |
07/20/2015 |
|
|
287dd9da-da74-4290-9fa1-21ef1a8150fe |
Only methods, classes, structs, or interfaces may be partial.
The partial modifier can only be used with classes, structs, interfaces, and methods.
- Remove the
partial
modifier from the variable or language construct.
The following code generates CS0753:
// cs0753.cs
using System;
public partial class C
{
partial int num; // CS0753
public static int Main()
{
return 1;
}
}