annotate Source/Templates/BLT4Toolkit.ttinclude @ 6:11b6da379593
 
Исправлена странная ошибка при использовании OfType<...>().Where(...)
 | author | 
 cin | 
 | date | 
 Mon, 05 Dec 2016 05:50:52 +0300 | 
 | parents | 
 f990fcb411a9  | 
 | children | 
  | 
 | rev | 
   line source | 
  
| 
0
 | 
     1 <#@ include file="T4Toolbox.tt" #>
 | 
| 
 | 
     2 <#
 | 
| 
 | 
     3 
 | 
| 
 | 
     4 	var customToolNamespace = TransformationContext.FindProjectItem(Host.TemplateFile).Properties.Item("CustomToolNamespace").Value;
 | 
| 
 | 
     5 
 | 
| 
 | 
     6 	if (customToolNamespace != null)
 | 
| 
 | 
     7 		Namespace = customToolNamespace.ToString();
 | 
| 
 | 
     8 
 | 
| 
 | 
     9 	if (string.IsNullOrEmpty(Namespace))
 | 
| 
 | 
    10 		Namespace = TransformationContext.DefaultNamespace;
 | 
| 
 | 
    11 
 | 
| 
 | 
    12 	if (string.IsNullOrEmpty(DataContextName))
 | 
| 
 | 
    13 		DataContextName = System.IO.Path.GetFileNameWithoutExtension(Host.TemplateFile);
 | 
| 
 | 
    14 
 | 
| 
 | 
    15 #> |