Skip to content

Commit e029b9a

Browse files
committed
one-liner \o/
1 parent 1df56a6 commit e029b9a

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Flexinets.Ldap.Core/Flexinets.Ldap.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ For an example server implementation see https://github.com/vforteli/FlexinetsLd
1313
<PackageProjectUrl>https://github.com/vforteli/Flexinets.Ldap.Core</PackageProjectUrl>
1414
<PackageReleaseNotes>Added convenience class for creating partial attributes</PackageReleaseNotes>
1515
<PackageTags>LDAP packet parse assemble authentication</PackageTags>
16-
<AssemblyVersion>1.0.86.0</AssemblyVersion>
17-
<FileVersion>1.0.86.0</FileVersion>
16+
<AssemblyVersion>1.0.87.0</AssemblyVersion>
17+
<FileVersion>1.0.87.0</FileVersion>
1818
</PropertyGroup>
1919

2020
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'">

Flexinets.Ldap.Core/LdapPartialAttribute.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ public LdapPartialAttribute(String attributeDescription, IEnumerable<String> att
3030
{
3131
ChildAttributes.Add(new LdapAttribute(UniversalDataType.OctetString, attributeDescription));
3232
var values = new LdapAttribute(UniversalDataType.Set);
33-
foreach (var value in attributeValues)
34-
{
35-
values.ChildAttributes.Add(new LdapAttribute(UniversalDataType.OctetString, value));
36-
}
33+
values.ChildAttributes.AddRange(attributeValues.Select(o => new LdapAttribute(UniversalDataType.OctetString, o)));
3734
ChildAttributes.Add(values);
3835
}
3936

@@ -46,6 +43,6 @@ public LdapPartialAttribute(String attributeDescription, IEnumerable<String> att
4643
public LdapPartialAttribute(String attributeDescription, String attributeValue) : this(attributeDescription, new List<String> { attributeValue })
4744
{
4845

49-
}
46+
}
5047
}
5148
}

0 commit comments

Comments
 (0)