Skip to content

Commit

Permalink
Merge pull request #4 from d1820/added-comment-support
Browse files Browse the repository at this point in the history
Added support to move comments and attr to base
  • Loading branch information
d1820 authored Feb 6, 2024
2 parents b9e6365 + e8f51b9 commit 58f0fef
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 488 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to the "pulltointerfacor" extension will be documented in th

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [1.0.0] 1.19.2024

- Initial release
| Date | Change | Release Date | Version | Has Breaking Changes |
| ---------- | --------------------------------------------- | ------------ | ------- | -------------------- |
| 01/19/2024 | Initial Release | 01/16/2023 | 1.0.1 | NO |
| 02/06/2024 | Added support to move comments and attributes | 02/06/2024 | 1.0.2 | NO |
| | | | | |
2 changes: 2 additions & 0 deletions Sample/SampleProject/BaseClass.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using SampleProject;
Expand All @@ -8,5 +9,6 @@ namespace Sample
{
public class BaseClass : IBaseClass
{

}
}
4 changes: 2 additions & 2 deletions Sample/SampleProject/IMyClass.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using SampleProject;
Expand All @@ -8,7 +9,6 @@ namespace Sample
{
public interface IMyClass
{
async Task<int> GetNewIdAsync<TNewType>(string name,string address,string city,string state) where TNewType : class;
string FullProperty { get; set; }

}
}
14 changes: 14 additions & 0 deletions Sample/SampleProject/MyClass.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using SampleProject;
Expand All @@ -9,12 +10,20 @@ namespace Sample
public class MyClass<TType> : BaseClass, IMyClass, IMyTypedClass<string> where TType : class
{
private string _fullProperty;

[Required]
/// <summary>
/// Test Comments
/// </summary>
public int MyPropertyLamda => 5;

[Required]
public string FullProperty
{
get => _fullProperty;
set => _fullProperty = value;
}

public string FullPropertyAlt
{
get
Expand All @@ -26,7 +35,12 @@ public string FullPropertyAlt
_fullProperty = value;
}
}
/// <summary>
/// Test Comments
/// </summary>
[Required]
public int MyProperty { get; set; }

public async Task<int> GetNewIdAsync<TNewType>(string name,
string address,
string city,
Expand Down
Loading

0 comments on commit 58f0fef

Please sign in to comment.