Visual Studio 內建快速生產代碼簡寫集合

來源:互聯網
上載者:User

標籤:

工作之餘,整理了一下,Visual Studio 裡面的快速生產代碼縮寫集合,這個拿出來分享想一下,希望對您有所協助。

 檔案:VS內建生產代碼縮寫集合文檔.rar

首字母 簡寫 產生代碼
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 here
     public int Length
     {
         get
         {
             return 1;
         }
     }

     public ElementType this[int index]
     {
         get
         {
             //
             // TODO: implement indexer here
             //
             // you have 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 內建快速生產代碼簡寫集合

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.