Home > Code Analysis > Code Issues – Cannot create an instance of interface

Code Issues – Cannot create an instance of interface

January 21st, 2011

This code issue shows an error if there is an attempt to initialize an instance of a interface. Interfaces cannot be instantiated, they contain only the signatures of methods, properties or events. The implementation of these members is done in the class that implements the interface.

CodeRush Code Issues - Cannot create an instance of interface

—–
Products: CodeRush Pro
Versions: 10.2 and up
VS IDEs: any
Updated: Feb/14/2011
ID: C072

Similar Posts: