コード例 #1
0
        /// <summary>
        /// transforms json into an action response
        /// </summary>
        /// <param name="responseJson">json with Twitter response</param>
        /// <param name="theAction">Type of action to process</param>
        /// <returns>Action response</returns>
        public virtual T ProcessActionResult(string responseJson, Enum theAction)
        {
            var trend = new Trend();

            return(trend.ItemCast(default(T)));
        }
コード例 #2
0
        public void Trend_Can_Serialize()
        {
            var trend = new Trend();
            var stringBuilder = new StringBuilder();

            var writer = XmlWriter.Create(stringBuilder);
            var xmlSerializer = new XmlSerializer(typeof(Trend));
            xmlSerializer.Serialize(writer, trend);
        }