Ejemplo n.º 1
0
 public static object GetInstance(PathCurveto 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;
			PathCurveto casted = obj as PathCurveto;
			if (ReferenceEquals(casted, null))
				return obj;
			return casted._Instance;
		}
Ejemplo n.º 3
0
		internal static object CastIEnumerable(IEnumerable<PathCurveto> list)
		{
			if (ReferenceEquals(list, null))
				return null;
			Type listType = typeof(List<>).MakeGenericType(Types.PathCurveto);
			object result = listType.CreateInstance();
			foreach (PathCurveto item in list)
				result.CallMethod("Add", PathCurveto.GetInstance(item));
			return result;
		}
Ejemplo n.º 4
0
        public static object GetInstance(object obj)
        {
            if (ReferenceEquals(obj, null))
            {
                return(null);
            }
            PathCurveto casted = obj as PathCurveto;

            if (ReferenceEquals(casted, null))
            {
                return(obj);
            }
            return(casted._Instance);
        }
Ejemplo n.º 5
0
		public PathCurvetoAbs(PathCurveto pathCurveto)
			: base(AssemblyHelper.CreateInstance(Types.PathCurvetoAbs, new Type[] {Types.PathCurveto}, GraphicsMagick.PathCurveto.GetInstance(pathCurveto)))
		{
		}
 public PathCurvetoAbs(PathCurveto pathCurveto)
     : base(AssemblyHelper.CreateInstance(Types.PathCurvetoAbs, new Type[] { Types.PathCurveto }, GraphicsMagick.PathCurveto.GetInstance(pathCurveto)))
 {
 }
 public PathCurvetoAbs(IEnumerable <PathCurveto> pathCurvetos)
     : base(AssemblyHelper.CreateInstance(Types.PathCurvetoAbs, new Type[] { Types.IEnumerablePathCurveto }, PathCurveto.CastIEnumerable(pathCurvetos)))
 {
 }
Ejemplo n.º 8
0
		public static object GetInstance(PathCurveto obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}
Ejemplo n.º 9
0
		public static object GetInstance(PathCurveto obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}