SourceTemplateAttribute Class
An extension method marked with this attribute is processed by code completion
as a 'Source Template'. When the extension method is completed over some expression, its source code
is automatically expanded like a template at call site.
Namespace:
RingSoft.DbLookup.Controls.WPF.PropertiesAssembly: RingSoft.DbLookup.Controls.WPF (in RingSoft.DbLookup.Controls.WPF.dll)
Syntax
[AttributeUsageAttribute] public sealed class SourceTemplateAttribute : Attribute
<AttributeUsageAttribute> _ Public NotInheritable Class SourceTemplateAttribute _ Inherits Attribute
[AttributeUsageAttribute] public ref class SourceTemplateAttribute sealed : public Attribute
Remarks
Examples
C#
[SourceTemplate] public static void forEach<T>(this IEnumerable<T> xs) { foreach (var x in xs) { //$ $END$ } }