dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System LoaderOptimizationAtt


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System LoaderOptimizationAttribute.cs,NONE,1.1 MTAThreadAttribute.cs,NONE,1.1
Date: Mon, 21 Apr 2003 01:41:04 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv16154/runtime/System

Added Files:
        LoaderOptimizationAttribute.cs MTAThreadAttribute.cs 
Log Message:


Add missing classes in the "System" namespace.


--- NEW FILE ---
/*
 * LoaderOptimizationAttribute.cs - Implementation of the
 *                      "System.LoaderOptimizationAttribute" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System
{

#if !ECMA_COMPAT

[AttributeUsage(AttributeTargets.Method)]
public sealed class LoaderOptimizationAttribute : Attribute
{
        // Internal state.
        private LoaderOptimization value;

        // Constructors.
        public LoaderOptimizationAttribute(LoaderOptimization value)
                        {
                                this.value = value;
                        }
        public LoaderOptimizationAttribute(byte value)
                        {
                                this.value = (LoaderOptimization)(int)value;
                        }

        // Get the attribute's value.
        public LoaderOptimization Value
                        {
                                get
                                {
                                        return value;
                                }
                        }

}; // class LoaderOptimizationAttribute

#endif // !ECMA_COMPAT

}; // namespace System

--- NEW FILE ---
/*
 * MTAThreadAttribute.cs - Implementation of the
 *                      "System.MTAThreadAttribute" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System
{

#if !ECMA_COMPAT

[AttributeUsage(AttributeTargets.Method)]
public sealed class MTAThreadAttribute : Attribute
{
        // Constructor.
        public MTAThreadAttribute() {}

}; // class MTAThreadAttribute

#endif // !ECMA_COMPAT

}; // namespace System





reply via email to

[Prev in Thread] Current Thread [Next in Thread]