Skip to content

Commit 878df55

Browse files
committed
Formatting cleanup.
1 parent 5bfdd27 commit 878df55

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

src/NHibernate.sln.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
22
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CommonFormatter/ALIGNMENT_TAB_FILL_STYLE/@EntryValue">USE_SPACES</s:String>
3+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_LINQ_QUERY/@EntryValue">True</s:Boolean>
34
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_ARGUMENT/@EntryValue">True</s:Boolean>
45
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue">True</s:Boolean>
56
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_PARAMETER/@EntryValue">True</s:Boolean>

src/NHibernate/Mapping/ByCode/Impl/GeneratorMapper.cs

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ namespace NHibernate.Mapping.ByCode.Impl
66
{
77
public class GeneratorMapper : IGeneratorMapper
88
{
9-
private readonly HbmGenerator generator;
9+
private readonly HbmGenerator _generator;
1010

1111
public GeneratorMapper(HbmGenerator generator)
1212
{
13-
this.generator = generator;
13+
_generator = generator;
1414
}
1515

1616
#region Implementation of IGeneratorMapper
1717

1818
public void Params(object generatorParameters)
1919
{
20-
this.Params(generatorParameters.GetType().GetProperties().ToDictionary(x => x.Name, x => x.GetValue(generatorParameters, null)));
20+
var dictionary = generatorParameters.GetType()
21+
.GetProperties()
22+
.ToDictionary(x => x.Name, x => x.GetValue(generatorParameters, null));
23+
Params(dictionary);
2124
}
2225

2326
public void Params(IDictionary<string, object> generatorParameters)
@@ -26,12 +29,15 @@ public void Params(IDictionary<string, object> generatorParameters)
2629
{
2730
return;
2831
}
29-
generator.param = (from pi in generatorParameters
30-
let pname = pi.Key
31-
let pvalue = pi.Value
32-
select
33-
new HbmParam { name = pname, Text = new[] { ReferenceEquals(pvalue, null) ? "null" : pvalue.ToString() } }).
34-
ToArray();
32+
33+
_generator.param = (from pi in generatorParameters
34+
let pname = pi.Key
35+
let pvalue = pi.Value
36+
select new HbmParam
37+
{
38+
name = pname,
39+
Text = new[] {ReferenceEquals(pvalue, null) ? "null" : pvalue.ToString()}
40+
}).ToArray();
3541
}
3642

3743
#endregion

0 commit comments

Comments
 (0)