CodeHelper.Core.PlaceHolder 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeHelper.Core.PlaceHolder --version 1.1.1                
NuGet\Install-Package CodeHelper.Core.PlaceHolder -Version 1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeHelper.Core.PlaceHolder" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeHelper.Core.PlaceHolder --version 1.1.1                
#r "nuget: CodeHelper.Core.PlaceHolder, 1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CodeHelper.Core.PlaceHolder as a Cake Addin
#addin nuget:?package=CodeHelper.Core.PlaceHolder&version=1.1.1

// Install CodeHelper.Core.PlaceHolder as a Cake Tool
#tool nuget:?package=CodeHelper.Core.PlaceHolder&version=1.1.1                

CodeHelper.Core.PlaceHolder

Replace the placeholders in a text with the values of the object

NuGet Package: https://www.nuget.org/packages/CodeHelper.Core.PlaceHolder

Use the plugin as follows:

    using CodeHelper.Core.PlaceHolder;

    public class Location
    {
        #region Properties
        [Placeholder("{CONTACTNAME}")]
        public string ContactName { get; set; }

        [Placeholder("{USERNAME}")]
        public string UserName { get; set; }
        #endregion
    }

The value {CONTACTNAME} can be anything. This value will be used in your text

Code as Static Method

    using CodeHelper.Core.PlaceHolder;

    var _generalText = "{CONTACTNAME}, your account has been created with username {USERNAME}";
    var _location = new Location() {ContactName = "Frederik", UserName= "FrederikvanLierde"};    
    var updatedString = PlaceHolderHelper.Replace(_generalText, _location);

Code as String Extension

    using CodeHelper.Core.PlaceHolder;

    var _generalText = "{CONTACTNAME}, your account has been created with username {USERNAME}";
    var _location = new Location() {ContactName = "Frederik", UserName= "FrederikvanLierde"};

    var _location.Replace(_location);

Question?

Frederik van Lierde https://twitter.com/@frederik_vl/

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on CodeHelper.Core.PlaceHolder:

Package Downloads
CodeHelper.Core.OAuth2

CodeHelper.Core.OAuth2 is a lightweight and easy to use .NET OAuth Wrapper (Mostly used by the CodeHelper.API packages

CodeHelper.API.Pinterest

CodeHelper.API.Pinterest is a lightweight and easy to use .NET Pinterest Wrapper letting you to manage your baords and pins (including create, update and delete For more information and a list of endpoints available, please see the detailed documentation pages below.

CodeHelper.API.LinkedIn

CodeHelper.API.LinkedIn is a lightweight and simple .NET Wrapper to let you share posts, url and articles on LinkedIn Including getAuthorID, ShareTextMessage, ShareUrl and ShareImage For more information and a list of endpoints available, please see the detailed documentation pages below.

CodeHelper.API.NYTimes

CodeHelper.API.NYTimes is a lightweight and simple .NET Wrapper to get links and metadata for Times' articles as soon as they are published on NYTimes.com. The Times Newswire API provides an up-to-the-minute stream of published articles. You can filter results by source (all, nyt, inyt) and section (arts, business, ...). The latest version also included Best Seller List, Get Books on a Best Seller List, Get NYT Reviews by author¦isbn¦title, Movies Critics, Movie Critic icks and Search Movie Reviews For more information and a list of endpoints available, please see the detailed documentation pages below.

CodeHelper.API.YouTube

CodeHelper.API.YouTube is a lightweight and simple .NET Wrapper to let you access the YouTube Search API Search for Videos, Channels, playlists, Movies, 3D Videos, ... For more information and a list of endpoints available, please see the detailed documentation pages below.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.3.3 1,607 9/24/2022
6.3.2 894 9/24/2022
6.3.1 1,290 9/16/2022
6.3.0 411 9/13/2022
6.2.0 513 9/8/2022 6.2.0 is deprecated because it is no longer maintained.
6.1.0 416 9/7/2022
6.0.1 864 9/1/2022
6.0.0 1,147 8/7/2022
5.0.0 414 8/7/2022
1.1.1 393 8/5/2022
1.1.0 391 8/5/2022
1.0.0 408 8/4/2022