System.Web.Compilation.TemplateControlCompiler.SetCustomAttribute C# (CSharp) Method

SetCustomAttribute() static private method

static private SetCustomAttribute ( CodeMemberMethod method, System.Web.UI.UnknownAttributeDescriptor uad ) : void
method System.CodeDom.CodeMemberMethod
uad System.Web.UI.UnknownAttributeDescriptor
return void
		void SetCustomAttribute (CodeMemberMethod method, UnknownAttributeDescriptor uad)
		{
			CodeAssignStatement assign = new CodeAssignStatement ();
			assign.Left = new CodePropertyReferenceExpression (
				new CodeArgumentReferenceExpression("__ctrl"),
				uad.Info.Name);
			assign.Right = GetExpressionFromString (uad.Value.GetType (), uad.Value.ToString (), uad.Info);
			
			method.Statements.Add (assign);
		}
		
TemplateControlCompiler