Exemple #1
0
        public static ClassDeclarationSyntax AddServiceProperties(
            this ClassDeclarationSyntax classDeclaration,
            ClassDescription classDescription)
        {
            var refProperties = PropertiesBuilder.Build(
                classDescription,
                CLASS_REF_NAME,
                LOCK_OBJECT_NAME)
                                .ToArray();

            return(classDeclaration
                   .AddMembers(refProperties));
        }