|
|
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.
|
13 Articles match "Static"
|
Related DevelopMentor Courses
|
MORE
|
|
Virtual Foundations of C# Programming and the.NET Framework (Part 1)
Static The static keyword is used with fields, methods, and types. Static fields are used to implement shared resources. Static methods are useful as utilities where the full power of an instance method is not required. Static types are convenient containers for static fields and methods. Here we discuss how to declare and use static types and members. We cover the three initialization options for static fields (default values, static variable initializers, and static constructor). NET 101" for developers moving to.NET.
DevelopMentor Courses
- Wednesday, February 17, 2010
Foundations of C# Programming and the.NET Framework
Static The static keyword is used with fields, methods, and types. Static fields are used to implement shared resources. Static methods are useful as utilities where the full power of an instance method is not required. Static types are convenient containers for static fields and methods. Here we discuss how to declare and use static types and members. We cover the three initialization options for static fields (default values, static variable initializers, and static constructor). less code!) interface vs. field)?
DevelopMentor Courses
- Friday, June 12, 2009
Intensive C++
Functions Learn functions, parameter passing, references, arrays, global and static variables, defaults, and inline. Scope Examine name collision issues, nested types, static members, and namespaces. Intensive C++ delivers a comprehensive, in-depth view of the C++ language. Included is complete coverage from fundamental concepts of class, inheritance, virtual functions, etc. through topics such as templates, exceptions, namespaces, RTTI, and the standard libraries. Intensive C++ (FW012) Day 1 Basics Introduce program start, variable types, flow of control, and i/o.
DevelopMentor Courses
- Friday, June 12, 2009
|
131 Articles match "Static"
|
The Latest from DevelopMentor
|
MORE
|
|
Purchasing Visual Studio 2010
Static Code Analysis. Amazon sells various versions of Visual Studio 2010. Here is an overview of versions and this will give you a good indication of prices. Below the prices is a feature comparison also…. Visual Studio Professional. Plain. Upgrade from 2005/2008. with MSDN. Visual Studio Premium. with new MSDN. with MSDN renewal. Visual Studio Utlimate. with new MSDN. with MSDN renewal. Visual Studio 2010 Feature Comparison. Debugging & Diagnostic. IntelliTrace (Historical Debugger). Code Metrics. Profiling. Testing. Unit Testing. Code Coverage. Test Impact Analysis. Coded UI Test.
The Blomsma Code
- Tuesday, July 13, 2010
Go’s type syntax
IMHO, any statically typed language developed in the 21st century should have type inferencing. The Go programming language’s main claim to fame is it is developed by Unix god’s Pike and Thompson. Go is an attempt to be a better system’s language than C. However, the type syntax is just weird enough to be off-putting. Pike explains why in this post. Then you wouldn’t need to worry so much about cluttering your code with unreadable type syntax because there would be so little of it. The solution is to go back to OCaml and rewrite the runtime to support concurrency. How hard could it be?
Handwaving
- Thursday, July 8, 2010
Unity, Multiple Constructors and Configuration
3: static void Main( string [] args). I’ve been working with the Unity IoC container from Microsoft Patterns and Practices recently. Its mostly straightforward as IoC containers go but one thing had me puzzled for a while as its not really documented or blogged as far as I can see; so I decided to blog it so hopefully others looking will stumble across this article. Lets start off with a simple example: I have two interfaces: IService and IRepository that live in the Interfaces class library. 1: public interface IService. 3: void DoWork(); 4: }. 1: public interface IRepository. 10: {.
.NET Meanderings
- Monday, June 7, 2010
|
-
|
The Best from DevelopMentor
|
MORE
|
-
NET Generics and static methods
using System.Collections.Generic; using System.Text; namespace Constraints { public class A { public static bool operator ==(A lhs, A rhs) { return true; } public static bool operator !=(A A lhs, A rhs) { return false; } } public class B : A { public static bool operator ==(B lhs, B rhs) { return false;} public static bool operator !=(B Been playing around with generics a bit more and have discovered something a little strange. The code below will not compile, the reason being the way in which genercis have been implemented.
.NET Mutterings
- Monday, July 3, 2006
-
The new Windows Workflow Foundation 4 runtime
It basically runs a workflow and prints a message when done: static void Main( string [] args). {. The same functionality in WF4 looks very different: static void Main( string [] args). {. static void Main( string [] args). {. With WF3 there was a central workflow runtime environment called the WorkflowRuntime and used to manage the lifetime of workflow instances. In WF4 this central class no longer exists and we manage individual workflows. To compare the two, this is what a minimal console application looks like in WF3. Console.WriteLine( "The workflow has completed."
The Problem Solver
- Tuesday, June 23, 2009
-
Workflow 4 Services and duplex communications
static void Main( string [] args). {. Add a console application, add a service reference to the workflow service and add the following code to the Main() function: static void Main( string [] args). {. Next step is to update the Main() function to host this service: static void Main( string [] args). {. There are quite a a few cases where it is useful to have a duplex communications. An obvious candidate is allowing a service to notify the user interface application of the progress so the user knows what is happening. public interface IService1. {. OperationContract].
The Problem Solver
- Monday, May 3, 2010
-
Some useful DateTime extensions
Here is is: public static class DateTimeExtensions { /// /// Return the date that is the start of the week relative to the specified date. /// /// /// public static DateTime GetStartOfWeek( this DateTime date) { DayOfWeek day = date.DayOfWeek; int days = day - DayOfWeek.Monday; DateTime start = DateTime.Now.AddDays(-days); return start.Date; } /// /// Return the date that is the start of the week relative to the specified date. /// /// /// public static DateTime GetStartOfLastWeek( this DateTime date) { return date.GetStartOfWeek().AddDays(-7);
The Blomsma Code
- Thursday, August 20, 2009
-
Workflow 4 and soap faults
static void Main( string [] args). {. Image by ponChiang via Flickr Note: This blog post is written using the.NET framework 4.0 RC 1 Using the ReceiveAndSendReply activity template and the WorkflowServiceHost it is easy to create a workflow service. Other applications can communicate with the workflow just as if it is a regular WCF service, they never need to know the difference. Most of the configuration is quite straightforward. Select the Receive activity and configure it and do the same with the SendReply activity. But what about faults? No big deal so far. DataContract]. Enjoy!
The Problem Solver
- Wednesday, March 24, 2010
-
Using Windows Workflow Foundation 4 Receive from an non WF client
static void Main( string [] args). {. In a previous blog post I described how to use the WorkflowServiceHost and host a workflow with a Receive activity that waits for WCF messages. also added a WF4 client that called the service and received a response. However a lot of clients out there are not going to be workflows but “regular” code that calls into out workflow. So what does it take to have a simple console application talk to our WF4 service? The first thing we need is an service contract describing the operation we can call. interface MyService. {. OperationContract]. Enjoy!
The Problem Solver
- Wednesday, August 19, 2009
-
Activity correlation in Windows Workflow Foundation 4
static Activity CreateWorkflow(). {. There are two types of correlation to think about in Windows Workflow Foundation: Message correlation Basically sending multiple requests to the same workflow. Activity correlation Making sure two activities work together. In this post I am going to show activity correlation Activity correlation is used when multiple activities form a single logical action. Think about the Send and ReceiveReply activities. The same goes when receiving messages. How much varies and depends on both the workflow and the hosting environment we use. Enjoy!
The Problem Solver
- Wednesday, December 2, 2009
|
|
|