ObjectToComObject() private méthode

private ObjectToComObject ( object rcw ) : ComObject
rcw object
Résultat ComObject
Exemple #1
0
        /// <summary>
        /// Gets the member names associated with the object.
        /// This function can operate only with objects for which <see cref="IsComObject"/> returns true.
        /// </summary>
        /// <param name="value">The object for which member names are requested.</param>
        /// <returns>The collection of member names.</returns>
        public static IEnumerable <string> GetDynamicMemberNames(object value)
        {
            ContractUtils.RequiresNotNull(value, "value");
            ContractUtils.Requires(IsComObject(value), "value", Strings.ComObjectExpected);

            return(ComObject.ObjectToComObject(value).GetMemberNames(false));
        }
Exemple #2
0
        internal static IList <string> GetDynamicDataMemberNames(object value)
        {
            ContractUtils.RequiresNotNull(value, "value");
            ContractUtils.Requires(IsComObject(value), "value", Strings.ComObjectExpected);

            return(ComObject.ObjectToComObject(value).GetMemberNames(true));
        }
Exemple #3
0
        internal static IList <KeyValuePair <string, object> > GetDynamicDataMembers(object value, IEnumerable <string> names)
        {
            ContractUtils.RequiresNotNull(value, nameof(value));
            ContractUtils.Requires(IsComObject(value), nameof(value), Strings.ComObjectExpected);

            return(ComObject.ObjectToComObject(value).GetMembers(names));
        }