src/Misc/EFTools/XmlCore/Core/Context/EditingContext.cs
/// <summary>
///     Similar to GetValue, but returns NULL if the item isn't found instead of
///     creating an empty item.
/// </summary>
/// <param name="itemType"></param>
/// <returns></returns>
Similar to GetValue, but returns NULL if the item isn't found instead of
creating an empty item.
Similar to GetValue but returns NULL if the item isn ' t found instead of creating an empty item .
private ContextItem GetValueNull(Type itemType)
            {
                if (itemType == null)
                {
                    throw new ArgumentNullException("itemType");
                }
                if (!typeof(ContextItem).IsAssignableFrom(itemType))
                {
                    throw new ArgumentException("Incorrect Type", "itemType");
                }
                ContextItem item = null;
                var layer = _currentLayer;
                while (layer != null
                       && !layer.Items.TryGetValue(itemType, out item))
                {
                    layer = layer.ParentLayer;
                }
                return item;
            }
private ContextItem GetValueNull ( Type itemType ) { if ( itemType == null ) { throw new ArgumentNullException ( " " ) ; } if ( ! typeof ( ContextItem ) . IsAssignableFrom ( itemType ) ) { throw new ArgumentException ( " " , " " ) ; } ContextItem item = null ; var layer = _currentLayer ; while ( layer != null && ! layer . Items . TryGetValue ( itemType , out item ) ) { layer = layer . ParentLayer ; } return item ; }
Similar to GetValue, but returns NULL if the item isn't found instead of
creating an empty item.
Similar to GetValue but returns NULL if the item isn ' t found instead of creating an empty item .
/*                
                    throw new ArgumentException(
                        string.Format(CultureInfo.CurrentCulture, 
                        Resources.Error_ArgIncorrectType, 
                        "itemType", typeof(ContextItem).FullName));
                    */
None
itemType
Type
None