Fix null sessions in HttpContextWrapper.Session
[mono.git] / mcs / class / corlib / System / NonSerializedAttribute.cs
index ae0f4dc3a08751018639cd17f17460c4fb0842e3..e5e2eeab1e461c9222fda07f311032e88fd410b9 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+using System.Runtime.InteropServices;
 
 namespace System
 {
-       [AttributeUsage (AttributeTargets.Field)]
+       [ComVisible (true)]
+       [AttributeUsage (AttributeTargets.Field, Inherited=false)]
        public sealed class NonSerializedAttribute : Attribute
        {
                public NonSerializedAttribute ()