Esempio n. 1
0
        public CloneScope(IMetadataCollector collector)
        {
            ArgumentHelper.ThrowExceptionIfNull(collector, "collector");

            this.collector = collector;
            this.metadata = new CloningMetadataCollection(collector);
        }
        public CloningTypeMetadata(Type type, IFactory factory, IMetadataCollector collector)
        {
            ArgumentHelper.ThrowExceptionIfNull(type, "type");
            ArgumentHelper.ThrowExceptionIfNull(factory, "factory");
            ArgumentHelper.ThrowExceptionIfNull(collector, "collector");

            this.type = type;
            this.factory = factory;
            this.collector = collector;
        }
Esempio n. 3
0
        public static object Clone(this object value, IMetadataCollector collector)
        {
            CloneScope scope = new CloneScope(collector);

            return Clone(value, scope);
        }