public virtual void ReadFrom(XElement xE)
 {
     FeedId           = null;
     MatchingFunction = null;
     PlaceholderTypes = null;
     Status           = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "feedId")
         {
             FeedId = long.Parse(xItem.Value);
         }
         else if (localName == "matchingFunction")
         {
             MatchingFunction = new Function();
             MatchingFunction.ReadFrom(xItem);
         }
         else if (localName == "placeholderTypes")
         {
             if (PlaceholderTypes == null)
             {
                 PlaceholderTypes = new List <int>();
             }
             PlaceholderTypes.Add(int.Parse(xItem.Value));
         }
         else if (localName == "status")
         {
             Status = CustomerFeedStatusExtensions.Parse(xItem.Value);
         }
     }
 }
 public PlaceholderContainer(
     string placeholder,
     string replaceString,
     PlaceholderTypes type)
 {
     this.Placeholder   = placeholder;
     this.ReplaceString = replaceString;
     this.Type          = type;
 }