Exemple #1
0
 public TestContent()
 {
     Sub = new TestSub();
     TestText = new BbText();
     Strings = new List<string>();
     Img = new Image();
     Array = new string[0];
 }
Exemple #2
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);
        }
Exemple #3
0
 /// <summary>
 /// Create a new link
 /// </summary>
 public Link()
 {
     Content = "";
 }
Exemple #4
0
 public SimpleSwitchable()
 {
     Text = new MinHtml();
     Image = new Image();
     Heading = new BbText();
 }
Exemple #5
0
 public SimpleSwitchable()
 {
     Text    = new MinHtml();
     Image   = new Image();
     Heading = new BbText();
 }