public TestContent() { Sub = new TestSub(); TestText = new BbText(); Strings = new List<string>(); Img = new Image(); Array = new string[0]; }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (reader.Value == null) { return((BbText)null); } BbText bbt = Activator.CreateInstance(objectType, reader.Value as string) as BbText; return(bbt); }
/// <summary> /// Create a new link /// </summary> public Link() { Content = ""; }
public SimpleSwitchable() { Text = new MinHtml(); Image = new Image(); Heading = new BbText(); }