コード例 #1
0
        public object Clone()
        {
            IEdgeInstance <V, TV> clone;

            Type[] types = this.GetType().GenericTypeArguments;
            if (typeof(ICloneable).IsAssignableFrom(types [1]))
            {
                return(new IEdgeInstanceImpl <V, TV> ((TV)((ICloneable)this.Source).Clone(), (TV)((ICloneable)this.Target).Clone()));
            }
            try { return(this.MemberwiseClone()); } catch (NotSupportedException e) { }
            clone = new IEdgeInstanceImpl <V, TV> (source, target);
            return(clone);
        }
コード例 #2
0
        public IEdgeInstance <V, T> InstanceTFactory <T> (T s, T t, float w)
        {
            IEdgeInstance <V, T> instanceT = new IEdgeInstanceImpl <V, T> (s, t, w);

            return(instanceT);
        }