public static object GetInstance(PathCurveto obj) { if (ReferenceEquals(obj, null)) { return(null); } return(obj._Instance); }
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; }
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; }
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); }
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))) { }
public static object GetInstance(PathCurveto obj) { if (ReferenceEquals(obj, null)) return null; return obj._Instance; }