Search results for query: *

  • Users: lordofduct
  • Content: Threads
  • Order by date
  1. L

    WCF, Begin/End asynch, OperationContext.Current

    So I have a WCF service that runs, and sometimes I want to call to the server asynchronously. Basically I follow the Begin/End outline to do the call. WCF takes care of a asynchronous call when I do this, which means I'm not struck with any 'timeouts' if the service takes a while, it just...
  2. L

    Streams, MemoryStream, StreamReader... questions

    Ok, I'm not well versed in the System.IO namespace, and I don't know if there are class types elsewhere that may serve my purpose. But I need two special things... a MemoryStream or StreamWriter that treats the stream as a fixed line length. So that when a new line is written to it, the...
  3. L

    Block like ShowDialog blocks, but without a form...

    So you know how when you call "Form.ShowDialog" from where ever you call it, it blocks until the form being displayed closes. And then the function returns whatever result it was. I want to know how to block like, but without a form, yet still have the "main ui thread". Basically I have this...
  4. L

    Strange XPath

    Does anyone know if there is a syntax for XPath that supports "possible attribute". Basically I want a XPath that tests for two attributes of a node equal to some value. BUT if one of those attributes doesn't exist it ignores testing that attribute and considers itself successful. Say I have...
  5. L

    Please help me optimize this string -> double parsing method I'm writing

    I'm writing my own parsing method to parse a String to a double. I have a lot of requirements of this parsing method, so none of the existing parsing methods actually work. Here are the requirements: Like TryParse, on most failures we should return 0. Things like stack overflow and the sort...
  6. L

    String Format

    So I need a format string to pass to String.Format that would "move" the decimal point. I can't perform any math operations before doing the String.Format, so it has to work right off the bat. Basically I'm emulating a formatting string from a proprietary server. In it if I say: "MR2" for...
  7. L

    Turn Off, find all, step around... default instances

    I'm using Visual Studio 2008 writing a Windows Forms project and I'd like to know a way to step around 'default instances' of forms. I don't like default instances, they constantly get in my way, and working in a team it's causing some really annoying confusion about the object identity of...
  8. L

    WCF, transferring strange strings

    So I'm writing a WCF service right now and all is not well when dealing with a specific scenario pertaining to strings. Now the service I am writing syncs with a database that uses some strange characters to store multi dimensional data. Most notably Chr(255) Chr(254) Chr(253) these...
  9. L

    implementing interfaces on classes that already have the interface members defined

    So say I define some interface, and that interface has members that need to be implemented under some idea, and I then implement this interface on a class that already has those members defined. How do I NOT receive errors about having to implement said members despite them already being...
Back
Top