Exemplo n.º 1
0
        internal unsafe static ICustomProperty CreateIndexedProperty(object target, string propertyName, TypeNameNative *pIndexedParamType)
        {
            Type indexedParamType = null;

            SystemTypeMarshaler.ConvertToManaged(pIndexedParamType, ref indexedParamType);
            return(ICustomPropertyProviderImpl.CreateIndexedProperty(target, propertyName, indexedParamType));
        }
Exemplo n.º 2
0
        internal static unsafe void GetType(object target, TypeNameNative *pIndexedParamType)
        {
            if (target is IGetProxyTarget proxy)
            {
                target = proxy.GetTarget();
            }

            SystemTypeMarshaler.ConvertToNative(target.GetType(), pIndexedParamType);
        }
Exemplo n.º 3
0
        //
        // Creates a ICustomProperty implementation for Jupiter
        // Called from ICustomPropertyProvider_GetIndexedProperty from within runtime
        //
        internal static unsafe ICustomProperty?CreateIndexedProperty(object target, string propertyName, TypeNameNative *pIndexedParamType)
        {
            Debug.Assert(target != null);
            Debug.Assert(propertyName != null);

            Type?indexedParamType = null;

            SystemTypeMarshaler.ConvertToManaged(pIndexedParamType, ref indexedParamType);

            return(CreateIndexedProperty(target, propertyName, indexedParamType !));
        }
        static internal unsafe ICustomProperty CreateIndexedProperty(object target, string propertyName, TypeNameNative *pIndexedParamType)
        {
            Contract.Requires(target != null);
            Contract.Requires(propertyName != null);

            Type indexedParamType = null;

            SystemTypeMarshaler.ConvertToManaged(pIndexedParamType, ref indexedParamType);

            return(CreateIndexedProperty(target, propertyName, indexedParamType));
        }
        static internal unsafe void GetType(object target, TypeNameNative *pIndexedParamType)
        {
            IGetProxyTarget proxy = target as IGetProxyTarget;

            if (proxy != null)
            {
                target = proxy.GetTarget();
            }

            SystemTypeMarshaler.ConvertToNative(target.GetType(), pIndexedParamType);
        }
 static internal unsafe void GetType(object target, TypeNameNative *pIndexedParamType)
 {
     SystemTypeMarshaler.ConvertToNative(target.GetType(), pIndexedParamType);
 }