Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 945 Bytes

cs0753.md

File metadata and controls

41 lines (31 loc) · 945 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Compiler Error CS0753
Compiler Error CS0753
07/20/2015
CS0753
CS0753
287dd9da-da74-4290-9fa1-21ef1a8150fe

Compiler Error CS0753

Only methods, classes, structs, or interfaces may be partial.

The partial modifier can only be used with classes, structs, interfaces, and methods.

To correct this error

  1. Remove the partial modifier from the variable or language construct.

Example

The following code generates CS0753:

// cs0753.cs  
using System;  
  
    public partial class C  
    {  
        partial int num; // CS0753  
        public static int Main()  
        {  
            return 1;  
        }  
    }  

See also