Hello everybody
This long title already contain all my question so i just want to give example
MyClass[] array
How this array work with Foreach without implement IEnumerable interface's method ?
...
If I want to deploy an ASP.NET application that hosts RIA Services endpoints for a Silverlight application, do I have to install anything extra on the web server? Or is it just some extra DLLs that can be deployed to my applications Bin folder?
I know that when you are doing RIA Services development there are additional toolkits and wh...
Hello experts,
We require your expertize to help us know on the following query
We want to know whether the ComponentSpace library SAML v2.0 supports Transform Algorithms with comments ?.
we know that this is supported during the creation of the Assertion and we would like to know if the consumption of SAML response is supported
TIA,...
I have an application where the taskbar flashes if an event has occurred. This is working perfectly, and was relatively easy to implement using a Win32 API described below:
http://blogs.x2line.com/al/archive/2008/04/19/3392.aspx
However, when I stop the flashing, sometimes the application is stuck in the "highlighted" state in the taskb...
I understand why passing a null to HashTable.Contains() doesn't work, but I don't understand what the point of it throwing an ArgumentNullException is - instead of just simply returning false? What is the benefit of throwing the exception (other than to make me do null checks before calling .Contains())?
Caused By [System.ArgumentNul...
A glance at the source code for string.GetHashCode using Reflector reveals the following (for mscorlib.dll version 4.0):
public override unsafe int GetHashCode()
{
fixed (char* str = ((char*) this))
{
char* chPtr = str;
int num = 0x15051505;
int num2 = num;
int* numPtr = (int*) chPtr;
for ...
On our current WPF project, we've been performing dependency injection using the Ninject IOC tool.
We want to target the .NET Framework Client Profile for a better download/install experience. The problem is that Ninject seems to reference libararies such as System.Web which are NOT in the Client Profile.
Can anyone recommend an IOC c...
Hello,
I have an application written in VB6, and I need to use a library written in .NET. Is there any way to use the library on my application?
Thanks
...
Any one have any docs or examples of how to add menu items to the explorer shell with .NET.
Can only find info saying it should be possible now with .NET 4.0 but not how to do it.
...
I am using LINQ to SQL with single table inheritance for an audit log. There is a field/property called Type that i am using as the dicriminator and i have created a base type and a single inherited type (there will be more later if i can actually get this to work).
So that i don't have to write a different method to insert each diffe...
I'd like to, in code and on demand, convert a 32-bit RGBA Image object (originally a 32-bit PNG) to its 32-bit grayscale counterpart.
I've already read several other questions here, as well as many articles online. I've tried using ColorMatrix to do it, but it doesn't seem to handle the alpha very well. Pixels that are entirely opaque...
I'm getting following error when looking at full memory crash dump file taken on user machine (Windows Server 2008 SP2):
0:000> !address -summary
Failed to map Heaps (error 80004005)
I'm running WinDbg 6.12.0002.633 X86 on Windows XP Pro (SP3).
SOS and other commands seems to work.
Appreciate any advice.
Thanks,
Michal
...
I know you can add defaultValues using the web.config like this:
<profile>
<properties>
<add name="AreCool" type="System.Boolean" defaultValue="False" />
</properties>
</profile>
but I have the Profile inherited from a class:
<profile inherits="CustomProfile" defaultProvider="CustomProfileProvider" enabled="true">
<...
How can i do below without assign null value "Tex=null"?
static void Main(string[] args)
{
FileInfo f = new FileInfo("C:/temp/Arungg.txt");
StreamWriter Tex;
Tex = null;
if (!f.Exists)
{
f.CreateText();
}
else
{
...
private bool HasRights(FileSystemRights fileSystemRights_, string fileName_, bool isFile_)
{
bool hasRights = false;
WindowsIdentity WinIdentity = System.Security.Principal.WindowsIdentity.GetCurrent();
WindowsPrincipal WinPrincipal = new WindowsPrincipal(WinIdentity);
AuthorizationRuleCollection...
I've had great luck with DotNetOpenAuth to do 3 legged authorization. Currently, I am connecting and pulling in some Google data.
My question is that apparently, if you have already auth'd my web application to your Google account, when I call
var accessTokenResponse = google.ProcessUserAuthorization();
It basically does nothing. ...
I'm running GacUtil.exe from within Visual Studio Command Prompt 2010 to register a dll (CatalogPromotion.dll) to the GAC. After running the utility, it says Assembly Successfully added to the cache, and running gacutil /l CatalogPromotionDll shows that the GAC contains the assembly, but I can't see the assembly when I navigate to C:\WIN...
Hi,
1.
I am using a DataGridView, which is bound to a dataset.
There is a bindingNavigator as well.
when a user deletes a row by clicking "bindingNavigatorDeleteItem" button, I am trying to get the row being deleted.
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
int crow = gridEventTyp...
I have a report in Reporting Services 2008 using ASP.net 3.5 and SQL Server 2008. The report has 2 groupings and a detail row.
This is the current format:
Outer Group
Inner Group
Detail Row
The Detail Row represents an item on a receipt and a receipt can have multiple items. Each receipt was paid with a certain payment...
I have been doing ASP.NET for many years and now playing catch up with MVC and DDD. I understand the majority of the concepts. I am re-developing a website which is for a sports website. Its essentially a CRUD style application but would like to DDD for learning and flexibility purposes. Have chosen not to do CQRS as that seems overkill ...