|
|
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
4 Articles match "Throw"
|
Related DevelopMentor Courses
|
MORE
|
|
Effective C++ for C++ Programmers
Additional Efficiency Topics Programming with Exceptions: EH 101: try, throw, catch, stack unwinding Exception specifications Function try blocks The real challenge of programming with exceptions Strive for exception-safe code Definition of "exception-safe" The basic, strong, and nothrow guarantees Exception specifications and exception-safety guarantees Approaches to the strong guarantee Careful statement ordering Copy and swap Dependencies among exception-safety guarantees Exercise: making exception-unsafe code exception-safe: Preventing resource leaks in constructors The differences between
DevelopMentor Courses
- Friday, June 12, 2009
.NET Programming for Performance
Write code that works well with the garbage collector Properly handle and throw exceptions Automate transactions with System.Transaction Implement IDisposable to build reliable .NET NET applications Scale your application to multicore machines using threads Improve memory usage through proper understanding of assemblies, types, and JIT compilation Debug difficult problems using WinDBG, SOS, and ADPLUS Effective .NET NET provides experienced .NET
DevelopMentor Courses
- Friday, June 12, 2009
Guerrilla .NET
idioms like iterator methods, the lambda operator, and extension methods Write code that works well with the garbage collector Handle and throw exceptions properly Work with Windows Presentation Foundation (WPF) and XAML Write browser applications using Silverlight Manage long-running processes with Windows Workflow Foundation (WF) Threading and Concurrency Scale your application to multicore machines using threads Debug difficult problems using WinDBG, SOS, and ADPLUS Understand how the .NET Use C# 3.0 NET class libraries and the C# language are evolving in .NET
DevelopMentor Courses
- Friday, June 12, 2009
|
81 Articles match "Throw"
|
The Latest from DevelopMentor
|
MORE
|
|
Error handling in a NativeActivity
quot; },
new Throw { Exception = new InArgument (ctx => new DivideByZeroException()) },
new WriteLine { Text = "End inner sequence." Note: This blog post is written using the .NET NET framework 4.0 RC 1 Using Workflow Foundation
The Problem Solver
- Tuesday, February 9, 2010
Using SAML as a Client Credential Type in WCF (updated to WIF RTM)
public override ClaimsIdentityCollection ValidateToken( SecurityToken token)
{
if (token
== null )
{
throw new ArgumentNullException ( "token" );
}
var samlToken
= token as SamlSecurityToken ;
if (samlToken
== null )
{
throw new ArgumentException ( "token" );
}
if (samlToken.Assertion
== null )
{
throw new ArgumentException ( "token" );
}
var assertion
= A reader has asked me to update the Client SAML sample to WIF RTM (for background
and
www.leastprivilege.com
- Thursday, February 4, 2010
MVVM: Binding RadioButton groups
We’ll throw a Margin on there to give it a little
spacing. work, so we’ll just throw it into a Grid. A question I got recently was how to manage Radio Buttons with bindings – in this
instance, instance, the sample code was trying to map a single value to a set of Radio Buttons
based based on an enumeration set.
Mark's Blog of Random Thoughts
- Friday, January 29, 2010
|
-
|
The Best from DevelopMentor
|
MORE
|
-
WF4&WCF and message correlation
Should I change the Id the WorkflowServiceHost would try and find an existing workflow with the changed person Id, fail and throw a FaultException with message “The requested operation could not complete because instance key '4d7e998a-4cff-4743-3dd4-2afd5578383c' could not be found.”. In the previous blog posts, here , here and here , I demonstrated how to use WCF from WF4. This same some more about sending multiple messages to the same workflow, AKA Workflow Correlation. One of the ugly parts of Windows Workflow Foundation 3 was the message correlation part when you
The Problem Solver
- Wednesday, September 2, 2009
-
Marshalling native function pointers
pWrappedObject)
throw gcnew OutOfMemoryException("Could not allocate
memory pWrappedObject)
throw gcnew OutOfMemoryException("Could not allocate memory
on Now that the book is written and all urgent tasks I had to defer due to the book are
done, I find some time to blog about technical topics.
Marcus' Blog
- Friday, April 6, 2007
-
Article: Avoiding 5 Common Pitfalls in Unit Testing
IsValidForMask(Mask, path))
{
throw new Exception(String.Format(
"Invalid Path '{0}' for Mask '{1}'", path, Mask));
}
}
internal static bool IsValidForMask(String mask, String path)
{
mask = mask.Replace(".", ".").Replace("*", regex.IsMatch(path))
{
throw new Exception(String.Format("Invalid Path '{0}' for Mask '{1}'", path, Mask));
}
}
}
Unfortunately Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter
entitled entitled Avoiding 5 Common
Michael C. Kennedy's Weblog
- Thursday, August 6, 2009
-
Another reason for not using C# lock keyword
So assuming your scoped code runs correctly to completion or throws an exception the monitor is always recovered. The C# keyword at first glance looks like a real god send…since lock( myLock ) { // Critical code } Generates an “exception proof acquisition and release of the monitor, saving you from having to write Monitor.Enter(myLock); try { // Critical code } finally { Monitor.Exit(myLock) } So here at DM we have preached for the last few years how evil the C# lock keyword is.. This is mainly due to the fact that the process of acquiring the monitor will wait indefinitely
.NET Mutterings
- Sunday, October 8, 2006
-
Significant Advances in Unit Testing Windows Workflow
When we try to buy a stock and we don't have enough money, the workflow will throw
an This post describes a unit testing library for testing Windows Workflow Foundations.
It It is not a framework like HarnessIt , NUnit ,
or or
Michael C. Kennedy's Weblog
- Sunday, January 18, 2009
-
Processing Text Files with LINQ
public static IEnumerable<IGrouping<TKey, TElement>> GroupAdjacentBy<TSource, TKey, TElement>(
this IEnumerable<TSource> source,
Func<TSource, TKey> keySelector,
Func<TSource, TElement> elementSelector,
IEqualityComparer<TKey> comparer)
{
if (keySelector == null) throw new ArgumentNullException("keySelector");
if (elementSelector == null) throw new ArgumentNullException("elementSelector");
if (comparer == null) throw new ArgumentNullException("comparer");
TKey lastKey = default(TKey);
List<TElement> elements = null;
foreach
Jason Diamond
- Sunday, September 7, 2008
-
Error handling in a NativeActivity
quot; },
new Throw { Exception = new InArgument (ctx => new DivideByZeroException()) },
new WriteLine { Text = "End inner sequence." Note: This blog post is written using the .NET NET framework 4.0 RC 1 Using Workflow Foundation
The Problem Solver
- Tuesday, February 9, 2010
|
|
|