Ejemplo n.º 1
0
 public static object GetInstance(PathArc obj)
 {
     if (ReferenceEquals(obj, null))
     {
         return(null);
     }
     return(obj._Instance);
 }
Ejemplo n.º 2
0
        public static object GetInstance(object obj)
        {
            if (ReferenceEquals(obj, null))
            {
                return(null);
            }
            PathArc casted = obj as PathArc;

            if (ReferenceEquals(casted, null))
            {
                return(obj);
            }
            return(casted._Instance);
        }
Ejemplo n.º 3
0
        internal static object CastIEnumerable(IEnumerable <PathArc> list)
        {
            if (ReferenceEquals(list, null))
            {
                return(null);
            }
            Type   listType = typeof(List <>).MakeGenericType(Types.PathArc);
            object result   = listType.CreateInstance();

            foreach (PathArc item in list)
            {
                result.CallMethod("Add", PathArc.GetInstance(item));
            }
            return(result);
        }
Ejemplo n.º 4
0
 public PathArcRel(PathArc pathArc)
     : base(AssemblyHelper.CreateInstance(Types.PathArcRel, new Type[] { Types.PathArc }, GraphicsMagick.PathArc.GetInstance(pathArc)))
 {
 }
Ejemplo n.º 5
0
 public PathArcRel(IEnumerable <PathArc> pathArcs)
     : base(AssemblyHelper.CreateInstance(Types.PathArcRel, new Type[] { Types.IEnumerablePathArc }, PathArc.CastIEnumerable(pathArcs)))
 {
 }
Ejemplo n.º 6
0
		public static object GetInstance(PathArc obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}
Ejemplo n.º 7
0
		public PathArcRel(PathArc pathArc)
			: base(AssemblyHelper.CreateInstance(Types.PathArcRel, new Type[] {Types.PathArc}, GraphicsMagick.PathArc.GetInstance(pathArc)))
		{
		}