Skip to content

Commit d129d7c

Browse files
Update register-unregister.md
1 parent d55789f commit d129d7c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docs/pages/api/register-unregister.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
---
22
layout: default
33
title: Register & Unregister
4+
description: Register and unregister assembly, constant, method, type, and more.
45
permalink: register-unregister
56
---
67

78
{% include template-h1.html %}
89

9-
### Introduction
10-
Register and unregister methods allow to add or remove referenced assembly, extension methods, type, constant value and more.
10+
## Description
11+
{{ page.description }}
1112

1213
By default, all .NET common class/type/extension methods are already registered.
1314

1415
## Register
15-
### Problem
16-
You want to register an information supported by the EvalContext under which the code or expression is compiled.
16+
You can register:
1717

18-
### Solution
19-
Supported Register:
2018
- RegisterAlias(string alias, string name)
2119
- RegisterAssembly(param Assembly[])
2220
- RegisterDomainAssemblies()
@@ -45,7 +43,7 @@ context.RegisterType(typeof (bool), typeof(char);
4543
```
4644

4745
### Static Member
48-
Allows to use static member name without qualifying them with their namespace or type name. A static member is a new feature in C# 6.0.
46+
You can use static member name without qualifying them with their namespace or type name. Static member is a new feature in C# 6.0.
4947

5048
```csharp
5149
// using Z.Expressions; // Don't forget to include this.
@@ -58,10 +56,8 @@ int result = context.Execute<int>("MinValue"); // Int.MinValue
5856

5957
## Unregister
6058
### Problem
61-
You want to unregister an information from the EvalContext under which the code or expression is compiled.
59+
You can unregister:
6260

63-
### Solution
64-
Supported Unregister:
6561
- UnregisterAlias(param string[] aliases)
6662
- UnregisterAll
6763
- UnregisterAssembly(param Assembly[])

0 commit comments

Comments
 (0)