, , , , (VB 2013 .NET 4.0 4.5). , , , . , , / , . (/ , , ). VB #.
VB:
Interface IPrintable
Property Body As DocBody
Class DocBody
Property Text As String
Property FontSize As Single
End Class
End Interface
Class WordDoc
Implements IPrintable
Public Property WordBody As IPrintable.DocBody Implements IPrintable.Body
End Class
#:
interface IPrintable
{
DocBody Body { get; set; }
public class DocBody
{
public string Text { get; set; }
public float FontSize { get; set; }
}
}
class WordDoc : IPrintable
{
public IPrintable.DocBody WordBody { get; set; }
IPrintable.DocBody IPrintable.Body {
get { return WordBody; }
set { WordBody = value; }
}
}