static internal NetTcpSection GetSection()
 {
     NetTcpSection retval = (NetTcpSection)ConfigurationManager.GetSection(ConfigurationStrings.NetTcpSectionPath);
     if (retval == null)
     {
         retval = new NetTcpSection();
     }
     return retval;
 }
Exemple #2
0
        static internal NetTcpSection GetSection()
        {
            NetTcpSection retval = (NetTcpSection)ConfigurationManager.GetSection(ConfigurationStrings.NetTcpSectionPath);

            if (retval == null)
            {
                retval = new NetTcpSection();
            }
            return(retval);
        }
        internal static NetTcpSection GetSection()
        {
            NetTcpSection section = (NetTcpSection)ConfigurationManager.GetSection(System.ServiceModel.Activation.Configuration.ConfigurationStrings.NetTcpSectionPath);

            if (section == null)
            {
                section = new NetTcpSection();
            }
            return(section);
        }