From aafd06b07fdd08e3459ca51bff342cb4f7a45139 Mon Sep 17 00:00:00 2001 From: AJ Hoffer Date: Fri, 21 Feb 2020 16:47:15 -0500 Subject: [PATCH] add example project --- Examples/Examples.csproj | 54 +++++++++++++++++++++++++++++ Examples/Program.cs | 24 +++++++++++++ Examples/Properties/AssemblyInfo.cs | 36 +++++++++++++++++++ Lorem.NET.sln | 13 +++++-- 4 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 Examples/Examples.csproj create mode 100644 Examples/Program.cs create mode 100644 Examples/Properties/AssemblyInfo.cs diff --git a/Examples/Examples.csproj b/Examples/Examples.csproj new file mode 100644 index 0000000..cda0348 --- /dev/null +++ b/Examples/Examples.csproj @@ -0,0 +1,54 @@ + + + + + Debug + AnyCPU + {3A28CF73-F2F5-467B-A7B6-E822A6653203} + Exe + Examples + Examples + v4.0 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + {787d3ba7-db6c-4704-b89c-8d91a4392442} + Lorem.NET + + + + \ No newline at end of file diff --git a/Examples/Program.cs b/Examples/Program.cs new file mode 100644 index 0000000..bfad91c --- /dev/null +++ b/Examples/Program.cs @@ -0,0 +1,24 @@ +using System; + +namespace Examples +{ + static class Program + { + static void Main(string[] args) + { + Console.WriteLine($"Email: {LoremNET.Generate.Email()}"); + Console.WriteLine($"Chance: {LoremNET.Generate.Chance(1, 2)}"); + Console.WriteLine($"Words: {LoremNET.Generate.Words(5)}"); + + Console.WriteLine(); + Console.WriteLine("Change the source..."); + LoremNET.Source.UpdateSource("Alright stop collaborate and listen ice is back with my brand new invention something grabs a hold of me tightly flow like a harpoon daily and nightly will it ever stop yo I don't know turn off the lights and I'll glow"); + + Console.WriteLine($"Sentence: {LoremNET.Generate.Sentence(5, 25)}"); + + Console.WriteLine(); + Console.WriteLine("Press any key to exit..."); + Console.ReadKey(); + } + } +} \ No newline at end of file diff --git a/Examples/Properties/AssemblyInfo.cs b/Examples/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..75751c8 --- /dev/null +++ b/Examples/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Examples")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Examples")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3a28cf73-f2f5-467b-a7b6-e822a6653203")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Lorem.NET.sln b/Lorem.NET.sln index e7ac1cf..1dc45d8 100644 --- a/Lorem.NET.sln +++ b/Lorem.NET.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.21005.1 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29519.87 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lorem.NET", "Lorem.NET\Lorem.NET.csproj", "{787D3BA7-DB6C-4704-B89C-8D91A4392442}" EndProject @@ -10,6 +10,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution readme.md = readme.md EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples", "Examples\Examples.csproj", "{3A28CF73-F2F5-467B-A7B6-E822A6653203}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -20,8 +22,15 @@ Global {787D3BA7-DB6C-4704-B89C-8D91A4392442}.Debug|Any CPU.Build.0 = Debug|Any CPU {787D3BA7-DB6C-4704-B89C-8D91A4392442}.Release|Any CPU.ActiveCfg = Release|Any CPU {787D3BA7-DB6C-4704-B89C-8D91A4392442}.Release|Any CPU.Build.0 = Release|Any CPU + {3A28CF73-F2F5-467B-A7B6-E822A6653203}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3A28CF73-F2F5-467B-A7B6-E822A6653203}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3A28CF73-F2F5-467B-A7B6-E822A6653203}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3A28CF73-F2F5-467B-A7B6-E822A6653203}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5496E627-F3B6-4620-865C-774C5E0B11E0} + EndGlobalSection EndGlobal