IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
C#
Search C# Group:

Advanced
-Collapse +Expand C# To/From
To/FromCODEGuides
-Collapse +Expand C# Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C# Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► eMag   Print This    All Groups  
View Group Edition:
Full Edition Your Edition || Prev Next || Subscription Center

Prestwood IT Newsletter Jul 2013 Issue - C# Edition

Subscribe!

Start subscribing now! It's free!

Each month on or after the 1st, and only once a month, we will send you content from up to 5 community groups. If you select this C# group, you'll receive the following content below mixed in with the other groups you elect to include.

Prestwood eMag
Our monthly opt-in coupons+newsletter.
portal.prestwood.com
  July 2013 - C# Edition (323 of 4,803 subscribers receive this group's content.) Year 15 Issue 7  
Your full service technology partner!


Expert guidance from working professionals!
IT Water-Cooler for Power-Users topic:
Stamp Out Spam
by Vicki Nelson

How to fight back against spam and reclaim your inbox. As you may know, the volume of spam messages sent across the Internet has reached epidemic levels. Some industry experts estimate that three out of every five e-mail messages that are sent today are spam. The spam epidemic is costing companies, professionals, and individual users considerable amounts of time, money, and resources.

What is spam, and what can I do about it? Spam is generally defined as an unsolicited mailing, usually sent to many recipients. Most spam is commercial advertising, often for dubious products, get-rich-quick schemes, or quasi-legal services. Spam costs the sender very little to send. Most of the costs are paid by the recipient or the carriers rather than the sender. Some effective methods for preventing your e-mail address from being captured, sold or abused by spammers in the full version of this article. Click the title to read more.


Off Shoring topic:
Off-shoring: You CAN fight back!
by Wes Peterson

Are you fed up with calling a company and finding yourself speaking to somebody in a foreign country? 

I am, and I've just learned of an effective way to fight back, help return jobs to America, and keep them here.

The best part? We don't have to wait for government to do a thing.






 C# Group Top 
Visit Group | My Group Settings
OOP topic (classic post):
C# Class..Object (class...new)
by Mike Prestwood

In C#, you use the class keyword to specify a class and you signify its parent with a colon and the name of the parent class. When you instantiate an object from a class, you use the new keyword.


OOP topic (classic post):
C# Member Property (no (), get, set)
by Mike Prestwood

In C#, parens indicate a method and the lack of parens indicate a property. You use special get and set methods to both get and set the values of properties. For a read-only property, leave out the set method. The value keyword is used to refer to the member field. Properties can make use of any of the access modifiers (private, protected, etc). It is common to use a lowercase member names for member fields ("name" in our example) and uppercase properties to manage member fields ("Name" in our example).


 Monthly C# Lesson
OOP Topic:
Code Snippet of the Month

Use a destructor to free unmanaged resources. A destructor is a method with the same name as the class but preceded with a tilde (as in ~ClassName). The destructor implicity creates an Object.Finalize method (you cannot directly call nor override the Object.Finalize method).

In C# you cannot explicitly destroy an object. Instead, the .Net Frameworks garbage collector (GC) takes care of destroying all objects. The GC destroys the objects only when necessary. Some situations of necessity are when memory is exhausted or you explicitly call the System.GC.Collect method. In general, you never need to call  System.GC.Collect.

class Cyborg {

public:
//Destructor for class Cyborg.
~Cyborg();
  {
  //Free non-managed resources here.
  }

};
C# Topic:
Definition of the Month: Reference Data type variables

Variables that only contain a reference to the values. Reference data type variables only contain a reference to it's constituent value.  Reference data types include objects and strings.  Assignment of one reference type variable to another copies the reference, thus changes to the values in one variable changes the values in the other.

C# Topic:
Download of the Month: Free E-Book on C# .NET Essentials
This is the "Chapter Zero" you've been missing.

Pick just about any one of your thick, technical tomes, and give it a quick skim.  Inevitably, the book dives onto a topic with the assumption that you already know a bunch of the basics.

This is unavoidable, because nobody wants a book about, say, web services, that starts with a basic course in programming. Yet many books about .NET topics, assume too much prior knowledge.  They need a "chapter zero."

Charles Petzold has released a freely downloadable e-book on C# .NET. , and it is the chapter zero that so many of us need.

 

Language Basics Topic:
Resource Link of the Month: CSharp Language Specification (C#)

By Scott Wiltamuth and Anders Hejlsberg

This document describes the syntax, semantics, and design of the C# programming language.

WebForms Beginners Corner Topic:
Question:

How do you resolve the UserID of a user when using ASP.NET 2.0's built in Membership utility?


Answer:
//GetUser() returns current user information

MembershipUser myUser = Membership.GetUser();
  


//Returns the UserID and converts to a string
string UserID = myUser.ProviderUserKey.ToString();


Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]