Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8820149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:32:10+00:00 2026-06-14T05:32:10+00:00

I have setup this File Template in ReSharper 7.0.1 using System; using System.Collections.Generic; using

  • 0

I have setup this File Template in ReSharper 7.0.1

using System;
using System.Collections.Generic;
using System.Linq;
using MyProject.Infrastructure.Messaging;

namespace $NAMESPACE$
{
    public class $CLASS$Command : ICommand<$CLASS$Command.Result>
    {
        $END$

        public class Result
        {

        }
    }


    public class $CLASS$Handler : ICommandHandler<$CLASS$Command, $CLASS$Command.Result>
    {
        public $CLASS$Command.Result Process($CLASS$Command c)
        {

            var result = new $CLASS$Command.Result {};
            return result;
        }
    }
}

When I create a file based on the template, only some of the $CLASS$ variable instances are populated correctly. In the instances where $CLASS$ is used in $CLASS$Command.Result, $CLASS$ is replaced with the letter a instead of the expected value, like so.

using System;
using System.Collections.Generic;
using System.Linq;
using MyProject.Infrastructure.Messaging;

namespace MyProject.Domain.AnEntity.Commands
{
    public class Test2Command : ICommand<aCommand.Result>
    {


        public class Result
        {

        }
    }


    public class Test2Handler : ICommandHandler<Test2Command, aCommand.Result>
    {
        public aCommand.Result Process(Test2Command c)
        {

            var result = new aCommand.Result {};
            return result;
        }
    }
}

I cannot see a reason why this isn’t working. Does anyone know what I’m doing wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:32:11+00:00Added an answer on June 14, 2026 at 5:32 am

    This apparently is a bug in certain versions of ReSharper, and is currently in the queue for a fix as best I can tell.

    http://youtrack.jetbrains.com/issue/RSRP-334501

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SOLVED: Error in template file I have Smarty setup like this: require_once 'smarty/Smarty.class.php'; $smarty
I have some trouble trying to setup a template to solve address this situation:
We have a rails server with custom 404 and 500 pages setup using this
I have set up a screen rc file like this: log on shelltitle apt
I currently have a .htaccess file set up with this rule: RewriteRule ^([a-zA-Z0-9_-]+)$ user\.php?user=$1
I have always wondered about this. So many application setups have a zip file
I have this setup in my models: class Author(models.Model): name = models.CharField(max_length=100) class Topic(models.Model):
I have a setup like this: http://jsfiddle.net/zzjSC/3/ and I am wondering why the surrounding
I have a setup like this: <div id=container> <div id=close>Close</div> </div> Then in my
I have a setup like this. var element = $(.module-panel, this.el); $('.module-panel:not('+element+')').hide(); What I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.