Skip to content

Commit

Permalink
v1.0.3.0 New release.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioZ committed Feb 9, 2015
1 parent 8defbe2 commit af2c7cc
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 24 deletions.
Binary file modified MadMilkman.Ini.Documentation.chm
Binary file not shown.
10 changes: 5 additions & 5 deletions MadMilkman.Ini.Samples/MadMilkman.Ini.Samples.CPP/IniSamples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void Parse()
playerSection->Keys["Birthday"]->TryParseValue(playerBirthday);

// Retrieve player's marital status as bool.
// TryParseValue succeeds due to the mapping of "yes" value to "true" boolean.
// TryParseValue succeeds due to the mapping of 'yes' value to 'true' boolean.
bool playerMarried;
playerSection->Keys["Married"]->TryParseValue(playerMarried);

Expand Down Expand Up @@ -240,10 +240,10 @@ void BindInternal()
// Bind placeholders with file's content, internal information.
file->ValueBinding->Bind();

// Retrieve application's full name, value is "Example App v1.0".
// Retrieve application's full name, value is 'Example App v1.0'.
String^ appFullName = file->Sections["Application Settings"]->Keys["Full Name"]->Value;

// Retrieve application's executable path, value is "C:\\Program Files\\Example App.exe".
// Retrieve application's executable path, value is 'C:\\Program Files\\Example App.exe'.
String^ appExePath = file->Sections["Application Settings"]->Keys["Executable Path"]->Value;
}

Expand All @@ -269,10 +269,10 @@ void BindExternal()
file->ValueBinding->Bind(
KeyValuePair<String^, String^>("Homepage", "www.example.com"));

// Retrieve user's full name, value is "John Doe".
// Retrieve user's full name, value is 'John Doe'.
String^ userFullName = file->Sections["User's Settings"]->Keys["Full Name"]->Value;

// Retrieve user's profile page, value is "www.example.com/Profiles/Johny".
// Retrieve user's profile page, value is 'www.example.com/Profiles/Johny'.
String^ userProfilePage = file->Sections["User's Settings"]->Keys["Profile Page"]->Value;
}

Expand Down
10 changes: 5 additions & 5 deletions MadMilkman.Ini.Samples/MadMilkman.Ini.Samples.CS/IniSamples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private static void Parse()
playerSection.Keys["Birthday"].TryParseValue(out playerBirthday);

// Retrieve player's marital status as bool.
// TryParseValue succeeds due to the mapping of "yes" value to "true" boolean.
// TryParseValue succeeds due to the mapping of 'yes' value to 'true' boolean.
bool playerMarried;
playerSection.Keys["Married"].TryParseValue(out playerMarried);

Expand Down Expand Up @@ -238,10 +238,10 @@ private static void BindInternal()
// Bind placeholders with file's content, internal information.
file.ValueBinding.Bind();

// Retrieve application's full name, value is "Example App v1.0".
// Retrieve application's full name, value is 'Example App v1.0'.
string appFullName = file.Sections["Application Settings"].Keys["Full Name"].Value;

// Retrieve application's executable path, value is "C:\\Program Files\\Example App.exe".
// Retrieve application's executable path, value is 'C:\\Program Files\\Example App.exe'.
string appExePath = file.Sections["Application Settings"].Keys["Executable Path"].Value;
}

Expand All @@ -268,10 +268,10 @@ private static void BindExternal()
file.ValueBinding.Bind(
new KeyValuePair<string, string>("Homepage", "www.example.com"));

// Retrieve user's full name, value is "John Doe".
// Retrieve user's full name, value is 'John Doe'.
string userFullName = file.Sections["User's Settings"].Keys["Full Name"].Value;

// Retrieve user's profile page, value is "www.example.com/Profiles/Johny".
// Retrieve user's profile page, value is 'www.example.com/Profiles/Johny'.
string userProfilePage = file.Sections["User's Settings"].Keys["Profile Page"].Value;
}

Expand Down
10 changes: 5 additions & 5 deletions MadMilkman.Ini.Samples/MadMilkman.Ini.Samples.VB/IniSamples.vb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Module IniSamples
playerSection.Keys("Birthday").TryParseValue(playerBirthday)

' Retrieve player's marital status as bool.
' TryParseValue succeeds due to the mapping of "yes" value to "true" boolean.
' TryParseValue succeeds due to the mapping of 'yes' value to 'true' boolean.
Dim playerMarried As Boolean
playerSection.Keys("Married").TryParseValue(playerMarried)

Expand Down Expand Up @@ -229,10 +229,10 @@ Module IniSamples
' Bind placeholders with file's content, internal information.
file.ValueBinding.Bind()

' Retrieve application's full name, value is "Example App v1.0".
' Retrieve application's full name, value is 'Example App v1.0'.
Dim appFullName As String = file.Sections("Application Settings").Keys("Full Name").Value

' Retrieve application's executable path, value is "C:\\Program Files\\Example App.exe".
' Retrieve application's executable path, value is 'C:\\Program Files\\Example App.exe'.
Dim appExePath As String = file.Sections("Application Settings").Keys("Executable Path").Value
End Sub

Expand All @@ -259,10 +259,10 @@ Module IniSamples
file.ValueBinding.Bind(
New KeyValuePair(Of String, String)("Homepage", "www.example.com"))

' Retrieve user's full name, value is "John Doe".
' Retrieve user's full name, value is 'John Doe'.
Dim userFullName As String = file.Sections("User's Settings").Keys("Full Name").Value

' Retrieve user's profile page, value is "www.example.com/Profiles/Johny".
' Retrieve user's profile page, value is 'www.example.com/Profiles/Johny'.
Dim userProfilePage As String = file.Sections("User's Settings").Keys("Profile Page").Value
End Sub

Expand Down
Binary file modified MadMilkman.Ini.Setup.msi
Binary file not shown.
2 changes: 2 additions & 0 deletions MadMilkman.Ini/IniItems/IniKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public sealed class IniKey : IniItem
/// <summary>
/// Gets and sets <see cref="IniKey"/> value.
/// </summary>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#parsing" target="_self">IniKey's Value Parsing</seealso>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniKey's Value Binding</seealso>
public string Value { get; set; }

/// <summary>
Expand Down
10 changes: 5 additions & 5 deletions MadMilkman.Ini/IniValueUtilities/IniValueBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ namespace MadMilkman.Ini
/// <remarks>
/// <para><see cref="IniValueBinding"/> can be accessed through <see cref="IniFile.ValueBinding"/> property.</para>
/// <para>Binding can be executed with internal data source or with a provided external data source.</para>
/// <para>For more information see <see href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniFile's Value Binding</see>.</para>
/// <para>For more information see <see href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniKey's Value Binding</see>.</para>
/// </remarks>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniFile's Value Binding</seealso>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniKey's Value Binding</seealso>
public sealed class IniValueBinding
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
Expand All @@ -32,7 +32,7 @@ internal IniValueBinding(IniFile iniFile)
/// <summary>
/// Executes a binding operation with internal data source.
/// </summary>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniFile's Value Binding</seealso>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniKey's Value Binding</seealso>
public void Bind()
{
foreach (var placeholderPair in this.GetPlaceholderPairs(null))
Expand Down Expand Up @@ -66,15 +66,15 @@ public void Bind()
/// Executes a binding operation with external data source.
/// </summary>
/// <param name="dataSource">The binding data source.</param>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniFile's Value Binding</seealso>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniKey's Value Binding</seealso>
public void Bind(object dataSource) { this.Bind(dataSource, null); }

/// <summary>
/// Executes a binding operation with external data source, only on specified section.
/// </summary>
/// <param name="dataSource">The binding data source.</param>
/// <param name="sectionName">The <see cref="IniSection"/>'s name.</param>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniFile's Value Binding</seealso>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#binding" target="_self">IniKey's Value Binding</seealso>
public void Bind(object dataSource, string sectionName)
{
if (dataSource == null)
Expand Down
4 changes: 2 additions & 2 deletions MadMilkman.Ini/IniValueUtilities/IniValueMappings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace MadMilkman.Ini
/// <remarks>
/// <para><see cref="IniValueMappings"/> can be accessed through <see cref="IniFile.ValueMappings"/> property.</para>
/// <para>Mapped value results have priority over parsing the value.</para>
/// <para>For more information see <see href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#parsing" target="_self">IniFile's Value Parsing</see>.</para>
/// <para>For more information see <see href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#parsing" target="_self">IniKey's Value Parsing</see>.</para>
/// </remarks>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#parsing" target="_self">IniFile's Value Parsing</seealso>
/// <seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#parsing" target="_self">IniKey's Value Parsing</seealso>
public sealed class IniValueMappings
{
private readonly IDictionary<string, object> mappings;
Expand Down
2 changes: 1 addition & 1 deletion MadMilkman.Ini/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
[assembly: AllowPartiallyTrustedCallers]
[assembly: CLSCompliant(true)]

[assembly: AssemblyVersion("1.0.2.3")]
[assembly: AssemblyVersion("1.0.3.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
2 changes: 1 addition & 1 deletion MadMilkman.Ini/SharedDocumentationComments.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<para>For supported types see the remarks of <see cref="IsSupportedValueType(Type)"/> method.</para>
<para>Mapped value results in <see cref="IniFile.ValueMappings"/> have priority over parsing the value.</para>
</remarks>
<seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#parsing" target="_self">IniFile's Value Parsing</seealso>
<seealso href="c49dc3a5-866f-4d2d-8f89-db303aceb5fe.htm#parsing" target="_self">IniKey's Value Parsing</seealso>
</Comment>
</Comments>
1 change: 1 addition & 0 deletions RELEASENOTES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[1.0.3.0] NEW RELEASE
[1.0.2.3] Added support for defining placeholders in IniKey.Value and binding them with internal or external data source.
[1.0.2.2] Added support for IniKey.ParentSection property.
[1.0.2.1] Switched from MS tests to NUnit tests.
Expand Down

0 comments on commit af2c7cc

Please sign in to comment.