Exemplo n.º 1
0
        // return a new DynamicPropertyAccessor
        internal static object NewDynamicPropertyAccessor(Type ownerType, string propertyName)
        {
            SystemCoreExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemCore();

            return((extensions != null) ? extensions.NewDynamicPropertyAccessor(ownerType, propertyName) : null);
        }
Exemplo n.º 2
0
        // return true if the item is an XmlNamespaceManager
        internal static bool IsXmlNamespaceManager(object item)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.IsXmlNamespaceManager(item) : false);
        }
Exemplo n.º 3
0
        // Get a bitmap from the given data (either BitmapSource or Bitmap)
        internal static object GetBitmap(object data)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing(force: true);

            return((extensions != null) ? extensions.GetBitmap(data) : null);
        }
Exemplo n.º 4
0
        // Convert a metafile to HBitmap
        internal static IntPtr ConvertMetafileToHBitmap(IntPtr handle)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing(force: true);

            return((extensions != null) ? extensions.ConvertMetafileToHBitmap(handle) : IntPtr.Zero);
        }
Exemplo n.º 5
0
        //returns bitmap snapshot of selected area
        //this code takes a BitmapImage and converts it to a Bitmap so it can be put on the clipboard
        internal static object GetBitmapFromBitmapSource(object source)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing(force: true);

            return((extensions != null) ? extensions.GetBitmapFromBitmapSource(source) : null);
        }
Exemplo n.º 6
0
        // return the handle from a metafile
        internal static IntPtr GetHandleFromMetafile(Object data)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing();

            return((extensions != null) ? extensions.GetHandleFromMetafile(data) : IntPtr.Zero);
        }
Exemplo n.º 7
0
        // return true if the list is a DataView
        internal static bool IsDataView(IBindingList list)
        {
            SystemDataExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemData();

            return((extensions != null) ? extensions.IsDataView(list) : false);
        }
Exemplo n.º 8
0
        // get the InnerText of the given node
        internal static object GetInnerText(object item)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.GetInnerText(item) : null);
        }
Exemplo n.º 9
0
        // return a string of the form "{http://my.namespace}TagName"
        internal static string GetXElementTagName(object item)
        {
            SystemXmlLinqExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXmlLinq();

            return((extensions != null) ? extensions.GetXElementTagName(item) : null);
        }
Exemplo n.º 10
0
        // XLinq exposes several properties on XElement that create new objects
        // every time the getter is called.
        internal static bool IsXLinqNonIdempotentProperty(PropertyDescriptor pd)
        {
            SystemXmlLinqExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXmlLinq();

            return((extensions != null) ? extensions.IsXLinqNonIdempotentProperty(pd) : false);
        }
Exemplo n.º 11
0
        // return true if the item is an XElement
        internal static bool IsXElement(object item)
        {
            SystemXmlLinqExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXmlLinq();

            return((extensions != null) ? extensions.IsXElement(item) : false);
        }
        // Token: 0x06006531 RID: 25905 RVA: 0x001C679C File Offset: 0x001C499C
        internal static bool IsIDynamicMetaObjectProvider(object item)
        {
            SystemCoreExtensionMethods systemCoreExtensionMethods = AssemblyHelper.ExtensionsForSystemCore(false);

            return(systemCoreExtensionMethods != null && systemCoreExtensionMethods.IsIDynamicMetaObjectProvider(item));
        }
Exemplo n.º 13
0
        // return a DynamicIndexerAccessor with the given number of arguments
        internal static object GetIndexerAccessor(int rank)
        {
            SystemCoreExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemCore();

            return((extensions != null) ? extensions.GetIndexerAccessor(rank) : null);
        }
Exemplo n.º 14
0
        // return true if parent is an empty XmlDataCollection.
        internal static bool IsEmptyXmlDataCollection(object parent)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.IsEmptyXmlDataCollection(parent) : false);
        }
Exemplo n.º 15
0
        // return true if the item is a DataRowView
        internal static bool IsDataRowView(object item)
        {
            SystemDataExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemData();

            return((extensions != null) ? extensions.IsDataRowView(item) : false);
        }
Exemplo n.º 16
0
        // when item is an XmlNode, get its tag name (using the target DO as context
        // for namespace lookups)
        internal static string GetXmlTagName(object item, DependencyObject target)
        {
            SystemXmlExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemXml();

            return((extensions != null) ? extensions.GetXmlTagName(item, target) : null);
        }
Exemplo n.º 17
0
        // return true if the value is null in the SqlTypes sense
        internal static bool IsSqlNull(object value)
        {
            SystemDataExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemData();

            return((extensions != null) ? extensions.IsSqlNull(value) : false);
        }
Exemplo n.º 18
0
        // return a new default-printing permission
        internal static CodeAccessPermission NewDefaultPrintingPermission()
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing(force: true);

            return((extensions != null) ? extensions.NewDefaultPrintingPermission() : null);
        }
Exemplo n.º 19
0
        // return true if the type is nullable in the SqlTypes sense
        internal static bool IsSqlNullableType(Type type)
        {
            SystemDataExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemData();

            return((extensions != null) ? extensions.IsSqlNullableType(type) : false);
        }
Exemplo n.º 20
0
        // return true if the data is a graphics metafile
        internal static bool IsMetafile(object data)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing();

            return((extensions != null) ? extensions.IsMetafile(data) : false);
        }
Exemplo n.º 21
0
        // ADO DataSet exposes some properties that cause problems involving
        // identity and change notifications.  We handle these specially.
        internal static bool IsDataSetCollectionProperty(PropertyDescriptor pd)
        {
            SystemDataExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemData();

            return((extensions != null) ? extensions.IsDataSetCollectionProperty(pd) : false);
        }
Exemplo n.º 22
0
        // Get the metafile from the handle of the enhanced metafile.
        internal static Object GetMetafileFromHemf(IntPtr hMetafile)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing(force: true);

            return((extensions != null) ? extensions.GetMetafileFromHemf(hMetafile) : null);
        }
Exemplo n.º 23
0
        // Intercept GetValue calls for certain ADO properties
        internal static object GetValue(object item, PropertyDescriptor pd, bool useFollowParent)
        {
            SystemDataExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemData();

            return((extensions != null) ? extensions.GetValue(item, pd, useFollowParent) : null);
        }
Exemplo n.º 24
0
        // Get a bitmap handle from a Bitmap
        internal static IntPtr GetHBitmapFromBitmap(object data)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing();

            return((extensions != null) ? extensions.GetHBitmapFromBitmap(data) : IntPtr.Zero);
        }
Exemplo n.º 25
0
        // return true if DBNull is a valid value for the given item and column.
        // The column may be specified directly by name, or indirectly by indexer: Item[arg]
        internal static bool DetermineWhetherDBNullIsValid(object item, string columnName, object arg)
        {
            SystemDataExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemData();

            return((extensions != null) ? extensions.DetermineWhetherDBNullIsValid(item, columnName, arg) : false);
        }
Exemplo n.º 26
0
        // return a stream for the ExifUserComment in the given Gif
        internal static Stream GetCommentFromGifStream(Stream stream)
        {
            SystemDrawingExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemDrawing(force: true);

            return((extensions != null) ? extensions.GetCommentFromGifStream(stream) : null);
        }
Exemplo n.º 27
0
        // return true if the item implements IDynamicMetaObjectProvider
        internal static bool IsIDynamicMetaObjectProvider(object item)
        {
            SystemCoreExtensionMethods extensions = AssemblyHelper.ExtensionsForSystemCore();

            return((extensions != null) ? extensions.IsIDynamicMetaObjectProvider(item) : false);
        }