| |
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.
|
14 Articles match "Public"
| Related DevelopMentor Courses | MORE | | Foundations of C# Programming and the.NET Framework Training Examine core language features such as types, variables, and control constructs Use object-oriented features such as class, interface, protection, and inheritance Perform error notification and error handling using exceptions Use properties to implement the private data/public accessor pattern Use namespaces to group related types Use delegates and events to implement callbacks Override Object class methods such as ToString Avoid dll conflicts during deployment Use dynamic binding and polymorphism to write generic code (i.e., less code!) NET 101" for developers moving to.NET. DevelopMentor Courses - Tuesday, March 1, 2011 Foundations of C# Programming and the.NET Framework Training Examine core language features such as types, variables, and control constructs Use object-oriented features such as class, interface, protection, and inheritance Perform error notification and error handling using exceptions Use properties to implement the private data/public accessor pattern Use namespaces to group related types Use delegates and events to implement callbacks Override Object class methods such as ToString Avoid dll conflicts during deployment Use dynamic binding and polymorphism to write generic code (i.e., less code!) NET 101" for developers moving to.NET. DevelopMentor Courses - Wednesday, February 22, 2012 Intensive C++ Training Protection Introduce public, private and protected access specification, friends, and class. 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. Day 1 Basics Introduce program start, variable types, flow of control, and i/o. Functions Learn functions, parameter passing, references, arrays, global and static variables, defaults, and inline. DevelopMentor Courses - Wednesday, February 22, 2012 |
348 Articles match "Public"
| The Latest from DevelopMentor | MORE | | Points based contracts? Just Say No. With the points-mini-series still fresh in the mind now seems a good time to say publicly something which I’ve been saying privately for a long time. Avoid points based contracts. i.e. don’t outsource work, or undertake work, on the basis of points - be they story points, abstract points, nebulous units of time or any other name you give them. have one client at the moment who wants their software supplier to sign a points based contract, I’ve advised against it. Why do I say this? Put it another way: any measurement metric will change behaviour once it is used for control. Allan Kelly's Blog - Tuesday, May 8, 2012 Roll Your Own REST-ful WCF Router ServiceContract (Namespace = "urn:example:routing" )] public interface IRoutingService { [ WebInvoke (UriTemplate = "" )] [ OperationContract (AsyncPattern = true , Action = "*" , ReplyAction = "*" )] IAsyncResult BeginProcessRequest( Message requestMessage, AsyncCallback asyncCallback, object asyncState); Message EndProcessRequest( IAsyncResult asyncResult); }. Download the code for this post here. Recently I’ve been tasked with building a WCF routing service and faced the choice of whether to go with the built-in router that ships with WCF 4.0 , or to build one from scratch. Enjoy. Tony and Zuzana's World - Tuesday, April 24, 2012 Ninject WCF Extensions for RESTful Services public class RestServiceHostFactory <TServiceContract> : NinjectWebServiceHostFactory { protected override ServiceHost CreateServiceHost( Type serviceType, Uri [] baseAddresses) { ServiceHost host = base.CreateServiceHost(serviceType, baseAddresses); var webBehavior = new WebHttpBehavior { AutomaticFormatSelectionEnabled = true , HelpEnabled = true , FaultExceptionEnabled = true }; var endpoint = host.AddServiceEndpoint( typeof (TServiceContract), new WebHttpBinding (), "Rest" ); endpoint.Name = "rest" ; endpoint.Behaviors.Add(webBehavior); return host; } }. NinjectWebCommon.cs Tony and Zuzana's World - Sunday, April 8, 2012 | -
| The Best from DevelopMentor | MORE | - Mixed mode DLLs: Problem with public functions using native types as arguments
public ref class Conversions. {. public: static void S2S(System::String^ s1, std::string& s2) { /*. */ }. }; This code should compile as expected, however, it would not give you the expected result! Why is a public static function S2S of a public type Convesions not accessible? This managed wrapper value type is private, therefore, the Conversions::S2S cannot be called from outside the assembly even though it is a public function of a public type. Assume the native wrapper type for std::string was public. include. using "Conversions.dll". Marcus' Blog - Tuesday, March 21, 2006 - Rehosting the Workflow Designer in WF4
public class ValidationErrorService : IValidationErrorService. {. private IList _errorList; public ValidationErrorService(IList errorList). {. public void ShowValidationErrors(IList errors). {. Note: This blog post is written using the.NET framework 4.0 Beta 2 With Windows Workflow Foundation 3 it was possible to rehost the workflow designer in your own application. But possible is about all there was to say about it as it was pretty hard to do anything beyond the basics. Now that is more like it! The WorkflowDesigner The WorkflowDesigner is the main class to work with. The Problem Solver - Wednesday, December 23, 2009 - Using the WCF Web API in an ASP.NET MVC application
public class BooksService: IDisposable. {. private readonly IBooksRepository _repo; public BooksService(IBooksRepository repo). {. public BooksService(). public void Dispose(). {. For example we can create a ServiceRoute() and add it to the routes collection like so: public static void RegisterRoutes(RouteCollection routes). {. So instead of the code above I am going to use the code below to do the same: public static void RegisterRoutes(RouteCollection routes). {. just prefer the MVC approach, you might not. repo = repo; }. List GetBooks(). {. Enjoy! The Problem Solver - Monday, June 13, 2011 - Using dynamic objects in Silverlight 4
All you need to do is add a property with the following syntax: public object this [ string key]. The complete class, including INotifyPropertyChanged looks like this: public class Person : INotifyPropertyChanged. {. public Person(). {. private Dictionary _data = new Dictionary (); public object this [ string key]. {. public IEnumerable Keys. {. private string _firstName; public string FirstName. {. public event PropertyChangedEventHandler PropertyChanged; }. Note: This blog post is written using Silverlight 4.0 get; set; }. get. {. set. {. The Problem Solver - Monday, April 12, 2010 - Using Model – View – ViewModel with Silverlight
5: public class Customer : INotifyPropertyChanged. 7: private string _firstName; 8: private string _lastName; 9: 10: public string FirstName. 20: public string LastName. 30: 31: 32: public string FullName. 36: 37: public event PropertyChangedEventHandler PropertyChanged; 38: 39: protected void OnPropertyChanged( string propertyName). 6: public partial class CustomerView : UserControl. 8: public CustomerView(). 7: public class CustomerViewModel : INotifyPropertyChanged. 9: private Customer _model; 10: 11: public CustomerViewModel(). The Problem Solver - Tuesday, April 7, 2009 - Getting T4 templates to work with Silverlight
12: public class Demo. 22: public { get; set; }. 3: public class Demo. 8: public string FirstName { get; set; }. 13: public string LastName { get; set; }. 18: public int Age { get; set; }. In a previous blog post I mentioned that T4 templates didn’t quite work with Silverlight development. The reason being that Visual Studio decides to load the Silverlight version of System.dll which doesn’t contain all the required classes. The solution turns out to be surprisingly simple, just not very obvious. 11: {. 13: {. 14: <#. 17: {. 21: ///. The Problem Solver - Monday, March 23, 2009 - Using WF4 bookmarks with IWorkflowInstanceExtension
private WorkflowInstanceProxy _instance; public IEnumerable GetAdditionalExtensions(). {. public void SetInstance(WorkflowInstanceProxy instance). {. public void WaitSome(Bookmark bookmark). {. The new activity looks like this: public class MyBookmarkedActivity : NativeActivity. {. Note: This blog post is written using the.NET framework 4.0 Beta 2 In this previous blog post I showed how to create an asynchronous activity using the NativeActivity and CreateBookmark to pause a workflow execution. So what about using a WorkflowInvoker or a WorkflowServiceHost? Enjoy! The Problem Solver - Wednesday, January 27, 2010
| | |