public NamedThingExpression(NamedThing thing)
        {
            if (thing == null)
            {
                throw new ArgumentNullException("thing");
            }

            this.thing = thing;
        }
Beispiel #2
0
        public void Populate(IMappableBussinessObject bo)
        {
            NamedThing boversion = bo as NamedThing;

            if (boversion == null)
            {
                throw new ArgumentException("It is only possible to create a Labeled Item from a NamedThing");
            }
            this.Label   = boversion.Label;
            this.ItemUri = boversion.ItemUri;
        }