reflection

  1. S

    Question move data from one sql server to another.

    We just redesigned, and rewrote, our application with brand new designed database schema. My next job is to write c# code that will convert and move the data from the old database to the new database. . I'm a simple man. I just want to read the data, massage the data to convert it to the new...
  2. dipique

    Using custom attributes to contain a target field/property for a search

    Big Picture I maintain a large web application with the primary function of managing orders. It is an MVC over C# application using EF6 for data. There are LOTS of search screens. Right now every search is coded without any code re-use (before my time, I swear!). What I'm Trying To Do I'm...
  3. tobias233

    Question How can I pass multiple type variables to generic type variable T?

    Hello :joyous:, I am doing C# for a half year now. Today I want to call a method like this in a class with the name "A": public T TheMethod<T>(IRestResponse response) { ... } At compile time, T isn't known. var theType = typeof(B); So I tried the following: var gMethod=...
  4. F

    Question Copying an object changes its reference

    I'm using an "object factory/pool" to store sprites. I have it set up so that: ASprite tmp = spritePool.GetObject(); tmp.state = 133; Will make a new object for tmp, then set its state to 133. All the objects in the pool are stored in an array. Now, I want to populate that pool by...
Top Bottom