Aspects.Freezable 1.0.1

This package provides simple freezable pattern implementation. Put [Freezable] attribure on your properties or a whole class. Then cast your objects to IFreezable when needed.
Powered by AspectInjector.

Install-Package Aspects.Freezable -Version 1.0.1
dotnet add package Aspects.Freezable --version 1.0.1
<PackageReference Include="Aspects.Freezable" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspects.Freezable --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package provides simple freezable pattern implementation.
Put [Freezable] attribure on your properties or a whole class.

Then cast your objects to IFreezable when you need to make it frozen or check its status.

[Freezable]
class TestClass
{
    public string Data { get; set; }
}

public void Code()
{
    var target = new TestClass();
    target.Data = "test1";
    ((IFreezable)target).Freeze();
    target.Data = "test2"; // <-- will throw exception
}

This package provides simple freezable pattern implementation.
Put [Freezable] attribure on your properties or a whole class.

Then cast your objects to IFreezable when you need to make it frozen or check its status.

[Freezable]
class TestClass
{
    public string Data { get; set; }
}

public void Code()
{
    var target = new TestClass();
    target.Data = "test1";
    ((IFreezable)target).Freeze();
    target.Data = "test2"; // <-- will throw exception
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 104 1/19/2020
1.0.0 111 1/19/2020