Similar Threads:
1.Passing arrays arguments using remoting versus calling directly
Can someone verify this for me?
A function like: public Foo(Byte [] someArray) { someArray[0] = 1; }
If Foo is called directly from within the assembly the caller's passed aray
will be affected by the call. However, if the object is exposed via .Net
remoting and Foo is then called remotely, the caller's passed array will not
be affected unless Foo is changed to: public Foo(ref Byte [] someArray) {
someArray[0] = 1; }
In other words, an additional level of referencing/dereferencing is required
when using remoting. If this is true, is it also true for other reference
types?
--
Ralph Flaugher
2.What's the best practice to pass dataset object?
Hi
I am looking for best practice on passing dataset object around, should it
be passed by reference or by value. What gives the best performance, how
does it works internally when you pass by value?
Please advice, thanks
Rahul
3.Locating xmlns nodes in XML documents (for XML document metrics)
I've been writing an XML document analyzer that reads XML document
and tracks the metrics of the document. Statistics such as a node count fo
each type of XML node are printed out
I am trying to locate 'xmlns' nodes using the XPath (not DOM or SAX) API
Unfortunately the XPathNavigator concept of namespace nodes for eac
element is only accessible via MoveToFirstNamespace() an
MoveToNextNamespace(). The XPath model constructs a namespace node lis
for EACH ELEMENT where each namespace node represents a namespace CURRENTL
IN SCOPE for the current XML node
I would like to easily locate the 'xmlns' references in an XM
document just to count them and optionally print them out. It woul
also be nice to track some namespace node statistics such as defaul
vs prefix namespace declarations
Does anyone have an idea on how to do this
4.How to handle an XML document within an XML document
C#, .NET 1.0
I use XML serialisation to persist state of object definitions.One of my
objects wraps up a 3rd party object (non .NET) which can only serialise
itself to a file. However, it's needed that the parent wrapper object
includes all state data in one file so I need to include the 3rd party
serialisation file into the main file.
I'm trying to do this at present by reading the content of the file using a
StreamReader object, then into a string using ReadToEnd().
There are two problems:
1) I need a public property so that the XML Serialiser will manage the
string during de/serialisatin.I have no need for the property other than for
serialisation.
2) The content of the string is a full XML document (i.e. it contains the
'<? xml> root). This has caused me issues later on as on deserialisation -
although I don't use the full document, I need to have a subset of the nodes
from this object as a proper XML document (I execute some XSL over these in
order to generate some reports on the data).
I'd appreciate any help on the correct way of implementing this. I can live
with the public property, it's important to get the XML document for the
wrapped object into something I can use!
Many thanks in advance!
5.Passing XMLSchema object using Remoting.
Hi,
I am using .NET Remoting in a client server environment, and I have
to pass an XmlSchema object to the client using remoting. As this
class (XmlSchema) doesn't extend MarshalByRefObject and not
even serializable, what could be a work around for the same ?
best regards
sijo
6. Why can't an XmlDocument be passed via remoting?
7. Remoting: How to best pass data across tiers
8. Best practices for passing data over remoting