mono.git
18 years ago* Import.cs (Resolve): Update to changes in GMCS.
Raja R Harinath [Fri, 28 Oct 2005 09:47:46 +0000 (09:47 -0000)]
* Import.cs (Resolve): Update to changes in GMCS.
* SemanticAnalizer.cs (ComputeNamespace): Likewise.

svn path=/trunk/mcs/; revision=52310

18 years ago*** Merged revisions from mcs: 52039
Raja R Harinath [Fri, 28 Oct 2005 09:47:29 +0000 (09:47 -0000)]
*** Merged revisions from mcs: 52039

svn path=/trunk/mcs/; revision=52309

18 years agodriver.cs: Use Encoding.Default as default code page instead of ISO-28591.
Kornél Pál [Fri, 28 Oct 2005 02:36:28 +0000 (02:36 -0000)]
driver.cs: Use Encoding.Default as default code page instead of ISO-28591.

svn path=/trunk/mcs/; revision=52302

18 years ago2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 27 Oct 2005 23:24:54 +0000 (23:24 -0000)]
2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
  clipboard requests

svn path=/trunk/mcs/; revision=52301

18 years agoRevert 52271 as it regresses Managed.Windows.Forms
Miguel de Icaza [Thu, 27 Oct 2005 21:32:10 +0000 (21:32 -0000)]
Revert 52271 as it regresses Managed.Windows.Forms

svn path=/trunk/mcs/; revision=52300

18 years ago2005-10-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Oct 2005 20:19:18 +0000 (20:19 -0000)]
2005-10-27  Atsushi Enomoto  <atsushi@ximian.com>

* Collection.cs : added Items.

svn path=/trunk/mcs/; revision=52299

18 years ago * TreeNode.cs: Implement serialization so my DnD examples will
Jackson Harper [Thu, 27 Oct 2005 19:10:30 +0000 (19:10 -0000)]
* TreeNode.cs: Implement serialization so my DnD examples will
          work.

svn path=/trunk/mcs/; revision=52297

18 years agotest for exception + redirect
Gonzalo Paniagua Javier [Thu, 27 Oct 2005 18:52:39 +0000 (18:52 -0000)]
test for exception + redirect

svn path=/trunk/mcs/; revision=52295

18 years ago2005-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 27 Oct 2005 18:50:51 +0000 (18:50 -0000)]
2005-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Page.cs: call OnError when there's an exception (not for TAE). Fixes
bug #76572.

svn path=/trunk/mcs/; revision=52294

18 years ago* Brush.cs: added texture brush with transform tests
Vladimir Krasnov [Thu, 27 Oct 2005 14:35:58 +0000 (14:35 -0000)]
* Brush.cs: added texture brush with transform tests
* Graphics.cs: added DrawImage, BeginContainer tests

svn path=/trunk/mcs/; revision=52290

18 years ago* Bitmap.jvm.cs: fixed InternalSave
Vladimir Krasnov [Thu, 27 Oct 2005 14:27:34 +0000 (14:27 -0000)]
* Bitmap.jvm.cs: fixed InternalSave
* Image.jvm.cs: fixed Save

svn path=/trunk/mcs/; revision=52289

18 years ago2005-10-27 Alexandre Rocha Lima e Marcondes
Alexandre Rocha Lima e Marcondes [Thu, 27 Oct 2005 14:08:41 +0000 (14:08 -0000)]
2005-10-27  Alexandre Rocha Lima e Marcondes
<alexandre@psl-pr.softwarelivre.org>
* DateAndTimeTest.cs : Added new DateTime parsing tests.
* FileSystemTest.cs : Removed Windows platform speficic tests.
* ConversionTest.cs : Implemented Invariant CultureInfo on
tests.
* FileSystem.cs : ChdDrive throws InvalidOperationException on
Unix platforms.

svn path=/trunk/mcs/; revision=52287

18 years ago2005-10-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 27 Oct 2005 14:04:53 +0000 (14:04 -0000)]
2005-10-27  Zoltan Varga  <vargaz@gmail.com>

* FieldBuilderTest.cs MethodBuilderTest.cs ConstructorBuilderTest.cs:
Add tests for #76521.

svn path=/trunk/mcs/; revision=52286

18 years ago2005-10-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 27 Oct 2005 14:03:46 +0000 (14:03 -0000)]
2005-10-27  Zoltan Varga  <vargaz@gmail.com>

* FieldBuilder.cs MethodBuilder.cs ConstructorBuilder.cs: Add support for
returing custom attributes in created types. MS.NET supports this by
returning non-builder objects from GetMethod/GetField etc., but we return
builder objects in this case. Fixes #76521.

svn path=/trunk/mcs/; revision=52285

18 years ago2005-10-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 27 Oct 2005 14:01:47 +0000 (14:01 -0000)]
2005-10-27  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_reflection_get_custom_attrs_info): Add support
for Method/Constructor/FieldBuilders.

svn path=/trunk/mono/; revision=52284

18 years agoAdded internal class Mono.Security.Cryptography.NativeDapiProtection to the build
Sebastien Pouliot [Thu, 27 Oct 2005 13:46:33 +0000 (13:46 -0000)]
Added internal class Mono.Security.Cryptography.NativeDapiProtection to the build

svn path=/trunk/mcs/; revision=52283

18 years ago2005-10-27 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 27 Oct 2005 13:46:03 +0000 (13:46 -0000)]
2005-10-27  Sebastien Pouliot  <sebastien@ximian.com>

* ProtectedData.cs: Added support for Windows (2000 and later) by
p/invoking DPAPI thru Mono.Security.Cryptography.NativeDapiProtection.

svn path=/trunk/mcs/; revision=52282

18 years ago2005-10-27 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 27 Oct 2005 13:44:19 +0000 (13:44 -0000)]
2005-10-27  Sebastien Pouliot  <sebastien@ximian.com>

* NativeDapiProtection.cs: New. Native access to DPAPI (Data
Protection API) to implement ProtectedData on Windows (requires
Windows 2000 or later).

svn path=/trunk/mcs/; revision=52281

18 years ago * UnixEnvironment.cs: Add RealUser, RealGroup, EffectiveUser, EffectiveGroup
Jonathan Pryor [Thu, 27 Oct 2005 13:26:55 +0000 (13:26 -0000)]
  * UnixEnvironment.cs: Add RealUser, RealGroup, EffectiveUser, EffectiveGroup
    properties; [Obsolete] necessary methods and provide replacements.
  * UnixStream.cs: Add OwnerUser(Id), OwnerGroup(Id) properties;
    improve Stat handling.

svn path=/trunk/mcs/; revision=52279

18 years agoupdate
Raja R Harinath [Thu, 27 Oct 2005 13:24:18 +0000 (13:24 -0000)]
update

svn path=/trunk/mcs/; revision=52278

18 years ago * Stdlib.cs: Correct return type of setbuf(IntPtr, byte*).
Jonathan Pryor [Thu, 27 Oct 2005 12:46:19 +0000 (12:46 -0000)]
  * Stdlib.cs: Correct return type of setbuf(IntPtr, byte*).
  * Syscall.cs: Remove [Obsolete] SyslogFacility.LOG_USRE member
    (Mono.Unix.Native hasn't shipped yet, so nobody is using it); correct
    [Obsolete] comment for getpagesize().

svn path=/trunk/mcs/; revision=52277

18 years agoIn mcs:
Raja R Harinath [Thu, 27 Oct 2005 12:32:09 +0000 (12:32 -0000)]
In mcs:
Fix #76085.
* expression.cs (Invocation.Error_InvalidArguments): Handle
__arglist parameters.
(Invocation.VerifyArgumentsCompat): Likewise.
* support.cs (ReflectionParameters.GetSignatureForError): Print
__arglist parameters.
(InternalParamters.GetSignatureForError): Likewise.
* parameter.cs (Parameters.GetSignatureForError): Likewise.

In errors:
* cs1501-11.cs, cs1502-5.cs: New tests from #76085.

svn path=/trunk/mcs/; revision=52276

18 years agonew tests
Marek Safar [Thu, 27 Oct 2005 12:22:37 +0000 (12:22 -0000)]
new tests

svn path=/trunk/mcs/; revision=52274

18 years ago2005-10-27 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 27 Oct 2005 12:13:55 +0000 (12:13 -0000)]
2005-10-27  Marek Safar <marek.safar@seznam.cz>

* test-464.cs: New test.

svn path=/trunk/mcs/; revision=52272

18 years ago2005-10-27 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 27 Oct 2005 12:11:43 +0000 (12:11 -0000)]
2005-10-27  Marek Safar  <marek.safar@seznam.cz>

* driver.cs: Implemeted resource visibility.
(Resources): New class for code sharing between /res: and
/linkres:

svn path=/trunk/mcs/; revision=52271

18 years agoFix the enumerator initialization problem
Konstantin Triger [Thu, 27 Oct 2005 11:41:00 +0000 (11:41 -0000)]
Fix the enumerator initialization problem

svn path=/trunk/mcs/; revision=52269

18 years ago2005-10-27 Senganal T <tsenganal@novell.com>
Senganal T [Thu, 27 Oct 2005 10:46:11 +0000 (10:46 -0000)]
2005-10-27  Senganal T  <tsenganal@novell.com>

* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
- Added a virtual method IsValidRowCount ()
- Modified the way RecordsAffected is being counted

* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs :
- Overrode IsValidRowCount(), to check if the rowcount
returned by sqlserver is valid.

* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs :
- Added Testcase for bug #75698

* System.Data/System.Data.SqlClient/SqlCommand.cs
* System.Data/System.Data.SqlClient/SqlDataReader.cs :
-Made changes so that the number of rows affected can be got directly
from Tds regardsless of the type of query.Fixes bug #75698

svn path=/trunk/mcs/; revision=52268

18 years ago* Image.jvm.cs: fixed redolution properties
Vladimir Krasnov [Thu, 27 Oct 2005 10:29:09 +0000 (10:29 -0000)]
* Image.jvm.cs: fixed redolution properties

svn path=/trunk/mcs/; revision=52267

18 years ago* Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg, fixed...
Vladimir Krasnov [Thu, 27 Oct 2005 10:27:54 +0000 (10:27 -0000)]
* Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg, fixed clone, Initialize

svn path=/trunk/mcs/; revision=52266

18 years ago * Mono.Unix/UnixEncoding.cs: Change EscapeByte to 0x0000, as suggested by
Jonathan Pryor [Thu, 27 Oct 2005 00:40:29 +0000 (00:40 -0000)]
* Mono.Unix/UnixEncoding.cs: Change EscapeByte to 0x0000, as suggested by
  Michal Moskal.
* Mono.Unix/UnixPath.cs: Remove '\0' from InvalidPathChars, since U+0000 is
  now used as the path escape character for marshaling purposes.
* Test/Mono.Unix/UnixMarshalTest.cs: s/StringToAlloc/StringToHeap/g
  (UnixMarshal change).
* Test/Mono.Unix/UnixEncodingTest.cs: Deal with UnixEncoding.EscapeByte
  value change.

svn path=/trunk/mcs/; revision=52260

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 20:16:46 +0000 (20:16 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* IsCopyConstructed.cs: New file.

svn path=/trunk/mcs/; revision=52258

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 20:16:20 +0000 (20:16 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* corlib.dll.sources: Add System.Runtime.InteropServices/IsCopyConstructed.cs.

svn path=/trunk/mcs/; revision=52257

18 years ago * Mono.Unix/UnixMarshal.cs: Obsolete heap-related methods to have a Heap
Jonathan Pryor [Wed, 26 Oct 2005 19:28:08 +0000 (19:28 -0000)]
  * Mono.Unix/UnixMarshal.cs: Obsolete heap-related methods to have a Heap
  suffix (AllocHeap, FreeHeap, etc.), and change StringToAlloc() to be
    StringToHeap().  This creates a stronger name association between related
    methods.
  * Mono.Unix.Native/FileNameMarshaler.cs: Deal with UnixMarshal method name
    changes.

svn path=/trunk/mcs/; revision=52256

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 19:25:31 +0000 (19:25 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* corlib.dll.sources: Add/Remove some net 2.0 classes in System.Runtime.CompilerServices.

svn path=/trunk/mcs/; revision=52255

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 19:25:02 +0000 (19:25 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* TypeForwardedToAttribute.cs SuppressIldasmAttribute.cs TypeForwardedToAttribute.cs: Add new net 2.0 classes.

* NGenHint.cs NGenAttribute.cs: Remove obsolete net 2.0 classes.

svn path=/trunk/mcs/; revision=52254

18 years ago2005-10-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 26 Oct 2005 19:11:39 +0000 (19:11 -0000)]
2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>

* MonoMethod.cs : (ToString) add suffix " ByRef" for byref parameters.
  Fixed bug #76541.

* MethodInfoTest.cs : added test for bug #76541.

svn path=/trunk/mcs/; revision=52253

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 19:03:46 +0000 (19:03 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Add/remove net 2.0 attributes.

svn path=/trunk/mcs/; revision=52252

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 17:31:28 +0000 (17:31 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* hps.c (main): Applied patch from Robert Jordan (robertj@gmx.net). Fix
compilation with gcc 2.95.

svn path=/trunk/mono/; revision=52251

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 17:28:20 +0000 (17:28 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (module_add_cattrs): Save custom attributes for global methods
and fields as well.

svn path=/trunk/mono/; revision=52250

18 years agoAvoid ArrayTypeMismatch exception in SqlBinary constructor.
Boris Kirzner [Wed, 26 Oct 2005 17:22:35 +0000 (17:22 -0000)]
Avoid ArrayTypeMismatch exception in SqlBinary constructor.

svn path=/trunk/mcs/; revision=52249

18 years ago2005-10-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 26 Oct 2005 17:15:09 +0000 (17:15 -0000)]
2005-10-26  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Fix a warning.

svn path=/trunk/mono/; revision=52248

18 years ago2005-10-26 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Wed, 26 Oct 2005 16:18:12 +0000 (16:18 -0000)]
2005-10-26  Geoff Norton  <gnorton@customerdna.com>

* gacutil.cs: Deprecated

svn path=/trunk/mcs/; revision=52245

18 years ago2005-10-26 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Wed, 26 Oct 2005 16:10:47 +0000 (16:10 -0000)]
2005-10-26  Geoff Norton  <gnorton@customerdna.com>

        * driver.cs: Do not match every item with a blank string.  Fixes
        #76563

svn path=/trunk/mcs/; revision=52243

18 years ago * UnixIOException.cs: Add (string) and (string, Exception) constructors to
Jonathan Pryor [Wed, 26 Oct 2005 16:05:45 +0000 (16:05 -0000)]
  * UnixIOException.cs: Add (string) and (string, Exception) constructors to
    silence FxCop; re-work logic so we lookup the error string at construction
    time and use this as the message for the base class.

svn path=/trunk/mcs/; revision=52242

18 years ago2005-10-26 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 26 Oct 2005 16:05:22 +0000 (16:05 -0000)]
2005-10-26  Marek Safar  <marek.safar@seznam.cz>

* attribute.cs (GetPropertyValue): Made public.

* codegen.cs (AssemblyClass): ResolveClsCompliance renamed to
Resolve.
Add new property WrapNonExceptionThrows to handle 2.0 assembly
attribute.
(AssemblyClass.Emit): Emit RuntimeCompatibilityAttribute when it
is not defined.

* driver.cs: Reflect method name change.

* statement.cs (Try.Resolve): Warn when try has both general
exception handlers.

* typemanager.cs: runtime_compatibility_attr_type new predefined
type.

svn path=/trunk/mcs/; revision=52241

18 years agoIn mcs:
Raja R Harinath [Wed, 26 Oct 2005 15:55:41 +0000 (15:55 -0000)]
In mcs:
Fix #76419.
* pending.cs (InterfaceMethod): Allow tm.args [i] to be null --
treat it as an empty parameter list.

In errors:
* cs0246-14.cs: New test from #76419.

svn path=/trunk/mcs/; revision=52240

18 years ago * Stdlib.cs: FilePosition should derive from MarshalByRefObject, for two
Jonathan Pryor [Wed, 26 Oct 2005 12:50:22 +0000 (12:50 -0000)]
  * Stdlib.cs: FilePosition should derive from MarshalByRefObject, for two
    reasons: (1) it's a recommendation from FxCop that classes implementing
    IDisposable also derive from MarshalByRefObject; (2) FilePosition is
    exposed from Mono.Unix.StdioFileStream, which (indirectly) inherits from
    MarshalByRefObject.  Fix Equals() so it doesn't rely on Reflection.

svn path=/trunk/mcs/; revision=52239

18 years ago* HybridDictionary.cs (is_list): Remove.
Raja R Harinath [Wed, 26 Oct 2005 11:30:03 +0000 (11:30 -0000)]
* HybridDictionary.cs (is_list): Remove.
(inner): Remove 'set' accessor.
(HybridDictionary, Switch): Initialize 'list' and 'hashtable' directly.

Remove one level of abstraction, where it's unnecessary.

svn path=/trunk/mcs/; revision=52238

18 years agoFix serialization compatibility with .NET for NameObjectCollectionBase.cs, ListDictio...
Svetlana Zholkovsky [Wed, 26 Oct 2005 10:47:11 +0000 (10:47 -0000)]
Fix serialization compatibility with .NET for NameObjectCollectionBase.cs, ListDictionary.cs, HybridDictionary.cs

svn path=/trunk/mcs/; revision=52237

18 years agoIn mcs:
Raja R Harinath [Wed, 26 Oct 2005 10:43:41 +0000 (10:43 -0000)]
In mcs:
Fix #76271.
* ecore.cs (SimpleName.DoSimpleNameResolve): Make fall-back
ResolveAsTypeStep silent.
* statement.cs (Block.AddConstant): Mark block as used.
(Block.ResolveMeta): Avoid piling on error messages
if a constant initializer resolution fails.

In errors:
* cs0103-3.cs: New test for #76271.

svn path=/trunk/mcs/; revision=52236

18 years ago2005-10-26 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 26 Oct 2005 08:09:52 +0000 (08:09 -0000)]
2005-10-26  Martin Baulig  <martin@ximian.com>

* mono-debug-debugger.c
(MonoDebuggerMetadataInfo): Added `klass_parent_offset'.

svn path=/trunk/mono/; revision=52235

18 years ago2005-10-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 26 Oct 2005 07:52:10 +0000 (07:52 -0000)]
2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>

* AuthenticationSchemes.cs : Fixed enum values and added [Flags].

svn path=/trunk/mcs/; revision=52233

18 years ago2005-10-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 26 Oct 2005 07:16:04 +0000 (07:16 -0000)]
2005-10-26  Atsushi Enomoto  <atsushi@ximian.com>

* ProtectionLevel.cs : fix enumeration.

svn path=/trunk/mcs/; revision=52232

18 years agomissing from my previous checkin.
Atsushi Eno [Wed, 26 Oct 2005 02:23:03 +0000 (02:23 -0000)]
missing from my previous checkin.

svn path=/trunk/mcs/; revision=52227

18 years agoEnable a couple of tests by adding expected error message
Raja R Harinath [Wed, 26 Oct 2005 02:15:56 +0000 (02:15 -0000)]
Enable a couple of tests by adding expected error message

svn path=/trunk/mcs/; revision=52226

18 years agoadd InfiniteTimeSpanConverter{Test}
Chris Toshok [Wed, 26 Oct 2005 02:14:41 +0000 (02:14 -0000)]
add InfiniteTimeSpanConverter{Test}

svn path=/trunk/mcs/; revision=52225

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 26 Oct 2005 02:13:58 +0000 (02:13 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* InfiniteTimeSpanConverter.cs: new implementation.

svn path=/trunk/mcs/; revision=52224

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 26 Oct 2005 02:13:27 +0000 (02:13 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* System.Configuration/InfiniteTimeSpanConverterTest.cs: new test.

svn path=/trunk/mcs/; revision=52223

18 years agoadd InfiniteIntConverter{Test}.cs
Chris Toshok [Wed, 26 Oct 2005 01:24:56 +0000 (01:24 -0000)]
add InfiniteIntConverter{Test}.cs

svn path=/trunk/mcs/; revision=52222

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 26 Oct 2005 01:24:28 +0000 (01:24 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* InfiniteIntConverter.cs: new implementation.

svn path=/trunk/mcs/; revision=52221

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 26 Oct 2005 01:24:13 +0000 (01:24 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* System.Configuration/InfiniteIntConverterTest.cs: new test.

svn path=/trunk/mcs/; revision=52220

18 years agoclass should be sealed
Chris Toshok [Wed, 26 Oct 2005 00:22:42 +0000 (00:22 -0000)]
class should be sealed

svn path=/trunk/mcs/; revision=52219

18 years agoadd GenericEnumConverter + test
Chris Toshok [Tue, 25 Oct 2005 23:10:28 +0000 (23:10 -0000)]
add GenericEnumConverter + test

svn path=/trunk/mcs/; revision=52218

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 23:07:29 +0000 (23:07 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* GenericEnumConverter.cs: new implementation.

svn path=/trunk/mcs/; revision=52217

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 23:07:07 +0000 (23:07 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* System.Configuration/GenericEnumConverterTest.cs: new test.

svn path=/trunk/mcs/; revision=52216

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 22:55:10 +0000 (22:55 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* Configuration.cs: we don't need to check with "is" after we use
"as"..  just check for null-ness.

svn path=/trunk/mcs/; revision=52215

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 22:54:20 +0000 (22:54 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* KeyValueConfigurationCollection.cs: GetElementKey should throw
NRE if element == null.

svn path=/trunk/mcs/; revision=52214

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 22:52:10 +0000 (22:52 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* CommaDelimitedStringCollection.cs: raise the correct exceptions
in the read only case, and return null from ToString if there are
0 elements.

svn path=/trunk/mcs/; revision=52213

18 years ago2005-10-24 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 25 Oct 2005 22:21:02 +0000 (22:21 -0000)]
2005-10-24  Miguel de Icaza  <miguel@novell.com>

* mini.c (mono_pmip): Just a wrapper for get_method_from_ip which
we expose publicly, this returns the string.

svn path=/trunk/mono/; revision=52212

18 years agoadd DebuggerVisualizerAttribute.cs
Chris Toshok [Tue, 25 Oct 2005 21:36:13 +0000 (21:36 -0000)]
add DebuggerVisualizerAttribute.cs

svn path=/trunk/mcs/; revision=52211

18 years agonotyet
Chris Toshok [Tue, 25 Oct 2005 21:29:56 +0000 (21:29 -0000)]
notyet

svn path=/trunk/mcs/; revision=52210

18 years agoadd DebuggerVisualizerAttribute, and make all the attributes available in the 1.1...
Chris Toshok [Tue, 25 Oct 2005 21:28:50 +0000 (21:28 -0000)]
add DebuggerVisualizerAttribute, and make all the attributes available in the 1.1 profile, just internal.

svn path=/trunk/mcs/; revision=52209

18 years agoremove property
Chris Toshok [Tue, 25 Oct 2005 21:25:24 +0000 (21:25 -0000)]
remove property

svn path=/trunk/mcs/; revision=52208

18 years agoadd System.Web.UI.Design.WebControls/DataProviderNameConverter.c
Chris Toshok [Tue, 25 Oct 2005 21:19:38 +0000 (21:19 -0000)]
add System.Web.UI.Design.WebControls/DataProviderNameConverter.c

svn path=/trunk/mcs/; revision=52207

18 years ago* CodeGeneratorTestBase.cs: Fixed line endings. Set eol-style to
Gert Driesen [Tue, 25 Oct 2005 20:17:22 +0000 (20:17 -0000)]
* CodeGeneratorTestBase.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromCompileUnitTest.cs: Fixed line endings. Set
eol-style to native. Modified test to also check output for
CodeAttributeArgument with no name.
* CodeGeneratorFromNamespaceTest.cs: Fixed line endings. Set eol-style
to native.
* CodeGeneratorIdentifierTest.cs: Set eol-style to native.
* CodeGeneratorFromExpressionTest.cs: Fixed line endings. Set
eol-style to native.
* CSharpCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromStatementTest.cs: Fixed line endings. Set
eol-style to native.
* CodeGeneratorTestBase.cs: Set eol-style to native.
* VBCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromCompileUnitTest.cs: Modified test to check
output for CodeAttributeArgument with no name. Set eol-style to
native.
* CodeGeneratorFromExpressionTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* VBCodeGenerator.cs: Do not output name of CodeAttributeArgument if
its a zero-length string.

svn path=/trunk/mcs/; revision=52205

18 years ago * Mono.Posix.dll.sources: Add Mono.Unix.Native/FileNameMarshaler.cs.
Jonathan Pryor [Tue, 25 Oct 2005 20:09:26 +0000 (20:09 -0000)]
  * Mono.Posix.dll.sources: Add Mono.Unix.Native/FileNameMarshaler.cs.
  * Mono.Posix_test.dll.sources: Add Mono.Unix/UnixEncodingTest.cs

  * Mono.Unix/Stdlib.cs, Mono.Unix/Syscall.cs:
    Filenames need to be marshaled through the
    FileNameMarshaler, which will encode/decode filenames with UnixEncoder.
  * Mono.Unix/UnixEncoding.cs: Added (copied from
    ../../corlib/System.Text/UTF8Encoding.cs); a hack to permit handling of
    arbitrarily encoded filenames.  It attempts to decode a byte[] array as
    UTF-8, and if the decode fails it prefixes each byte with
    UnixEncoding.EscapeByte (\uFFFF).
  * Mono.Unix/UnixMarshal.cs: Use UnixEncoding as the default encoding, and
    special-case UnixEncoding to use Stdlib.strlen() for native string lengths.

  * Mono.Unix.Native/FileNameMarshaler.cs: Custom marshaler to marshal
    filenames using Mono.Unix.UnixEncoding.  A custom marshaler is used to
    remove the need to have ~6 lines of boilerplate on every method that takes
    filenames.
  * Mono.Unix.Native/Stdlib.cs, Mono.Unix.Native/Syscall.cs:  Filenames need
    to be marshaled through the FileNameMarshaler, which will encode/decode
    filenames with UnixEncoder.

  * Test/Mono.Unix/UnixEncodingTest.cs: Added string/byte[] encoding tests for
    Mono.Unix.UnixEncoding.

svn path=/trunk/mcs/; revision=52204

18 years ago2005-10-25 Carlo Kok <ck@carlo-kok.com>
Atsushi Eno [Tue, 25 Oct 2005 19:41:00 +0000 (19:41 -0000)]
2005-10-25  Carlo Kok  <ck@carlo-kok.com>

* Collection.cs :
  Added virtual ClearItems, InsertItem, RemoveItem, SetITem.
* KeyedCollection.cs : Implemented.

2005-10-25  Atsushi Enomoto  <atsushi@ximian.com>

* corlib_test.dll.sources : added System.Collections.ObjectModel/KeyedCollectionTest.cs.

* KeyedCollectionTest.cs : new file by Carlo Kok (ck@carlo-kok.com).

svn path=/trunk/mcs/; revision=52203

18 years ago2005-10-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 25 Oct 2005 19:12:34 +0000 (19:12 -0000)]
2005-10-25  Atsushi Enomoto  <atsushi@ximian.com>

* gtest-223.cs : new test for #76551.

svn path=/trunk/mcs/; revision=52198

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 18:06:07 +0000 (18:06 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CompilerError.cs: Added LinkDemand for Unrestricted before 2.0.
* CompilerErrorCollection.cs: Added LinkDemand for Unrestricted before
2.0.

svn path=/trunk/mcs/; revision=52195

18 years ago2005-10-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 25 Oct 2005 18:04:51 +0000 (18:04 -0000)]
2005-10-25  Martin Baulig  <martin@ximian.com>

* convert.cs (ImplicitTypeParameterConversion): Make base
interfaces actually work; fixes #76557.

svn path=/trunk/mcs/; revision=52194

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 18:04:38 +0000 (18:04 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CompilerErrorCas.cs: Under 1.x CompilerError is protected by a
LinkDemand for Unrestricted.
* CompilerErrorCollectionCas.cs: Under 1.x CompilerError is protected
by a LinkDemand for Unrestricted.
* TempFileCollectionCas.cs: Moved precompiler directive to the right
method (to ignore a test under MS 1.x).

svn path=/trunk/mcs/; revision=52193

18 years agoNew test.
Martin Baulig [Tue, 25 Oct 2005 18:04:08 +0000 (18:04 -0000)]
New test.

svn path=/trunk/mcs/; revision=52192

18 years ago* CodeArgumentReferenceExpressionTest.cs: Fixed namespace.
Gert Driesen [Tue, 25 Oct 2005 16:49:00 +0000 (16:49 -0000)]
* CodeArgumentReferenceExpressionTest.cs: Fixed namespace.
* CodeArrayCreateExpressionTest.cs: Fixed namespace.
* CodeAttachEventStatementTest.cs: Fixed namespace and added tests for
contructors that were not covered.
* CodeAttributeArgumentTest.cs: Fixed namespace.
* CodeAttributeDeclarationTest.cs: Fixed namespace and added tests for
constructors that were not covered.
* CodeAttachEventStatement.cs: Fixed extra removal in r52147.
* CodeAttributeDeclaration.cs: Make sure AttributeType is updated
when Name is set or changed. For constructors taking attribute type,
use BaseType of attribute type as name of CodeAttributeDeclaration.

svn path=/trunk/mcs/; revision=52190

18 years ago2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 25 Oct 2005 16:46:37 +0000 (16:46 -0000)]
2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Repeater.cs: someone forgot the curly brackets. Fixes bug 76537.

svn path=/trunk/mcs/; revision=52189

18 years ago2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 25 Oct 2005 16:35:24 +0000 (16:35 -0000)]
2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TemplateControl.cs:
* PartialCachingControl.cs: if a control is cacheable, LoadControl
returns a PartialCachingControl that holds the VaryBy* and takes care
of partial caching and rendering. Fixes bug #76547.

svn path=/trunk/mcs/; revision=52188

18 years agoGetViewStateString() does not need to be internal
Gonzalo Paniagua Javier [Tue, 25 Oct 2005 16:27:43 +0000 (16:27 -0000)]
GetViewStateString() does not need to be internal

svn path=/trunk/mcs/; revision=52187

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 16:05:50 +0000 (16:05 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAttributeDeclaration.cs: Fixed extra removal in r52147.

svn path=/trunk/mcs/; revision=52186

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 15:51:22 +0000 (15:51 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CodeGenerator.cs: Fixed OutputAttributeArgument not to assume the
default value is null (it's String.Empty).

svn path=/trunk/mcs/; revision=52185

18 years agoFix warning.
Martin Baulig [Tue, 25 Oct 2005 15:38:22 +0000 (15:38 -0000)]
Fix warning.

svn path=/trunk/mcs/; revision=52184

18 years ago2005-10-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 25 Oct 2005 15:36:13 +0000 (15:36 -0000)]
2005-10-25  Martin Baulig  <martin@ximian.com>

* generic.cs
(GenericMethod.Define): Call TypeParameter.DefineConstraints() on
all the type parameters; fixes #76551.

svn path=/trunk/mcs/; revision=52183

18 years agoAdded new unit/CAS tests for System.CodeDom.Compiler.TempFileCollection
Sebastien Pouliot [Tue, 25 Oct 2005 14:31:52 +0000 (14:31 -0000)]
Added new unit/CAS tests for System.CodeDom.Compiler.TempFileCollection

svn path=/trunk/mcs/; revision=52182

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 14:31:18 +0000 (14:31 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CompilerParameters.cs: Added [ComVisible(false)] on the new (2.0)
EmbeddedResources and LinkedResources properties.
* TempFileCollection.cs: Changed BasePath property to use Path.
GetTempPath (Environment check) and added the PathDiscovery check on
the combined result. Fixed TempDir so it's value never change (i.e.
imply that it doesn't need any permissions). Fixed SyncRoot to always
return null.

svn path=/trunk/mcs/; revision=52181

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 14:27:48 +0000 (14:27 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* TempFileCollectionCas.cs: New. CAS unit tests.
* TempFileCollectionTest.cs: New. Very basic tests to check the
behaviour of the TempDir property.

svn path=/trunk/mcs/; revision=52180

18 years agoNew test.
Martin Baulig [Tue, 25 Oct 2005 12:37:06 +0000 (12:37 -0000)]
New test.

svn path=/trunk/mcs/; revision=52179

18 years ago2005-10-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 25 Oct 2005 12:35:08 +0000 (12:35 -0000)]
2005-10-25  Martin Baulig  <martin@ximian.com>

Fix #76472.

* generic.cs
(GenericMethod.ctor): Added `Expression return_type' and
`Parameters parameters' arguments.
(GenericMethod.DefineType): Call ResolveAsTypeTerminal() on the
parameter and return types to check their constraints if they're
generic types.

* codegen.cs (EmitContext.ResolvingGenericMethod): New public
boolean field.

* ecore.cs (Expression.ResolveAsTypeTerminal): Don't check the
constraints of a generic type if `ec.ResolvingGenericMethod'.

* class.cs (MethodCore.DoDefineParameters): Set
`ec.ResolvingGenericMethod' if we're a generic method.
(MemberBase.MemberType): Likewise.

svn path=/trunk/mcs/; revision=52178

18 years ago2005-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 25 Oct 2005 12:11:20 +0000 (12:11 -0000)]
2005-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* gcs1700.cs, gcs1726.cs, gcs0647.cs, gcs0647-2.cs:
  New tests.

* InternalVisibleTo.snk: New key file for gcs1726.cs.

svn path=/trunk/mcs/; revision=52177

18 years ago2005-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 25 Oct 2005 11:59:34 +0000 (11:59 -0000)]
2005-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* typemanager.cs (TypeManager): Added
TypeManager.internals_visible_attr_type to cache
S.R.CompilerServices.InternalsVisibleToAttribute.

* codegen.cs (AssemblyClass): Added checks for
InternalsVisibleToAttribute in new method
CheckInternalsVisibleAttribute () and also cache the
AssemblyName in AssemblyClass.Name.

svn path=/trunk/mcs/; revision=52176

18 years ago* namespace.cs (RootNamespace.VerifyUsingForAll, Namespace.VerifyUsing): Remove.
Raja R Harinath [Tue, 25 Oct 2005 11:10:36 +0000 (11:10 -0000)]
* namespace.cs (RootNamespace.VerifyUsingForAll, Namespace.VerifyUsing): Remove.
(NamespaceEntry.VerifyAllUsing): New.
(NamespaceEntry.AliasEntry.Resolve): New.  Handles common error
behaviour.  Delegates actual resolution of alias to ...
(NamespaceEntry.DoResolve): ... this.  Renamed from Resolve.
(NamespaceEntry.LocalAliasEntry, NamespaceEntry.ExternAliasEntry): Update.
* driver.cs (Driver.MainDriver): Update.

svn path=/trunk/mcs/; revision=52173

18 years ago* namespace.cs (NamespaceEntry.DefineNamespace): Remove.
Raja R Harinath [Tue, 25 Oct 2005 08:37:49 +0000 (08:37 -0000)]
* namespace.cs (NamespaceEntry.DefineNamespace): Remove.
(NamespaceEntry.SymbolFileID): Make into a on-demand computed
property.
(Namespace.DefineNamespaces, RootNamespace.DefineNamespacesForAll):
Remove.
* symbolwriter.cs (SymbolWriter.Initialize): Don't call
RootNamespace.DefineNamespacesForAll.

svn path=/trunk/mcs/; revision=52172

18 years agoFix for 76489
Miguel de Icaza [Tue, 25 Oct 2005 05:00:24 +0000 (05:00 -0000)]
Fix for 76489

svn path=/trunk/mcs/; revision=52171