I have the following code in specman:
var x := some.very.long.path.to.a.variable.in.another.struct;
while (x == some_value) {
//do something that uses x;
//wait for something
//get a new value for x
x = some.very.long.path.to.a.variable.in.another.struct;
};
Now, it seems wasteful to write the assignment to x twice; ...
Hi everyone...
I am trying to using Net.TCP in my WCF Service, which is self hosted, when i try to add this service reference through web reference to my client, i am not able access the classes and methods of that service, can any have any idea to achieve this...
How I can add web references in this case. My Service has one method (Get...
We are two companies who are working on the same project, in the same application. We exchange weekly base only our assemblies (not the code) and making reference on each other dll.We would like to know what is the best practices regarding the specificversion when adding reference to our project. Simply in what case should we use a speci...
We currently have a View that queries active directory info. I was wondering if there was a good reference as to what fields (field names) are available in AD for me to query against. I don't have access to Active Directory so I can't go playing around in there to maybe figure it out myself. Any help would be appreciated.
...
I write programs used internally by our company. I've created several support DLLs that I reference in many projects. (a generic data access helper for example)
Instead of having a copy of "datatools.dll" in every program directory (seems to be default behavior) I would like to have one copy that can be referenced by many programs. Kinda...
I'm working on an appender for log4net and I'm faced with the problem of how to manage dependencies on the log4net version my class library is built against vs. the actual version deployed on the site. My class library has to reference log4net dlls and as such it becomes tied to the version I'm referencing at built time. However, the sit...
Hi all, this snippet of code is given me headache. Personally, I would like to use reference as they are neater compared to pointer, so I tried this:
include "SomeClass.h"
class FooBar
{
private:
SomeClass& member_;
public:
FooBar() : member_(SomeClass()) { };
}
I have read that you need to assign a temp variable to...
I'd like semantics similar to C#'s ref keyword.
...
I just can't find a "good" explanation for this...
...
Hello,
Is it possible in C# to something like the following
foreach (ref string var in arr) {
var = "new value";
}
so that var variable was treated as reference and assigning to var would change an array element?
...
Possible Duplicate:
Difference between pointer variable and reference variable in C++
When should I declare my variables as pointers vs objects passed-by-reference? They compile to the same thing in assembly (at least run-time asymptotically) so when should I use which?
void foo(obj* param)
void foo(obj& param)
...
I'm looking through possible representations for what can be considered a finite depth graph in XML format for data exchange purposes. The problematic point is how to reference nodes in edge tags. Two strategies I see are a) using unique identifiers or b) using paths.
Unique IDs:
<graph id="g0">
<node id="n0"/>
<node id="n1"/>
<...
There are instructions here to create a C# assembly using the SimMetrics library. The link they provided to this library is at SourceForge. It looks like the most recent version of the SimMetrics library was created in Java. Is it possibly to compile a java DLL and then reference it in C# to be used as an assembly in SQL Server 2008?
...
I understand and appreciate the usefulness of the System.WeakReference class in the .NET framework, but am curious as to the implementation details.
How is WeakReference implemented in .NET? MSDN discusses the usage of WeakReference in detail, but has little details that I've seen on how this works under the hood.
How does the CLR t...
I know that "string" in C# is a reference type. This is on MSDN. However, this code doesn't work as it should then:
class Test
{
public static void Main()
{
string test = "before passing";
Console.WriteLine(test);
TestI(test);
Console.WriteLine(test);
}
public static void TestI(string t...
In what situtations is it best to use reference arguments to return values?
Sub Example(byref value as integer)
value = 3
End Sub
In what situations is it best to return the value (perhaps in a structure for more complex types)?
Function Example() as integer
return 3
End Function
...
As an example, I'm trying to add a reference to WatiN in Visual Studio 2008. I download WatiN and I have a folder on my desktop containing 5 files:
WatiN.Core.dll
WatiN.Core.xml
Interop.SHDocVw.dll
Microsoft.mshtml.dll
WatiN.Core.UnitTests.dll
WatiN.Core.UnitTests.dll.config
I can add my reference to WatiN.Core.dll and start coding ...
I am looking to match some standard strings like dates, SSN, IP addresses etc. Is there a free online repository of regular expressions to match some of these commonly used strings?
...
Hi All,
How do you ensure that your javascript includes get included properly for all files everywhere using a particular layout? Basically I have some non-restful actions that I've added. I haven't added any ROUTES for them, however, using normal text rendering works fine. It's when I start requiring different "swf" and "js" files (...
I came across this syntax while reading a script. I am not sure what is the use of square brackets.
push @data, [ split //, $line ]; #printing this array gives crap values
Or to put into other words what is the difference between the above and the following?
push @data, (split//, $line); #printing this gives actual values
Any sugg...