Skip to content

Error with nested classes #3

@aurum-aeolus

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!

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