background preloader

C#, Visual Studio 2008, Silverlight, ASP.NET, WPF, WCF, WF, and

Related:  TrabajoDesarrollo

Starting threads with parameters in C# Please note: this page is now obsolete. It is now part of my larger article about threading. In the C# newsgroup, quite a few people have asked how parameters should be passed to new threads. In other words, if a new thread needs specific information in order to run (as it often does), how do you get that information to the thread? The ThreadStart delegate doesn't take any parameters, so the information has to be stored somewhere else. In some cases, you actually just wish to call a method in some class (possibly the currently executing class) with a specific parameter. Using ThreadPool instead One choice you should always be aware of when starting a new thread is whether it would actually make more sense to use ThreadPool, which will recycle threads for you, and queue items if the pool is full. To add a job to the pool, you merely need to call ThreadPool.QueueUserWorkItem with a WaitCallback delegate. Calling a delegate asynchronously A future solution: anonymous methods

GitHub - valentjedi/ddd-dynamic: Domain Driven Design in Python, Ruby and other dynamic languages resources Windows Phone 7 - Wprowadzenie | MSDN (Polska) Autor: Bartłomiej Zass Opublikowano: 2010-09-23; Zaktualizowano: 2010-12-20 Windows Phone 7 jest innowacyjną platformą mobilną umożliwiającą tworzenie zaawansowanych gier oraz aplikacji użytkowych. Każde urządzenie ma ustaloną z góry specyfikację techniczną, co ułatwia przystosowanie projektowanych rozwiązań do szerokiej grupy odbiorców. Duży ekran pojemnościowy o rozdzielczości WVGA (800x480) Czteropunktowy mechanizm multi-touch Akceleracja sprzętowa grafiki DirectX 9 Zestaw sensorów: GPS, akcelerometr, kompas, światło i czujnik zbliżeniowy Kamera cyfrowa Stały zestaw przycisków: Start, Search, Back Wsparcie dla komunikacji poprzez sieci telefonii komórkowej oraz Wi-Fi 256 MB (lub więcej) RAM oraz 8 GB (lub więcej) pamięci flash Telefony zintegrowane są z globalnym katalogiem aplikacji – Windows Marketplace, który jest jednocześnie jedynym dostępnym mechanizmem wgrywania ich na telefon. Do programowania aplikacji można wykorzystać jedno z dwóch wybranych API:

TextFieldParser classe (Microsoft.VisualBasic.FileIO) Cette documentation est archivée et n’est pas conservée. .NET Framework (current version) Date de publication : novembre 2016 public class TextFieldParser : IDisposable Using MyReader As New Microsoft.VisualBasic.FileIO. TextFieldParser("c:\logs\bigfile") MyReader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited MyReader.Delimiters = New String() {vbTab} Dim currentRow As String() 'Loop through all of the fields in the file. .NET Framework Disponible depuis 2.0 Tous les membres statiques publics ( Shared en Visual Basic) de ce type sont thread-safe. Git Generate JSON Data Using Web Service And SQL Server Stored Procedure Let’s know about Web Service Web Services are used for enabling an application to invoke a method of another application. These applications can be on the same computer or different computers. Web Services use protocols like HTTP, XML, and SOAP. Since these are open and well known protocols, the applications built on any platform can interoperate with Web Services. For example, a PHP application can interoperate with a Web Service built using .NET. Hyper Text Transfer Protocol (HTTP) is the protocol widely used by web services to send and receive messages. To know more about SOAP request and response, visit the below reference site. A web service is a web-based functionality accessed using the protocols of the web to be used by the web applications. Creating the web serviceCreating a proxyConsuming the web service Introduction to proxy in ASP.NET Web Service A proxy is a major part for the web service codes. Step1 Script Step2 Step3 Step4 Code Ref

Introduction - C# Tutorial Welcome to this C# tutorial. With the introduction of the .NET framework, Microsoft included a new language called C# (pronounced C Sharp). C# is designed to be a simple, modern, general-purpose, object-oriented programming language, borrowing key concepts from several other languages, most notably Java. C# could theoretically be compiled to machine code, but in real life, it's always used in combination with the .NET framework. C# is an Object Oriented language and does not offer global variables or functions. In the following chapters, you will be guided through the most important topics about C#.

Les nouveautés C# 7 (3) : les déconstructeurs - Cellenza Blog Cet article est le troisième d’une série sur les nouveautés C# 7. Retrouvez les autres : Nous avons vu dans le premier article de cette série comment alléger notre base de code de toutes ces classes DTO fourre-tout utilisées localement. Déconstruire un tuple Dans les exemples fournis dans le premier article, nous avions écrit ceci : La méthode GetCustomer retourne un tuple contenant 3 propriétés CustomerId, Prenom et Nom, que l’on affecte à une variable locale customer de type tuple(int, string, string). Ici, le contenu du tuple est automatiquement déconstruit dans les 3 variables locales, ce qui nous donne une syntaxe extrêmement allégée. La seconde façon est d’inférer le type de tout le contenu du tuple : Cette dernière syntaxe est la plus concise, mais également la plus inhabituelle pour un développeur C#. Il est également possible de déconstruire dans des variables préalablement déclarées : Donc voilà pour les tuples. Déconstruire n’importe quelle classe

Git Extensions | Free software downloads Desarrollo Web, Tu mejor ayuda para aprender a hacer webs. .NET Framework - Nouveautés de C# 7.0 En décembre 2015, j’ai abordé la conception de c# 7.0 (msdn.com/magazine/mt595758). Un grand nombre a changé l’année dernière, mais l’équipe est désormais boutonner bas c# 7.0 développement et Visual Studio 2017 Release Candidate est l’implémentation de pratiquement toutes les nouvelles fonctionnalités. (Je dis pratiquement car jusqu'à ce que Visual Studio 2017 est fourni en fait, il y a toujours un risque de modification supplémentaire.) Deconstructors Depuis c# 1.0, il est possible d’appeler une fonction, le constructeur, qui combine les paramètres et les encapsule dans une classe. Dans c# 7.0 devient trivial via le deconstructor, qui renvoie les composants de l’objet identifiés en particulier. Examinons la classe PathInfo dans Figure 1. Figure 1 PathInfo classe avec un Deconstructor avec les Tests associés Évidemment, vous pouvez appeler la méthode Deconstruct comme vous l’auriez dans c# 1.0. Assignation et Invocation de Deconstructor figure 2 public void Deconstruct(out FileInfo file)

Git Reference Unlike centralized version control systems that have a client that is very different from a server, Git repositories are all basically equal and you simply synchronize between them. This makes it easy to have more than one remote repository - you can have some that you have read-only access to and others that you can write to as well. So that you don't have to use the full URL of a remote repository every time you want to synchronize with it, Git stores an alias or nickname for each remote repository URL you are interested in. You use the git remote command to manage this list of remote repos that you care about. git remote list your remote aliases Without any arguments, Git will simply show you the remote repository aliases that it has stored. $ git remote origin $ git remote -v origin git@github.com:github/git-reference.git (fetch) origin git@github.com:github/git-reference.git (push) git remote add add a new remote repository of your project Git addeth and Git taketh away.

Creating ASP.NET Web API with MVC 6 Posted by: Mahesh Sabnis , on 12/9/2015, in Category ASP.NET Abstract: In this article, we will build an ASP.NET Web API using MVC 6. In earlier versions of ASP.NET, Web API was provided as a separate Web API framework, but going forward in the ASP.NET 5 release, Web API is merged with MVC, termed as MVC 6. ASP.NET Web API uses the power of HTTP. As developers, we all know that the HTTP protocol is not just limited to delivering web pages, but is being used to build APIs on top of it that expose services and data. The advantages of HTTP is it is simple and easy to use and all platform supports HTTP. In this article, we will build an ASP.NET Web API using MVC 6. The following diagram explains Web API in application development The above diagram provides conceptual use of Web API. Implementing the ASP.NET Web API application To implement the Web API application, we will use Visual Studio 2015 and ASP.NET 5 RC1. Click on the OK button. The above class file contains following classes

Related: