Skip to content

Error with nested classes #3

Description

@aurum-aeolus

In nested class get incomplete reference to nested property:

The example:

public class Gatos
{
	public string name {get; set;}
	public Color colores {get; set;}
	
	public class Color
	{
		public string[] color {get; set;}
	}
}

Get this:

Gatos gatos = new Gatos() { 
name = "",
colores = new Color(),
};

Instead this:

Gatos gatos = new Gatos(){
name="",
colores=new Gatos.Color(){
color=new string[]{}
}
};

Best regards!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions