Exemplo n.º 1
0
 public static object GetInstance(PathCurveto obj)
 {
     if (ReferenceEquals(obj, null))
     {
         return(null);
     }
     return(obj._Instance);
 }
Exemplo 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;
		}
Exemplo 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;
		}
Exemplo 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);
        }
Exemplo 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)))
 {
 }
Exemplo n.º 8
0
		public static object GetInstance(PathCurveto obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}
Exemplo n.º 9
0
		public static object GetInstance(PathCurveto obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}