Click here to Skip to main content
15,886,799 members
Articles / Programming Languages / C# 4.0

MEF 2 Preview Beginners Guide

Rate me:
Please Sign up or sign in to vote.
4.84/5 (13 votes)
18 Apr 2012CPOL17 min read 77.1K   1.7K   38  
A short guide to what to look forward to in the next release of MEF.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Learning.MEFII.Console.MultipleInterfaces.Interfaces;

namespace Learning.MEFII.Console.MultipleInterfaces.Classes
{
    public class Person : IHuman, IMammal, IHomosapien
    {
        public int NoLegs { get; set; }

        public HairType HairType { get; set; }

        public long IdNumber { get; set; }

        public string Name { get; set; }

        public Person()
        {
            NoLegs = 2;
            HairType = MultipleInterfaces.HairType.Hair;
            IdNumber = 8404295531083;
            Name = "Butch";
        }

        public string BloodType { get; set; }
    }
}

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 BBD Johannesburg
South Africa South Africa
Bsc (Hons) Business Information Systems.
MCTS: Web Applications Development with Microsoft .NET Framework 4
MCTS: Windows Communication Foundation Development with Microsoft .NET Framework 4
MCTS: Accessing Data with Microsoft .NET Framework 4
Microsoft Certified Professional Developer Certification.

Comments and Discussions