# Reference Proxy

This protection encodes and hides references to type/method/fields. Reference Proxy also generates methods, classes and folders with names picked randomly from the .NET Library.

{% code title="Before Obfuscation" %}

```csharp
private void InitializeComponent()
		{
			this.button1 = new Button();
			base.SuspendLayout();
			this.button1.Location = new Point(284, 190);
			this.button1.Name = "button1";
			this.button1.Size = new Size(206, 73);
			this.button1.TabIndex = 0;
			this.button1.Text = "button1";
			this.button1.UseVisualStyleBackColor = true;
			this.button1.Click += this.button1_Click;
			base.AutoScaleDimensions = new SizeF(8f, 16f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(800, 450);
			base.Controls.Add(this.button1);
			base.Name = "Form1";
			this.Text = "Form1";
			base.ResumeLayout(false);
		}
```

{% endcode %}

{% code title="After Obfuscation" %}

```csharp
private void InitializeComponent()
		{
			this.button1 = NoProposedData.\u0095Å\u00AE\u0095\u0010();
			set_Exception.qÿ\u0099º\u00A1(this);
			ResetAllowNew.óùûû\u00B8(this.button1, new Point(284, 190));
			HResultExceptionMarshaler.,\u0096&\u00B19(this.button1, "button1");
			QualifiedTableName.Á4UË\u0013(this.button1, new Size(206, 73));
			get_SymUnmanagedDocumentWriter.íô\u000A]~(this.button1, 0);
			HResultExceptionMarshaler.ÖÃ\u000A\u00AFï(this.button1, "button1");
			TypeNVarCharSchemaImporterExtension.ûÅÐG~(this.button1, true);
			IndexExpression.\u0087|Í\u0091Ý(this.button1, new EventHandler(this.button1_Click));
			get_ParentTable.6kÀ\u009Eù(this, new SizeF(8f, 16f));
			CreateInstanceFromAndUnwrap.uGë2\u009E(this, AutoScaleMode.Font);
			get_Mask.Y\u0085\u0084Gù(this, new Size(800, 450));
			AddRefAccessor.\u0018ÿÀ\u0015j(set_MinSize.c\u000Bot\u0003(this), this.button1);
			HResultExceptionMarshaler.\u0091ÿ8À\u00AF(this, "Form1");
			HResultExceptionMarshaler.ÖÃ\u000A\u00AFï(this, "Form1");
			RoundRect.ÂÊ\u00A5\u00A96(this, false);
		}
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://trinity.gitbook.io/obfuscator/protections/name-protections/reference-proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
