Quantcast
Channel: .NET Framework Class Libraries forum
Browsing all 8156 articles
Browse latest View live

UI Automation - WPF Testing

Hi, Our team have an WPF application with lots of dynamic elements that are created , the id is not slimier in each creation. Each elements is created as new, not all creation are deterministic. How...

View Article


String/StringBuilder - creating a substring without creating a temp string

Hi all;First off, this is for a .net 2.0 DLL that is usually called by a .NET 4.0+ app. (It is 2.0 because this is a commercial library and many are still on 2.0 - 3.5).We have cases where we have a...

View Article


Does C# have an equivalent to the Java LinkedHashMap.removeEldestEntry

Java has a really useful feature in LinkedHashMap. A member function removeEldestEntry() where you can return true when the hash is over N entries. Great way to easily declare a LRU cache.Is there...

View Article

MultiformDataContent fails on PCL for System.Net.Http when using names that...

I'm using the System.Net.Http PCL library on iOs/Android with Xamarin.  The distinction is necessary as this code works just fine with the non PCL version.   I'm simply trying to add content to the...

View Article

SOLVED: System.DirectoryServices.SearchResultCollection Horrendously slow: 5...

EDIT: Problem with my code.  The epiphany came when I viewed a forum I cannot link to because of my account status: forums.asp.net/post/1240890.aspxI was incorrectly calling GetDirectoryEntry when I...

View Article


[SOLVED] The type or namespace name 'log4net' could not found??

Hello Friends,While compiling my C# code I am getting an error as -The type or namespace name 'log4net' could not found(are you missing a using directive or an assembly reference?)I am using VS2008 and...

View Article

locking with Monitor across AppDomain

I recently had to synchronize threads in a process but possibly in different AppDomains. So I thought of a named Mutex, but while I was poking around MSDN, I noticed this sentence about Monitors from...

View Article

localization and inputlanguage

using localization one can make his application localizable, all by simply using the designer of visual studio. However if i want to take an input from user, i want it to be in arabic, but localizating...

View Article


Oracle reader

In oracle DB we have value as 98.01605reader.GetOracleNumber(reader.GetOrdinal("value")){98.01605}    IsNull: false    Value: 98.01605When we try to conver to double  we are getting level as...

View Article


Encrypted XML File

Hi, Is it possible to create an encrypted xml using C# without having to decrypt it everytime I want to insert or read from it?I want to store my application connection string passwords and email...

View Article

How do I find out if the DLL I am executing in is digitally signed, and by who?

Hi all;When my DLL starts executing, I want to see if it is signed, and if so, by what company. The purpose is to make sure when our DLL is called that it has not been hacked (to avoid the...

View Article

Export GridView to csv file.

Dear AllI am using VS2013, I want to Export my gridview to CSV or Excel format on button click  . Please help. i want the file to be saved in the folder CSV_FILES and open automaticallyThanks and Best...

View Article

Encrypting/decrypting our license key

Hi all; We need to provide a license key to customers for our application. The actual license is XML but we need to encrypt it and then in our program decrypt it. I think it is the following, but am...

View Article


compatibility of x86 /ANY CPU / x64 bit build version .dll in windows 64 bit...

Hi All,My Machine config : R2 windows 2008 server , 64 bit , Microsoft .NET framework 4.0, VS 2010 C# [application]Premise : Application is C# service. As practie I build the code in Release mode a and...

View Article

LINQ expression thorws exception "LINQ to Entities does not recognize the...

Hi I have entity ModesMaster has following two properties: 1. Name - string 2. ID - intAnd following two LINQ expressions:1. int enabledModeID = (from Mode in ModesMaster                      where...

View Article


Load balancing

HI I have a simple question for below scenarioLets say I have two servers with 2 cores each and I have to process a total of 4 tasks/request which takes long time to complete. 2 requests take 5 mins...

View Article

PerformanceCounterCategory.ReadCategory gets stuck or takes a long time on...

I've got a block of code that's been working for years that is now giving problems, but only on one particular laptop computer.The problem is that...

View Article


Escape Codes

This is my polish text - Czy na pewno chcesz usunąćNow in c# or vb.net what function can I call to make it "Czy na pewno chcesz usunąć" I have whole book to escape so code targeting escaping ć...

View Article

whySo

hi there  Console.WriteLine("Enter your birthday in correct format");            Console.Write("Date   {dd}  ");        1.    date = Convert.ToInt32(Console.ReadLine()); // if i press enter than...

View Article

Why need key in Entity in Entity Framework

Hi There,We are creating some entities in Entity Framework. It is not associate to any Database means we create blank edmx file and adding new Entity in the same. We create new entity with name...

View Article
Browsing all 8156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>