Visual Studio built-in quick Production Code shorthand collection

Source: Internet
Author: User

In addition to work, finishing a bit, Visual Studio inside the quick Production Code abbreviation collection, this to share to think about, hope to help you.

File: vs built-in production code abbreviation collection document. rar

First letter Shorthand Generate code
A Attachedproperty public static readonly??? Propertynameproperty =???. RegisterAttached (
"PropertyName",
typeof (PropertyType),
typeof (HomeController),
New PropertyMetadata (Default (PropertyType)));

public static void Setpropertyname (DependencyObject element, PropertyType value)
{
Element. SetValue (propertynameproperty, value);
}

public static PropertyType Getpropertyname (DependencyObject Element)
{
return (PropertyType) element. GetValue (Propertynameproperty);
}
Attribute [AttributeUsage (AttributeTargets.All, inherited = False, AllowMultiple = True)]
Private Sealed class Myattribute:attribute
{
See the attribute guidelines at
http://go.microsoft.com/fwlink/?LinkId=85236
Private readonly string positionalstring;

This is a positional argument
Public MyAttribute (String positionalstring)
{
this.positionalstring = positionalstring;

Todo:implement code here
throw new NotImplementedException ();
}

public string positionalstring {get; private set;}

This is a named argument
public int Namedint {get; set;}
}
     
C Checked
Class
ctor Public A1 ()
{
}
CTx
cw Console.WriteLine ();
     
D Do do{

}while (validaterequest);
     
E Ear type[] types = new type[] {};
Enum Enum MyEnum
{
}
equals
Exception
Else
     
F For for (int i = 0; i < UPPER; i++)
{

}
Forr for (int i = length-1; I >= 0; i--)
{

}
Foreach foreach (Var VARIABLE in COLLECTION)
{

}
From From VAR in Viewenginecollection
{

}
     
H Hal Html.ActionLink ("TEXT", "ACTION", "account")
     
I
If if (validaterequest)
{
}
Invoke EventHandler temp = MyEvent;
if (temp! = null)
{
Temp ();
}
Ital for (int i = 0; i < Arraylist.count; i++)
{
Object array = (object) arraylist[i];
}
Itar for (int i = 0; i < array. Length; i++)
{
var a = Array[i];
}
Itdg foreach (var i in ViewData)
{
var key = I.key;
var value = I.value;
}
Itdic foreach (DictionaryEntry dictionaryentry in dictionary)
{
Object key = (object) Dictionaryentry.key;
Object value = (object) Dictionaryentry.value;
}
Itli for (int i = 0; i < Viewenginecollection.count; i++)
{
Object key = (object) Dictionaryentry.key;
Object value = (object) Dictionaryentry.value;
}
Indexer public Object This[int Index]
{
Get
{
/* Return the specified index here */
}
Set
{
/* Set the specified index to value here */
}
}
Interface Interface IInterface
{
}
Iterator Public system.collections.generic.ienumerator<elementtype> GetEnumerator ()
{
throw new NotImplementedException ();
Yield return default (ElementType);
}
Iterindex public class Myviewiterator
{
Private ReadOnly myviewiterator outer;

Internal Myviewiterator (Myviewiterator outer)
{
This.outer = outer;
}

Todo:provide an appropriate implementation
public int Length
{
Get
{
return 1;
}
}

Public ElementType This[int Index]
{
Get
{
//
Todo:implement Indexer Here
//
You have the full access to Myviewiterator privates
//
Throw
New NotImplementedException ();
return default (ElementType);
}
}

Public system.collections.generic.ienumerator<elementtype> GetEnumerator ()
{
for (int i = 0; I < this. Length; i++)
{
Yield return this[i];
}
}
}
     
L Lock Lock (Viewenginecollection)
{

}
     
M Mbox System.Windows.Forms.MessageBox.Show ("Test");
     
N Nguid a509913f-295b-480f-a022-854a81045c6e
     
O Out Console.Out.WriteLine ("");
Outv Console.Out.WriteLine ("viewenginecollection = {0}", viewenginecollection);
     
P Pci Public const INT
Pcs Public const string
Prop Public type type {get; set;}
Propg public int I {get; private set;}
Psr public static readonly
Psvm public static void Main (string[] args) {}
     
R Rta Redirecttoaction ("ACTION", "account")
Ritar for (int i = array. Length-1; I >= 0; i--)
{
var a = Array[i];
}
     
S Sfc var type = viewenginecollection as type;

if (type! = NULL)
{

}
Switch Switch (@enum)
{

}
Svm static void Main (string[] args)
{

}
Sim static int Main (string[] args)
{

return 0;
}
struct struct MYSTRUCT
{

}
     
T Thr throw new
Toar (object[]) Arraylist.toarray (typeof (Object))
Try Try
{

}
catch (Exception)
{

Throw
}
Tryf Try
{

}
Finally
{

}
     
U Ua Url.action ("Action", "account")
Unchecked Unchecked
{

}
Unsafe Unsafe
{

}
Using using (This)
{

}
     
W While while (true)
{

}
     

Visual Studio built-in quick Production Code shorthand collection

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.