void Main()
        {
            var annotator = Annotator.Create();

            //	annotator.Annotate((component) =>component. NotNull<Component>());

            annotator.Annotate <Component>((type) => type.Annotate(component => component.transform == NotNull <Transform>()));
            annotator.Annotate <Component>((type) => type.Annotate(component => component.gameObject == NotNull <GameObject>()));
        }
Пример #2
0
        static int Main(string[] args)
        {
            var annotator = Annotator.Create();

            AnnotateLogger(annotator);
            AnnotateFactories(annotator);

            var nuspec = new NugetSpec(
                id: "NLog.Annotations",
                title: "NLog Annotations",
                authors: "Julien Roncaglia",
                owners: "Julien Roncaglia",
                projectUrl: "https://github.com/vbfox/NLogResharperAnnotations",
                iconUrl: "https://raw.github.com/vbfox/NLogResharperAnnotations/master/nlog.png",
                description: "Annotations for the NLog.dll file",
                tags: "NLog Annotations");

            return(RunApp("NLogResharperAnnotations", args, annotator, nuspec));
        }