public void Visit(IDeckInternal <TElement> deck) { Deck = deck; if (deck.GetType() != typeof(Deck <TElement>)) { Content.Add(JsonProperties.TypeName, deck.GetType().FullName); } if (deck.Options.GetType() != typeof(Configuration.DeckOptions)) { Content.Add(JsonProperties.OptionsType, deck.Options.GetType().FullName); } Content.Add(JsonProperties.ElementType, deck.ElementType.FullName); Content.Add(JsonProperties.TotalCount, deck.Count); Content.Add(JsonProperties.Options, JToken.FromObject(deck.Options, Serializer)); }
public void Visit(IDeckInternal <TElement> deck) { Deck = deck; }