When using reflection we typically just was the basic System.Reflection API but I am wondering if anyone know of a nice "wrapper" layer or API that has a more "schema style" approach? (e.g. kind of like a code generators DB schema view)
This is for use in code generators, like T4 templates etc...
...
I am parsing a very large file of records (one per line, each of varying length), and I'd like to keep track of the number of bytes I've read in the file so that I may recover in the event of a failure.
I wrote the following:
using (TextReader myTextReader = CreateTextReader())
{
string record = myTextReader.ReadLine();
bytesRe...
I am just beginning to play around with .NET (using C#).
Which namespace, aside from System.*, do I need to research ?
UPDATE: A number of people are asking why research namespaces.
My previous programming experience is mainly non-OOP and VBA (self-taught).
I have no idea at all to what has already been provided in the .NET framework...
How do you get event sender when using RelayCommand?
...
I have an NServiceBus Saga that looks like this
public class MySaga : Saga<MySagaData>,
IAmStartedByMessages<MyStartMessage>,
IHandleMessages<OtherMessage>
But messages can come out of order. So what happens when the IAmStartedBy Message comes after the IHandle Message? T...
Hello,
I'm trying to build a .Net application to interrogate Active Directory.
Edit: I need to use a Web Service to do this as I will be talking to AD from a Sharepoint Workflow using a third party workflow tool that requires the use of a web service.
From my research, Windows 2008 R2 has Active Directory Web Services (ADWS) built in....
All QuickStarts and RI examples in the CAG documentation are good but I lack the more Enterprise scale examples.
Let's say we have 40+ modules, each containing a Proxy,Facade,PresentationModel,Model and Views. Each module also makes calls to a Module-specific WCF service which is to be hosted in IIS or in a stand-alone console host. Ou...
I m consuming java based web service with c#.net app.
I m sending soap message in xml format.
But Im receving this error message:
ns1:Client.NoSOAPAction no SOAPAction header
...
Hey,
My background has been generally new technology demonstrators, which, well... demonstrate the latest technology and how it can be of use to a clients company. They use it for internal demos etc.
Now my career has shiffed course a bit more into actual products, in particular software which runs in locations like museums as interact...
That is a followup from my previous question, but you don't need to read it to understand that one.
I'm designing an interface in .NET that would be consumed from COM applications (mainly VB6, but Visual C++ 6 is also a possibility) and I would like to use Collection types as argument and return types for the methods in the interface.
...
Hi,
I'm trying to obtain a list of all Machines that are members of a known group. I have the group GUID and am constructing a query using the "memberof=" format and filtering by ObjectClass.
This works fine but doesn't return machines if the PrimaryGroup attribute of a machine is set to be the known group. In this case, that machine...
Hi,
I'm banging my head against a wall with a regular expression. I'm trying to define an expression that excludes exactly this text 'System' (case insensitive), but can contain
the word 'System' providing it's not just that.
Examples:
System == INVALID
SYSTEM == INVALID
system == INVALID
syStEm == INVALID
asd SysTem == Valid
asd Sys...
We would like to map a single table on two classes with NHibernate. The mapping has to be dynamically depending on the value of a column.
Here's a simple example to make it a bit clearer:
We have a table called Person with the columns id, Name and Sex.
The data from this table should be mapped either on the class Male or on the cla...
Hi,
I have two DLLs: one with a web.config, another one with app.config
I moved the connection strings from web.config to app.config so that it can be used by other DLLs.
Now, when I call ConfigurationManager.GetSection("SomeSection") , the application looks for a web.config, when it should be looking for the app.config. It doesn't ...
Hi
my boss has asked me to come up with a test page which can handle sftp of a file from one internal server to another.
As Ive never done this before I was wondering if anyone could give me a shove in the right direction please?
thanks
DD
...
I have used exception sheilding feature of application block, to map System.Exception with class that is marked as DataContract. It works very well. But When I have mapped the System.Exception with FaultException, I got the below error message.
"An error has occurred while consuming this service. Please contact your administrator for mo...
I want to be notified whenever a specific method has been called. I was hoping I could accomplish this using Reflection, but my attempts haven't gotten me anywhere. How can I be notified?
I figured using MethodInfo was the way to go, but like I said, I found nothing there that could help me accomplish what I wanted to do.
I cannot cha...
Could you tell me how you got PartCover running with VS2008 and win 7 x64? Based on this post http://stackoverflow.com/questions/256287/how-do-i-run-partcover-in-x64-windows, I ran
c:\Program Files (x86)\Gubka Bob\PartCover .NET 2.3>CorFlags.exe PartCover.exe /
32BIT+ /Force
with result
Microsoft (R) .NET Framework CorFlags Conversi...
This object always uses the default on the system, so on an x64 machine, it will use an x64 Internet Explorer object.
Is there any way I can force it to use the x86 IE? The web page element the browser accesses does not work on x64 and is out of my control.
...
There are a lot of such classes in my project (very old and stable code, I can't do many changes to them, maybe slight changes are OK)
public class MyEntity
{
public long ID { get; set; }
public string Name { get; set; }
public decimal Salary { get; set; }
public static GetMyEntity ( long ID )
{
MyEntity e = new MyE...