9eFish - 带有 C# 标签的文章
1
臭虫

Writing object to object mapper: my mapper vs AutoMapper

gpeipmangpeipman 发表于 26 天, 3 小时, 17 分钟 之前
Sunday, February 21, 2010 6:23:28 AM GMT Friday, February 12, 2010 6:25:16 AM GMT
As my object to object mapper is now almost completed and I am sure it is good idea to stay on LCG (Lightweight Code Generation) I can now compare the performance of my mapper to AutoMapper. (more)
类别: Architecture | 点击: 2 | 评论 | | 源: weblogs.asp.net
标签: .net, C#, object to object mapping, performance
1
臭虫

A Tale of Two Principle Violations

KodefuGuruKodefuGuru 发表于 29 天, 9 小时, 8 分钟 之前
Thursday, February 18, 2010 3:13:28 PM GMT Tuesday, February 09, 2010 12:33:56 AM GMT
When I decided to write the With statement in Fluent.NET, I never imagined that I would encounter a common bug and school myself in principles that I happen to present on. But that is what occurred, and I want to share it so others can avoid the same mistakes I made. With is a Fluent version of Add, only it returns the object or interface it is acting upon rather than void. This allows you to chain methods together in a fluid manner. Instead of calling strings.Add(“Hello”); strings.Add(“World”);, you ca... (more)
类别: Language | 点击: 1 | 评论 | | 源: www.kodefuguru.com
标签: C#, Design Principles, Fluent.NET, Functional
1
臭虫

Writing object to object mapper: first implementations

gpeipmangpeipman 发表于 30 天, 21 小时, 14 分钟 之前
Tuesday, February 16, 2010 3:11:40 PM GMT Sunday, February 07, 2010 12:27:39 PM GMT
I wrote some object to object mapping code and introduced it in some of my previous postings about performance. As I received 22x performance raise when trying out different mapping methods it is now time to make my code nice. In this posting I will show you how I organized my code to classes. Yes, you can use my classes in your work if you like. (more)
类别: Web Form | 点击: 0 | 评论 | | 源: weblogs.asp.net
标签: .net, C#, object to object mapping, performance
1
臭虫

Performance: Using LCG to copy property values of two objects

gpeipmangpeipman 发表于 32 天, 15 小时, 21 分钟 之前
Sunday, February 14, 2010 1:16:24 PM GMT Friday, February 05, 2010 6:20:18 PM GMT
Today I gave last performance boost to my property values copying mechanism. I would like to thank my readers Ron and David to remind me Lightweight Code Generation (LCG) and pointing me out aussie bloke blog entry Generic copy object using Lightweight Code Generation. In this posting I will show you last performance boost and put down a summary about my experiment this far. (more)
类别: Foundation | 点击: 0 | 评论 | | 源: weblogs.asp.net
标签: .net, C#, lcg, performance
1
臭虫

Windows 7 FTP Application - CodeProject

xgluxvxgluxv 发表于 33 天, 8 小时, 17 分钟 之前
Sunday, February 14, 2010 1:16:24 PM GMT Friday, February 05, 2010 1:24:20 AM GMT
Email Password Remember me?  Lost your password?HomeArticlesQuick AnswersMessage BoardsJob BoardCatalogHelp!LoungeSoapboxDownload Source CodeDownload Executable File  Contents   IntroductionExternal LibrariesWhat Does this have to do with Windows 7? TaskBarManager.csApplication Overview Log in Form - frmLoginMain Form - frmMain Important ControlsRename Form - frmRename VariablesConstructorRenaming the FileNew Folder Form - frmNewFolder Refresh DirectoryDownload Form - frmDownload What frmDow... (more)
类别: Smart Client | 点击: 0 | 评论 | | 源: www.codeproject.com
标签: C#, FTP
1
臭虫

.Net Framework 4.0: string.IsNullOrWhiteSpace() method

gpeipmangpeipman 发表于 136 天, 44 分钟 之前
Tuesday, November 03, 2009 7:00:53 AM GMT Sunday, October 25, 2009 8:57:40 AM GMT
.Net Framework 4.0 Beta 2 has new IsNullOrWhiteSpace() method for strings generalizes IsNullOrEmpty() method to incluse also other white space besides empty string. In this posting I will show you simple example that illustrates how to use IsNullOrWhiteSpace() method. (more)
类别: Foundation | 点击: 2 | 评论 | | 源: weblogs.asp.net
标签: .Net Framework 4.0, C#
1
臭虫

CodeProject: Introduction to PayPal for C# - ASP.NET developers.

adminadmin 发表于 153 天, 18 小时, 35 分钟 之前
Friday, October 16, 2009 2:15:51 AM GMT Wednesday, October 07, 2009 3:07:01 PM GMT
PayPal is probably one of the first things that gets mentioned once discussion on online payments starts. It’s not so without reason – in 2008 PayPal moved over 60 billion dollars between accounts which is, you’ll agree, respectable amount. And also, all trends show that this growth will continue – with huge number of new accounts (over 184 million accounts in 2008 compared to 96.2 million in 2005), with new platform named PayPal X and with more cool applications that involve paying (like Twitpay) you ca... (more)
类别: Architecture | 点击: 0 | 评论 | | 源: www.codeproject.com
标签: C#, PayPal
1
臭虫

Singleton pattern Unleashed in C#

xgluxvxgluxv 发表于 156 天, 7 小时, 29 分钟 之前
Monday, October 12, 2009 4:46:52 AM GMT Monday, October 05, 2009 2:12:24 AM GMT
This article introduces some basic object oriented concepts and explains the various strategies in C# .Net to design Singleton pattern. (more)
类别: Language | 点击: 0 | 评论 | | 源: www.c-sharpcorner.com
标签: C#, Design Parttern, Singleton
1
臭虫

CodeProject: How to make hooks on serial ports in C#.

carolhaozicarolhaozi 发表于 173 天, 8 小时, 24 分钟 之前
Thursday, September 24, 2009 3:14:14 PM GMT Friday, September 18, 2009 1:18:03 AM GMT
Download UsingWIN32SerialHooksInCSharpdemo - 30.11 KBDownload UsingWIN32SerialHooksInC_src - 257.4 KBIntroduction This C# console program illustrates how to use serial port hooks in C#, in a sense. This is because there’s really no readily available API which provides hooking the serial port unlike windows messages, keyboard, and mouse, etc, in which you can use SetWindowsHookEx API. Background  So you popped up your favorite inet browser, opened your favorite search engine and type “How do I ma... (more)
类别: Language | 点击: 0 | 评论 | | 源: www.codeproject.com
标签: C#, hook, serial ports
1
臭虫

Using LINQ to query object hierarchies - Gunnar Peipman's ASP.NET blog

gpeipmangpeipman 发表于 176 天, 3 小时, 12 分钟 之前
Friday, September 18, 2009 1:23:38 AM GMT Tuesday, September 15, 2009 6:29:35 AM GMT
I used LINQ to solve the following problem: find all titles of objects at hierarchy level X when you know object ID in hierarchy level Y. I cannot imagine if there is some other solution that is same short and clear as one that LINQ provides. Take a look and decide by yourself. (more)
类别: Foundation | 点击: 1 | 评论 | | 源: weblogs.asp.net
标签: C#, Linq
1
臭虫

Zero Server Controls technique in ASP.Net, C# (XML Insertion, JavaScript tricks using AJAX deletion and XSLT record display using JavaScript)

carolhaozicarolhaozi 发表于 183 天, 16 小时, 50 分钟 之前
Friday, September 11, 2009 4:38:29 AM GMT Monday, September 07, 2009 4:51:34 PM GMT
Introduction: In this article I have explained about "Zero Server controls technique". I have implemented the new record insertion using the XML data type. For deletion of the record I have used the JavaScript tricks and Ajax. The record display in the table format, I have chosen the XML and XSLT. I have explained the Dynamic HTML technique using the Ajax techniques. But this time I have chosen this XSLT transformation technique. (more)
类别: Web Form | 点击: 0 | 评论 | | 源: www.c-sharpcorner.com
标签: asp.net, C#
1
臭虫

Guide to Improving Code Performance in .NET: Part II

dotlivedotlive 发表于 188 天, 8 小时, 22 分钟 之前
Wednesday, September 09, 2009 3:02:40 AM GMT Thursday, September 03, 2009 1:19:36 AM GMT
In this article, we will look into handling errors in an optimistic way. Handling of errors is quite common task in any kind of programming language. Most of the modern languages like C++, C# uses similar kind of exception handling constructs. We will see how to handle exceptions without any performance impact on the application by examples. I will be using VS 2008 with C# as language for all the samples. (more)
类别: Language | 点击: 0 | 评论 | | 源: www.c-sharpcorner.com
标签: C#
1
臭虫

CodeProject: A BigNumber class done in C#.

adminadmin 发表于 190 天, 20 小时, 37 分钟 之前
Sunday, September 06, 2009 11:24:50 AM GMT Monday, August 31, 2009 1:04:17 PM GMT
Download BigNumberMath - 97.29 KBIntroduction I wanted to write a simple library for C# that allows to do math calculations at any desired precision level.  Background   During the last months I have been playing around with math libraries and started to implement my own precision math library. I stumbled about the  MAPM library (http://www.tc.umn.edu/~ringx004/mapm-main.html) and decided to create something similar for DOT NET. This library is the result of my work. Basically it is a rewrite... (more)
类别: Language | 点击: 0 | 评论 | | 源: www.codeproject.com
标签: BigNumber, C#
1
臭虫

Guide to Improving Code Performance in .NET: Part I

adminadmin 发表于 195 天, 20 小时, 7 分钟 之前
Tuesday, September 01, 2009 5:56:41 AM GMT Wednesday, August 26, 2009 1:35:16 PM GMT
In this series of articles, we will look into the ways to improve performance of our .NET code. We will discuss best practices to be followed while coding. In this article, we will discuss about StringBuilder usage and how it will improve our code performance. I will be using VS 2008 with C# for all the samples in this series. (more)
类别: Language | 点击: 1 | 评论 | | 源: www.c-sharpcorner.com
标签: C#, Improving Code Performance
1
臭虫

.Net Framework 4.0: C# and optional arguments and named parameters - Gunnar Peipman's ASP.NET blog

gpeipmangpeipman 发表于 203 天, 10 小时, 15 分钟 之前
Friday, August 21, 2009 3:06:23 PM GMT Tuesday, August 18, 2009 11:26:49 PM GMT
C# 4.0 supports optional method arguments. Related to this is support for named parameters in function calles. For us it makes easier to use methods which have long argument list. It also introduces some new dangers which may lead us to messy and hard to understand code. In this code I will show how to use optional arguments and give some hints how to avoid messy code. (more)
类别: Foundation | 点击: 0 | 评论 | | 源: weblogs.asp.net
标签: .Net Framework 4.0, C#
1
臭虫

Getting started with Unit Testing in C#

adminadmin 发表于 212 天, 19 小时, 51 分钟 之前
Monday, August 10, 2009 1:39:24 AM GMT Sunday, August 09, 2009 1:50:49 PM GMT
Introduction: In this post, I will explain you how can we write a unit test in c#. It is a basic guideline for those who wants a quick start. Unit testing is an integral part of any software that is developed. It is an advantage which most of us are either not aware of or we are neglecting it.  It actually helps a developer to write error free code. To write unit test, we will first install a unit-testing framework.  About Unit-Testing Framework: Well, Unit-Testing Frameworks are useful to simpli... (more)
类别: Language | 点击: 5 | 评论 | | 源: www.aghausman.net
标签: C#, unit testing
1
臭虫

Agile Principles, Patterns, and Practices in C# – book review - Gunnar Peipman's ASP.NET blog

gpeipmangpeipman 发表于 224 天, 12 小时, 27 分钟 之前
Friday, July 31, 2009 10:59:14 AM GMT Tuesday, July 28, 2009 9:15:01 PM GMT
Agile Principles, Patterns, and Practices in C# by Robert C. Martin and Micah Martin describes how to write software using C#. Book covers also most important design patterns and object-oriented development principles. There are very good, close to reality examples for every topic and that makes this book pretty easy to read and understand. (more)
类别: Foundation | 点击: 0 | 评论 | | 源: weblogs.asp.net
标签: agile, books, C#, design patterns
1
臭虫

CodeProject: Anonymous Types - Dynamic Programming With C#.

carolhaozicarolhaozi 发表于 225 天, 21 小时, 13 分钟 之前
Tuesday, July 28, 2009 2:42:05 AM GMT Monday, July 27, 2009 12:28:53 PM GMT
Have you ever tried passing around an AnonymousType in C#? It doesn't work all that well since once your type loses scope, you can't cast it again (not easily at least). In this post I discuss a class that I wrote to allow you work with Anonymous Types easily, even after they leave their initial scope. An Easier Way In a previous post I discussed trying to work with Anonymous types in .NET. I had included some code for working with those types to try and make it easier to pass your information around in... (more)
类别: Language | 点击: 1 | 评论 | | 源: www.codeproject.com
标签: Anonymous Types, C#
1
臭虫

CodeProject: Observer Design Pattern in C#.

carolhaozicarolhaozi 发表于 239 天, 4 小时, 31 分钟 之前
Sunday, July 19, 2009 2:08:24 PM GMT Tuesday, July 14, 2009 5:10:58 AM GMT
codeproject Introduction  The Observer design pattern  is a relationship between objects so that when one changes its state, all the others are notified accordingly.  In other words it defines that an object must be able to notify other objects without making assumptions about what these objects are. Observer design pattern is quite useful when a  change to one object requires changing others but, you don't know how many objects need to be changed.Using Observer Design Pattern in Blog Subscriber... (more)
类别: Language | 点击: 2 | 评论 | | 源: www.codeproject.com
标签: C#, Design Pattern
1
臭虫

【转载】C# 委托的妙文

xgluxvxgluxv 发表于 240 天, 7 小时, 8 分钟 之前
Thursday, July 16, 2009 2:03:27 AM GMT Monday, July 13, 2009 2:33:39 AM GMT
委托和事件在 .Net Framework中的应用非常广泛,然而,较好地理解委托和事件对很多接触C#时间不长的人来说并不容易。它们就像是一道槛儿,过了这个槛的人,觉得真是太容易了,而没有过去的人每次见到委托和事件就觉得心里别(biè)得慌,混身不自在。本文中,我将通过两个范例由浅入深地讲述什么是委托、为什么要使用委托、事件的由来、.Net Framework中的委托和事件、委托和事件对Observer设计模式的意义,对它们的中间代码也做了讨论。  将方法作为方法的参数 我们先不管这个标题如何的绕口,也不管委托究竟是个什么东西,来看下面这两个最简单的方法,它们不过是在屏幕上输出一句问候的话语:  以下为引用的内容:        public void GreetPeople(string name) {               // 做某些额外的事情,比如初始化之类,此处略               EnglishGreeting(name);        }        public void EnglishGreeting(string name) ... (more)
类别: Language | 点击: 1 | 评论 | | 源: www.cnblogs.com
标签: C#, 委托
Previous 1 2 Next