Ejemplo n.º 1
0
 static internal TextSyndicationContent CloneTextContent(TextSyndicationContent content)
 {
     if (content == null)
     {
         return null;
     }
     return (TextSyndicationContent)(content.Clone());
 }
Ejemplo n.º 2
0
 internal static TextSyndicationContent CloneTextContent(TextSyndicationContent content)
 {
     if (content == null)
     {
         return(null);
     }
     return((TextSyndicationContent)(content.Clone()));
 }
Ejemplo n.º 3
0
		public void Clone ()
		{
			TextSyndicationContent t = new TextSyndicationContent ("test");
			t = t.Clone () as TextSyndicationContent;
			Assert.AreEqual ("test", t.Text, "#1");
			Assert.AreEqual ("text", t.Type, "#2");

			t = new TextSyndicationContent ("test", TextSyndicationContentKind.Html);
			t = t.Clone () as TextSyndicationContent;
			Assert.AreEqual ("html", t.Type, "#3");
		}