コード例 #1
0
        /// <summary>
        /// Creates and returns local ResourceManager for this page.
        /// </summary>
        /// <remarks>
        /// <para>
        /// In ASP.NET 1.1, this method loads local resources from the web application assembly.
        /// </para>
        /// <para>
        /// However, in ASP.NET 2.0, local resources are compiled into the dynamic assembly,
        /// so we need to find that assembly instead and load the resources from it.
        /// </para>
        /// </remarks>
        /// <returns>Local ResourceManager instance.</returns>
        private ResourceManager GetLocalResourceManager()
        {
#if !NET_2_0
            return(new ResourceManager(GetType().BaseType));
#else
            return(LocalResourceManager.GetLocalResourceManager(this));
#endif
        }
コード例 #2
0
 /// <summary>
 /// Creates and returns local ResourceManager for this page.
 /// </summary>
 /// <remarks>
 /// <para>
 /// In ASP.NET 1.1, this method loads local resources from the web application assembly.
 /// </para>
 /// <para>
 /// However, in ASP.NET 2.0, local resources are compiled into the dynamic assembly,
 /// so we need to find that assembly instead and load the resources from it.
 /// </para>
 /// </remarks>
 /// <returns>Local ResourceManager instance.</returns>
 private ResourceManager GetLocalResourceManager()
 {
     return(LocalResourceManager.GetLocalResourceManager(this));
 }