* HttpWebRequest.cs: don't fail if the request has already been sent
when accessing ContentType setter. Fixes bug #68848.
svn path=/branches/mono-1-0/mcs/; revision=35367
* CachingCompiler.cs: when compiling a single .cs file, add the file
itself to dependencies. Fixes bug #68788.
svn path=/branches/mono-1-0/mcs/; revision=35359
* AuthenticodeFormatter.cs: Fix NullReferenceException from signcode
tool when no URL is specified on the command line.
svn path=/branches/mono-1-0/mcs/; revision=35354
SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
code that reads the url from the config file, instead of doing it at
the moment of generation. This fixes bug #68795.
svn path=/branches/mono-1-0/mcs/; revision=35334
Add text between end of current lookup window and next % match if we just got a match, or add all text to the end if there are no further % matches.
This fixes bug #64995.
svn path=/branches/mono-1-0/mcs/; revision=35319
* ChunkStream.cs:
(WantMore): we're not done until we get a 0 chunk size and the trailer.
The 0 can be expressed as more than one character too (ie, 000000).
* HttpWebRequest.cs: new argument in SetResponseError.
* WebConnection.cs: added argument to HandleError as a hint for
debugging.
(Connect): make the chunked stream be in the expected state when
reusing.
* WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
svn path=/branches/mono-1-0/mcs/; revision=35313
* BigInteger.cs: Fix issue #68452 when Randomize was being called on a
0 BigInteger (i.e. BitCount == 0).
svn path=/branches/mono-1-0/mcs/; revision=35306
* appdomain.c (ves_icall_System_AppDomain_ExecuteAssembly): Fix
argument of mono_get_exception_file_not_found.
* assembly.c (mono_assembly_names_equal): Compare the cultures as well,
so multiple satellite assemblies for the same name can be loaded.
Fixes#68259.
* appdomain.c (mono_domain_assembly_preload): Actually return the loaded assembly,
not NULL.
svn path=/branches/mono-1-0/mono/; revision=35305
* ListItemCollection.cs: fixed bug when indexing changed elements in
LoadViewState. Patch from Alois B��la��ka.
svn path=/branches/mono-1-0/mcs/; revision=35298
* regex.cs: Fixed a bug introduced with the last patch which
prevented any replacements when a postive count is given.
This also happens in all overloads without count parameter.
svn path=/branches/mono-1-0/mcs/; revision=35237
* XmlSerializationWriter.cs : When namespace is an empty string,
XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
such case.
svn path=/branches/mono-1-0/mcs/; revision=35147
* System.Text.RegularExpressions/regex.cs: in Replace, when count is
negative, replacement continues to the end of the string.
* Test/System.Text.RegularExpressions/RegexBugs.cs: added test for this
fix.
Fixes bug #68398. Patch by Jon Larimer.
svn path=/branches/mono-1-0/mcs/; revision=35111
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
is regatded as invalid. This fixes bug #68410. (Error message was
also not correct.)
svn path=/branches/mono-1-0/mcs/; revision=35045
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
is regatded as invalid. This fixes bug #68410. (Error message was
also not correct.)
svn path=/branches/mono-1-0/mcs/; revision=35046
* DataSet.cs : Also clear UnhandledAttributes ArrayList before
generating next attribute column schema. This fixes bug #68432.
svn path=/branches/mono-1-0/mcs/; revision=35044
methods as their native size, fixed bug #57543, #57545.
* mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
This saves a temporary register and mullw call down into 1 (minor perf
increase for cases like sum = sum * 5;
svn path=/branches/mono-1-0/mono/; revision=35040
* Iterator.cs :
- Added WrapperIterator to return BaseIterator in such case that
variable reference is resolved to XPathNodeIterator. This fixes
bug #68267.
- Path ".." is reverse axis (actually no effect).
- Fixed DescendantIterator.Clone() that missed "_finished" field.
* Expression.cs :
In ExprVariable.Evaluate(), use WrapperIterator() for custom
XPathNodeIterator.
svn path=/branches/mono-1-0/mcs/; revision=34997
* Socket.cs (Sockets ): Set Accept()ed socket blocking status to
be the same as the listening socket. This follows MS behaviour.
svn path=/branches/mono-1-0/mcs/; revision=34988
* sockets.c (_wapi_accept): Revert the previous change. We now
set the accepted socket to have the same blocking status as the
listening socket in managed code. This follows MS behaviour.
svn path=/branches/mono-1-0/mono/; revision=34986
* sockets.c (_wapi_accept): On Darwin, make sure a newly
accept()ed socket is blocking. Fixes bug 67355, patch by
[email protected].
svn path=/branches/mono-1-0/mono/; revision=34981
* DataSet.cs : clear UnhandledAttributes ArrayList before generating
next element column schema. This fixes bug #68256.
svn path=/branches/mono-1-0/mcs/; revision=34960
* DataSet.cs : DBNull attribute column should not be written as
empty attribute. This fixes bug #68007.
svn path=/branches/mono-1-0/mcs/; revision=34908
* DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
DataColumn.ReadOnly was not handled. This fixes bug #68005.
Attribute defaultValue was not handled too.
svn path=/branches/mono-1-0/mcs/; revision=34906
* System.Web/TraceContext.cs: don't cast to Page is the handler it's
not a page.
* System.Web.Configuration/WebConfigurationSettings.cs: use
CurrentExecutionFilePath instead of FilePath. Fixes bug #67982.
svn path=/branches/mono-1-0/mcs/; revision=34842
* DataSet.cs :
- When AllowDBNull is false on attribute DataColumn, its schema
should contain use="required". This fixes bug #66792.
- If MaxLength is set on attribute DataColumn, the mapped schema
type should contain maxLength facet. This fixes bug #66793.
svn path=/branches/mono-1-0/mcs/; revision=34793
* DateTime.cs : When it it not exact parse, 'Z' is allowed as a suffix
of m/s/t/z. This fixes bug 66723.
svn path=/branches/mono-1-0/mcs/; revision=34781
* DefaultWatcher.cs: if the file is removed between reading the
directory and filling the file info, catch the exception and ignore the
file. Fixes bug #59482.
svn path=/branches/mono-1-0/mcs/; revision=34768
* DefaultWatcher.cs: if the file is removed between reading the
directory and filling the file info, catch the exception and ignore the
file. Fixes bug #59482.
svn path=/trunk/mcs/; revision=34767
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
pattern has no wildcards. Fixes bug #67447.
svn path=/branches/mono-1-0/mcs/; revision=34766
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
pattern has no wildcards. Fixes bug #67447.
svn path=/trunk/mcs/; revision=34765
* icall.c (ves_icall_Type_GetInterfaces): Include interfaces
implemented by other interfaces in the result. Fixes#65764.
svn path=/trunk/mono/; revision=34761
* TraceHandler.cs: error code is 403 and the message different when
trace is enabled but not for remote clients.
svn path=/branches/mono-1-0/mcs/; revision=34751
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
changes when Transfer or Execute are used, not FilePath.
* System.Web/HttpServerUtility.cs: moved form saving/restoring from
Transfer to Execute, as it's needed there too. the query string is
correctly set now. Fixes bug #67388.
* System.Web/HttpContext.cs:
* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
instead of SetFilePath.
svn path=/branches/mono-1-0/mcs/; revision=34749
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
changes when Transfer or Execute are used, not FilePath.
* System.Web/HttpServerUtility.cs: moved form saving/restoring from
Transfer to Execute, as it's needed there too. the query string is
correctly set now. Fixes bug #67388.
* System.Web/HttpContext.cs:
* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
instead of SetFilePath.
svn path=/trunk/mcs/; revision=34747
* XPathSequence.cs, XQueryTokenizer.cs :
removed commented && unused code.
* XQueryContext.cs, XQueryCliFunction.cs, XQueryFunction.cs,
XQueryFunctionCliImpl.cs :
Now that position() requires current sequence that is not managed by
XQueryContextManager (that is for FLWOR), it need to support
XPathSequence input as the current node information.
svn path=/trunk/mcs/; revision=34741
* icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal):
Handle unloadable modules without crashing.
* image.c (load_modules): Revert the previous patch since modules must
have a fixed index inside the array.
svn path=/trunk/mono/; revision=34737
* ast.cs: added GetContainerFunction property.
* Statement.cs: added class NotVoidReturnEventArgs and delegate
NotVoidReturnEventHandler, throw an event in case we find a
return, the enclosing function object takes care of changing the
return type of the function.
* FunctionDeclaration.cs, FunctionExpression.cs: take care of
return's inside functions.
2004-09-22 Cesar Lopez Nataren <[email protected]>
svn path=/trunk/mcs/; revision=34736
* XPathAtomicValue.cs : missing Init() definition for float and string;
latter one resulted in infinite loop in Init(object,XmlSchemaType).
svn path=/trunk/mcs/; revision=34733
* XQueryParser.jay, XQueryTokenizer.cs :
Added attribute value template support.
* XPath2Expression.cs : Inside attribute value, expressions must not
serialize attributes as attribute node but should just pick value up.
e.g. attr="{foo/@bar}" and <elem>{foo/@bar}</elem> are different.
svn path=/trunk/mcs/; revision=34730
* PrincipalPermission.cs: Fixed bug where a change to a permission
(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
to clear existing entries.
svn path=/branches/mono-1-0/mcs/; revision=34725
* PrincipalPermission.cs: Fixed bug where a change to a permission
(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
to clear existing entries.
svn path=/trunk/mcs/; revision=34724
* XPathNavigatorReader.cs : Actually all other kind of nodes than
Element and Root must be treated as "start node only" as well as
attributes and namespaces.
svn path=/trunk/mcs/; revision=34718
* XPathDocument2Editable.cs : for WriteAttributes(), use
CreateAttributesWriter() that creates attribute tree XmlWriter.
* XPathNavigatorReader.cs : the reader was missing attributes when
it is created with an element node that has attriibutes.
svn path=/trunk/mcs/; revision=34717
* icall.c (ves_icall_MonoType_get_Namespace): Return NULL instead of
an empty string when a type has no namespace. Fixes#64230.
svn path=/trunk/mono/; revision=34711
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
SetInternal.
svn path=/branches/mono-1-0/mcs/; revision=34699
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
SetInternal.
svn path=/trunk/mcs/; revision=34698
* cs8205.cs: remove, same as cs1624
* cs8206.cs: fix yield syntax, and add line number, now passes
* cs8207.cs: remove, same as cs1623
* cs8208.cs: remove, same as cs1625
* cs8209.cs: remove, same as cs1631
svn path=/trunk/mcs/; revision=34695
* tabledefs.h: Added "internal" security actions to support non-CAS
permissions NonCasDemand, NonCasLinkDemand and NonCasInheritance.
Note: they do not seems to be used anymore in 2.0 (new metadata format)
svn path=/trunk/mono/; revision=34693
* XPathNavigator.cs : TypedValue could be implemented.
* XPathEditableNavigator.cs : removed some MonoTODO since now there
are implementations.
svn path=/trunk/mcs/; revision=34692
* XQueryParser.jay, XPath2Expression.cs, XPathSequence.cs :
two or more Filter expressions could be simply constructed as
nested FilterExpr objects.
svn path=/trunk/mcs/; revision=34691
* XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
For attribute nodes, it should not use WriteSubtree() which does not
support attribute nodes.
svn path=/trunk/mcs/; revision=34690
* XPathNavigatorReader.cs : It can reject attribute and namespace
nodes as its input (It is used only for WriteNode(), InsertBefore()
and so on, which are not intended to be used with attribute nodes).
On Initial state, it was Element that should check IsEmptyElement,
and Root should just go to the first child node.
svn path=/trunk/mcs/; revision=34689
* ecore.cs (Expression.Constantity): Add support for turning null
into a constant.
* const.cs (Const.Define): Allow constants to be reference types
as long as the value is Null.
svn path=/trunk/mcs/; revision=34687
* XPathNavigatorReader.cs : When the reader's root node is not of type
Root, it incorrectly skipped the node itself.
svn path=/trunk/mcs/; revision=34685
* HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
tunneling a secure connection.
* ServicePoint.cs: added UseConnect property.
* ServicePointManager.cs: set the UseConnect property when we use a http
proxy for a https connection.
* WebConnection.cs: setup the tunnled connection when using a proxy and
https.
svn path=/branches/mono-1-0/mcs/; revision=34684
* HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
tunneling a secure connection.
* ServicePoint.cs: added UseConnect property.
* ServicePointManager.cs: set the UseConnect property when we use a http
proxy for a https connection.
* WebConnection.cs: setup the tunnled connection when using a proxy and
https.
svn path=/trunk/mcs/; revision=34682
* namespace.cs (NamespaceEntry.Using): No matter which warning
level is set, check if this namespace name has already been added.
svn path=/branches/mono-1-0/mcs/; revision=34676
* namespace.cs (NamespaceEntry.Using): No matter which warning
level is set, check if this namespace name has already been added.
svn path=/trunk/mcs/; revision=34675
* DataSet.cs : For a row, when a relation is not nested, then it is
still output target since it won't be written as a child of its
parent. It fixes bug #66379.
svn path=/branches/mono-1-0/mcs/; revision=34671
* DataSet.cs : For a row, when a relation is not nested, then it is
still output target since it won't be written as a child of its
parent. It fixes bug #66379.
svn path=/trunk/mcs/; revision=34670
* class-internals.h (MonoGenericContainer): New type.
(MonoMethodNormal): Replaced `MonoGenericParam *gen_params' with
`MonoGenericContainer *generic_container'.
(MonoClass): Replaced `gen_params' and `num_gen_params' with
`MonoGenericContainer *generic_container'.
* metadata.c (mono_metadata_load_generic_params): Return a
`MonoGenericContainer *' instead of a `MonoGenericParam *';
removed the `num' argument.
svn path=/trunk/mono/; revision=34665
* system.c: check the number of online processors instead of the
existing ones. Sanitize return value if it's an error.
svn path=/trunk/mono/; revision=34650
Fix#67108
* attribute.cs: Enum conversion moved to
GetAttributeArgumentExpression to be applied to the all
expressions.
svn path=/trunk/mcs/; revision=34636
* AssemblyBuilderAccess.cs: Remove [Flags].
* PackingSize.cs: Add new 2.0 members. Remove [Flags].
* AssemblyBuilder.cs: Add net 2.0 Save method.
* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
net 2.0. Reorganize fields so the layout visible to the runtime is the
same under 1.0 and 2.0. Add 2.0 properties.
svn path=/trunk/mcs/; revision=34632
* icall.c (ves_icall_System_Reflection_Module_GetPEKind): Add support
for dynamic images.
* object-internals.h (MonoReflectionAssemblyBuilder): Add pe_kind and
machine fields.
* metadata-internals.h (MonoDynamicImage): Add pe_kind and machine fields.
* reflection.c: Save pe_kind and machine values into the generated
image file.
svn path=/trunk/mono/; revision=34631
* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
net 2.0. Reorganize fields so the layout visible to the runtime is the
same under 1.0 and 2.0. Add 2.0 properties.
svn path=/trunk/mcs/; revision=34628
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes): Return the
created MonoType for dynamic types. Fixes#66180.
svn path=/trunk/mono/; revision=34625
* threadpool.c: the ares hashtable needs a critical section around it.
this prevents some nasty segfaults
svn path=/branches/mono-1-0/mono/; revision=34623
* ssa.c: Fixed casts to unsigned where the value was of 64 bits in
simulate_long_compare.
* process.c: Fixed alignments to 32 bits (casting to unsigned is unsafe on
64 bits platforms).
svn path=/trunk/mono/; revision=34620
* *.cs: fix some incorrect tests by either addding a Main method,
or adding a -t:library compiler option. Makes one test pass, and adds
19 to *-expect-wrong-error as they compile when they shouldn't
* *mcs-expect-*-error: update
svn path=/trunk/mcs/; revision=34599
* Control.cs: even if the control has no children the naming container
may contain the control we're looking for. Fixes bug #67304.
svn path=/branches/mono-1-0/mcs/; revision=34594
* Control.cs: even if the control has no children the naming container
may contain the control we're looking for. Fixes bug #67304.
svn path=/trunk/mcs/; revision=34593
* class.c (TypeContainer.DefineType): Flag error if
base types aren't accessible due to access permissions.
* decl.cs (DeclSpace.ResolveType): Move logic to
Expression.ResolveAsTypeTerminal.
(DeclSpace.ResolveTypeExpr): Thin layer over
Expression.ResolveAsTypeTerminal.
(DeclSpace.CheckAccessLevel, DeclSpace.FamilyAccess):
Refactor code into NestedAccess. Use it.
(DeclSpace.NestedAccess): New.
* ecore.cs (Expression.ResolveAsTypeTerminal): Add new
argument to silence errors. Check access permissions.
(TypeExpr.DoResolve, TypeExpr.ResolveType): Update.
* expression.cs (ProbeExpr.DoResolve): Use ResolveAsTypeTerminal.
(Cast.DoResolve): Likewise.
(New.DoResolve): Likewise.
(InvocationOrCast.DoResolve,ResolveStatement): Likewise.
(TypeOf.DoResolve): Likewise.
* expression.cs (Invocation.BetterConversion): Return the Type of
the better conversion. Implement section 14.4.2.3 more faithfully.
(Invocation.BetterFunction): Make boolean. Make correspondence to
section 14.4.2.2 explicit.
(Invocation.OverloadResolve): Update.
(Invocation): Remove is_base field.
(Invocation.DoResolve): Don't use is_base. Use mg.IsBase.
(Invocation.Emit): Likewise.
svn path=/trunk/mcs/; revision=34585
* HttpResponse.cs: SuppressContent does not throw and clears all the
buffered output. Fixes bug #67213.
svn path=/branches/mono-1-0/mcs/; revision=34584
* Convert.cs: ConvertToBase* was not endian aware. Implemented EndianSwap
and swapping of all values before going into the BitConverter so that values
are returned with proper endianess.
svn path=/branches/mono-1-0/mcs/; revision=34580
* AttributeCollection.cs: support attributes inherited from the one
we want. Fixes bug #67088. Thanks to Sander Rijken.
svn path=/branches/mono-1-0/mcs/; revision=34579
* AttributeCollection.cs: support attributes inherited from the one
we want. Fixes bug #67088. Thanks to Sander Rijken.
svn path=/trunk/mcs/; revision=34578
* Convert.cs: ConvertToBase* was not endian aware. Implemented EndianSwap
and swapping of all values before going into the BitConverter so that values
are returned with proper endianess.
svn path=/trunk/mcs/; revision=34577
derived maps. This was done in IncludeMetadata, but this method is
not called by the xsd tool.
* XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
attribute for primitive types and arrays.
* XmlSchemaImporter.cs: Only export all object-derived maps if the
Object type is explicitly referenced by an element.
* XmlSerializationWriter.cs: Minor fix.
svn path=/trunk/mcs/; revision=34573
* expression.cs:
* ecore.cs:
Fix for resolution of event expression
when we have a AddHandler statement
like
AddHandler Me.E, AddressOf Me.EH
Submitted by Raja Harinath<[email protected]>
svn path=/trunk/mcs/; revision=34556
* Mono.Data.SqliteClient/Sqlite.cs added.
* Mono.Data.SqliteClient/SqliteDataAdapter.cs added.
* Mono.Data.SqliteClient/SqliteRowUpdatedEventArgs added.
* Mono.Data.SqliteClient/SqliteRowUpdatedEventHandler added.
* Mono.Data.SqliteClient/SqliteRowUpdatingEventArgs added.
* Mono.Data.SqliteClient/SqliteRowUpdatingEventHandler added.
* Mono.Data.SqliteClient/SqliteDataReader.cs GetSchemaTable fixed.
* All sources documented.
I submited a patch to SqliteClient, now Sqlite Data
Provider has full implemented, I think that the good
idea is describe this on release notes.
-Everaldo
svn path=/trunk/mcs/; revision=34544
'close' to the requested color, it avoids having to create a colormap.
Depending on the display this could mean the used color is slightly off
the desired color. Might have to change it to a more resource intensive
colormap approach, but it will work as a workaround to avoid red screens.
svn path=/trunk/mcs/; revision=34541
* threads.c: don't call mono_thread_detach() in start_wrapper(),
avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.
svn path=/branches/mono-1-0/mono/; revision=34538
* System.Web.Compilation/AspGenerator.cs: added OtherTags.
* System.Web.UI/ControlBuilder.cs: don't close server tags when we get
to a closing tag that is not applied to a server control. Fixes bug
#60323.
svn path=/trunk/mcs/; revision=34534
handle. Add a flag to check if we are on unix so we aren't calling
Environment.OSVersion.Platform all the time. Mad props to Peter
Bartok for this.
svn path=/trunk/mcs/; revision=34530
* RSAManaged.cs: KeySize is always a multiple of 8 bits (promotion to
a bigger size if required) to match MS implementation (and other
issues like SSL).
svn path=/trunk/mcs/; revision=34526
* marshal.c (mono_ftnptr_to_delegate): This method was improperly
attempting to marshal the delegate_trampoline as the method_addr.
This patch has a static hashtable of marshalled delegates so that
we can map delegate_trampoline addresses back to delegates. This
allows a delegate passed to managed code to be passed back into native
code. Fixes#67039
svn path=/trunk/mono/; revision=34521
IWebPart.cs: Added new property and removed extra property.
WebPart.cs: Corrected according to change in interface IWebPart.
svn path=/trunk/mcs/; revision=34510
* Each DrawXXX method for a control now is passed the object for the
control to be drawn in order to allow accessing any state the theme
might require
* ControlPaint methods for the theme now have a CP prefix to avoid
name clashes with the Draw methods for controls
* Every control now retrieves it's DefaultSize from the current theme
svn path=/trunk/mcs/; revision=34494
exception if it is cached. This avoids the automatic rethrowal of
the exception after the catch of the wrapper. Also check for pending
interruptions before calling the managed method. This is done using
the new method emit_thread_force_interrupt_checkpoint, since the
normal checkpoint method is ignored when running the invoke wrapper.
* object.c: If the abort exception is rethrown, set the abort_exc
field of the thread, so it will be rethrown aftere every catch.
* threadpool.c: Only run an interruption checkpoint if what has been
requested is a stop of the thread (aborts will be ignored).
* threads.c: By default, a thread will now never be interrumped while
running the runtime invoke wrapper (this ensures that runtime_invoke
will always return to the caller if an exception pointer is provided).
There is a new special method mono_thread_force_interruption_checkpoint()
to force an interruption checkpoint even if running a protected
wrapper, which is used by the same runtime invoke wrapper to do a check
at a safe point.
I'm leaving the ves_* rename for another patch ;-)
svn path=/trunk/mono/; revision=34489
* io.c (pipe_close_private): Fix one small typo in the last change
that totally hosed process creation with redirected pipes.
svn path=/branches/mono-1-0/mono/; revision=34485
* io.c (pipe_close_private): Fix one small typo in the last change
that totally hosed process creation with redirected pipes.
svn path=/trunk/mono/; revision=34484
* Makefile (TEST_EXCLUDES_common): Remove 'module-3'.
(TEST_SOURCES_win32): Rename from WINDOWS_SOURCES.
(TEST_NOPASS): Comment out tests that already are in
TEST_SOURCES_common.
svn path=/trunk/mcs/; revision=34483
which releases the cctor locks held by a thread.
* threads.c, threads.h: In thread_cleanup, release cctor locks held
by a thread. Added mono_thread_exit() method to be used to safely stop
a thread.
svn path=/trunk/mono/; revision=34481
* GenericTypeParameterBuilder.cs
(GenericTypeParameterBuilder.ContainsGenericParameters): Return
true here; System.Type.ContainsGenericParameters returns true when
called on a type parameter, so let's do the same here.
svn path=/trunk/mcs/; revision=34464
* generic.cs
(GenericConstraints.EffectiveBaseClass): New public property.
(TypeParameter.GenericConstraints): New public property.
(ConstructedType.CheckConstraints): Improved.
* convert.cs (Convert.TypeParam_EffectiveBaseType): New private method.
(Convert.TypeParameterConversion): New private method; use this in
ImplicitReferenceConversion() and ImplicitReferenceConversionExists()
for all conversions related to type parameters.
svn path=/trunk/mcs/; revision=34463
* driver.c mini.h trace.c: Move the setting of the main assembly into
a separate function called mono_trace_set_assembly () and call it after
actually loading the main assembly. Fixes#66872.
svn path=/trunk/mono/; revision=34453
* Convert.cs: ToType was returning unconverted object when it should
fail with an ArgumentException.
* ConvertTest.cs: Ensure ToType() fails with an ArgumentException in
a case where is cannot convert.
svn path=/branches/mono-1-0/mcs/; revision=34439
(NEW_TEST_SOURCES_common): Rename from NEW_TEST_SOURCES.
(TEST_SOURCES_common): Rename from TEST_SOURCES.
(TEST_SOURCES_all): Rename to ALL_TEST_SOURCES. Handle profile- and
platform-specific test inclusion and exclusion.
(TEST_SOURCES_default, TEST_SOURCES_net_2_0, TEST_EXCLUDES_common)
(TEST_EXCLUDES_net_2_0): New. Reorganized from various other variables.
(TEST2_SOURCES, UNSAFE_SOURCES): Remove. Merge into TEST_SOURCES_common.
(test-2, test-unsafe-compiler-jit): Remove. Merge into test-compiler-jit.
* 2tests-*.cs, unsafe-*.cs, test-58.cs, test-171.cs:
Add 'Compiler options: '.
svn path=/trunk/mcs/; revision=34432
the profile being tested.
(nunit-$(PROFILE).stamp): Rename from nunit.stamp.
* config-default.make (TEST_HARNESS): Look for 'nunit-console' in
profile-specific directory.
svn path=/trunk/mcs/; revision=34428
* FieldInfo.cs: Add support for returning MarshalAsAttribute.
* ParameterInfo.cs: Add marshalAs field, add support for returning
MarshalAsAttribute.
svn path=/trunk/mcs/; revision=34416
* reflection.c (mono_param_get_objects): Fill out MarshalAsImpl field.
* reflection.c (mono_reflection_marshal_from_marshal_spec): New
function to convert a MarshalSpec structure to its managed counterpart.
* reflection.c: Fix warnings.
* object-internals.h (MonoReflectionParameter): Add MarshalAsImpl
field.
svn path=/trunk/mono/; revision=34414
* Npgsql/NpgsqlDataReader.cs:
GetBytes: Added a little fix for proper handling of getbytes with current Npgsql semantics in mind. For while, we just support offset value of 0 as we
read all the bytes field value at a time. So there is no copy when offset is not 0.
svn path=/trunk/mcs/; revision=34406
* Npgsql/NpgsqlCommand.cs:
ReplaceParameterValue: Fixed parameter replace when next byte after parameter name is '\\r'. Thanks Ivan Radovanovic rivan at sezampro dot yu for the fix.
GetParseCommandText: Added a workaround to have some queries which are giving parameter type problems. Thanks Martin ( martijn at boland dot org) for bug report.
svn path=/trunk/mcs/; revision=34395
* HttpApplication.cs: Make sure requests are removed from
the timeout manager. Fixes a major leak. #66751.
svn path=/branches/mono-1-0/mcs/; revision=34388
* object-internals.h (MonoReflectionDllImportAttribute): New structure.
* icall.c: Add new icalls for GetDllImportAttribute and GetFieldOffset.
svn path=/trunk/mono/; revision=34376
* wapi-private.h:
* sockets.c:
* socket-private.h:
* io.c:
* io-private.h:
* handles-private.h: Cope when a file descriptor is reused while
the handle that thought it owned it is still referenced, instead
of asserting. Probably fixes bug 66479, though we've been unable
to reproduce it.
svn path=/trunk/mono/; revision=34366
* wapi-private.h:
* sockets.c:
* socket-private.h:
* io.c:
* io-private.h:
* handles-private.h: Cope when a file descriptor is reused while
the handle that thought it owned it is still referenced, instead
of asserting. Probably fixes bug 66479, though we've been unable
to reproduce it.
svn path=/branches/mono-1-0/mono/; revision=34365
* ContentType.cs: Implement initial support for the ClientHelloV2 message.
* RecordProtocol.cs: Implement initial support for the ClientHelloV2 message.
svn path=/trunk/mcs/; revision=34360
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.
svn path=/branches/mono-1-0/mcs/; revision=34354
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.
svn path=/trunk/mcs/; revision=34346
* convert.cs (Convert.ImplicitReferenceConversion): Added implicit
type parameter conversions for type parameters which are known to
be reference types.
svn path=/trunk/mcs/; revision=34332
* generic.cs (GenericConstraints): Added `IsReferenceType' and
`IsValueType' properties.
* support.cs (ReflectionConstraints): Use
Type.GetGenericParameterConstraints() instead of the old hack.
svn path=/trunk/mcs/; revision=34328
* generic.cs (ReflectionConstraints): Moved here and made it an
abstract class.
* support.cs (ReflectionConstraints): Moved to generic.cs.
svn path=/trunk/mcs/; revision=34327
* support.cs
(ReflectionConstraints): Un-nested this class and made it public.
* typemanager.cs
(TypeManager.GetTypeParameterConstraints): New public method.
(TypeManager.HasConstructorConstraint): Use the attributes.
svn path=/trunk/mcs/; revision=34326
* support.cs (GenericConstraints): Replaced `HasConstructor',
`IsReferenceType' and `IsValueType' with `Attributes'.
(ReflectionParameters.ReflectionConstraints): Removed the Create()
method and made the .ctor public.
* generic.cs (Constraints.Attributes): New public property.
(Constraints): Renamed `HasConstructor' -> `HasConstructorConstraint',
`IsReferenceType' -> `HasReferenceTypeConstraint' and
`IsValueType' -> `HasValueTypeConstraint'.
svn path=/trunk/mcs/; revision=34325
* NpgsqlTypes/NpgsqlTypesHelper.cs:
ConvertToBackend: Added support for System.Enum types. Now enumerated types can be used correctly as a paramater value. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34322
* appdomain.c:
(mono_domain_set): allow setting a domain that is being unloaded.
(mono_domain_unload): invoke the DomainUnload callbacks in the domain
being unloaded.
svn path=/branches/mono-1-0/mono/; revision=34320
* HttpApplicationFactory.cs:
* HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
unloading.
svn path=/branches/mono-1-0/mcs/; revision=34319
* appdomain.c:
(mono_domain_set): allow setting a domain that is being unloaded.
(mono_domain_unload): invoke the DomainUnload callbacks in the domain
being unloaded.
svn path=/trunk/mono/; revision=34315
* expression.cs (LocalVariableReference.DoResolveLValue):
Do not report warning 219 for out values.
(EmptyExpression.Null): New member to avoid extra allocations.
* rootcontext.cs: Warning 4 is back.
svn path=/trunk/mcs/; revision=34312
* MonoCustomAttrs.cs (GetCustomAttributes): Rename the icall to
GetCustomAttributesInternal and add a 'pseudoAttrs' argument.
svn path=/trunk/mcs/; revision=34309
* GenericTypeParameterBuilder.cs
(GenericTypeParameterBuilder.SetGenericParameterAttributes): New
public method, replaces the old Mono_* hacks.
svn path=/trunk/mcs/; revision=34300
* cs-parser.jay: Fix wrong warning 642 report.
* cs-tokenizer.cs (CheckNextToken): New helper;
Inspect next character if is same as expected.
svn path=/trunk/mcs/; revision=34297
* TlsClientKeyExchange.cs: Removed .Clear call on private key as itn't
ours (but only a reference). It also requires the callback to recreate
a new key object each time (which is worse). This also implies that
the caller (implementing the callback) is responsible to clear it.
svn path=/trunk/mcs/; revision=34291
* AssemblyInfo.cs: Updated version to 1.0.3 for next stable release.
* MakeCert.cs: Hack for date parsing problem with Mono.
svn path=/branches/mono-1-0/mcs/; revision=34281
The MethodBase in the message may not be the same type of the object
(the method can be called using an interface).
svn path=/trunk/mcs/; revision=34280
* AssemblyInfo.cs: Updated version to 1.1.2 for next release.
* MakeCert.cs: Hack for date parsing problem with Mono.
svn path=/trunk/mcs/; revision=34279
- Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
RemoveOwnedForm (still incomplete, missing on-top and common
minimize/maximize behaviour)
- Added StartPosition property (still incomplete, does not use when
creating the form)
- Added ShowDialog() methods (still incomplete, missing forcing the dialog
modal)
svn path=/trunk/mcs/; revision=34260
will reference the object being created).
* StackBuilderSink.cs: Take into account the forceInternalExecute
parameter.
svn path=/trunk/mcs/; revision=34255
specify that messages must be dispatched to the target object using
InternalExecute. Usually if the target is a proxy, the sink uses
RealProxy.Invoke to dispatch the method. This can't be done for local
CBOs since we would loop for ever.
svn path=/trunk/mcs/; revision=34253
message. In CreateInstanceFromMessage if the object being created
is a CBO, use the provided proxy as "this" when calling the ctor.
svn path=/trunk/mcs/; revision=34252
of MonoMethod, so it can be also used for running constructors.
* ServerIdentity.cs: Added methods for getting and setting the client
proxy in ClientActivatedIdentity. This is needed for CBOs, since
messages need to be dispatched using the proxy as "this", not the
real object.
svn path=/trunk/mcs/; revision=34251
* typemanager.cs (TypeManager.LookupGenericTypeContainer): New
public method; like LookupTypeContainer, but also works for
generic instances.
* report.cs (Report.SymbolRelatedToPreviousError): Use
TypeManager.LookupGenericTypeContainer().
svn path=/trunk/mcs/; revision=34240
* class.cs (TypeContainer.HasExplicitLayout): New property
Returns whether container has StructLayout attribute set Explicit.
(FieldMember): New abstract class for consts and fields.
(FieldMember.ApplyAttributeBuilder): Add error 636 and 637 report.
(Field): Reuse FieldMember.
* const.cs (Const): Reuse FieldMember.
* rootcontext.cs: EmitConstants call moved to class.
svn path=/trunk/mcs/; revision=34239
Thanks to Peter Sestoft for this bug report.
* expression.cs (Conditional): If both the `trueExpr' and the
`falseExpr' is a NullLiteral, return a NullLiteral.
svn path=/trunk/mcs/; revision=34237
* statement.cs (Foreach.EmitCollectionForeach): If we're in an
iterator, use `enumerator.EmitThis()' instead of `ec.EmitThis()'
for the "get_Current" call.
svn path=/trunk/mcs/; revision=34231
* SequenceType.cs : return TypedValue instead of null in case of
XPathNavigator.
* XPath2Expression.cs : now FunctionCallExpr also handles evaluation.
* XPathSequence.cs : rewrote FLWORIterator to iterate forlet
expressions based on index.
svn path=/trunk/mcs/; revision=34223
Marek and me just fixed one of our oldest bugs: #28562 :-)
* ecore.cs (EnumConstant.GetValueAsEnumType): New public method.
* attribute.cs (Attribute.GetAttributeArgumentExpression): If
we're an EnumConstant, just return that.
(Attribute.Resolve): GetAttributeArgumentExpression() may give us
an EnumConstant. In this case, we need to use GetValueAsEnumType()
to get the value which'll actually be written into the attribute.
However, we have to use GetValue() to access the attribute's value
in the compiler.
svn path=/trunk/mcs/; revision=34221
* reflection.c (mono_reflection_setup_internal_class): If we're
System.ValueType, System.Object or System.Enum, set
`klass->instance_size' and create the vtable.
(mono_reflection_create_internal_class): If we're an enum type,
get the base class from our current corlib.
svn path=/trunk/mono/; revision=34214
* reflection.h (MonoResolveTokenError): New type.
* icall.c (ves_icall_System_Reflection_Module_ResolveMemberToken): New
icall.
* icall.c: Add an 'error' argument to the ResolveToken icalls.
svn path=/trunk/mono/; revision=34210
* RandomTest.cs: Commented test CompareWithMS following constants
changes in Mono implementation (to use Knuth's constants).
svn path=/trunk/mcs/; revision=34209
2004-09-17 Geoff Norton <[email protected]>
* reflection.c (type_get_qualified_name): If the klass is null
return the typename to avoid a NullRefEx.
(encode_cattr_value): Get the qualified name of the boxed type,
not the underlying enumtype. Fixes#62984.
svn path=/trunk/mono/; revision=34175
* codegen.cs (VariableStorage): Don't store the ILGenerator here;
if we're used in an iterator, we may be called from different
methods.
* statement.cs (Foreach.EmitFinally): Only emit an `Endfinally' if
we actually have an exception block.
svn path=/trunk/mcs/; revision=34171
* marshal.h marshal.c icall.c: Add new icalls for Alloc/FreeHGlobal. Change the
existing mono_marshal_alloc/free functions to use CoTaskMemAlloc/Free under windows.
* marshal.c: Allocate marshaller memory using mono_marshal_alloc/free.
svn path=/trunk/mono/; revision=34164
* mb-parser.jay: Fixed bug #66231 -
Now, Me.SubName, MyBase.SubName or any other qualified name
is supported by AddressOf operator
svn path=/trunk/mcs/; revision=34162
when reading a primitive value in encoded format using
ReadReferencingElement, provide the type name and namespace
since the xsi type may not be present in the xml element. This
fixes bug #65929.
svn path=/trunk/mcs/; revision=34157
Build 'mscorlib.dll' using the 'net_2_0_bootstrap' profile.
(net20bootstrapSystem): New. Build 'System.dll' using the
'net_2_0_bootstrap' profile.
($(gmcs)): Depend on both the above.
(CLEAN_FILES) [PROFILE=net_2_0]: Clean the 'net_2_0_bootstrap'
profile and 'gmcs' too.
svn path=/trunk/mcs/; revision=34154
net_2_0_bootstrap libraries if necessary.
($(the_lib)): Don't depend on a phony target. Move 'echo-warning' ...
(all-local): ... here. Will now warn unnecessarily, but is better
than rebuilding the library each time.
svn path=/trunk/mcs/; revision=34153
* icall.c (ves_icall_MonoType_GetElementType): GetElementType
should only return a type for pointers, arrays, and passbyref types.
Fixes bug #63841.
svn path=/trunk/mono/; revision=34147
* convert.cs (Convert.ImplicitReferenceConversion): When
converting to an interface type, first check whether we're
converting from a reference type.
svn path=/trunk/mcs/; revision=34138
Break inherit, checks the label stuff. Added checks for Label
stuff to Continue and Break classes. Added method Init for
DoWhile. Fixes for loops statements in order to be able for have
nested loops. Initial support for Label statements.
svn path=/trunk/mcs/; revision=34121
class Binary. Semantic Analysis for Calls it takes care of
constructors and methods, added invocation code for built in
methods. Added interface IAccesible that let us resolve the '.'
operator. Class Args handles missing or surplus arguments. Added
class BuiltIn which will take care of all builtins of ECMAScript.
svn path=/trunk/mcs/; revision=34118
* domain.c (mono_debugger_check_runtime_version): New public
function.
* icall.c (ves_icall_MonoDebugger_check_runtime_version): New icall.
svn path=/trunk/mono/; revision=34112
* AssemblyBuilder.cs: Fixed assembly-level permissions. I don't know
why I splitted them all into individual entries when only a single set
is accepted for each security action :(.
svn path=/trunk/mcs/; revision=34103
* reflection.c: Added missing sort to the declarative security
attributes table. MS implementation stops seeing the attributes if the
token number regress in the table (as shown by ildasm and permview).
svn path=/trunk/mono/; revision=34091
* class.cs, cs-parser.jay: Improve the error report for 1520:
report the actual line where the error happens, not where the
class was declared.
svn path=/trunk/mcs/; revision=34088
* assign.cs, delegate.cs, ecore.cs, expression.cs, statement.cs:
Pass location information that was available elsewhere.
svn path=/trunk/mcs/; revision=34087
* object-internals.h (MonoReflectionModule): Add 'token' field.
* reflection.c (mono_reflection_get_token): Add support for Module
and Assembly.
(mono_module_get_object): Set 'token' field.
(mono_module_file_get_object): Set 'token' field.
* icall.c: Add new Assembly and Module icalls.
svn path=/trunk/mono/; revision=34083
* CodeGroup.cs: Changed AddChild() to add a copy of the child, like
the MS implementation.
* UnionCodeGroup.cs: Resolve() will now perform union on child code
groups.
* FileCodeGroup.cs: Resolve() will now perform union on child code
groups.
* NetCodeGroup.cs: Resolve() will now perform union on child code
groups.
svn path=/trunk/mcs/; revision=34075
* loader.h loader.c class.h class.c: Add helper functions for obtaining
tokens of metadata objects.
* reflection.h reflection.c (mono_reflection_get_token): New function
to obtain the token of a metadata object.
* icall.c: Add icalls for MetadataToken and ModuleHandle methods.
svn path=/trunk/mono/; revision=34065
* Console.cs: Use the internal wrappers for StreamReader and
StreamWriter that catch IOException.
2004-09-19 Dick Porter <[email protected]>
* UnexceptionalStreamWriter.cs:
* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
StreamReader that catch IOException. Used by System.Console so
that graphical applications dont get IO errors when their
stdin/out/err vanishes (ie when they spew debug output.)
svn path=/branches/mono-1-0/mcs/; revision=34064
* Console.cs: Use the internal wrappers for StreamReader and
StreamWriter that catch IOException.
2004-09-19 Dick Porter <[email protected]>
* UnexceptionalStreamWriter.cs:
* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
StreamReader that catch IOException. Used by System.Console so
that graphical applications dont get IO errors when their
stdin/out/err vanishes (ie when they spew debug output.)
svn path=/trunk/mcs/; revision=34062
* DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
hence, adding a row cache is necessary if the original row happens to be current.
fixed bug #63097
svn path=/trunk/mcs/; revision=34061
* Npgsql/NpgsqlCommand.cs:
GetClearCommandText: Fixed an infinite loop when trying to use a parameter whose name is equals to same type name.
i.e.: parameter name :text which would conflict with :text parameter name which was being added in the replacement string.
* NpgsqlTypes/NpgsqlTypeConverters.cs:
BasicNativeToBackendTypeConverter.ToString: Fixed handling of strings with backslashes. Now they are properly escaped.
svn path=/trunk/mcs/; revision=34050
* NpgsqlCommand.cs,
NpgsqlConnector.cs: Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34038
* NpgsqlCommand.cs,
NpgsqlConnector.cs: Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34037
* ASN1.cs: In synch with corlib version. Fixed all level 4 compilation
warnings.
* PKCS7.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
svn path=/trunk/mcs/; revision=34011
* CryptoConvert.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
* KeyPairPersistence.cs: In synch with corlib version. Fixed all level
4 compilation warnings.
* PKCS1.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
* SHA224Managed.cs: Fixed all level 4 compilation warnings.
svn path=/trunk/mcs/; revision=34010
* Mono.Security.dll.sources: Added support for SHA224 hash algorithm
in Mono.Security.Cryptography.
* Mono.Security_test.dll.sources: Added unit tests for SHA224 hash
algorithm.
svn path=/trunk/mcs/; revision=34006
* SHA224.cs: New. Abstract class for all SHA224 implementations.
* SHA224Managed.cs: New. Managed implementation of SHA224 (a SHA256
derivate) as specified in RFC3874 and FIPS 180-2 Change Notice.
svn path=/trunk/mcs/; revision=34005
* SHA224ManagedTest.cs: New. Unit tests for the managed implementation
of SHA-224.
* SHA224Test.cs: New. Unit tests for SHA-224. Use test vectors from
RFC3874.
svn path=/trunk/mcs/; revision=34004
* Font.cs (FromHfont, ToHfont): Fixed windows implementation.
ToLogFont: Implemented.
* gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
avoid casts.
GdipCreateFontFromLogfontA: A new extern call.
svn path=/trunk/mcs/; revision=34002
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.
svn path=/branches/mono-1-0/mcs/; revision=33998
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.
svn path=/trunk/mcs/; revision=33997
* ASN1.cs: Fixed warning (l4) for unused variable.
* PKCS7.cs: Fixed warning (l4) for unused variable.
* Uri.cs: Fixed warning (l4) for unused variables. Remove sealed from
class to reduce number of warnings.
svn path=/trunk/mcs/; revision=33990
* AssemblyBuilder.cs: Keep a copy of the 3 permission set as an array
of RefEmitPermissionSet. This will allow to reuse existing
functionalities already present in the runtime.
svn path=/trunk/mcs/; revision=33984
* appdomain.c: Bumped MONO_CORLIB_VERSION to 25.
* object-internals.h: Added 3 MonoArray* members to MonoReflection
AssemblyBuilder to access the permissions set in the class lib.
* reflection.c: Added security attributes encoding step in
mono_image_build_metadata.
svn path=/trunk/mono/; revision=33983
* dump.c: Added new security actions added in 2.0: LinkDemandChoice,
InheritanceDemandChoice and DemandChoice.
* main.c: Added ".permissionset" to output IL. Removed "hassecurity"
as MS ilasm can't compile it.
svn path=/trunk/mono/; revision=33974
* tabledefs.h: Added new security actions defined in 2.0:
LinkDemandChoice, InheritanceDemandChoice and DemandChoice.
svn path=/trunk/mono/; revision=33973
finalized. There where random SIGSEVs at program termination, when
an object being finalized was trying to do a string comparison and
the current culture was already finalized.
svn path=/branches/mono-1-0/mono/; revision=33968
finalized. There where random SIGSEVs at program termination, when
an object being finalized was trying to do a string comparison and
the current culture was already finalized.
svn path=/trunk/mono/; revision=33967
* BuiltInDatatype.cs, SchemaDataValueType.cs :
ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
XmlSchemaUri, but it is derived from System.Uri, while ours was not.
svn path=/branches/mono-1-0/mcs/; revision=33964
* BuiltInDatatype.cs, SchemaDataValueType.cs :
ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
XmlSchemaUri, but it is derived from System.Uri, while ours was not.
svn path=/trunk/mcs/; revision=33963
Fixed bug #55780
* ecore.cs (PropertyExpr.FindAccessors): Do not perform
deep search when property is not virtual.
(PropertyExpr.ResolveAccessors): Make one call for both
accessors.
svn path=/trunk/mcs/; revision=33956
* Syscall.cs: Added method for getpwnam which uses Passwd
struct.
* macros.c: Helper function for getpwnam
(In committing, Josh Tauberer also added getpwuid.)
svn path=/trunk/mono/; revision=33955
* Syscall.cs: Added method for getpwnam which uses Passwd
struct.
* macros.c: Helper function for getpwnam
(In committing, Josh Tauberer also added getpwuid.)
svn path=/trunk/mcs/; revision=33955
* Npgsql/NpgsqlRowDescription.cs:
FieldIndex: Really added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
svn path=/trunk/mcs/; revision=33950
ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
* XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
ImportIncludedTypes to the end, to make sure that the current map has all
needed data before derived maps are constructed.
* XmlSchemaExporter.cs: Generate the base class of simple types that are
not primitive types. Set the correct value for IsMixed in extended types.
* XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
the base class of a simple type doesn't need to be a xsd type.
All those patches fix bug #65654
svn path=/trunk/mcs/; revision=33935
* System.Data_test.dll.sources: Added OdbcPermission, OleDbPermission
and SqlClientPermission unit tests to the build.
svn path=/trunk/mcs/; revision=33931
* ChangeLog: New.
* OraclePermission.cs: Adapted to work for both Fx 1.1 and 2.0. Fx 1.1
version isn't complete (as anyway it requires FullTrust on MS
implementation) but DO NOT throw exceptions (for the security engine).
* OraclePermissionAttribute.cs: Implemented CreatePermission. Adapted
to work for both Fx 1.1 and 2.0.
svn path=/trunk/mcs/; revision=33913
* Npgsql/NpgsqlRowDescription.cs:
FieldIndex: Added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
svn path=/trunk/mcs/; revision=33910
* reflection.h: add prototype for mono_get_dbnull_object
* reflection.c: add prototypes for get_default_param_value_blobs
and mono_get_object_from_blob for fussier compilers
svn path=/trunk/mono/; revision=33907
* SqlClientPermission.cs: Added internal constructor accepting an Sql
ClientPermissionAttribute parameter (using base class protected ctor).
* SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
Permission constructor.
svn path=/trunk/mcs/; revision=33905
* OleDbPermission.cs: Added internal constructor accepting an OleDb
PermissionAttribute parameter (using base class protected ctor).
Re-added the Provider property (removed by error).
* OleDbPermission.cs: Copy now use the new OleDbPermission
constructor. Re-added the Provider property (removed by error).
svn path=/trunk/mcs/; revision=33904
* OdbcPermission.cs: Added internal constructor accepting an Odbc
PermissionAttribute parameter (using base class protected ctor).
* OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
constructor.
svn path=/trunk/mcs/; revision=33903
* DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
Implementation isn't complete as the restrictions seems to change the
expected results (breaking some rules like x.IsSubsetOf (x) == false).
Better (real-world) tests cases are required.
* PermissionHelper.cs: Fixed small differences between System.Data.dll
validations wrt to mscorlib.dll (XML and PermissionState).
svn path=/trunk/mcs/; revision=33902
Fixed bug #61902
* codegen.cs (TestObsoleteMethodUsage): Trace when method is
called and is obsolete then this member suppress message
when call is inside next [Obsolete] method or type.
* expression.cs: Use TestObsoleteMethodUsage member.
svn path=/trunk/mcs/; revision=33886
* UtilsTest.cs: upgraded to use nunit Assert class, also corrected testing for null that
was giving an exception when run.
svn path=/trunk/mcs/; revision=33881
* class.cs: Set default constant value for optional parameters in ParameterBuilder
* parameter.cs: Setting optional attribute
These two fixes makes sure that optional parameter with default value get emitted correctly
svn path=/trunk/mcs/; revision=33866
reduce the number of passes. We will get the assemblies signed in
the 'populate-runtime-subdir' phase.
(mcs-do-run-test-profiles): Rename from mcs-do-run-tests. Use
'test-profiles' to test all profiles.
(mcs-do-compiler-tests): Use 'compiler-tests' target in mcs/.
(bootstrap-check): Update.
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Simplify.
svn path=/trunk/mono/; revision=33859
assemblies for separate profiles.
(dist-local): Don't copy files beginning with '../'.
* rules.make (dist-default): Handle any of Makefile, makefile, or
GNUmakefile being present.
* profiles/net_2_0.make (TEST_RUNTIME): Don't define.
svn path=/trunk/mcs/; revision=33854
(test-profiles, run-test-profiles): New targets.
(test-compiler): Rename to ...
(compiler-tests): ... this. Run tests on all profiles.
svn path=/trunk/mcs/; revision=33853
Control.cs: Added new attributes and a method.
FilterableAttribute.cs: New attribute, initial implementation.
ThemeableAttribute.cs: New attribute, initial implemenataion.
svn path=/trunk/mcs/; revision=33842
* Makefile: Added /nowarn:618 when compiling unit test assembly to
remove nunit obsolete warnings.
* System.Data.dll.sources: Added System.Data.Common.DbConnectionOptions
(NET_2_0) and System.Data.Common/PermissionHelper to the build.
* System.Data_test.dll.sources: Added {DBData|Odbc|OleDb|SqlClient}
PermissionAttribute unit tests to the build.
svn path=/trunk/mcs/; revision=33833
* DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
to support new methods in DBDataPermission.
* DbConnectionString.cs: Updated class to split from/inherit
DbConnectionOptions class.
* DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
completed constructors.
* DbDataPermissionAttribute.cs: Completed/fixed class.
* PermissionHelper.cs: Helper methods to create permission classes.
svn path=/trunk/mcs/; revision=33828
* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
token before writing out the method index, since the "index" used
elsewhere is just added to the MethodIndexOffset.
svn path=/trunk/mcs/; revision=33819
Backported my MemberName changes from GMCS into MCS.
- we are now using a special `MemberName' class instead of using
strings; in GMCS, the `MemberName' also contains the type
arguments.
- changed the grammar rules a bit:
* the old `member_name' is now a `namespace_or_type_name':
The rule is that we use `namespace_or_type_name' everywhere
where we expect either a "member name" (GetEnumerator) or a
"member name" with an explicit interface name
(IEnumerable.GetEnumerator).
In GMCS, the explicit interface name may include type arguments
(IEnumerable<T>.GetEnumerator).
* we use `member_name' instead of just `IDENTIFIER' for
"member names":
The rule is that we use `member_name' wherever a member may
have type parameters in GMCS.
* decl.cs (MemberName): New public class.
(MemberCore.MemberName): New public readonly field.
(MemberCore.ctor): Take a `MemberName' argument, not a string.
(DeclSpace): Likewise.
* delegate.cs (Delegate.ctor): Take a MemberName, not a string.
* enum.cs (Enum.ctor): Likewise.
* namespace.cs (AliasEntry.Alias): Changed type from Expression to
MemberName.
(AliasEntry.ctor): Take a MemberName, not an Expression.
(AliasEntry.UsingAlias): Likewise.
* class.cs (TypeContainer.ctor): Take a MemberName, not a string.
(IMethodData.MemberName): Changed type from string to MemberName.
(MemberBase.ExplicitInterfaceName): Likewise.
(AbstractPropertyEventMethod.SetupName): Make this private.
(AbstractPropertyEventMethod.ctor): Added `string prefix'
argument; compute the member name here.
(AbstractPropertyEventMethod.UpdateName): Recompute the name based
on the `member.MemberName' and the `prefix'.
* cs-parser.jay (attribute_name): Use `namespace_or_type_name',
not `type_name'.
(struct_declaration): Use `member_name' instead of `IDENTIFIER';
thus, we get a `MemberName' instead of a `string'. These
declarations may have type parameters in GMCS.
(interface_method_declaration, delegate_declaration): Likewise.
(class_declaration, interface_declaration): Likewise.
(method_header): Use `namespace_or_type_name' instead of
`member_name'. We may be an explicit interface implementation.
(property_declaration, event_declaration): Likewise.
(member_name): This is now just an `IDENTIFIER', not a
`namespace_or_type_name'.
(type_name, interface_type): Removed.
(namespace_or_type_name): Return a MemberName, not an Expression.
(primary_expression): Use `member_name' instead of `IDENTIFIER';
call GetTypeExpression() on the MemberName to get an expression.
(IndexerDeclaration.interface_type): Changed type from string to
MemberName.
(MakeName): Operate on MemberName's instead of string's.
svn path=/trunk/mcs/; revision=33810
* namespace.cs (AliasEntry.Resolve): Implement section 16.3.1.
(NamespaceEntry.Lookup): Add new argument to flag if we want the
lookup to avoid symbols introduced by 'using'.
* rootcontext.cs (NamespaceLookup): Update.
svn path=/trunk/mcs/; revision=33801
* XPathAtomicValue.cs : All .ctor() are separeted from Init().
In .ctor(object, XmlSchemaType):
- For lists that contains just one item, Init() recursively.
- For XPathAtomicValue, Init() recursively for its content fields.
For Value and TypedValue, consider typecode from XmlSchemaType.
svn path=/trunk/mcs/; revision=33790
* SequenceType.cs, XPath2Expression.cs :
Added SequenceType.IsNumeric(XmlTypeCode).
In type comparison, untyped XPathNavigator is xdt:untypedAtomic
(not sure as yet if it is always correct.)
* XQueryComparisonOperator.cs : rewrote all numeric comparison using
IsNumeric().
svn path=/trunk/mcs/; revision=33789
* AppDomain.cs: added SetupInformationNoCopy property, since
SetupInformation creates a copy now, all updates to it should use the
actual data. Fixes bug #61991 take 2.
svn path=/trunk/mcs/; revision=33788
* RadioButton.cs: fix GroupName when the control is inside a
NamingContainer different from Page. Closes bug #65586.
svn path=/branches/mono-1-0/mcs/; revision=33787
* RadioButton.cs: fix GroupName when the control is inside a
NamingContainer different from Page. Closes bug #65586.
svn path=/trunk/mcs/; revision=33786
* XPath2Expression.cs : ComparisonExpr.CompareAtomic() should consider
spec-conformant untypedAtomic handling.
* XQueryContext.cs : Variables were incorrectly added to the older
context. Fixed Context and ContextManager constructors that were
in silly chicken-and-egg.
* XPathSequence.cs : now Context property always returns current
XQuery context (will be fixed; it is workaround for variable
resolution). In For iteration, context sequence should vary.
* XQueryComparisonOperator.cs : All value comparison failed to return
true when both operands are the same types.
* XsltCommand.cs : use XmlWriter.Create().
svn path=/trunk/mcs/; revision=33769
* CADMessages.cs: get rid of method / type name, it is not needed
* MethodCall.cs: lazily init method / type name.
* ReturnMessage.cs: lazily init method / type name, sig.
svn path=/trunk/mcs/; revision=33765
* RemotingServices.cs: use MethodBase rather than looking
for the method ourselves. It has higher perf in x-ad calls.
svn path=/trunk/mcs/; revision=33764
* System_test.dll.sources: Added unit tests for System.Diagnostics.
EventLogPermission and PerformanceCounterPermission.
svn path=/trunk/mcs/; revision=33763
* EventLogPermissionTest.cs: New. Unit tests for EventLogPermission.
* PerformanceCounterPermissionTest.cs: New. Unit tests for
PerformanceCounterPermission.
svn path=/trunk/mcs/; revision=33761
* Npgsql/NpgsqlConnection.cs:
Dispose: Improved implementation. Also added warning logging for
NpgsqlConnection leakings.
Close: Fixed code to allow calling many times even when being disposed.
* Npgsql/NpgsqlConnection.resx:
Added new warning logging message for NpgsqlConnection leakings.
* Npgsql/NpgsqlConnector.cs:
IsValid: new method to check if Connector is still valid.
* Npgsql/NpgsqlConnectorPool.cs:
GetPooledConnector: Improved to check validity of Connector.
FixPoolCountBecauseOfConnectionDisposeFalse: new method to fix the connection pool count
because NpgsqlConnection leaking. This way, uses doesn't run out of connections from pool.
svn path=/trunk/mcs/; revision=33757
* CADMessages.cs, MethodCall.cs: When doing an x-appdomain
call, store the method in a RuntimeMethodHandle. This allows
us to avoid the expensive lookup operations that must be done
to resolve the method. This makes xsp go from 250 r/s to 450 r/s
for me.
svn path=/trunk/mcs/; revision=33755
* Makefile: Updated to include unit tests.
* System.ServiceProcess.dll.sources: Added ServiceControllerPermission
class to the build.
* System.ServiceProcess_test.dll.sources: New. Added sources file for
unit tests.
svn path=/trunk/mcs/; revision=33749
* ChangeLog: New.
* ServiceControllerPermission.cs: New. Added permission class.
* ServiceControllerPermissionAttribute.cs: Completed TODO, added
missing validations (machine and service names). Fixed AttributeUsage.
* ServiceControllerPermissionEntry.cs: Added internal GetBaseEntry for
synchronization. Converted spaces to tabs.
* ServiceControllerPermissionEntryCollection.cs: Added synchronization
with entries in the base class. Converted spaces to tabs.
svn path=/trunk/mcs/; revision=33748
* ServiceControllerPermissionAttributeTest.cs: New. Unit tests for
ServiceControllerPermissionAttribute class.
* ServiceControllerPermissionTest.cs: New. Unit tests for Service
ControllerPermission class.
svn path=/trunk/mcs/; revision=33747
* ObjectType.cs: Corrected some test ordering in ObjTst and using new getObjTstString to test two candidate strings. Bug #65653
svn path=/trunk/mcs/; revision=33743
* System_test.dll.sources: Added PermissionHelper to the build.
* System_test.dll.sources: Added unit tests for System.Security.
Permissions.ResourcePermissionBase and ResourcePermissionBaseEntry,
System.Web.AspNetHostingPermission and AspNetHostingPermissionAttribute.
svn path=/trunk/mcs/; revision=33730
* EventLogPermission.cs: Fixed initialization (TagNames and
PermissionAccessType).
* EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added
[Obsolete] to some existing elements.
* EventLogPermissionAttribute.cs: Added missing validation to property
MachineName. Fixed changes for NET_2_0.
* PerformanceCounterPermission.cs: Fixed initialization (TagNames and
PermissionAccessType).
* PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
and added [Obsolete] to some existing elements.
* PerformanceCounterPermissionAttribute.cs: Added missing validations
to properties (Path, MachineName). Fixed changes for NET_2_0.
svn path=/trunk/mcs/; revision=33729
* ConfigurationElementCollection.cs ConfigurationElementCollectionType.cs:
New Fx 2.0 stubs
* ConfigurationElement.cs:
Fix function declaration
svn path=/trunk/mcs/; revision=33726
* DnsPermission.cs: Updated to pass new unit tests.
* DnsPermissionAttribute.cs: Cleanup.
* SocketPermission.cs: Updated to pass new unit tests.
* SocketPermissionAttribute.cs: Updated to pass new unit tests.
* WebPermission.cs: Implemented some TODO - not complete yet.
* WebPermissionAttribute.cs: Updated to pass new unit tests.
svn path=/trunk/mcs/; revision=33724
* HttpCacheAgeControl.cs HttpRequestCacheLevel.cs HttpRequestCachePolicy.cs
* RequestCacheLevel.cs RequestCachePolicy.cs:
New classes for Fx 2.0
svn path=/trunk/mcs/; revision=33723
* PermissionHelper.cs: New. Static methods to help implementation of
permission classes.
* ResourcePermissionBase.cs: Implemented all TODO (except FromXml
which isn't complete).
* ResourcePermissionBaseEntry.cs: Minor cleanup (namespaces, style).
svn path=/trunk/mcs/; revision=33721
* DnsPermissionAttributeTest.cs: New. Unit tests for DnsPermissionAttr.
* DnsPermissionTest.cs: New. Unit tests for DnsPermission.
* SocketPermissionAttributeTest.cs: New. Unit tests for
SocketPermissionAttribute.
* WebPermissionAttributeTest.cs: New. Unit tests for WebPermission
Attribute.
svn path=/trunk/mcs/; revision=33720
* AspNetHostingPermissionAttributeTest.cs: New. Unit tests for AspNet
HostingPermissionAttribute.
* AspNetHostingPermissionTest.cs: New. Unit tests for AspNetHosting
Permission.
svn path=/trunk/mcs/; revision=33719
* EventLogPermissionAttributeTest.cs: New. Unit tests for
EventLogPermissionAttribute.
* PerformanceCounterPermissionAttributeTest.cs: New. Unit tests for
PerformanceCounterPermissionAttribute.
svn path=/trunk/mcs/; revision=33718
* ResourcePermissionBaseEntryTest.cs: New. Unit tests for
ResourcePermissionBaseEntry.
* ResourcePermissionBaseTest.cs: New. Unit tests for
ResourcePermissionBase.
svn path=/trunk/mcs/; revision=33717
* mini-sparc.c mini-x86.c mini-amd64.c: Use the new
mono_type_get_underlying_type () helper function to simplify code.
svn path=/trunk/mono/; revision=33715
* DirectoryServicesPermission.cs: Completed TODO.
* DirectoryServicesPermissionAttribute.cs: Added path validation and
enable the creation of unrestricted permissions.
* DirectoryServicesPermissionEntry.cs: Add internal method to return
an ResourcePermissionBaseEntry instance.
* DirectoryServicesPermissionEntryCollection.cs: Allow synchronization
of elements with the base permission class (required to enable Copy).
svn path=/trunk/mcs/; revision=33710
* MessageQueuePermission.cs: Implemented enough TODO so compilers can
call ToXml (and the runtime can call FromXml) without exceptions.
* MessageQueuePermissionAttribute.cs: Implemented all TODO.
* MessageQueuePermissionEntry.cs: Implemented all TODO.
* MessageQueuePermissionEntryCollection.cs: Removed Clear on On*
methods and added TODO.
svn path=/trunk/mcs/; revision=33707
* cs-parser.jay (delegate_declaration): Record a delegate
declaration as a type declaration.
(Backport from trunk)
svn path=/branches/mono-1-0/mcs/; revision=33702
* AttachmentCollection.cs MailAddressCollection.cs:
New classes
* Attachment.cs: Set content string
* MailMessage.cs: Use new collection classes
* SmtpClient.cs: Lots of MIME cleanup
svn path=/trunk/mcs/; revision=33690
* TemplateParser.cs: ensure bin directory exists before trying to access
it. Fixes bug #65446 (not closed yet due to dependencies).
svn path=/trunk/mcs/; revision=33688
* TemplateParser.cs: ensure bin directory exists before trying to access
it. Fixes bug #65446 (not closed yet due to dependencies).
svn path=/branches/mono-1-0/mcs/; revision=33687
* System.Web/HttpStaticObjectsCollection.cs:
* System.Web.SessionState/HttpSessionState.cs: don't share static
session objects declared in the application file across the application,
but on a per-session basis. Fixes bug #65446.
svn path=/branches/mono-1-0/mcs/; revision=33686
* System.Web/HttpStaticObjectsCollection.cs:
* System.Web.SessionState/HttpSessionState.cs: don't share static
session objects declared in the application file across the application,
but on a per-session basis. Fixes bug #65446.
svn path=/trunk/mcs/; revision=33685
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
the transfer is done from inside a page that received a postback.
Fixes bug #65613.
svn path=/trunk/mcs/; revision=33681
* mini-amd64.c: Don't access `type->data.klass' directly, call
mono_class_from_mono_type() instead since the type may be a
generic instance.
svn path=/trunk/mono/; revision=33674
C# 2.0 #pragma warning feature
* cs-tokenizer.cs (PreProcessPragma): New method;
Handles #pragma directive.
* report.cs (WarningRegions): New class; Support
class for #pragma warning directive. It tests whether
warning is enabled for a given line.
svn path=/trunk/mcs/; revision=33666
* mini-amd64.c (get_call_info): Fix support for generic instances.
(add_valuetype): Use mono_class_from_mono_type() to get the class
since we can be a generic instance.
svn path=/trunk/mono/; revision=33661
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes):
Fix GetTypes() to support dynamically created assemblies.
Patch for #65576 approved by Zoltan.
svn path=/trunk/mono/; revision=33654
* PrintingPermission.cs: Applied the new permission template.
Implemented missing To|FromXml. Fixed set operations, ...
* PrintingPermissionAttribute.cs: Added enum validation for Level and
creation of unrestricted permissions.
* PrintingPermissionLevel.cs: Added [Serializable] for NET_2_0.
svn path=/trunk/mcs/; revision=33640
* PrintingPermissionAttributeTest.cs: New. Unit tests for Printing
PermissionAttribute.
* PrintingPermissionTest.cs: New. Unit tests for PrintingPermission.
svn path=/trunk/mcs/; revision=33637
* File.cs: Added Gettextification, provide a better error message
for #62112
2004-09-08 Miguel de Icaza <[email protected]>
* Locale.cs: Added overload that calls String.Format.
svn path=/trunk/mcs/; revision=33597
* mb-parser.jay : some changes just not to stumble in global attributes definitions in multiple-lines
like we have in VS.NET generated AssemblyInfo.vb files. still need to really process that definitions like mcs does
svn path=/trunk/mcs/; revision=33573
* XPath2Expression.cs : fixed EnclosedExpr.Compile() that resulted
in index out of range.
* XPathSequence.cs : FLWORIterator got working, but only when compiled
with .NET 2.0 csc (still weird Invalid IL error happens).
svn path=/trunk/mcs/; revision=33566
* threads.c: don't call mono_thread_detach() in start_wrapper(),
avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.
svn path=/trunk/mono/; revision=33562
* XmlReader.cs : evidence is always provided.
* XmlWriter.cs, XmlTextWriter.cs :
added support for ConformanceLevel and OmitXmlDeclaration.
svn path=/trunk/mcs/; revision=33558
for each of the executables we ship.
* runtime/net_1_1/Makefile.am
* runtime/net_2_0/Makefile.am
(mdb_files, EXTRA_DIST): Add $(mdb_files).
svn path=/trunk/mono/; revision=33551
* image.c (mono_image_close): Applied patch from
[email protected] (Vasantha selvi). Fix crash when an
assembly is loaded multiple times from data.
* image.c (mono_image_open): Fix warning.
svn path=/trunk/mono/; revision=33541
* NpgsqlException.cs: Added support for deserialization of NpgsqlException.
* NpgsqlState.cs: Added missing handling of NoData message.
svn path=/trunk/mcs/; revision=33539
* expression.cs: Apply patch from Ben: Remove dead code from
ArrayCreation, and remove the TurnintoConstant call in const.cs,
as that code just threw an exception anwyays.
* const.cs: Remove the call to the turnintoconstant, for details
see bug: #63144
svn path=/trunk/mcs/; revision=33531
* literal.cs: The type of the null-literal is the null type; So
we use a placeholder type (literal.cs:System.Null, defined here)
for it.
* expression.cs (Conditional.DoResolve): Remove some old code that
is no longer needed, conversions have been fixed.
svn path=/trunk/mcs/; revision=33529
* Process.cs: Throw documented exceptions when getting stdin,
stdout or stderr and they haven't been redirected. Check that
CreatePipe didn't fail, throw exceptions if it did. Close
redirected streams when the process is disposed, rather than rely
on the GC disposing them later. Makes timeline much happier,
because it could run out of file descriptors between GC
collections.
svn path=/trunk/mcs/; revision=33501
* X509Certificate.cs: CreateFromSignedFile now throw the COMException
if the specified file isn't signed (before this was done by
AuthenticodeDeformatter). More details are available on failure.
svn path=/trunk/mcs/; revision=33500
* AuthenticodeBase.cs: Merge from Mono.Security.dll. This version is
less memory consuming (it works by 4kb blocks instead of loading the
entire assembly).
* AuthenticodeDeformatter.cs: Merge from Mono.Security.dll. Hash will
only be created if the assembly is signed. Benefits from Authenticode
Base changes.
svn path=/trunk/mcs/; revision=33498
* X509Chain.cs: Merge from Mono.Security. Fix two bugs (chain
construction from collection) and Reset-ing empty chain.
svn path=/trunk/mcs/; revision=33496
/// Returns a string containing a specified number of characters from the left side of a string.
/// </summary>
/// <param name="Str">Required. String expression from which the leftmost characters are returned.</param>
/// <param name="Length">Required. Integer expression. Numeric expression indicating how many characters to return. If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str, the entire string is returned.</param>
publicstaticstringLeft(stringStr,
intLength)
/// <param name="Length">Required. Integer expression. Numeric expression indicating how many characters to return.
/// If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str,
/// the entire string is returned.</param>
publicstaticstringLeft(stringStr,intLength)
{
if(Length<0)
thrownewArgumentException("Argument 'Length' must be non-negative.","Length");
thrownewInvalidConstraintException("Cannot clear table "+fc.RelatedTable+" because ForeignKeyConstraint "+fc.ConstraintName+" enforces constraints and there are child rows in "+fc.Table);
}
}
}
}
// Foriegn key constraints are checked in _rows.Clear method
Loaded 100 of 231 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.