Telerik® JustCode™ by Progress

The Create Interface quick fix is available once Telerik® JustCode™ has detected use of an unknown type in your code. Telerik® JustCode™ suggests you to generate a class, structure, interface or enumeration. By executing this fix, Telerik® JustCode™ automatically generates a new interface in the current file with the same name as the unknown type.


Language Support

Supported: C#, VB.NET, Razor

Not relevant: JavaScript, ASP.NET, XAML, HTML

To create an interface

  1. Position the caret over an unknown type.
  2. Press Alt+Enter. From the pop-up menu, select Create Interface

    Generate Interface Execute
  3. The result is:

    Generate Interface Result

If the type is a Razor model, a new interface model will be created inside the Models folder.

Create Missing Model As Interface Selected

The result is:

Create Missing Model As Interface Result

See Also