Click here to Skip to main content
15,893,486 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Coding vent post Pin
honey the codewitch8-Dec-21 5:23
mvahoney the codewitch8-Dec-21 5:23 
GeneralRe: Coding vent post Pin
jeron18-Dec-21 5:28
jeron18-Dec-21 5:28 
Generalmy first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 13:06
Super Lloyd7-Dec-21 13:06 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 14:32
mvahoney the codewitch7-Dec-21 14:32 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 15:43
Super Lloyd7-Dec-21 15:43 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 15:53
mvahoney the codewitch7-Dec-21 15:53 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 16:01
Super Lloyd7-Dec-21 16:01 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 16:12
Super Lloyd7-Dec-21 16:12 
new generated code thanks to you! Smile | :)
putting it all, just for fun.... (the other partial file is always the same and jut copied from a generator resource)
C#
public partial class TestResource
{
    public static string fsf    => _fsf ?? (_fsf = GetResource("fsf", GetDictionaries(Culture)));
    public static string hello  => _hello ?? (_hello = GetResource("hello", GetDictionaries(Culture)));
    public static string name   => _name ?? (_name = GetResource("name", GetDictionaries(Culture)));

    private static string? _fsf;
    private static string? _hello;
    private static string? _name;

    static partial void UpdateValues()
    {
        _fsf = null;
        _hello = null;
        _name = null;
    }

    static TestResource()
    {
        AddCultureDictionary("", new Dictionary<string, string>
        {
            { "fsf", "ffs" },
            { "hello", "hello" },
            { "name", "name" },
        });
        AddCultureDictionary("fr-FR", new Dictionary<string, string>
        {
            { "fsf", "nom de dieu" },
            { "hello", "salut" },
            { "name", "nom" },
        });
    }
}
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!


modified 7-Dec-21 22:24pm.

GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 16:55
mvahoney the codewitch7-Dec-21 16:55 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 21:49
Super Lloyd7-Dec-21 21:49 
GeneralRe: my first source code generator, yea!.. and a question Pin
Richard Deeming7-Dec-21 22:32
mveRichard Deeming7-Dec-21 22:32 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 22:47
Super Lloyd7-Dec-21 22:47 
GeneralAn interesting blockchain read PinPopular
David O'Neil7-Dec-21 5:18
professionalDavid O'Neil7-Dec-21 5:18 
GeneralRe: An interesting blockchain read Pin
raddevus7-Dec-21 5:31
mvaraddevus7-Dec-21 5:31 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:00
professionalFabio Franco8-Dec-21 0:00 
GeneralRe: An interesting blockchain read Pin
raddevus8-Dec-21 3:14
mvaraddevus8-Dec-21 3:14 
GeneralRe: An interesting blockchain read Pin
Yortw8-Dec-21 8:44
Yortw8-Dec-21 8:44 
GeneralRe: An interesting blockchain read Pin
raddevus8-Dec-21 9:07
mvaraddevus8-Dec-21 9:07 
GeneralRe: An interesting blockchain read Pin
Gerry Schmitz7-Dec-21 6:16
mveGerry Schmitz7-Dec-21 6:16 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:07
professionalFabio Franco8-Dec-21 0:07 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:04
professionalFabio Franco8-Dec-21 0:04 
GeneralRe: An interesting blockchain read Pin
trønderen8-Dec-21 3:22
trønderen8-Dec-21 3:22 
GeneralRe: An interesting blockchain read Pin
Kirk 103898218-Dec-21 4:50
Kirk 103898218-Dec-21 4:50 
GeneralRe: An interesting blockchain read Pin
BernardIE53178-Dec-21 4:11
BernardIE53178-Dec-21 4:11 
GeneralRe: An interesting blockchain read Pin
mngerhold8-Dec-21 22:22
mngerhold8-Dec-21 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.