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

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

            foreach (PathQuadraticCurveto item in list)
            {
                result.CallMethod("Add", PathQuadraticCurveto.GetInstance(item));
            }
            return(result);
        }
		public static object GetInstance(PathQuadraticCurveto obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}
 public PathQuadraticCurvetoRel(PathQuadraticCurveto pathQuadraticCurveto)
     : base(AssemblyHelper.CreateInstance(Types.PathQuadraticCurvetoRel, new Type[] { Types.PathQuadraticCurveto }, GraphicsMagick.PathQuadraticCurveto.GetInstance(pathQuadraticCurveto)))
 {
 }
 public PathQuadraticCurvetoRel(IEnumerable <PathQuadraticCurveto> pathQuadraticCurvetos)
     : base(AssemblyHelper.CreateInstance(Types.PathQuadraticCurvetoRel, new Type[] { Types.IEnumerablePathQuadraticCurveto }, PathQuadraticCurveto.CastIEnumerable(pathQuadraticCurvetos)))
 {
 }
		public PathQuadraticCurvetoRel(PathQuadraticCurveto pathQuadraticCurveto)
			: base(AssemblyHelper.CreateInstance(Types.PathQuadraticCurvetoRel, new Type[] {Types.PathQuadraticCurveto}, GraphicsMagick.PathQuadraticCurveto.GetInstance(pathQuadraticCurveto)))
		{
		}