Try looking at it like this:
public class RECORD
{
public Field FD { get; set; }
public RECORD()
{
FD = new Field();
FD.identifier = "";
}
}
public class Field
{
public string identifier { get; set; }
}
public class main
{
private string a = "some value";
public main()
{
RECORD r = new RECORD();
r.FD.identifier = a;
}
}
[edit]Removed local variable declaration masking RECORD property: Thanks Karthik! - OriginalGriff[/edit]