ObjectToComObject() приватный Метод

private ObjectToComObject ( object rcw ) : ComObject
rcw object
Результат ComObject
Пример #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));
        }
Пример #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));
        }
Пример #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));
        }