示例#1
0
        internal bool TryGetValue(Type ownerType, out PropertyMetadata?metadata)
        {
            if (_table.TryGetValue(ownerType, out var value))
            {
                metadata = (PropertyMetadata)value !;

                return(true);
            }

            metadata = null;
            return(false);
        }
            internal bool TryGetValue(object key, out bool isAncestor)
            {
                if (_entries.TryGetValue(key, out var value))
                {
                    isAncestor = (bool)value !;
                    return(true);
                }

                isAncestor = false;
                return(false);
            }
示例#3
0
            internal bool TryGetValue(Entry key, out Typeface?result)
            {
                if (_entries.TryGetValue(key, out var value))
                {
                    result = (Typeface?)value;
                    return(true);
                }

                result = null;
                return(false);
            }
示例#4
0
            internal bool TryGetValue(Type key, out bool result)
            {
                if (_entries.TryGetValue(key, out var value))
                {
                    result = (bool)value !;
                    return(true);
                }

                result = false;
                return(false);
            }
示例#5
0
            private bool TryGetTypeTable(Type type, out HashtableEx?table)
            {
                if (_entries.TryGetValue(type, out var dictionaryObject))
                {
                    table = (HashtableEx)dictionaryObject !;
                    return(true);
                }

                table = null;
                return(false);
            }
            internal bool TryGetValue(Type key, out DependencyProperty[]?result)
            {
                if (_entries.TryGetValue(key, out var value))
                {
                    result = (DependencyProperty[])value !;

                    return(true);
                }

                result = null;
                return(false);
            }
            internal bool TryGetValue(PropertyCacheEntry key, out DependencyProperty?result)
            {
                if (_entries.TryGetValue(key, out var value))
                {
                    result = (DependencyProperty)value !;

                    return(true);
                }

                result = null;
                return(false);
            }