Instead of using Add method it's simpler to use + sign ( Addition Operator http://msdn.microsoft.com/en-us/library/system.decimal.op_addition.aspx).E.g. MyFortune = Decimal.Add(MyFortune, .01m);can be rewritten as MyFortune += .01m;
Last modified by Michael Freidgeim on 6/18/2009 12:57:12 AM
Tags: None
If you do not specify e.Result , it will be returned as false.However, its better to explicitely set the value, as it's done in the example above.
Last modified by Michael Freidgeim on 4/19/2009 11:07:51 AM
Tags: None
The section "Using Startup Accounts for SQL Server Services " doesn't list "Local User" as possible optional account, which seems incorrect. Later in section "Reviewing Windows Permissions for SQL Server Services" it is said that Local user is rec...
Last modified by Michael Freidgeim on 4/17/2009 11:24:25 PM
Tags: None
Any non-trivial workflow should implement ReplicatorActivity ChildInitialized event handler to get access to current iterated data.You can't bind it declaratively.
Last modified by Michael Freidgeim on 4/10/2009 3:21:03 AM
Tags: None
See Windows Workflow Foundation (WF) TutorialUsing the Replicator for Windows Workflow Foundation http://social.msdn.microsoft.com/Content/en-us/msft/netframework/wf/learn/wf-flow-replicator
Last modified by Michael Freidgeim on 4/10/2009 3:12:27 AM
See
httpCookies Element (ASP.NET Settings Schema) http://msdn.microsoft.com/en-us/library/ms228262.aspx HttpCookiesSection..::.HttpOnlyCookies Property http://msdn.microsoft.com/en-us/library/system.web.configuration.httpcookiessection.httponl...
Last modified by Michael Freidgeim on 3/7/2009 7:13:33 AM
Tags: None
CREATE TABLE (Transact-SQL)http://msdn.microsoft.com/en-us/library/ms174979.aspx article is quite big, I feel it will be appropriate to add an example to this article:H: Creating a partitioned table
The following example creates a partition func...
Last modified by Michael Freidgeim on 2/28/2009 10:56:55 PM
Tags: None
Is it the valid statement:"SelectNodes returns empty XmlNodeList if no matching node is found"?It's worth to clarify it in the help. Note that for XmlNode..::.SelectSingleNode it is documented that it returns null reference (Nothing in Visual Bas...
Last modified by Michael Freidgeim on 1/22/2009 10:07:36 AM
If you have the error "ERROR: Account: MYDOMAIN\TFSService is not a valid account. The only accepted account format is: <domain\user>."
one of the reasons could be that an administrator did NOT change the password on the domain account ...
Last modified by Michael Freidgeim on 9/23/2008 12:48:56 AM
Tags: None
The documentation is not clear, how MaxBytesPerRead is different from other limits, e.g. MaxBufferSize or MaxReceivedMessageSize.
From http://geeksdiary.com/archive/2007/05/23/pox-streaming.aspx :
The MaxBytesPerRead value indicates how ...
Last modified by Michael Freidgeim on 9/11/2008 12:14:28 PM
Tags: None
You can control place where to insert child by calling parent.InsertAfter( newNode,existingNode);
Last modified by Michael Freidgeim on 7/8/2008 2:13:36 AM
Tags: None
See http://authors.aspalliance.com/aspxtreme/aspnet/syntax/databindingexpressionsyntax.aspx
Last modified by Michael Freidgeim on 3/6/2008 4:58:44 AM
Tags: None
parentNode is standard and supported by most browsers, parentElement is proprietary
Last modified by Ajay Ace on 2/14/2008 10:29:08 AM
The article doesn't mention a few events (e.g. Page.PreRenderComplete Event http://msdn2.microsoft.com/en-us/library/system.web.ui.page.prerendercomplete.aspx ).
The complete list of page events is here: http://msdn2.microsoft.com/en-us/library/s...
Last modified by Thomas Lee on 2/12/2008 7:57:22 PM
Tags: None
See also ASP.NET Page Life Cycle Overview http://msdn2.microsoft.com/en-us/library/ms178472.aspx
Last modified by Michael Freidgeim on 2/12/2008 7:53:22 PM
Tags: None
http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.iformatter.aspx
Last modified by Michael Freidgeim on 2/2/2008 4:19:03 AM
Tags: None
IFormatter Interface Implemented by a few classes
Formatter Class http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.formatter.aspx
BinaryFormatter Class (http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.f...
Last modified by Michael Freidgeim on 2/2/2008 4:18:08 AM
Tags: None
SoapFormatter (http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.formatters.soap.soapformatter.aspx) is similar to Binary formatter and serializes all objects.See SoapFormatter vs XmlSerializer(http://www.topxml.com/soapformat...
Last modified by Michael Freidgeim on 2/2/2008 3:53:14 AM
Tags: None
http://msdn2.microsoft.com/en-us/library/btf44dc9.aspx
Last modified by Michael Freidgeim on 1/16/2008 6:18:10 AM
Tags: None
If individual arguments(e.g. arg1 or arg2) are null, they will be replaced with string.Empty
Last modified by Michael Freidgeim on 1/10/2008 3:57:46 AM
Tags: None
According to MS feedback https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=264618&wa=wsignin1.0:
Some of these configuration settings are not very well documented. The setting that you would like to change is on...
Last modified by Michael Freidgeim on 1/4/2008 5:26:41 PM
In the article ther is a phrase "If the property is empty, the MultiView control does not render any content to the client.">
Integer property can't be empty. Did they mean, that property ActiveViewIndex ==-1?
Last modified by Michael Freidgeim on 10/29/2007 3:00:29 AM
Tags: None
If you use anonymous delegates and have an error "cannot convert from 'anonymous method' to 'System.Predicate<Whatever>'", explicitly cast the anonymous delegate to a Predicate<T>, and the actual error message will be displayed.See htt...
Last modified by Michael Freidgeim on 10/18/2007 1:24:10 AM
Tags: None
Clarification (MemberInfo.ReflectedType Property (System.Reflection))
What is the difference between this property and DeclaringType?
ReflectedType is the Type that a particular MemberInfo belongs to. If DeclaringType != ReflectedType, the member is inherited; you will get a different MemberInfo if you query a der...
Last modified by Michael Freidgeim on 10/6/2007 1:49:23 PM
See blog post http://blogs.msdn.com/kingces/archive/2005/08/01/446247.aspx
Last modified by Michael Freidgeim on 10/6/2007 1:44:41 PM
Tags: None
MethodBase Class (System.Reflection) http://msdn2.microsoft.com/en-us/library/system.reflection.methodbase.aspx
Last modified by Michael Freidgeim on 10/6/2007 1:33:42 PM
Tags: None
If you want to add a hyperlink to an image, use the ImageUrl property of the HyperLink webcontrol.Alternatively includes a hyperlink that surrounds the asp:Image as shown in http://blogs.msdn.com/robburke/archive/2006/10/05/ASP.NET-2.0-Quick-Tip_...
Last modified by Michael Freidgeim on 10/5/2007 2:08:21 AM
Tags: None
See "Frustration with the StringDictionary class" post at http://haacked.com/archive/2004/06/25/685.aspx
it isn't necessary to lower-case the key before storing it in order to provide case-insensitive storage. Internally, StringDictionary uses a ...
Last modified by Michael Freidgeim on 9/24/2007 3:26:06 AM
Tags: None
see header
Last modified by Michael Freidgeim on 9/17/2007 1:43:04 AM
Tags: None
If you want to use ";" as spearator, you have to add in code
sToAddresses= sToAddresses.Replace(";", ",");
MS should support both "," and ";".
Last modified by Michael Freidgeim on 9/8/2007 9:11:48 AM
Tags: None
If you use C# "using" statement for SqlTransaction , you do not need to call Rollback in Catch block at all.See community content in http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqltransaction.aspx
The example in the article is ...
Last modified by Michael Freidgeim on 9/8/2007 9:05:43 AM
A note on this page of documentation states that "Try/Catch exception handling should always be used when committing or rolling back a SqlTransaction". It should be noted that you can use SqlTransaction in a "using" statement, and, upon disposing ...
Last modified by Jim Losi on 9/8/2007 8:27:07 AM
If you use C# "using" statement for SqlTransaction , you do not need to call Rollback in Catch block at all.See community content in http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqltransaction.aspx
Last modified by Michael Freidgeim on 9/8/2007 8:24:52 AM
Tags: None
Ideally it should be fixed.Default UserData "" works fine
Last modified by Michael Freidgeim on 8/21/2007 8:36:24 AM
Tags: None
It seems that Add method is not thread safe and sometimes causes unexpected errors "An entry with the same key already exists."See the <a href="http://geekswithblogs.net/mnf/archive/2007/07/26/An-error-An-entry-with-the-same-key-already-exists....
Last modified by Michael Freidgeim on 7/28/2007 7:21:40 AM
Tags: None
The name of class SortedList is slightly misleading, because it works with key/value pairs, when normal List works with collection of objects.If you have a List that you want to sort, you can use List.Sort method from the normal List without usin...
Last modified by Michael Freidgeim on 7/13/2007 5:10:03 AM
From http://www.ondotnet.com/pub/a/dotnet/2002/11/25/copying.html?page=2
class MyCloneableClass : System.ICloneable{ // Explicit interface method impl -- available for // clients of ICloneable, but invisible to casual // clients of MyCloneab...
Last modified by Michael Freidgeim on 7/10/2007 12:09:44 AM
example of use. (SortedDictionary.KeyCollection.CopyTo Method (System.Collections.Generic))
See OrderedDictionary Class http://msdn2.microsoft.com/en-us/library/system.collections.specialized.ordereddictionary(VS.80).aspx
Last modified by Michael Freidgeim on 7/9/2007 6:17:44 AM
See http://support.microsoft.com/kb/917072 "An ASP.NET page is stored in the HTTP.sys kernel cache in IIS 6.0 when the ASP.NET page generates an HTTP header that contains a Set-Cookie response"
Last modified by Michael Freidgeim on 6/6/2007 12:04:44 AM
Tags: None
// get a list of prices from a list of articles// implicit use of the delegate delegate U System.Converter<T,U>(T from)List<decimal> articlesPrices = articles.ConvertAll<decimal>(delegate(Article article) { return (decimal)articl...
Last modified by Michael Freidgeim on 5/30/2007 12:25:24 PM
Tags: None
// get a list of prices from a list of articles // implicit use of the delegate delegate U System.Converter<T,U>(T from) List<decimal> articlesPrices = articles.ConvertAll<decimal>( delegate(Article article) { ...
Last modified by Michael Freidgeim on 5/28/2007 7:01:56 AM
Tags: None
IsDefined is case sensitive. It will be good to have case-insensitive overload, similar to Enum.Parse (Type, String, Boolean) http://msdn2.microsoft.com/en-us/library/kxydatf9(VS.80).aspx. It was suggested in Feedback in 2005 http://connect.micro...
Last modified by Michael Freidgeim on 5/8/2007 4:43:49 AM
Tags: None
Documentation is not clear -if no records found, what it returned -null or array with 0 rows?I beleive,array with 0 rows.
Last modified by Michael Freidgeim on 5/4/2007 3:11:19 AM
Tags: None
Mentioned in remarks Microsoft .NET Framework Wizards (Configwizards.exe) actually doesn't exist in .Net 2.0. See https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=96947
Last modified by Michael Freidgeim on 3/19/2007 4:03:57 AM
http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbrowupdatingeventhandler.aspx
and OleDbRowUpdatingEventArgs http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbrowupdatingeventargs.aspx
Last modified by Michael Freidgeim on 2/19/2007 6:59:01 AM
Tags: None
Description of InvalidUserName as "The user name was not found in the database" is incorrect. The status actually means "The user name was null or empty"
Last modified by Michael Freidgeim on 1/11/2007 3:16:23 AM
Tags: None
The non-obsolete alternative is Rfc2898DeriveBytes.GetBytes Method
Last modified by Michael Freidgeim on 1/10/2007 12:49:04 AM
Tags: None
In c# Properties\Resources.Designer.cs class is generated, and the string will be retrieved as DefaultNamespace .Properties.Resources.Form1Title
Last modified by Michael Freidgeim on 1/9/2007 6:37:32 AM
Tags: None
System.Windows.Forms.Control Class( http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.aspx ) implements IWin32Window Interface. Obviously all derived classes(including) Form also implemented it.
Last modified by Michael Freidgeim on 1/9/2007 1:20:30 AM
Tags: None
The article doesn't have sample, which clarifies what owner parameter can be passed Fortunately overload sample http://msdn2.microsoft.com/en-us/library/ba2a6d06(VS.80).aspx describes that current Form instance this (or Me in VB) can be pa...
Last modified by Michael Freidgeim on 1/9/2007 1:13:24 AM
Tags: None
I beleive IButtonControl should implement ITextControl interface to be consistent with others controls with Text property.
Last modified by Michael Freidgeim on 12/27/2006 1:11:52 AM
Tags: None
It will be good to list hierarchy of classes that implement ITextControl interface, e.g. TextBox,IEditableTextControl Interface, Label.
By some reason IButtonControl Interface (and corresponding Button Class) doesn't support ITextCont...
Last modified by Michael Freidgeim on 12/27/2006 1:06:20 AM
Tags: None
If Nothing(null in all other languages);is passed as a parameter,Trim function doesn't throw exception,;but returns empty string.
Last modified by Michael Freidgeim on 11/16/2006 7:58:46 AM
Tags: None
According to this article Valid group Attribute values are 0 and 1.
However VS intellisense highlight the values as invalid and suggests to use group="Low" or "High".
I am not sure who is correct.
Last modified by Michael Freidgeim on 11/29/2006 4:49:03 AM
Tags: None
<< Previous |
Next >> |
Show All