|
Hi
I wasn't aware of that option and I will certainly test it today (when I will get back home),
I believe though, that it won't work, as the CLR can't realize that the missing assembly at runtime that he searches, has actually been loaded before, and lies at my private 'assemblies' list declared somewhere... ,Unless you can tell of a way that connects my local 'assemblies' list to the ones that CLR is aware of ?
(that is my assumption according to other threads that I have read in the subject and implied that issue..).
I will report once I will try it.
Thanks
Shultz
|
|
|
|
|
I haven't run into that problem, so I'm not sure it exists.
|
|
|
|
|
Be sure. It exists.
CLR doesn't know to search for your dynamically referenced dlls at runtime, unless they appear in its default search paths and probing dirs.
The main question in this thread is how to add him some more search directories to look at...
|
|
|
|
|
Write a little app that demonstrates what you think is a problem.
|
|
|
|
|
Any one have simple code that will determine whether the web page has fully loaded?
Can be any browser.
|
|
|
|
|
There is java script window.onload.
rahul
|
|
|
|
|
|
I need a program that run in the back end console then when the webpage is done loading then it will call another method.
|
|
|
|
|
Without hooking into the browser, you can't determine what's going on there directly from an external application. You were told this yesterday.
|
|
|
|
|
I thought for a minute this was a school question but I see it is the same OP. At least you managed to get him thinking. I still think you were too gentle, this feels malicious to me.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It also feels malicious to me which is one reason why I'm not going to write code out for him.
|
|
|
|
|
I have successfully logined into a web page, the background management in this page contains multiple pages and per page has its own corresponding URL, I want the information of one page collected in the process. When I get the page URL, but it's the source of information and data display,and when I use HTML tags to preview display only a page frame, information are not displayed, but in the browser open the URL can display properly. How do I get this page?
|
|
|
|
|
I don't really understand what you want, or what your problem is. If I do understand you correctly, you want to get the source of a certain url. You can perform a webrequest
WebRequest wrFetch = WebRequest.Create("http://www.google.com");
The webrequest contains a response object which will contain the source of the webpage called.
|
|
|
|
|
Hi,
Maybe I was not expressing a very clear, but thank you for your support, you give a good idea!
|
|
|
|
|
Does anyone know how to go about adding your own .Empty property as in String.Empty?
N.B. I should mention its currently a struct!
Definitely a PEBCAK! (Problem Exists Between Keyboard And Chair)<br><a href="http://www.fruitbatinshades.com" target="_blank">www.FruitBatInShades.com</a></br>
|
|
|
|
|
Make it static?
public static MyClass Empty { get { return new MyClass(); } }
|
|
|
|
|
Hi, Tried that but get
Operator '!=' cannot be applied to operands of type 'RNMCore.DateRange' and 'RNMCore.DateRange'
Any Ideas?
Definitely a PEBCAK! (Problem Exists Between Keyboard And Chair) www.FruitBatInShades.com
Doh! figured it out, many thanks
public static bool operator ==(DateRange left, DateRange right)
{
return (left.StartDate == right.StartDate) && (left.EndDate == right.EndDate);
}
public static bool operator !=(DateRange left, DateRange right)
{
return (left.StartDate != right.StartDate) && (left.EndDate != right.EndDate);
}
|
|
|
|
|
Well, that's a separate problem... .NET doesn't automatically know how to determine whether two structs are equivalent.
You need to overload the equality operator. Should be easy to find resources on that, but here's[^] a decent enough starting point.
|
|
|
|
|
Why not simply...
public static bool operator !=(DateRange left, DateRange right)
{
return !(left == right);
} ?
|
|
|
|
|
public static bool operator !=(DateRange left, DateRange right)
{
return (left.StartDate != right.StartDate) || (left.EndDate != right.EndDate);
}
|
|
|
|
|
string.Empty is a static getter property. You can add such static getter to any class you create, and have it return whatever you want. Like so:
public class MySillyExample {
public static string Empty {
get {
return "this is not an empty string";
}
}
}
It is unrelated to a current object ("this"), and quite different from a non-static Clear() method.
|
|
|
|
|
Empty is normally a static readonly field such as...
public struct YourStruct
{
public static readonly YourStruct Empty = new YourStruct();
}
|
|
|
|
|
However, can a struct really be empty? it has a fixed size after all, unlike a string or a list.
OTOH, .NET does offer a Size.Empty and a Point.Empty; if I had a say, I'd call it Zero, not Empty.
|
|
|
|
|
Luc Pattyn wrote: can a struct really be empty? it has a fixed size after all
Very true.
Luc Pattyn wrote: I'd call it Zero
I think MS reserve that for single value structs such as IntPtr which uses Zero .
|
|
|
|
|
I'm trying to learn c# from knowing a much more idiot proof programming language (autoit) and I'm completely lost. I thought I'd start out with a simple windows form project of a ping utility that someone else had written and then modify it from there and be able to learn where I have a working example and can alter the code in different places and visually see what changes.
I cannot find a working example, just about everything I've found on the web will not compile, which probably means that I am doing something wrong, but unfortunately I'm not sure what it is, so I need this first example spoon fed to me. If I can compile and revert back if I break something, I'll be able to learn quickly that way.
Sadly enough, I'm not even able to get the msdn to work
http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx[^]
Any help in helping me build a decent foundation of understanding the syntax of this would be greatly appreciated.
|
|
|
|