All Projects → jsakamoto → CSharpMethodsCodeSnippets

jsakamoto / CSharpMethodsCodeSnippets

Licence: GPL-3.0 license
Code snippets for C# methods.

Programming Languages

Vim Snippet
174 projects
powershell
5483 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to CSharpMethodsCodeSnippets

Beeftext
A text snippet tool for Windows.
Stars: ✭ 366 (+731.82%)
Mutual labels:  snippets, visual-studio
Vs Freemarker
FreeMarker language colorization extension for Visual Studio Code
Stars: ✭ 17 (-61.36%)
Mutual labels:  snippets, visual-studio
Vscode Angular Typescript Snippets
Visual Studio Code TypeScript snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS & Testing) for Angular 5
Stars: ✭ 82 (+86.36%)
Mutual labels:  snippets, visual-studio
clangbuilder
Building Clang ♡ Utility and Environment
Stars: ✭ 101 (+129.55%)
Mutual labels:  visual-studio
jupyter boilerplate
Adds a customizable menu item to Jupyter (IPython) notebooks to insert boilerplate snippets of code
Stars: ✭ 69 (+56.82%)
Mutual labels:  snippets
material2-snippets
Visual studio extension & Intellij plugin for Angular Material 2, Teradata Covalent 1, Angular Flex layout 1 & Material icon snippets
Stars: ✭ 14 (-68.18%)
Mutual labels:  snippets
CUDAfy.NET
CUDAfy .NET allows easy development of high performance GPGPU applications completely from the .NET. It's developed in C#.
Stars: ✭ 56 (+27.27%)
Mutual labels:  visual-studio
CommitFormatter
A Visual Studio extension that automatically formats your Git commit message in team explorer
Stars: ✭ 16 (-63.64%)
Mutual labels:  visual-studio
vs-autocomment
A visual studio plugin that automatically inserts comments
Stars: ✭ 30 (-31.82%)
Mutual labels:  visual-studio
miniSnip
Lightweight snippet plugin for Vim
Stars: ✭ 45 (+2.27%)
Mutual labels:  snippets
vim-nayvy
🌑 Enriching python coding in Vim 🐍
Stars: ✭ 66 (+50%)
Mutual labels:  snippets
vscode-theme-gruvbox-minor
Gruvbox theme for Visual Studio Code
Stars: ✭ 17 (-61.36%)
Mutual labels:  visual-studio
EU4ConsolePatcher
A simple memory patcher which enables the internal developer console in ironman mode
Stars: ✭ 55 (+25%)
Mutual labels:  visual-studio
snippets
The Doom Emacs snippets library
Stars: ✭ 248 (+463.64%)
Mutual labels:  snippets
winrar-keygen
Principle of WinRAR key generation.
Stars: ✭ 398 (+804.55%)
Mutual labels:  visual-studio
RobotArmHelix
3D Simulation, forward and inverse kinematics of a robotic arm in C# using WPF and helix-toolkit
Stars: ✭ 84 (+90.91%)
Mutual labels:  visual-studio
ByteScout-SDK-SourceCode
ALL source code samples for ByteScout SDKs and Web API API products.
Stars: ✭ 24 (-45.45%)
Mutual labels:  visual-studio
StackOverflowQuickLaunch
A Quick Launch search provider for searching Stack Overflow in Visual Studio
Stars: ✭ 20 (-54.55%)
Mutual labels:  visual-studio
CornerstoneSDK
面向现代 C++ 的小栗子框架插件开发工具(停止更新,仅支持小栗子v2)
Stars: ✭ 37 (-15.91%)
Mutual labels:  visual-studio
DisposableFixer
This is a Visual Studio Extension and NuGet package that should identify and fix problems as memleaks while using IDisposables.
Stars: ✭ 37 (-15.91%)
Mutual labels:  visual-studio

C# Methods Code Snippets - for Visual Studio

Summary

This is code snippets for appending method in C# code, for Visual Studio 2012 or above.

How to install?

Download "C# Methods Code Snippets" Visual Studio Extension file (.vsix) from Visual Studio Marketplace, and open it.

You can also install via Visual Studio [Tools] > [Extensions and Updates] dialog (search with keyword "method").

fig.1

How to use?

After installing of this snippet, you can use following code snippet shortcuts.

  • method (snippet for instance method)
    • and "method1", "method2", "method3" are taking arguments edition.
  • imethod (snippet for interface method)
    • and "imethod1", "imethod2", "imethod3" are taking arguments edition.
  • vmethod (snippet for virtual instance method)
    • and "vmethod1", "vmethod2", "vmethod3" are taking arguments edition.
  • smethod (snippet for static method)
    • and "smethod1", "smethod2", "smethod3" are taking arguments edition.
  • xmethod (snippet for extension method)
    • and "xmethod1", "xmethod2", "xmethod3" are taking arguments edition.
  • amethod (snippet for an async instance method)
  • asmethod (snippet for an async static method)
  • eh (snippet for event handler method)
  • seh (snippet for event handler static method)

Examples

ex.1) Instance method

// Enter "method [Tab]", then...  
public void MyMethod()  {
    throw new NotImplementedException();
}

// Enter "method1 [Tab]", then...  
public void MyMethod(object arg)  {
    throw new NotImplementedException();
}

// Enter "method2 [Tab]", then...  
public void MyMethod(object arg1, object arg2)  {
    throw new NotImplementedException();
}

// Enter "method3 [Tab]", then...  
public void MyMethod(object arg1, object arg2, object arg3)  {
    throw new NotImplementedException();
}

ex.2) Interface method

// Enter "imethod [Tab]", then...  
public void MyMethod();

// Enter "imethod1 [Tab]", then...  
public void MyMethod(object arg);

// Enter "imethod2 [Tab]", then...  
public void MyMethod(object arg1, object arg2);

// Enter "imethod3 [Tab]", then...  
public void MyMethod(object arg1, object arg2, object arg3);

ex.3) Virtual instance method

// Enter "vmethod [Tab]", then...  
public virtual void MyMethod()  {
    throw new NotImplementedException();
}

// Enter "vmethod1 [Tab]", then...  
public virtual void MyMethod(object arg)  {
    throw new NotImplementedException();
}

// Enter "vmethod2 [Tab]", then...  
public virtual void MyMethod(object arg1, object arg2)  {
    throw new NotImplementedException();
}

// Enter "vmethod3 [Tab]", then...  
public virtual void MyMethod(object arg1, object arg2, object arg3)  {
    throw new NotImplementedException();
}

ex.4) Static method

// Enter "smethod [Tab]", then...  
public static void MyMethod()  {
    throw new NotImplementedException();
}

// Enter "smethod1 [Tab]", then...  
public static void MyMethod(object arg)  {
    throw new NotImplementedException();
}

// Enter "smethod2 [Tab]", then...  
public static void MyMethod(object arg1, object arg2)  {
    throw new NotImplementedException();
}

// Enter "smethod3 [Tab]", then...  
public static void MyMethod(object arg1, object arg2, object arg3)  {
    throw new NotImplementedException();
}

ex.5) Extension method

// Enter "xmethod [Tab]", then...  
public static void MyMethod(this object value)  {
    throw new NotImplementedException();
}

// Enter "xmethod1 [Tab]", then...  
public static void MyMethod(this object value, object arg)  {
    throw new NotImplementedException();
}

// Enter "xmethod2 [Tab]", then...  
public static void MyMethod(this object value, object arg1, object arg2)  {
    throw new NotImplementedException();
}

// Enter "xmethod3 [Tab]", then...  
public static void MyMethod(this object value, object arg1, object arg2, object arg3)  {
    throw new NotImplementedException();
}

ex.6) Async instance method

// Enter "amethod [Tab]", then...  
public async Task<object> MyMethodAsync()  {
    throw new NotImplementedException();
}

ex.7) Async static method

// Enter "asmethod [Tab]", then...  
public static async Task<object> MyMethodAsync()  {
    throw new NotImplementedException();
}

ex.8) Event handler, Static event handler

// Enter "eh [Tab]", then... 
private void MyMethod(object sender, EventArgs e)
{
    throw new NotImplementedException();
}
// Enter "seh [Tab]", then... 
private static void MyMethod(object sender, EventArgs e)
{
    throw new NotImplementedException();
}

License

GNU GPL v.3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].