History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-15211
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: oleksa borodie
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Extract interface moves class property attributes to the interface

Created: 05 Aug 06 21:27   Updated: 21 Feb 08 23:28
Component/s: Refactorings - Extract Interface
Fix Version/s: None
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 213
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=15211


 Description  « Hide
Hello.

"Extract interface" moves property attributes from class to interface when performed.
before:

public class Language : CWObject
    {
        #region "Private fields"

        private string _name;
        private bool _isSystem;
		private string _cultureReference;

        #endregion

        #region "Constructors"

        public Language(int id, string name, bool isSystem, string cultureReference)
        {
            this._id = id;
            this._name = name;
            this._isSystem = isSystem;
			this._cultureReference = cultureReference;
        }

        public Language()
        {
        }

        #endregion


        [MapField(SourceName = "LanguageId", TargetName = "LanguageID")]
        public string LanguageID
        {
            get
            {
                return (string)this._id;
            }
            set
            {
                this.ID = value;
            }
        }
	}

after Extract interface

public interface ILanguage
	{
		[MapField(SourceName = "LanguageId", TargetName = "LanguageID")]
		string LanguageID { get; set; }
	}

Happy New Year!



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.