src/Misc/EFTools/DesignXmlCore/Common/ServiceProviderHelper.cs
/// <summary>
///     Returns services if our default services flag is on
/// </summary>
/// <param name="serviceType"></param>
/// <returns></returns>
Returns services if our default services flag is on
Returns services if our default services flag is on
private object RespondWithDefaultService(Type serviceType)
        {
            if (_defaultServices)
            {
                if (serviceType.IsEquivalentTo(typeof(Ole.IServiceProvider)))
                {
                    return ParentProvider;
                }
                else if (serviceType.IsEquivalentTo(typeof(Ole.IObjectWithSite)))
                {
                    return this;
                }
            }
            return null;
        }
private object RespondWithDefaultService ( Type serviceType ) { if ( _defaultServices ) { if ( serviceType . IsEquivalentTo ( typeof ( Ole . IServiceProvider ) ) ) { return ParentProvider ; } else if ( serviceType . IsEquivalentTo ( typeof ( Ole . IObjectWithSite ) ) ) { return this ; } } return null ; }
Returns services if our default services flag is on
Returns services if our default services flag is on
None
serviceType
Type
None