Files
mono/mcs/class/System.XML/System.Xml.Query/XQueryFunctionContextAttribute.cs
T
Atsushi Eno 5a2795224f 2004-10-07 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs, XPathSequence.cs :
	  Changed ListIterator.ctor() signature not to demand current sequence.
	* XQueryCliFunction.cs, XQueryFunctionCliImpl.cs :
	  Now, to represent a sequence, IEnumerable is not used anymore (it is
	  confusing because System.String is also IEnumerable). So those native
	  functions should just require XPathSequence (for user functions?
	  not idea how MS will solve the "problem").

	  If a native function method has [XQueryFunctionContext] attribute,
	  then it means that the function requires current sequence, so fill
	  it before invoking the method.
	* XQueryFunctionContextAttribute.cs : added, to mark "it needs
	  current sequence" for fn:position() and fn:count().

svn path=/trunk/mcs/; revision=34788
2004-10-07 17:06:35 +00:00

46 lines
1.5 KiB
C#
Executable File

//
// XQueryFunctionContextAttribute.cs
//
// Author:
// Atsushi Enomoto <[email protected]>
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// It is used to represent that a function needs current nodeset information.
//
#if NET_2_0
using System;
using System.Collections;
using System.Xml;
using System.Xml.Schema;
using System.Xml.XPath;
namespace Mono.Xml.XPath2
{
public class XQueryFunctionContextAttribute : Attribute
{
}
}
#endif