Skip to main content

Member is not implemented

In This Article

CodeRush Classic shows the Member is not implemented code issue if a member has an empty body.

#Fix

Implement the member.

#Purpose

Member is not implemented directs your attention to unimplemented members because they denote an incomplete code.

#Example

public string Text {get;private set;}
public void AddStrings(params string[] strings)
{

}

Fix:

public string Text {get;private set;}
public void AddStrings(params string[] strings)
{
    if (Text == null)
        Text = string.Empty;
    foreach(string str in strings)
        Text += str + Environment.NewLine;
}