Overview
This rule identifies incomplete member declarations where a type name can't be resolved in the current context. It's an internal IDE diagnostic that enables code fixes such as Add using, Fully Qualify, and Generate Type.
A common scenario is when you start typing a member declaration but the type referenced hasn't been imported. For example, if you type public DateTime without a variable name and without a using System; directive, this rule fires on DateTime to enable the Add using code fix.
Example
// Code that triggers IDE1007.
// 'DateTime' is unresolved because 'using System;' is missing.
class MyClass
{
public DateTime // incomplete member — 'DateTime' is unresolved
}Adding the missing using directive or fully qualifying the type resolves the issue:
using System;
class MyClass
{
public DateTime MyDate { get; set; }
}