Click here to Skip to main content
15,884,353 members
Articles / Programming Languages / C#

Perform Reflection and XML Traversing Using the dynamic Keyword in C#

Rate me:
Please Sign up or sign in to vote.
4.83/5 (13 votes)
5 May 2011CPOL10 min read 34.5K   375   39  
Demonstrates using the dynamic keyword in Reflection and XML traversing.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SampleLibForReflection
{
    /// <summary>
    /// Sample email class to get set email description
    /// </summary>
    public class Email
    {
        /// <summary>
        /// email description
        /// </summary>
        string emailDescription = default(string);

        /// <summary>
        /// Initializes instance with setting up an email description
        /// </summary>
        /// <param name="emailDescription"></param>
        public Email(string emailDescription)
        {
            this.emailDescription = emailDescription;
        }

        /// <summary>
        /// Gets an eamil description set by ctor of this class
        /// </summary>
        /// <returns></returns>
        public string GetEmail()
        {
            return this.emailDescription;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Software Industry
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions